mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(nvim): remove Nix configuration for lspconfig
This commit is contained in:
@@ -22,7 +22,6 @@ return {
|
|||||||
html = {},
|
html = {},
|
||||||
jsonls = {},
|
jsonls = {},
|
||||||
lua_ls = {},
|
lua_ls = {},
|
||||||
nixd = {},
|
|
||||||
svelte = {},
|
svelte = {},
|
||||||
tsserver = {},
|
tsserver = {},
|
||||||
yamlls = {},
|
yamlls = {},
|
||||||
@@ -31,26 +30,6 @@ return {
|
|||||||
setup = function()
|
setup = function()
|
||||||
local nvim_lsp = require("lspconfig")
|
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({
|
nvim_lsp.denols.setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
root_dir = nvim_lsp.util.root_pattern("deno.json", "deno.jsonc"),
|
root_dir = nvim_lsp.util.root_pattern("deno.json", "deno.jsonc"),
|
||||||
|
|||||||
Reference in New Issue
Block a user