aboutsummaryrefslogtreecommitdiff
path: root/store/home/config/nvim/lua/setup/plugins/tree-sitter.lua
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-03-28 13:30:32 +0800
committerYuqian Yang <crupest@crupest.life>2025-03-28 13:30:32 +0800
commit0606d2e2cca994b069fd51b15eae4422bb66ebb9 (patch)
tree0c24fadb2da6d9f95b8cc4b4e8c81dcdb6548f5a /store/home/config/nvim/lua/setup/plugins/tree-sitter.lua
parent135a6de520027eef81d41d884b600cd545185fdd (diff)
downloadcrupest-0606d2e2cca994b069fd51b15eae4422bb66ebb9.tar.gz
crupest-0606d2e2cca994b069fd51b15eae4422bb66ebb9.tar.bz2
crupest-0606d2e2cca994b069fd51b15eae4422bb66ebb9.zip
feat(nvim): add tree-sitter.
Diffstat (limited to 'store/home/config/nvim/lua/setup/plugins/tree-sitter.lua')
-rw-r--r--store/home/config/nvim/lua/setup/plugins/tree-sitter.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/store/home/config/nvim/lua/setup/plugins/tree-sitter.lua b/store/home/config/nvim/lua/setup/plugins/tree-sitter.lua
new file mode 100644
index 0000000..043f425
--- /dev/null
+++ b/store/home/config/nvim/lua/setup/plugins/tree-sitter.lua
@@ -0,0 +1,11 @@
+local function setup()
+ require'nvim-treesitter.configs'.setup {
+ highlight = { enable = true },
+ incremental_selection = { enable = true },
+ textobjects = { enable = true },
+ }
+end
+
+return {
+ setup = setup
+}