chore: New nvim config, not finished
This commit is contained in:
23
.config/nvim/lua/plugins/treesitter.lua
Normal file
23
.config/nvim/lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
local present, treesitter = pcall(require, "nvim-treesitter.configs")
|
||||
|
||||
require('nvim-treesitter.install').update({ with_sync = true })
|
||||
|
||||
|
||||
if not present then
|
||||
return
|
||||
end
|
||||
|
||||
local options = {
|
||||
ensure_installed = {"lua", "haskell", "rust", },
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
use_languagetree = true,
|
||||
},
|
||||
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
}
|
||||
|
||||
treesitter.setup(options)
|
||||
Reference in New Issue
Block a user