mirror of
https://github.com/WarrenHood/dotfiles.git
synced 2025-04-29 20:04:59 +01:00
Add treesitter config
This commit is contained in:
parent
48d02ff1b9
commit
9e57fefb03
|
@ -1,2 +1,24 @@
|
||||||
-- nvim-tree setup with defaults
|
-- nvim-tree setup with defaults
|
||||||
require("nvim-tree").setup()
|
require("nvim-tree").setup()
|
||||||
|
|
||||||
|
-- tree-sitter config
|
||||||
|
require'nvim-treesitter.configs'.setup {
|
||||||
|
-- A list of parser names, or "all"
|
||||||
|
|
||||||
|
ensure_installed = { "c", "lua", "rust", "bash", "python", "javascript" },
|
||||||
|
|
||||||
|
|
||||||
|
-- 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,
|
||||||
|
|
||||||
|
additional_vim_regex_highlighting = false,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue