From c0517686fc847d71e2b19efcf32517065a31640d Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 16 Jun 2023 19:32:40 -0500 Subject: [PATCH] refactor(nvim): define xml filetype to html in ts registration --- dots/.config/nvim/after/ftplugin/xml.lua | 1 - dots/.config/nvim/lua/core/filetypes.lua | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/nvim/after/ftplugin/xml.lua b/dots/.config/nvim/after/ftplugin/xml.lua index 3ec82c70..c7b84cb5 100644 --- a/dots/.config/nvim/after/ftplugin/xml.lua +++ b/dots/.config/nvim/after/ftplugin/xml.lua @@ -2,4 +2,3 @@ local opt_local = vim.opt_local opt_local.tabstop = 2 opt_local.shiftwidth = 2 -opt_local.filetype = "html" diff --git a/dots/.config/nvim/lua/core/filetypes.lua b/dots/.config/nvim/lua/core/filetypes.lua index 17115464..8f10d6d6 100644 --- a/dots/.config/nvim/lua/core/filetypes.lua +++ b/dots/.config/nvim/lua/core/filetypes.lua @@ -15,6 +15,7 @@ M.setup = function() vim.treesitter.language.register("yaml", "azure-pipelines") vim.treesitter.language.register("gitignore", "dockerignore") + vim.treesitter.language.register("html", "xml") end return M