aboutsummaryrefslogtreecommitdiffstats
path: root/neovim/.config/nvim/lua/plugins/lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'neovim/.config/nvim/lua/plugins/lsp.lua')
-rw-r--r--neovim/.config/nvim/lua/plugins/lsp.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/neovim/.config/nvim/lua/plugins/lsp.lua b/neovim/.config/nvim/lua/plugins/lsp.lua
index 0463dde..3106fcd 100644
--- a/neovim/.config/nvim/lua/plugins/lsp.lua
+++ b/neovim/.config/nvim/lua/plugins/lsp.lua
@@ -15,11 +15,26 @@ return {
15 "ts_ls", 15 "ts_ls",
16 "cssls", 16 "cssls",
17 "html", 17 "html",
18 "helm_ls",
18 }, 19 },
19 -- default true: auto-calls vim.lsp.enable() for every Mason-installed 20 -- default true: auto-calls vim.lsp.enable() for every Mason-installed
20 -- server as it finishes installing. 21 -- server as it finishes installing.
21 }, 22 },
22 config = function(_, opts) 23 config = function(_, opts)
24 -- helm_ls's default config only attaches to filetype "helm" /
25 -- "yaml.helm-values" (not plain "yaml"), so without this,
26 -- templates/*.yaml only gets yamlls — which flags Helm's Go template
27 -- syntax ({{ .Values.x }}) as invalid YAML. values.yaml gets the
28 -- composite filetype instead, which both yamlls and helm_ls match, so
29 -- it keeps YAML validation *and* gets helm_ls's values-schema support.
30 vim.filetype.add({
31 pattern = {
32 [".*/templates/.*%.ya?ml"] = "helm",
33 [".*/templates/.*%.tpl"] = "helm",
34 [".*/values.*%.ya?ml"] = "yaml.helm-values",
35 },
36 })
37
23 -- Merge blink.cmp's LSP capabilities into every server's default config 38 -- Merge blink.cmp's LSP capabilities into every server's default config
24 -- (Mason-managed or not) before any server gets enabled. 39 -- (Mason-managed or not) before any server gets enabled.
25 vim.lsp.config("*", { 40 vim.lsp.config("*", {