nvim/lua/plugins/lspconfig.lua
2023-12-12 20:16:58 +08:00

24 lines
496 B
Lua
Executable file

local capabilities = require("cmp_nvim_lsp").default_capabilities() -- needed for nvim-cmp
require("mason").setup()
require("mason-lspconfig").setup()
-- lspconfig
require("lspconfig").lua_ls.setup({
capabilities = capabilities,
})
require("lspconfig").nil_ls.setup({
capabilities = capabilities,
settings = {
["nil"] = {
formatting = {
command = { "alejandra" },
},
nix = {
flake = {
autoArchive = true,
},
},
},
},
})