From 9ce0f5f296619ea6320d0c721275f2549a527419 Mon Sep 17 00:00:00 2001 From: kossLAN Date: Sat, 31 Aug 2024 14:43:30 -0400 Subject: [PATCH] nix: switch to nixd cause I hate nil --- nix/neovim-overlay.nix | 2 +- nvim/ftplugin/nix.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nix/neovim-overlay.nix b/nix/neovim-overlay.nix index e8b50dc..903a5eb 100644 --- a/nix/neovim-overlay.nix +++ b/nix/neovim-overlay.nix @@ -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 diff --git a/nvim/ftplugin/nix.lua b/nvim/ftplugin/nix.lua index 36373e3..e277e32 100644 --- a/nvim/ftplugin/nix.lua +++ b/nvim/ftplugin/nix.lua @@ -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(), }