Working NeoVim-Configuration, this should be the base for further
enhancements
This commit is contained in:
25
nvim/lua/plugins/treesitter.lua
Normal file
25
nvim/lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = { "c", "lua", "python", "javascript", "markdown", "html", "css"}, -- Add languages you use
|
||||
sync_install = false, -- Install parsers asynchronously
|
||||
auto_install = true, -- Automatically install missing parsers
|
||||
|
||||
highlight = {
|
||||
enable = true, -- Enable syntax highlighting
|
||||
additional_vim_regex_highlighting = false, -- Avoid slow fallback regex highlighting
|
||||
},
|
||||
|
||||
indent = {
|
||||
enable = true -- Enable indentation support
|
||||
},
|
||||
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "gnn",
|
||||
node_incremental = "grn",
|
||||
scope_incremental = "grc",
|
||||
node_decremental = "grm",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user