VIM: add autopairs and autotag

This commit is contained in:
Filippo Berto 2024-04-28 10:34:30 +02:00
parent 18dda5c17b
commit bd34b3e9a8
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
2 changed files with 40 additions and 7 deletions

View file

@ -23,13 +23,15 @@ let vp = pkgs.vimPlugins; in {
type = "lua";
config = ''require("nvim-surround").setup({})'';
}
{
plugin = vp.autoclose-nvim;
type = "lua";
config = ''
require("autoclose").setup({})
'';
}
# {
# plugin = vp.autoclose-nvim;
# type = "lua";
# config = ''
# require("autoclose").setup({})
# '';
# }
vp.telescope-fzf-native-nvim
{
@ -221,6 +223,32 @@ let vp = pkgs.vimPlugins; in {
})
'';
}
{
plugin = vp.nvim-autopairs;
type = "lua";
config = ''
local npairs = require("nvim-autopairs")
npairs.setup({check_ts = true})
'';
}
{
plugin = vp.nvim-ts-autotag;
type = "lua";
config = ''
require('nvim-ts-autotag').setup()
vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
underline = true,
virtual_text = { spacing = 5, severity_limit = 'Warning' },
update_in_insert = true,
}
)
'';
}
];
# settings = { ignorecase = true; };
# coc.enable = true;