mirror of
https://github.com/kossLAN/nvim-flake.git
synced 2025-11-05 02:09:49 -05:00
nix: switch to nixd cause I hate nil
This commit is contained in:
parent
c2553dcb54
commit
9ce0f5f296
2 changed files with 4 additions and 4 deletions
|
|
@ -100,7 +100,7 @@ with final.pkgs.lib; let
|
|||
lua-language-server
|
||||
clang-tools # provides clangd which is a c/c++ lsp
|
||||
jdt-language-server # java ls
|
||||
nil # nix LSP
|
||||
nixd # nix LSP
|
||||
|
||||
# autoformatters
|
||||
alejandra # amazing nix autoformatter
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
-- Exit if the language server isn't available
|
||||
if vim.fn.executable('nil') ~= 1 then
|
||||
if vim.fn.executable('nixd') ~= 1 then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
@ -9,8 +9,8 @@ local root_files = {
|
|||
}
|
||||
|
||||
vim.lsp.start {
|
||||
name = 'nil_ls',
|
||||
cmd = { 'nil' },
|
||||
name = 'nixd',
|
||||
cmd = { 'nixd' },
|
||||
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
|
||||
capabilities = require('user.lsp').make_client_capabilities(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue