- corrected ltex_lsp config and added nixd settings (still not working correctly)

- improved mini pairs behavior but still not perfect
This commit is contained in:
2025-08-21 19:24:34 +02:00
parent 8ce6221161
commit 871fcb331e
3 changed files with 28 additions and 6 deletions

View File

@@ -33,7 +33,21 @@ return {
}
})
require("mini.tabline").setup()
require("mini.pairs").setup()
require("mini.pairs").setup({
mappings = {
['('] = { action = 'open', pair = '()', neigh_pattern = '.[%s%z%)]' },
['['] = { action = 'open', pair = '[]', neigh_pattern = '.[%s%z%)}%]]' },
['{'] = { action = 'open', pair = '{}', neigh_pattern = '.[%s%z%)}%]]' },
[')'] = { action = 'close', pair = '()', neigh_pattern = '[^\\].' },
[']'] = { action = 'close', pair = '[]', neigh_pattern = '[^\\].' },
['}'] = { action = 'close', pair = '{}', neigh_pattern = '[^\\].' },
['"'] = { action = 'closeopen', pair = '""', neigh_pattern = '[^%w\\][^%w]', register = { cr = false } },
["'"] = { action = 'closeopen', pair = "''", neigh_pattern = '[^%w\\][^%w]', register = { cr = false } },
['`'] = { action = 'closeopen', pair = '``', neigh_pattern = '[^%w\\][^%w]', register = { cr = false } },
}
})
require("mini.colors").setup()
end
}