VIM: add autopairs and autotag
This commit is contained in:
parent
18dda5c17b
commit
bd34b3e9a8
2 changed files with 40 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue