From 10725de30d546577f87faedf30c8bc4355e880d5 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Tue, 6 Jun 2023 22:41:43 +0200 Subject: Neovim: Add emacs-like bindings in insert mode --- .config/nvim/lua/keybinds.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/nvim/lua/keybinds.lua b/.config/nvim/lua/keybinds.lua index 5d94697..800eaab 100644 --- a/.config/nvim/lua/keybinds.lua +++ b/.config/nvim/lua/keybinds.lua @@ -13,6 +13,11 @@ vim.api.nvim_command("inoremap :m .+1==gi") vim.api.nvim_command("vnoremap :m '>+1gv=gv") vim.api.nvim_command("vnoremap :m '<-2gv=gv") +vim.keymap.set("i", "", "") +vim.keymap.set("i", "", "") +vim.keymap.set("i", "", "") +vim.keymap.set("i", "", "") + vim.keymap.set("n", "n", nt_api.tree.toggle) vim.keymap.set("n", "", vim.lsp.buf.code_action) vim.keymap.set("n", "K", vim.lsp.buf.hover) -- cgit v1.2.3