diff options
Diffstat (limited to 'nvim/lua/plugins')
| -rw-r--r-- | nvim/lua/plugins/nvim-treesitter.lua | 73 |
1 files changed, 31 insertions, 42 deletions
diff --git a/nvim/lua/plugins/nvim-treesitter.lua b/nvim/lua/plugins/nvim-treesitter.lua index c28386d..c053e84 100644 --- a/nvim/lua/plugins/nvim-treesitter.lua +++ b/nvim/lua/plugins/nvim-treesitter.lua @@ -1,32 +1,6 @@ local config = function() - require("nvim-treesitter.configs").setup({ - ensure_installed = { - "c", - "lua", - "markdown", - "vim", - "vimdoc", - "query", - - "regex", - "diff", - "cmake", - "meson", - "markdown_inline", - "bash", - "toml", - "latex", - - "cpp", - "rust", - "haskell", - "nix", - "javascript", - "norg", - "fish", - "kdl", - "bend", - }, + require("nvim-treesitter.config").setup { + install_dir = vim.fn.stdpath('data') .. '/site', auto_install = false, sync_install = false, highlight = { @@ -42,22 +16,37 @@ local config = function() autotag = { enable = true, }, - }) - - vim.filetype.add({ - extension = { - bend = "bend", - }, - }) - - vim.treesitter.language.register("bend", { "bend" }) - - vim.cmd(":TSUpdate") + } + require("nvim-treesitter").install { + "c", + "lua", + "markdown", + "vim", + "vimdoc", + "query", + "regex", + "diff", + "cmake", + "meson", + "markdown_inline", + "bash", + "toml", + "latex", + "cpp", + "rust", + "haskell", + "nix", + "javascript", + "norg", + "fish", + "kdl", + } end return { "nvim-treesitter/nvim-treesitter", - lazy = true, - event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - config = config, + lazy = false, + branch = "main", + build = ":TSUpdate", + config = config } |
