feat: add keybindings.
This commit is contained in:
parent
e4f3ceaa86
commit
3b5eceb42f
2 changed files with 7 additions and 0 deletions
1
init.lua
1
init.lua
|
|
@ -1,2 +1,3 @@
|
||||||
require("config.settings")
|
require("config.settings")
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
require("config.keybindings")
|
||||||
|
|
|
||||||
6
lua/config/keybindings.lua
Normal file
6
lua/config/keybindings.lua
Normal file
|
|
@ -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>")
|
||||||
Loading…
Add table
Add a link
Reference in a new issue