mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
Compare commits
3 commits
b2cbb04dd9
...
453ece9360
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
453ece9360 | ||
|
|
a26641c07c | ||
|
|
44ed7456c7 |
4 changed files with 35 additions and 13 deletions
|
|
@ -58,7 +58,9 @@ let
|
||||||
}
|
}
|
||||||
else if anyOf != null then
|
else if anyOf != null then
|
||||||
let
|
let
|
||||||
possibleTypes = lib.filter (sub: !(sub.type == "null" && nullable)) anyOf;
|
possibleTypes = lib.filter (
|
||||||
|
sub: !(sub.type or null == "null" && nullable) && !(sub.deprecated or false)
|
||||||
|
) anyOf;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
kind = "oneOf";
|
kind = "oneOf";
|
||||||
|
|
@ -198,11 +200,12 @@ let
|
||||||
enumDesc enum enumDescriptions
|
enumDesc enum enumDescriptions
|
||||||
else
|
else
|
||||||
let
|
let
|
||||||
subEnums = lib.filter (lib.hasAttr "enum") anyOf;
|
subEnums = lib.filter (sub: sub ? enum && !(sub.deprecated or false)) anyOf;
|
||||||
subEnum =
|
subEnum =
|
||||||
assert lib.assertMsg (
|
assert lib.assertMsg (lib.length subEnums == 1)
|
||||||
lib.length subEnums == 1
|
"anyOf types may currently only contain a single enum. Found ${
|
||||||
) "anyOf types may currently only contain a single enum";
|
lib.generators.toPretty { } subEnums
|
||||||
|
}";
|
||||||
lib.head subEnums;
|
lib.head subEnums;
|
||||||
in
|
in
|
||||||
if subEnum ? enumDescriptions then
|
if subEnum ? enumDescriptions then
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@
|
||||||
"buck2": "https://github.com/facebook/buck2 Build system, successor to Buck To\nbetter detect Buck2 project files, the following can be added:\n\n vim.cmd [[ autocmd BufRead,BufNewFile *.bxl,BUCK,TARGETS set filetype=bzl ]]",
|
"buck2": "https://github.com/facebook/buck2 Build system, successor to Buck To\nbetter detect Buck2 project files, the following can be added:\n\n vim.cmd [[ autocmd BufRead,BufNewFile *.bxl,BUCK,TARGETS set filetype=bzl ]]",
|
||||||
"buddy_ls": "https://github.com/buddy-compiler/buddy-mlir#buddy-lsp-server The\nLanguage Server for the buddy-mlir, a drop-in replacement for\nmlir-lsp-server, supporting new dialects defined in buddy-mlir.\n`buddy-lsp-server` can be installed at the buddy-mlir repository\n(buddy-compiler/buddy-mlir)",
|
"buddy_ls": "https://github.com/buddy-compiler/buddy-mlir#buddy-lsp-server The\nLanguage Server for the buddy-mlir, a drop-in replacement for\nmlir-lsp-server, supporting new dialects defined in buddy-mlir.\n`buddy-lsp-server` can be installed at the buddy-mlir repository\n(buddy-compiler/buddy-mlir)",
|
||||||
"buf_ls": "",
|
"buf_ls": "",
|
||||||
"bufls": "https://github.com/bufbuild/buf-language-server `buf-language-server`\ncan be installed via `go install`:\n\n``` sh\ngo install github.com/bufbuild/buf-language-server/cmd/bufls@latest\n```\n\nbufls is a Protobuf language server compatible with Buf modules and\nworkspaces",
|
|
||||||
"bzl": "https://bzl.io/ https://docs.stack.build/docs/cli/installation\nhttps://docs.stack.build/docs/vscode/starlark-language-server",
|
"bzl": "https://bzl.io/ https://docs.stack.build/docs/cli/installation\nhttps://docs.stack.build/docs/vscode/starlark-language-server",
|
||||||
"c3_lsp": "https://github.com/pherrymason/c3-lsp Language Server for c3.",
|
"c3_lsp": "https://github.com/pherrymason/c3-lsp Language Server for c3.",
|
||||||
"cairo_ls": "[Cairo Language\nServer](https://github.com/starkware-libs/cairo/tree/main/crates/cairo-lang-language-server)\nFirst, install Cairo following [this\ntutorial](https://book.cairo-lang.org/ch01-01-installation.html) Then\nenable Cairo Language Server in your Lua configuration.\n\n``` lua\nvim.lsp.enable('cairo_ls')\n```\n\n*cairo-language-server is still under active development, some features\nmight not work yet !*",
|
"cairo_ls": "[Cairo Language\nServer](https://github.com/starkware-libs/cairo/tree/main/crates/cairo-lang-language-server)\nFirst, install Cairo following [this\ntutorial](https://book.cairo-lang.org/ch01-01-installation.html) Then\nenable Cairo Language Server in your Lua configuration.\n\n``` lua\nvim.lsp.enable('cairo_ls')\n```\n\n*cairo-language-server is still under active development, some features\nmight not work yet !*",
|
||||||
|
|
@ -154,7 +153,7 @@
|
||||||
"jqls": "https://github.com/wader/jq-lsp Language server for jq, written using\nGo. You can install the server easily using go install:\n\n``` sh\n# install directly\ngo install github.com/wader/jq-lsp@master\n# copy binary to $PATH\ncp $(go env GOPATH)/bin/jq-lsp /usr/local/bin\n```\n\nNote: To activate properly nvim needs to know the jq filetype. You can\nadd it via:\n\n``` lua\nvim.cmd([[au BufRead,BufNewFile *.jq setfiletype jq]])\n```",
|
"jqls": "https://github.com/wader/jq-lsp Language server for jq, written using\nGo. You can install the server easily using go install:\n\n``` sh\n# install directly\ngo install github.com/wader/jq-lsp@master\n# copy binary to $PATH\ncp $(go env GOPATH)/bin/jq-lsp /usr/local/bin\n```\n\nNote: To activate properly nvim needs to know the jq filetype. You can\nadd it via:\n\n``` lua\nvim.cmd([[au BufRead,BufNewFile *.jq setfiletype jq]])\n```",
|
||||||
"jsonls": "https://github.com/hrsh7th/vscode-langservers-extracted\nvscode-json-language-server, a language server for JSON and JSON schema\n`vscode-json-language-server` can be installed via `npm`:\n\n``` sh\nnpm i -g vscode-langservers-extracted\n```\n\n`vscode-json-language-server` only provides completions when snippet\nsupport is enabled. If you use Neovim older than v0.10 you need to\nenable completion, install a snippet plugin and add the following\noverride to your language client capabilities during setup.\n\n``` lua\n--Enable (broadcasting) snippet capability for completion\nlocal capabilities = vim.lsp.protocol.make_client_capabilities()\ncapabilities.textDocument.completion.completionItem.snippetSupport = true\nvim.lsp.config('jsonls', {\n capabilities = capabilities,\n})\n```",
|
"jsonls": "https://github.com/hrsh7th/vscode-langservers-extracted\nvscode-json-language-server, a language server for JSON and JSON schema\n`vscode-json-language-server` can be installed via `npm`:\n\n``` sh\nnpm i -g vscode-langservers-extracted\n```\n\n`vscode-json-language-server` only provides completions when snippet\nsupport is enabled. If you use Neovim older than v0.10 you need to\nenable completion, install a snippet plugin and add the following\noverride to your language client capabilities during setup.\n\n``` lua\n--Enable (broadcasting) snippet capability for completion\nlocal capabilities = vim.lsp.protocol.make_client_capabilities()\ncapabilities.textDocument.completion.completionItem.snippetSupport = true\nvim.lsp.config('jsonls', {\n capabilities = capabilities,\n})\n```",
|
||||||
"jsonnet_ls": "",
|
"jsonnet_ls": "",
|
||||||
"julials": "https://github.com/julia-vscode/julia-vscode LanguageServer.jl can be\ninstalled with `julia` and `Pkg`:\n\n``` sh\njulia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.add(\"LanguageServer\")'\n```\n\nwhere `~/.julia/environments/nvim-lspconfig` is the location where the\ndefault configuration expects LanguageServer.jl to be installed. To\nupdate an existing install, use the following command:\n\n``` sh\njulia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.update()'\n```\n\nNote: In order to have LanguageServer.jl pick up installed packages or\ndependencies in a Julia project, you must make sure that the project is\ninstantiated:\n\n``` sh\njulia --project=/path/to/my/project -e 'using Pkg; Pkg.instantiate()'\n```\n\nNote: The julia programming language searches for global environments\nwithin the `environments/` folder of `$JULIA_DEPOT_PATH` entries. By\ndefault this simply `~/.julia/environments`",
|
"julials": "https://github.com/julia-vscode/julia-vscode LanguageServer.jl,\nSymbolServer.jl and StaticLint.jl can be installed with `julia` and\n`Pkg`:\n\n``` sh\njulia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.add(\"LanguageServer\"); Pkg.add(\"SymbolServer\"); Pkg.add(\"StaticLint\")'\n```\n\nwhere `~/.julia/environments/nvim-lspconfig` is the location where the\ndefault configuration expects LanguageServer.jl, SymbolServer.jl and\nStaticLint.jl to be installed. To update an existing install, use the\nfollowing command:\n\n``` sh\njulia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.update()'\n```\n\nNote: In order to have LanguageServer.jl pick up installed packages or\ndependencies in a Julia project, you must make sure that the project is\ninstantiated:\n\n``` sh\njulia --project=/path/to/my/project -e 'using Pkg; Pkg.instantiate()'\n```\n\nNote: The julia programming language searches for global environments\nwithin the `environments/` folder of `$JULIA_DEPOT_PATH` entries. By\ndefault this simply `~/.julia/environments`",
|
||||||
"just": "https://github.com/terror/just-lsp `just-lsp` is an LSP for just built\non top of the tree-sitter-just parser.",
|
"just": "https://github.com/terror/just-lsp `just-lsp` is an LSP for just built\non top of the tree-sitter-just parser.",
|
||||||
"kcl": "https://github.com/kcl-lang/kcl.nvim Language server for the KCL\nconfiguration and policy language.",
|
"kcl": "https://github.com/kcl-lang/kcl.nvim Language server for the KCL\nconfiguration and policy language.",
|
||||||
"koka": "https://koka-lang.github.io/koka/doc/index.html Koka is a functional\nprogramming language with effect types and handlers.",
|
"koka": "https://koka-lang.github.io/koka/doc/index.html Koka is a functional\nprogramming language with effect types and handlers.",
|
||||||
|
|
@ -227,7 +226,7 @@
|
||||||
"please": "https://github.com/thought-machine/please High-performance extensible\nbuild system for reproducible multi-language builds. The `plz` binary\nwill automatically install the LSP for you on first run",
|
"please": "https://github.com/thought-machine/please High-performance extensible\nbuild system for reproducible multi-language builds. The `plz` binary\nwill automatically install the LSP for you on first run",
|
||||||
"pli": "`pli_language_server` is a language server for the PL/I language used on\nIBM SystemZ mainframes. To learn how to configure the PL/I language\nserver, see the [PL/I Language Support\ndocumentation](https://github.com/zowe/zowe-pli-language-support).",
|
"pli": "`pli_language_server` is a language server for the PL/I language used on\nIBM SystemZ mainframes. To learn how to configure the PL/I language\nserver, see the [PL/I Language Support\ndocumentation](https://github.com/zowe/zowe-pli-language-support).",
|
||||||
"poryscript_pls": "https://github.com/huderlem/poryscript-pls Language server for\nporyscript (a high level scripting language for GBA-era Pokémon\ndecompilation projects)",
|
"poryscript_pls": "https://github.com/huderlem/poryscript-pls Language server for\nporyscript (a high level scripting language for GBA-era Pokémon\ndecompilation projects)",
|
||||||
"postgres_lsp": "https://pgtools.dev A collection of language tools and a Language Server\nProtocol (LSP) implementation for Postgres, focusing on developer\nexperience and reliable SQL tooling.",
|
"postgres_lsp": "https://pg-language-server.com A collection of language tools and a\nLanguage Server Protocol (LSP) implementation for Postgres, focusing on\ndeveloper experience and reliable SQL tooling.",
|
||||||
"powershell_es": "",
|
"powershell_es": "",
|
||||||
"prismals": "Language Server for the Prisma JavaScript and TypeScript ORM\n`@prisma/language-server` can be installed via npm\n\n``` sh\nnpm install -g @prisma/language-server\n```",
|
"prismals": "Language Server for the Prisma JavaScript and TypeScript ORM\n`@prisma/language-server` can be installed via npm\n\n``` sh\nnpm install -g @prisma/language-server\n```",
|
||||||
"prolog_ls": "https://github.com/jamesnvc/lsp_server Language Server Protocol server\nfor SWI-Prolog",
|
"prolog_ls": "https://github.com/jamesnvc/lsp_server Language Server Protocol server\nfor SWI-Prolog",
|
||||||
|
|
|
||||||
|
|
@ -845,11 +845,16 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer.imports.granularity.group": {
|
"rust-analyzer.imports.granularity.group": {
|
||||||
"description": "How imports should be grouped into use statements.\n\nValues:\n- preserve: Do not change the granularity of any imports and preserve the original structure written by the developer.\n- crate: Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.\n- module: Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.\n- item: Flatten imports so that each has its own use statement.\n- one: Merge all imports into a single use statement as long as they have the same visibility and attributes.\n",
|
"description": "How imports should be grouped into use statements.\n\nValues:\n- crate: Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.\n- module: Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.\n- item: Flatten imports so that each has its own use statement.\n- one: Merge all imports into a single use statement as long as they have the same visibility and attributes.\n",
|
||||||
"pluginDefault": "crate",
|
"pluginDefault": "crate",
|
||||||
"type": {
|
"type": {
|
||||||
"kind": "enum",
|
"kind": "oneOf",
|
||||||
"values": ["preserve", "crate", "module", "item", "one"]
|
"subTypes": [
|
||||||
|
{
|
||||||
|
"kind": "enum",
|
||||||
|
"values": ["crate", "module", "item", "one"]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer.imports.group.enable": {
|
"rust-analyzer.imports.group.enable": {
|
||||||
|
|
@ -956,6 +961,13 @@
|
||||||
"values": ["always", "never", "fieldless"]
|
"values": ["always", "never", "fieldless"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"rust-analyzer.inlayHints.expressionAdjustmentHints.disableReborrows": {
|
||||||
|
"description": "Disable reborrows in expression adjustments inlay hints.\n\nReborrows are a pair of a builtin deref then borrow, i.e. `&*`. They are inserted by the compiler but are mostly useless to the programmer.\n\nNote: if the deref is not builtin (an overloaded deref), or the borrow is `&raw const`/`&raw mut`, they are not removed.\n",
|
||||||
|
"pluginDefault": true,
|
||||||
|
"type": {
|
||||||
|
"kind": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
"rust-analyzer.inlayHints.expressionAdjustmentHints.enable": {
|
"rust-analyzer.inlayHints.expressionAdjustmentHints.enable": {
|
||||||
"description": "Show inlay hints for type adjustments.\n\nValues:\n- always: Always show all adjustment hints.\n- never: Never show adjustment hints.\n- reborrow: Only show auto borrow and dereference adjustment hints.\n",
|
"description": "Show inlay hints for type adjustments.\n\nValues:\n- always: Always show all adjustment hints.\n- never: Never show adjustment hints.\n- reborrow: Only show auto borrow and dereference adjustment hints.\n",
|
||||||
"pluginDefault": "never",
|
"pluginDefault": "never",
|
||||||
|
|
@ -1030,7 +1042,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer.inlayHints.maxLength": {
|
"rust-analyzer.inlayHints.maxLength": {
|
||||||
"description": "Maximum length for inlay hints. Set to null to have an unlimited length.\n",
|
"description": "Maximum length for inlay hints. Set to null to have an unlimited length.\n\n**Note:** This is mostly a hint, and we don't guarantee to strictly follow the limit.\n",
|
||||||
"pluginDefault": 25,
|
"pluginDefault": 25,
|
||||||
"type": {
|
"type": {
|
||||||
"kind": "integer",
|
"kind": "integer",
|
||||||
|
|
@ -1321,7 +1333,7 @@
|
||||||
},
|
},
|
||||||
"rust-analyzer.runnables.extraTestBinaryArgs": {
|
"rust-analyzer.runnables.extraTestBinaryArgs": {
|
||||||
"description": "Additional arguments to be passed through Cargo to launched tests, benchmarks, or\ndoc-tests.\n\nUnless the launched target uses a\n[custom test harness](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field),\nthey will end up being interpreted as options to\n[`rustc`’s built-in test harness (“libtest”)](https://doc.rust-lang.org/rustc/tests/index.html#cli-arguments).\n",
|
"description": "Additional arguments to be passed through Cargo to launched tests, benchmarks, or\ndoc-tests.\n\nUnless the launched target uses a\n[custom test harness](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field),\nthey will end up being interpreted as options to\n[`rustc`’s built-in test harness (“libtest”)](https://doc.rust-lang.org/rustc/tests/index.html#cli-arguments).\n",
|
||||||
"pluginDefault": ["--show-output"],
|
"pluginDefault": ["--nocapture"],
|
||||||
"type": {
|
"type": {
|
||||||
"item": {
|
"item": {
|
||||||
"kind": "string"
|
"kind": "string"
|
||||||
|
|
@ -1363,6 +1375,13 @@
|
||||||
"kind": "boolean"
|
"kind": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"rust-analyzer.semanticHighlighting.comments.enable": {
|
||||||
|
"description": "Use semantic tokens for comments.\n\nIn some editors (e.g. vscode) semantic tokens override other highlighting grammars.\nBy disabling semantic tokens for comments, other grammars can be used to highlight\ntheir contents.\n",
|
||||||
|
"pluginDefault": true,
|
||||||
|
"type": {
|
||||||
|
"kind": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
"rust-analyzer.semanticHighlighting.doc.comment.inject.enable": {
|
"rust-analyzer.semanticHighlighting.doc.comment.inject.enable": {
|
||||||
"description": "Inject additional highlighting into doc comments.\n\nWhen enabled, rust-analyzer will highlight rust source in doc comments as well as intra\ndoc links.\n",
|
"description": "Inject additional highlighting into doc comments.\n\nWhen enabled, rust-analyzer will highlight rust source in doc comments as well as intra\ndoc links.\n",
|
||||||
"pluginDefault": true,
|
"pluginDefault": true,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
[
|
[
|
||||||
"bitbake_ls",
|
"bitbake_ls",
|
||||||
"bqnlsp",
|
"bqnlsp",
|
||||||
|
"bufls",
|
||||||
"cadence",
|
"cadence",
|
||||||
"clarity_lsp",
|
"clarity_lsp",
|
||||||
"codeqlls",
|
"codeqlls",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue