diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index de0e94f..f5c3d65 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua @@ -1,60 +1,33 @@ -- https://github.com/nvim-treesitter/nvim-treesitter return { "nvim-treesitter/nvim-treesitter", - event = { "BufReadPre", "BufNewFile" }, + lazy = false, build = ":TSUpdate", - dependencies = { - "windwp/nvim-ts-autotag", - }, config = function() -- import nvim-treesitter plugin - local treesitter = require("nvim-treesitter.configs") + local treesitter = require("nvim-treesitter") -- configure treesitter - treesitter.setup({ - -- enable syntax highlighting - highlight = { - enable = true, - }, - -- enable indentation - indent = { enable = true }, - -- enable autotagging (w/ nvim-ts-autotag plugin) - autotag = { - enable = true, - }, - -- ensure these language parsers are installed - ensure_installed = { - "bash", - "dockerfile", - "gitignore", - "jinja", - "jinja_inline", - "json", - "hcl", - "helm", - "lua", - "luadoc", - "luap", - "markdown", - "markdown_inline", - "nginx", - "vim", - "vimdoc", - "yaml", - }, - modules = {}, - sync_install = false, - ignore_install = {}, - auto_install = false, - incremental_selection = { - enable = true, - keymaps = { - init_selection = "", - node_incremental = "", - scope_incremental = false, - node_decremental = "", - }, - }, + treesitter.setup({}) + -- install parsers + treesitter.install({ + "bash", + "dockerfile", + "gitignore", + "jinja", + "jinja_inline", + "json", + "hcl", + "helm", + "lua", + "luadoc", + "luap", + "markdown", + "markdown_inline", + "nginx", + "vim", + "vimdoc", + "yaml", }) end, }