From 763b9e3340299185240ec45b9c9b67602ce994ec Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 19 Jun 2024 07:15:25 +0200 Subject: 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` --- modules/home/conf/nvim/mappings/default.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'modules/home/conf/nvim/mappings') diff --git a/modules/home/conf/nvim/mappings/default.nix b/modules/home/conf/nvim/mappings/default.nix index 2cb174a4..af800d22 100644 --- a/modules/home/conf/nvim/mappings/default.nix +++ b/modules/home/conf/nvim/mappings/default.nix @@ -14,7 +14,7 @@ { key = "hh"; mode = ["i"]; - action = '' + action.__raw = '' function() local cmp = require('cmp'); local luasnip = require('luasnip'); @@ -26,19 +26,17 @@ end end ''; - lua = true; options.desc = "completion trigger/ forward in completen menu"; } { key = "uu"; mode = ["i"]; - action = '' + action.__raw = '' function() local cmp = require('cmp'); cmp.confirm() end ''; - lua = true; options.desc = "confirm the selected item"; } @@ -171,8 +169,7 @@ { mode = ["n"]; key = "\\f"; - action = "function() require('lf').start() end"; - lua = true; + action.__raw = "function() require('lf').start() end"; options.desc = "open lf in a floating window"; } @@ -224,7 +221,7 @@ { key = "dd"; mode = ["n"]; - action = '' + action.__raw = '' function() if vim.api.nvim_get_current_line():match("^%s*$") then return '"_dd' @@ -233,7 +230,6 @@ end end ''; - lua = true; options = { desc = "Pipe all blank line deletions to the blackhole register"; expr = true; -- cgit 1.4.1