Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions after/lsp/ansiblels.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vim.lsp.config('ansiblels', {
return {
settings = {
ansible = {
ansible = {
Expand All @@ -19,4 +19,4 @@ vim.lsp.config('ansiblels', {
},
},
},
})
}
18 changes: 11 additions & 7 deletions after/lsp/eslint.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
vim.lsp.config('eslint', {
settings = {
packageManager = "npm",
},
})

-- EslintFixAll on save, scoped to eslint-attached buffers only
-- EslintFixAll on save, scoped to eslint-attached buffers only.
-- Registered as a side effect when this config file is sourced; the augroup's
-- clear = true keeps it idempotent if the file is sourced more than once.
local group = vim.api.nvim_create_augroup("EslintFixOnSave", { clear = true })
vim.api.nvim_create_autocmd("LspAttach", {
group = group,
callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id)
if client and client.name == "eslint" then
Expand All @@ -16,3 +14,9 @@ vim.api.nvim_create_autocmd("LspAttach", {
end
end,
})

return {
settings = {
packageManager = "npm",
},
}
5 changes: 3 additions & 2 deletions after/lsp/gopls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
vim.lsp.config('gopls', {
-- Merged into the gopls config resolved by vim.lsp (Neovim 0.11+ native API).
return {
settings = {
gopls = {
analyses = {
Expand All @@ -9,4 +10,4 @@ vim.lsp.config('gopls', {
gofumpt = true,
},
},
})
}
4 changes: 2 additions & 2 deletions after/lsp/helm_ls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vim.lsp.config('helm_ls', {
return {
settings = {
['helm-ls'] = {
logLevel = "info",
Expand All @@ -22,4 +22,4 @@ vim.lsp.config('helm_ls', {
},
},
},
})
}
4 changes: 2 additions & 2 deletions after/lsp/jsonnet_ls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vim.lsp.config('jsonnet_ls', {
return {
cmd = { "jsonnet-language-server", "-t" },
settings = {
ext_vars = {},
Expand All @@ -11,4 +11,4 @@ vim.lsp.config('jsonnet_ls', {
SortImports = true,
},
},
})
}
4 changes: 2 additions & 2 deletions after/lsp/lua_ls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vim.lsp.config('lua_ls', {
return {
settings = {
Lua = {
runtime = { version = "LuaJIT" },
Expand All @@ -7,4 +7,4 @@ vim.lsp.config('lua_ls', {
telemetry = { enable = false },
},
},
})
}
4 changes: 2 additions & 2 deletions after/lsp/rust_analyzer.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vim.lsp.config('rust_analyzer', {
return {
settings = {
["rust-analyzer"] = {
diagnostics = { enable = true },
Expand All @@ -10,4 +10,4 @@ vim.lsp.config('rust_analyzer', {
procMacro = { enable = true },
},
},
})
}
4 changes: 2 additions & 2 deletions after/lsp/yamlls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vim.lsp.config('yamlls', {
return {
settings = {
yaml = {
validate = true,
Expand All @@ -20,4 +20,4 @@ vim.lsp.config('yamlls', {
},
},
},
})
}
Loading