summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2024-03-17 03:26:08 +0530
committerBrahmajit Das <brahmajit.xyz@gmail.com>2024-03-17 03:26:08 +0530
commitd3cfb450d50f37854d2cb8d319b84887661e13e1 (patch)
tree4800df9aca2bd24edafad3fc04b4c22ad7617258
parent0ddb929851de1a21c61c67bb097a6a647b4a2e63 (diff)
nvim: plugins: autopair: for autopair settings
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rw-r--r--lua/plugins/autopair.lua17
1 files changed, 17 insertions, 0 deletions
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 <BS> key
+local map_c_h = false -- Map the <C-h> key to delete a pair
+local map_c_w = false -- map <c-w> to delete a pair if possible
+require('nvim-autopairs').setup()