add some basic plugins and keymap
This commit is contained in:
33
lua/plugins/treesitter.lua
Normal file
33
lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
-- treesitter
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
-- treesitter config
|
||||
local config = require("nvim-treesitter.configs")
|
||||
config.setup({
|
||||
ignore_install = {},
|
||||
ensure_installed = {
|
||||
"vimdoc",
|
||||
"go",
|
||||
"rust",
|
||||
"c",
|
||||
"lua",
|
||||
"python",
|
||||
"html",
|
||||
"css",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"sql",
|
||||
"markdown",
|
||||
},
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
indent = { enable = true },
|
||||
modules = {},
|
||||
sync_install = true,
|
||||
auto_install = true,
|
||||
})
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user