chore: move from plugins.lsp to lsp
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
c713ad013b
commit
82206d09d0
1 changed files with 135 additions and 135 deletions
|
|
@ -16,150 +16,150 @@ in
|
||||||
lspsaga = {
|
lspsaga = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
lsp = {
|
};
|
||||||
enable = true;
|
lsp = {
|
||||||
inlayHints = true;
|
enable = true;
|
||||||
servers = {
|
inlayHints = true;
|
||||||
html = {
|
servers = {
|
||||||
enable = true;
|
html = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
lua_ls = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
nil_ls = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
ts_ls = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
marksman = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
pyright = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
gopls = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
terraformls = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
terraform.path = "${pkgs.opentofu}/bin/tofu";
|
||||||
};
|
};
|
||||||
lua_ls = {
|
};
|
||||||
enable = true;
|
jsonls = {
|
||||||
};
|
enable = true;
|
||||||
nil_ls = {
|
};
|
||||||
enable = true;
|
hls = {
|
||||||
};
|
enable = true;
|
||||||
ts_ls = {
|
installGhc = true;
|
||||||
enable = true;
|
};
|
||||||
};
|
rubocop = {
|
||||||
marksman = {
|
enable = true;
|
||||||
enable = true;
|
};
|
||||||
};
|
ruby_lsp = {
|
||||||
pyright = {
|
enable = true;
|
||||||
enable = true;
|
};
|
||||||
};
|
texlab = {
|
||||||
gopls = {
|
enable = true;
|
||||||
enable = true;
|
};
|
||||||
};
|
puppet = {
|
||||||
terraformls = {
|
enable = true;
|
||||||
enable = true;
|
package = puppet-editor-services;
|
||||||
|
cmd = [
|
||||||
|
"${puppet-editor-services}/bin/puppet-languageserver"
|
||||||
|
"--stdio"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
helm_ls = {
|
||||||
|
enable = true;
|
||||||
|
extraOptions = {
|
||||||
settings = {
|
settings = {
|
||||||
terraform.path = "${pkgs.opentofu}/bin/tofu";
|
"helm_ls" = {
|
||||||
};
|
yamlls = {
|
||||||
};
|
path = "${pkgs.yaml-language-server}/bin/yaml-language-server";
|
||||||
jsonls = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
hls = {
|
|
||||||
enable = true;
|
|
||||||
installGhc = true;
|
|
||||||
};
|
|
||||||
rubocop = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
ruby_lsp = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
texlab = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
puppet = {
|
|
||||||
enable = true;
|
|
||||||
package = puppet-editor-services;
|
|
||||||
cmd = [
|
|
||||||
"${puppet-editor-services}/bin/puppet-languageserver"
|
|
||||||
"--stdio"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
helm_ls = {
|
|
||||||
enable = true;
|
|
||||||
extraOptions = {
|
|
||||||
settings = {
|
|
||||||
"helm_ls" = {
|
|
||||||
yamlls = {
|
|
||||||
path = "${pkgs.yaml-language-server}/bin/yaml-language-server";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
yamlls = {
|
|
||||||
enable = true;
|
|
||||||
extraOptions = {
|
|
||||||
settings = {
|
|
||||||
yaml = {
|
|
||||||
format = {
|
|
||||||
singleQuote = true;
|
|
||||||
};
|
|
||||||
schemas = {
|
|
||||||
kubernetes = "'*.yaml";
|
|
||||||
"http://json.schemastore.org/github-workflow" = ".github/workflows/*";
|
|
||||||
"http://json.schemastore.org/github-action" = ".github/action.{yml,yaml}";
|
|
||||||
"http://json.schemastore.org/ansible-stable-2.9" = "roles/tasks/*.{yml,yaml}";
|
|
||||||
"http://json.schemastore.org/kustomization" = "kustomization.{yml,yaml}";
|
|
||||||
"http://json.schemastore.org/ansible-playbook" = "*play*.{yml,yaml}";
|
|
||||||
"http://json.schemastore.org/chart" = "Chart.{yml,yaml}";
|
|
||||||
"https://json.schemastore.org/dependabot-v2" = ".github/dependabot.{yml,yaml}";
|
|
||||||
"https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json" =
|
|
||||||
"*docker-compose*.{yml,yaml}";
|
|
||||||
"https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json" =
|
|
||||||
"*flow*.{yml,yaml}";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
yamlls = {
|
||||||
keymaps = {
|
enable = true;
|
||||||
silent = true;
|
extraOptions = {
|
||||||
lspBuf = {
|
settings = {
|
||||||
gd = {
|
yaml = {
|
||||||
action = "definition";
|
format = {
|
||||||
desc = "Goto Definition";
|
singleQuote = true;
|
||||||
};
|
};
|
||||||
gr = {
|
schemas = {
|
||||||
action = "references";
|
kubernetes = "'*.yaml";
|
||||||
desc = "Goto References";
|
"http://json.schemastore.org/github-workflow" = ".github/workflows/*";
|
||||||
};
|
"http://json.schemastore.org/github-action" = ".github/action.{yml,yaml}";
|
||||||
gD = {
|
"http://json.schemastore.org/ansible-stable-2.9" = "roles/tasks/*.{yml,yaml}";
|
||||||
action = "declaration";
|
"http://json.schemastore.org/kustomization" = "kustomization.{yml,yaml}";
|
||||||
desc = "Goto Declaration";
|
"http://json.schemastore.org/ansible-playbook" = "*play*.{yml,yaml}";
|
||||||
};
|
"http://json.schemastore.org/chart" = "Chart.{yml,yaml}";
|
||||||
gI = {
|
"https://json.schemastore.org/dependabot-v2" = ".github/dependabot.{yml,yaml}";
|
||||||
action = "implementation";
|
"https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json" =
|
||||||
desc = "Goto Implementation";
|
"*docker-compose*.{yml,yaml}";
|
||||||
};
|
"https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json" =
|
||||||
gT = {
|
"*flow*.{yml,yaml}";
|
||||||
action = "type_definition";
|
};
|
||||||
desc = "Type Definition";
|
};
|
||||||
};
|
|
||||||
K = {
|
|
||||||
action = "hover";
|
|
||||||
desc = "Hover";
|
|
||||||
};
|
|
||||||
"<leader>cw" = {
|
|
||||||
action = "workspace_symbol";
|
|
||||||
desc = "Workspace Symbol";
|
|
||||||
};
|
|
||||||
"<leader>cr" = {
|
|
||||||
action = "rename";
|
|
||||||
desc = "Rename";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
diagnostic = {
|
};
|
||||||
"<leader>cd" = {
|
};
|
||||||
action = "open_float";
|
|
||||||
desc = "Line Diagnostics";
|
keymaps = {
|
||||||
};
|
silent = true;
|
||||||
"[d" = {
|
lspBuf = {
|
||||||
action = "goto_next";
|
gd = {
|
||||||
desc = "Next Diagnostic";
|
action = "definition";
|
||||||
};
|
desc = "Goto Definition";
|
||||||
"]d" = {
|
};
|
||||||
action = "goto_prev";
|
gr = {
|
||||||
desc = "Previous Diagnostic";
|
action = "references";
|
||||||
};
|
desc = "Goto References";
|
||||||
|
};
|
||||||
|
gD = {
|
||||||
|
action = "declaration";
|
||||||
|
desc = "Goto Declaration";
|
||||||
|
};
|
||||||
|
gI = {
|
||||||
|
action = "implementation";
|
||||||
|
desc = "Goto Implementation";
|
||||||
|
};
|
||||||
|
gT = {
|
||||||
|
action = "type_definition";
|
||||||
|
desc = "Type Definition";
|
||||||
|
};
|
||||||
|
K = {
|
||||||
|
action = "hover";
|
||||||
|
desc = "Hover";
|
||||||
|
};
|
||||||
|
"<leader>cw" = {
|
||||||
|
action = "workspace_symbol";
|
||||||
|
desc = "Workspace Symbol";
|
||||||
|
};
|
||||||
|
"<leader>cr" = {
|
||||||
|
action = "rename";
|
||||||
|
desc = "Rename";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
diagnostic = {
|
||||||
|
"<leader>cd" = {
|
||||||
|
action = "open_float";
|
||||||
|
desc = "Line Diagnostics";
|
||||||
|
};
|
||||||
|
"[d" = {
|
||||||
|
action = "goto_next";
|
||||||
|
desc = "Next Diagnostic";
|
||||||
|
};
|
||||||
|
"]d" = {
|
||||||
|
action = "goto_prev";
|
||||||
|
desc = "Previous Diagnostic";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue