nvim/lua/plugins/nix.lua

51 lines
1.4 KiB
Lua
Raw Normal View History

2024-06-17 15:22:39 +07:00
return {
{
2024-10-21 21:32:20 +07:00
"nvim-lspconfig",
opts = {
servers = {
nil_ls = {
settings = {
["nil"] = {
formatting = {
command = "nixfmt",
},
nix = {
flake = {
autoArchive = true,
autoEvalInputs = true,
},
},
},
},
},
},
},
},
{
"dundalek/lazy-lsp.nvim",
dependencies = { "neovim/nvim-lspconfig" },
opts = {
prefer_local = true,
excluded_servers = {
"gopls", -- gopls likes to be double attached if enabled here.
"bazelrc-lsp",
},
preferred_servers = {
gitcommit = {},
sql = {},
nix = {
"nil_ls",
},
typescript = {
"tsserver",
},
proto = {
"buf-language-server",
},
sh = {},
markdown = {},
},
},
2024-06-17 15:22:39 +07:00
},
}