diff --git a/.chezmoiexternal.toml.tmpl b/.chezmoiexternal.toml.tmpl index 9a3ad22..7612da4 100644 --- a/.chezmoiexternal.toml.tmpl +++ b/.chezmoiexternal.toml.tmpl @@ -1,6 +1,6 @@ # chezmoi:template:left-delimiter=#{{ #{{- /* vim: set filetype=toml: */ -}} -[".local/share/nvim/lazy/lazy.nvim"] +[".local/share/nvim/lazy.nvim"] type = "archive" url = "https://github.com/folke/lazy.nvim/archive/refs/tags/v11.17.5.tar.gz" exact = true diff --git a/dot_config/nvim/init.lua b/dot_config/nvim/init.lua index cb85c7b..e92ab0d 100644 --- a/dot_config/nvim/init.lua +++ b/dot_config/nvim/init.lua @@ -1,5 +1,5 @@ require("core.config") -vim.opt.runtimepath:prepend(vim.fn.stdpath("data") .. "/lazy/lazy.nvim") +vim.opt.runtimepath:prepend(vim.fn.stdpath("data") .. "/lazy.nvim") require("lazy").setup({ spec = { { import = "plugins" }, diff --git a/dot_config/nvim/lua/plugins/treesitter.lua b/dot_config/nvim/lua/plugins/treesitter.lua index d5f6eb3..b800252 100644 --- a/dot_config/nvim/lua/plugins/treesitter.lua +++ b/dot_config/nvim/lua/plugins/treesitter.lua @@ -14,11 +14,55 @@ function M.treesitter_configs() require("nvim-treesitter.configs").setup(M.treesitter_config_setup) end +-- Works around a crash in nvim-treesitter's bundled `set-lang-from-mimetype!` +-- directive (queries/html_tags/injections.scm, used by html/erb/vue/svelte): +-- it reads `match[capture_id]` as a single TSNode, but current Neovim core +-- always returns an array of nodes there, so `