diff options
author | listout <listout@protonmail.com> | 2023-05-04 11:20:45 +0530 |
---|---|---|
committer | listout <listout@protonmail.com> | 2023-05-04 11:20:45 +0530 |
commit | 053dcdee1b2fb63135ac8ecfa174c43fb216a700 (patch) | |
tree | 83395ee61ed1b65ea3822d6981ee1afa32f13a92 /lua/plugins/autopairs.lua | |
parent | 85dfa645fc4752a6f12b470ed6225fab868ef711 (diff) |
nvim: dropping autosource plugin in favor of exrc
With `vim.o.exrc = true` secure .exrc, .nvimrc and .nvim.lua files can
be loaded.
Signed-off-by: listout <listout@protonmail.com>
Diffstat (limited to 'lua/plugins/autopairs.lua')
-rw-r--r-- | lua/plugins/autopairs.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/plugins/autopairs.lua b/lua/plugins/autopairs.lua new file mode 100644 index 0000000..340bdea --- /dev/null +++ b/lua/plugins/autopairs.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() |