cleaned up and improved lsp config

This commit is contained in:
willifan 2024-10-13 17:50:59 +02:00
parent f793853c27
commit 489d2fc47e

View file

@ -4,42 +4,19 @@
plugins = { plugins = {
lsp-lines = {enable = true;}; lsp-lines = {enable = true;};
lsp-format = {enable = true;}; lsp-format = {enable = true;};
helm = {enable = true;};
lsp = { lsp = {
enable = true; enable = true;
inlayHints = true; inlayHints = true;
servers = { servers = {
clangd = {enable = true;};
html = {enable = true;}; html = {enable = true;};
lua-ls = {enable = true;}; lua-ls = {enable = true;};
nil-ls = {enable = true;};
marksman = {enable = true;};
nixd = {enable = true;}; nixd = {enable = true;};
pyright = {enable = true;}; pyright = {enable = true;};
gopls = {enable = true;}; gopls = {enable = true;};
terraformls = {enable = true;};
ansiblels = {enable = true;};
jsonls = {enable = true;}; jsonls = {enable = true;};
yamlls = { rust-analyzer = {enable = true;};
enable = true; yamlls = {enable = true;};
extraOptions = {
settings = {
yaml = {
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}";
};
};
};
};
};
}; };
keymaps = { keymaps = {