Xinqi Bao's Git
projects
/
dotfiles.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
update for lsp and TS language
[dotfiles.git]
/
.config
/
nvim
/
lua
/
plugin-config
/
nvim-treesitter.lua
diff --git
a/.config/nvim/lua/plugin-config/nvim-treesitter.lua
b/.config/nvim/lua/plugin-config/nvim-treesitter.lua
index
9184684
..
e61710a
100644
(file)
--- a/
.config/nvim/lua/plugin-config/nvim-treesitter.lua
+++ b/
.config/nvim/lua/plugin-config/nvim-treesitter.lua
@@
-2,14
+2,20
@@
require'nvim-treesitter.configs'.setup {
--[[
]]
-- A list of parser names, or "all" (the five listed parsers should always be installed)
--[[
]]
-- A list of parser names, or "all" (the five listed parsers should always be installed)
- ensure_installed = { "c", "lua", "vim", "vimdoc", "query" },
+ ensure_installed = {
+ "c", "cpp", "python", "lua", "bash",
+ "cmake", "make",
+ "json", "yaml",
+ "vim", "vimdoc",
+ "query", "regex", "comment", "markdown",
+ },
-- 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
-- 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 =
tru
e,
+ auto_install =
fals
e,
-- List of parsers to ignore installing (or "all")
ignore_install = { "javascript" },
-- List of parsers to ignore installing (or "all")
ignore_install = { "javascript" },