Skip to content

Commit

Permalink
feat(nvim): add tree-sitter
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanpinn committed Dec 19, 2024
1 parent 2d764c4 commit 4ad1892
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions nvim/lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
return {
{
"nvim-treesitter/nvim-treesitter",
version = false, -- last release is way too old and doesn't work on Windows
build = ":TSUpdate",
opts = {
-- A list of parser names, or "all"
ensure_installed = { "lua" },

-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,

-- 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,

-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
},
},
}

0 comments on commit 4ad1892

Please sign in to comment.