From d3cfb450d50f37854d2cb8d319b84887661e13e1 Mon Sep 17 00:00:00 2001 From: Brahmajit Das Date: Sun, 17 Mar 2024 03:26:08 +0530 Subject: nvim: plugins: autopair: for autopair settings Signed-off-by: Brahmajit Das --- lua/plugins/autopair.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lua/plugins/autopair.lua (limited to 'lua') diff --git a/lua/plugins/autopair.lua b/lua/plugins/autopair.lua new file mode 100644 index 0000000..340bdea --- /dev/null +++ b/lua/plugins/autopair.lua @@ -0,0 +1,17 @@ +local disable_filetype = { "TelescopePrompt", "spectre_panel" } +local disable_in_macro = false -- disable when recording or executing a macro +local disable_in_visualblock = false -- disable when insert after visual block mode +local disable_in_replace_mode = true +local ignored_next_char = [=[[%w%%%'%[%"%.%`%$]]=] +local enable_moveright = true +local enable_afterquote = true -- add bracket pairs after quote +local enable_check_bracket_line = true --- check bracket in same line +local enable_bracket_in_quote = true -- +local enable_abbr = false -- trigger abbreviation +local break_undo = true -- switch for basic rule break undo sequence +local check_ts = false +local map_cr = true +local map_bs = true -- map the key +local map_c_h = false -- Map the key to delete a pair +local map_c_w = false -- map to delete a pair if possible +require('nvim-autopairs').setup() -- cgit v1.2.3