Xinqi Bao's Git

update for lsp and TS language
authorXinqi Bao <[email protected]>
Sat, 23 Aug 2025 04:25:47 +0000 (12:25 +0800)
committerXinqi Bao <[email protected]>
Sat, 23 Aug 2025 04:25:47 +0000 (12:25 +0800)
.config/nvim/init.vim
.config/nvim/lua/plugin-config/nvim-treesitter.lua

index 76938e4..185fe8a 100644 (file)
@@ -11,7 +11,7 @@ set t_ut=""
 let &termencoding=&encoding
 set fileencodings=utf-8,gbk
 set fileformat=unix
-set foldmethod=manual
+set foldmethod=indent
 set encoding=utf-8 "required for ycm
 
 set tabstop=4
@@ -215,12 +215,14 @@ if has_key(plugs, "coc.nvim")
                 \'coc-marketplace',
                 \'coc-highlight',
                 \'coc-clangd',
-                \'coc-jedi',
-                \'coc-vimlsp',
+                \'coc-pyright',
+                \'coc-lua',
                 \'coc-sh',
+                \'coc-cmake',
+                \'coc-xmake',
                 \'coc-json',
                 \'coc-yaml',
-                \'coc-r-lsp',
+                \'coc-vimlsp',
                 \]
 endif
 
index 9184684..e61710a 100644 (file)
@@ -2,14 +2,20 @@ require'nvim-treesitter.configs'.setup {
   --[[
   ]]
   -- 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
-  auto_install = true,
+  auto_install = false,
 
   -- List of parsers to ignore installing (or "all")
   ignore_install = { "javascript" },