mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
chore(nvim): remove Nix configuration for lspconfig
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user