From 3c238894c5b6f15c5f27cea8bd3785eb0f1ebf0f Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 18 Sep 2022 11:39:25 +0200 Subject: add config --- lua/maps/auto_close.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/maps/auto_close.lua (limited to 'lua/maps/auto_close.lua') diff --git a/lua/maps/auto_close.lua b/lua/maps/auto_close.lua new file mode 100644 index 0000000..9da8c5f --- /dev/null +++ b/lua/maps/auto_close.lua @@ -0,0 +1,24 @@ +vim.api.nvim_set_keymap("i", "\"", + "\"\"", + {silent = true, noremap = true}) + +vim.api.nvim_set_keymap("i", "'", + "''", + {silent = true, noremap = true}) + +vim.api.nvim_set_keymap("i", "(", + "()", + {silent = true, noremap = true}) + +vim.api.nvim_set_keymap("i", "[", + "[]", + {silent = true, noremap = true}) + +vim.api.nvim_set_keymap("i", "{", + "{}", + {silent = true, noremap = true}) + +vim.api.nvim_set_keymap("i", "{", + "{}O", + {silent = true, noremap = true}) + -- cgit v1.2.3-18-g5258