Browse Source

Fix python host path and consolidate coc extensions

- Wrap g:python3_host_prog with expand() so $HOME resolves to a real path
- Remove duplicate vim-plug coc extension entries; these are now managed
  exclusively via :CocInstall to avoid schema-merge timing issues
- Correct nvim-treesitter module name (config -> configs)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Leon Versteeg 3 months ago
parent
commit
5f8097346f
3 changed files with 2 additions and 9 deletions
  1. 1 1
      init.vim
  2. 1 1
      nvim-config/nvim-treesitter.lua
  3. 0 7
      nvim-config/plugins.vim

+ 1 - 1
init.vim

@@ -24,7 +24,7 @@ source $HOME/.config/nvim/nvim-config/lint.vim
 source $HOME/.config/nvim/nvim-config/leader.vim
 
 " Miscellaneous
-let g:python3_host_prog='$HOME/.venv/nvim/bin/python'
+let g:python3_host_prog=expand('$HOME/.venv/nvim/bin/python')
 
 command! LF FloatermNew lf
 let g:vim_markdown_folding_disabled = 1

+ 1 - 1
nvim-config/nvim-treesitter.lua

@@ -1,4 +1,4 @@
-require'nvim-treesitter.config'.setup {
+require'nvim-treesitter.configs'.setup {
   -- A list of parser names, or "all"
   ensure_installed = { "typescript", "lua" , "kotlin", "dockerfile", "json", "markdown", "vim", "yaml"},
 

+ 0 - 7
nvim-config/plugins.vim

@@ -18,15 +18,8 @@ Plug 'fannheyward/telescope-coc.nvim'
 Plug 'felippepuhle/coc-graphql', {'do': 'yarn install --frozen-lockfile'}
 Plug 'iamcco/coc-spell-checker', {'do': 'yarn install --frozen-lockfile'}
 Plug 'josa42/coc-go', {'do': 'yarn install --frozen-lockfile'}
-Plug 'josa42/coc-docker'
 Plug 'neoclide/coc.nvim', {'branch': 'release'}
-Plug 'neoclide/coc-eslint', {'do': 'yarn install --frozen-lockfile'}
-Plug 'neoclide/coc-git', {'do': 'yarn install --frozen-lockfile'}
-Plug 'neoclide/coc-json', {'do': 'yarn install --frozen-lockfile'}
-Plug 'neoclide/coc-snippets', {'do': 'yarn install --frozen-lockfile'}
 Plug 'neoclide/coc-sources', {'do': 'yarn install --frozen-lockfile'}
-Plug 'neoclide/coc-tsserver', {'do': 'yarn install --frozen-lockfile'}
-Plug 'neoclide/coc-yaml', {'do': 'yarn install --frozen-lockfile'}
 Plug 'oncomouse/coc-fish', {'do': 'yarn install --frozen-lockfile'}
 Plug 'pantharshit00/coc-prisma', {'do': 'yarn install --frozen-lockfile'}
 Plug 'rodrigore/coc-tailwind-intellisense', {'do': 'npm install'}