chore(nvim): remove Nix configuration for lspconfig

This commit is contained in:
Stefan Imhoff
2025-01-29 11:28:51 +01:00
parent 1d8df51599
commit 82102620ae

View File

@@ -22,7 +22,6 @@ return {
html = {},
jsonls = {},
lua_ls = {},
nixd = {},
svelte = {},
tsserver = {},
yamlls = {},
@@ -31,26 +30,6 @@ return {
setup = function()
local nvim_lsp = require("lspconfig")
nvim_lsp.nixd.setup({
cmd = { "nixd" },
settings = {
nixd = {
expr = "import <nixpkgs> { }",
},
formatting = {
command = { "nixpkgs-fmt" },
},
options = {
nixos = {
expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.k-on.options',
},
home_manager = {
expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."ruixi@k-on".options',
},
},
},
})
nvim_lsp.denols.setup({
on_attach = on_attach,
root_dir = nvim_lsp.util.root_pattern("deno.json", "deno.jsonc"),