From: Xinqi Bao Date: Sat, 23 Aug 2025 04:25:47 +0000 (+0800) Subject: update for lsp and TS language X-Git-Url: https://git.xinqibao.xyz/dotfiles.git/commitdiff_plain/37c72c84b198107618b6642e73a3b2574d5dcd07?ds=sidebyside;hp=db105c79cca3f060ae9ecfb521939b2f4244ced6 update for lsp and TS language --- diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 76938e4..185fe8a 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -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 diff --git a/.config/nvim/lua/plugin-config/nvim-treesitter.lua b/.config/nvim/lua/plugin-config/nvim-treesitter.lua index 9184684..e61710a 100644 --- 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) - 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" },