Fixed autoclose for latex files

This commit is contained in:
Ivar Fatland
2023-05-29 21:15:19 +02:00
parent 1163f38047
commit d6f6e79d88
2 changed files with 196 additions and 1 deletions
+7 -1
View File
@@ -86,7 +86,7 @@ local function packer_startup(use)
-- be a nvim package
}
}
use 'm4xshen/autoclose.nvim'
use 'roodletoof/autoclose.nvim'
if packer_bootstrap then --Comes after packages
require('packer').sync()
@@ -199,6 +199,12 @@ local function packer_startup(use)
vim.keymap.set('n', keymap.search_help_pages, builtin.help_tags, {})
require('autoclose').setup{
filetype_specific_keys = {
tex = {
['$'] = { escape = true, close = true, pair = '$$' },
["'"] = false,
}
},
options = {
pair_spaces = true,
auto_indent = true,