summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2025-01-03 22:17:56 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2025-01-03 22:17:56 +0100
commit7ec1e3ca3bb9e4033c094ad5520d9ef7b221abf6 (patch)
tree0f177b923b67e56349f862baddfd183fa538f2f4
parentd72e04f4073dd53cd8b38f65fa3778b9f2277329 (diff)
nvim: map localleader and leader properlyguix
-rw-r--r--nvim/nvim/lua/mappings.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/nvim/nvim/lua/mappings.lua b/nvim/nvim/lua/mappings.lua
index 83077f6..d15aa98 100644
--- a/nvim/nvim/lua/mappings.lua
+++ b/nvim/nvim/lua/mappings.lua
@@ -6,7 +6,8 @@ function trimWhiteSpaceVisual()
vim.cmd("'<,'>s/\\s\\+$//")
end
-vim.g.localleader=","
+vim.g.mapleader=","
+vim.g.maplocalleader=","
vim.keymap.set('n', '<F2>', trimWhiteSpace)
vim.keymap.set('v', '<F2>', trimWhiteSpaceVisual)