feat: started working on nvim config
This commit is contained in:
parent
e1328143a2
commit
860cb11bcc
10 changed files with 186 additions and 3 deletions
dotfiles/neovim/lua/my
11
dotfiles/neovim/lua/my/keymaps.lua
Normal file
11
dotfiles/neovim/lua/my/keymaps.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
local M = {}
|
||||
|
||||
local function map(mode, lhs, rhs, opts)
|
||||
local options = {noremap = true}
|
||||
if opts then options = vim.tbl_extend('force', options, opts) end
|
||||
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
||||
end
|
||||
|
||||
function M.setup()
|
||||
map("i", "jj", "<Esc>") -- Remap Esc to
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue