diff options
Diffstat (limited to '.config/nvim/lua/plugins/treesitter.lua')
-rw-r--r-- | .config/nvim/lua/plugins/treesitter.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..5b1e85c --- /dev/null +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,31 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + branch = 'master', + lazy = false, + build = ":TSUpdate", + config = function() + local config = require("nvim-treesitter.configs") + config.setup({ + ensure_installed = { + "lua", + "javascript", + "c", + "cpp", + "go", + "markdown", + "meson", + "make", + "cmake", + "python", + "rust", + "yaml", + "toml", + "ron", + }, + highlight = { enable = true }, + indent = { enable = true }, + }) + end + } +} |