adopt neovim 0.12 native editing features
This commit is contained in:
parent
fa39d0a36c
commit
282e5e0f0b
18 changed files with 125 additions and 215 deletions
|
|
@ -131,19 +131,19 @@ return {
|
|||
-- Setup autotag
|
||||
require("nvim-ts-autotag").setup({
|
||||
opts = {
|
||||
enable_close = true, -- Auto close tags
|
||||
enable_rename = true, -- Auto rename pairs of tags
|
||||
enable_close_on_slash = true, -- Auto close on trailing </
|
||||
enable_close = false,
|
||||
enable_rename = false,
|
||||
enable_close_on_slash = false,
|
||||
},
|
||||
-- Limit to relevant filetypes
|
||||
-- Enable only in filetypes that can contain HTML-style tags.
|
||||
per_filetype = {
|
||||
["html"] = { enable_close = true },
|
||||
["php"] = { enable_close = true },
|
||||
["javascript"] = { enable_close = true },
|
||||
["javascriptreact"] = { enable_close = true },
|
||||
["typescript"] = { enable_close = true },
|
||||
["typescriptreact"] = { enable_close = true },
|
||||
["vue"] = { enable_close = true },
|
||||
["html"] = { enable_close = true, enable_rename = true, enable_close_on_slash = true },
|
||||
["php"] = { enable_close = true, enable_rename = true, enable_close_on_slash = true },
|
||||
["javascript"] = { enable_close = true, enable_rename = true, enable_close_on_slash = true },
|
||||
["javascriptreact"] = { enable_close = true, enable_rename = true, enable_close_on_slash = true },
|
||||
["typescript"] = { enable_close = true, enable_rename = true, enable_close_on_slash = true },
|
||||
["typescriptreact"] = { enable_close = true, enable_rename = true, enable_close_on_slash = true },
|
||||
["vue"] = { enable_close = true, enable_rename = true, enable_close_on_slash = true },
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue