aboutsummaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
authorCrony Akatsuki <crony@cronyakatsuki.xyz>2025-10-20 18:20:17 +0200
committerCrony Akatsuki <crony@cronyakatsuki.xyz>2025-10-20 18:20:17 +0200
commit3b5eceb42f0d4d166652a7428bd5b363e2f720ed (patch)
tree8453d73a8c12e5d9f72ec4d8617fd51b17493d8b /lua/config
parente4f3ceaa8640012a3b56841d10bc1574f65957a1 (diff)
downloadnvim-3b5eceb42f0d4d166652a7428bd5b363e2f720ed.zip
nvim-3b5eceb42f0d4d166652a7428bd5b363e2f720ed.tar.gz
feat: add keybindings.
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/keybindings.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/config/keybindings.lua b/lua/config/keybindings.lua
new file mode 100644
index 0000000..7ed1daf
--- /dev/null
+++ b/lua/config/keybindings.lua
@@ -0,0 +1,6 @@
+-- setup leader and local leader
+vim.g.mapleader = " "
+vim.g.maplocalleader = ";"
+
+-- source current file
+vim.keymap.set("n", "<Leader> ", ":update<CR> :source<CR>")