add untracked files
This commit is contained in:
28
lua/config/nvim-treesitter.lua
Normal file
28
lua/config/nvim-treesitter.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
--- Ensure plugin is avaiable
|
||||
local ok, treesitter = pcall(require, "nvim-treesitter.configs")
|
||||
if not ok then
|
||||
return
|
||||
end
|
||||
|
||||
--- Plugin options
|
||||
opts = {
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
autotag = {
|
||||
enable = true,
|
||||
},
|
||||
auto_install = true,
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "<leader>ss",
|
||||
node_incremental = false,
|
||||
scope_incremental = false,
|
||||
node_decremental = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
--- Load plugin
|
||||
treesitter.setup(opts)
|
||||
Reference in New Issue
Block a user