1
0
Fork 0

nvim: autoclose.nvim: disable autoclose of single quotes and enable nice markdown autocloses

This commit is contained in:
Pratham Patel 2024-02-01 19:53:44 +05:30
parent 6b60efabc4
commit 1cdfd5a75e
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 18 additions and 1 deletions

View File

@ -1,4 +1,21 @@
require('autoclose').setup({})
require('autoclose').setup({
keys = {
-- LEGEND:
-- close: toggle autoclosing
-- escape: useful when pair consists of the same characters; when pressed
-- twice, escape the sequence of pairs instead of **nesting**
-- (disabled): pressing ** would result in **<cursor>** (nesting)
-- (enabled): pressing ** would result in **<cursor> (!nesting)
-- disable autoclosing of single quotes; this is insanity!
["'"] = { close = false, escape = false, pair = "''" },
-- specific to markdown
['*'] = { close = true, escape = false, pair = '**', enabled_filetypes = { 'markdown' } },
['_'] = { close = true, escape = false, pair = '__', enabled_filetypes = { 'markdown' } },
['~'] = { close = true, escape = false, pair = '~~', enabled_filetypes = { 'markdown' } },
},
})
require('ibl').setup({})
require('Comment').setup({