jones-nvim-config/lua/config/autotags.lua

22 lines
673 B
Lua
Raw Permalink Normal View History

2024-05-05 12:55:15 +00:00
require("nvim-treesitter.configs").setup({
autotag = {
enable = true,
},
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "typescript", "tsx" })
end
end,
})
2024-04-07 21:51:48 +00:00
-- Enable update on insert
2024-05-05 12:55:15 +00:00
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
underline = true,
virtual_text = {
spacing = 5,
2024-07-19 22:22:38 +00:00
min = vim.diagnostic.severity.WARN, -- Updated from severity_limit
2024-05-05 12:55:15 +00:00
},
update_in_insert = true,
})
2024-07-19 22:22:38 +00:00
-- severity_limit is deprecated, use {min = severity} See vim.diagnostic.severity instead. :help deprecated Feature will be removed in Nvim 0.11