aboutsummaryrefslogtreecommitdiff
path: root/plugin-settings/nvim-treesitter.lua
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2024-10-01 23:48:41 +0900
committerA Farzat <a@farzat.xyz>2024-10-01 23:48:41 +0900
commit7cbefbb9acea27c18718d32a3c20b87886971e8a (patch)
treec0ffa3090f548776f75667105086e923a7d5411e /plugin-settings/nvim-treesitter.lua
parent6504a7df972c7a937ab58b103edb8c8f3ebb594b (diff)
downloadnvim-7cbefbb9acea27c18718d32a3c20b87886971e8a.tar.gz
nvim-7cbefbb9acea27c18718d32a3c20b87886971e8a.zip
Add the remaining plugin-settings
Diffstat (limited to 'plugin-settings/nvim-treesitter.lua')
-rw-r--r--plugin-settings/nvim-treesitter.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugin-settings/nvim-treesitter.lua b/plugin-settings/nvim-treesitter.lua
new file mode 100644
index 0000000..4afe91e
--- /dev/null
+++ b/plugin-settings/nvim-treesitter.lua
@@ -0,0 +1,13 @@
+require("nvim-treesitter.configs").setup({
+ -- A list of parser names, or "all" (the four listed parsers should always be installed)
+ ensure_installed = { "c", "lua", "vim" },
+ ignore_install = { "org" },
+
+ -- Automatically install missing parsers when entering buffer
+ -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
+ auto_install = true,
+
+ highlight = {
+ enable = true,
+ },
+})