aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home/conf/nvim/mappings
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/mappings
parentfix(pkgs/brightness): Remove unneeded variable assignment (diff)
downloadnixos-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/mappings')
-rw-r--r--modules/home/conf/nvim/mappings/default.nix12
1 files changed, 4 insertions, 8 deletions
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;