about summary refs log tree commit diff stats
path: root/modules/home/conf/nvim/plgs/lsp
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-19 07:15:25 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-19 07:15:25 +0200
commit763b9e3340299185240ec45b9c9b67602ce994ec (patch)
tree3874135d1b4cf7550f2b0a5d392298dbd303b70b /modules/home/conf/nvim/plgs/lsp
parentfix(pkgs/brightness): Remove unneeded variable assignment (diff)
downloadnixos-config-763b9e3340299185240ec45b9c9b67602ce994ec.tar.gz
nixos-config-763b9e3340299185240ec45b9c9b67602ce994ec.zip
fix(modules/nvim): Update to the newest nixVim version
This includes replacing the deprecated `lua = true` pattern with a raw
lua value and using the new name for `nil_ls`: `nil-ls`
Diffstat (limited to 'modules/home/conf/nvim/plgs/lsp')
-rw-r--r--modules/home/conf/nvim/plgs/lsp/keymaps/default.nix6
-rw-r--r--modules/home/conf/nvim/plgs/lsp/servers/default.nix2
-rw-r--r--modules/home/conf/nvim/plgs/lsp/servers/servers/nil-ls.nix (renamed from modules/home/conf/nvim/plgs/lsp/servers/servers/nil_ls.nix)2
3 files changed, 4 insertions, 6 deletions
diff --git a/modules/home/conf/nvim/plgs/lsp/keymaps/default.nix b/modules/home/conf/nvim/plgs/lsp/keymaps/default.nix
index e176461e..b1276639 100644
--- a/modules/home/conf/nvim/plgs/lsp/keymaps/default.nix
+++ b/modules/home/conf/nvim/plgs/lsp/keymaps/default.nix
@@ -53,18 +53,16 @@
     keymaps = [
       {
         key = "<space>f";
-        action = "function() vim.lsp.buf.format { async = true } end";
-        lua = true;
+        action.__raw = "function() vim.lsp.buf.format { async = true } end";
         options.desc = "[F]ormat the current buffer (asynchronously)";
       }
       {
         key = "<space>wl";
-        action = ''
+        action.__raw = ''
           function()
             print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
           end
         '';
-        lua = true;
         options.desc = "[W]orkspace folders [l]ist";
       }
     ];
diff --git a/modules/home/conf/nvim/plgs/lsp/servers/default.nix b/modules/home/conf/nvim/plgs/lsp/servers/default.nix
index 1f59ae4e..605046d4 100644
--- a/modules/home/conf/nvim/plgs/lsp/servers/default.nix
+++ b/modules/home/conf/nvim/plgs/lsp/servers/default.nix
@@ -6,7 +6,7 @@
     ./servers/quick-lint-js.nix
     ./servers/ltex.nix
     ./servers/lua-ls.nix
-    ./servers/nil_ls.nix
+    ./servers/nil-ls.nix
     ./servers/openscad.nix
     ./servers/ruff-lsp.nix
     ./servers/rust-analyzer.nix
diff --git a/modules/home/conf/nvim/plgs/lsp/servers/servers/nil_ls.nix b/modules/home/conf/nvim/plgs/lsp/servers/servers/nil-ls.nix
index f0cccbdc..ab9e643b 100644
--- a/modules/home/conf/nvim/plgs/lsp/servers/servers/nil_ls.nix
+++ b/modules/home/conf/nvim/plgs/lsp/servers/servers/nil-ls.nix
@@ -1,6 +1,6 @@
 {...}: {
   programs.nixvim.plugins.lsp.servers = {
-    nil_ls = {
+    nil-ls = {
       enable = true;
       settings = {
         formatting.command = ["alejandra"];