From 7264701a9f94b8fe758599f6c1ce32701189fc41 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Thu, 10 Sep 2026 21:54:36 +0200 Subject: Strip dead has('nvim') branches from vimrc Neovim is about to get its own standalone Lua config and will no longer source this file, so the has('nvim') branches (claude-code.nvim setup, remap, TermOpen augroup) are now unreachable. Collapse both blocks down to their else branches, which become the only/default behavior: vim-claude-code plugin and its settings, unconditionally. Everything else in the file is untouched. --- vim/.vim/vimrc | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'vim/.vim') diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc index 40f41ba..c6e74a1 100755 --- a/vim/.vim/vimrc +++ b/vim/.vim/vimrc @@ -45,12 +45,7 @@ if has('python') || has('python3') Plug 'ycm-core/YouCompleteMe', {'do': g:ycm_install_command} endif -if has('nvim') - Plug 'nvim-lua/plenary.nvim' - Plug 'greggh/claude-code.nvim' -else - Plug 'rishi-opensource/vim-claude-code' -endif +Plug 'rishi-opensource/vim-claude-code' call plug#end() @@ -162,20 +157,10 @@ function! AppendModeline() endfunction nnoremap ml :call AppendModeline() -" NeoVIM specifics -if has('nvim') - nnoremap h - " tnoremap - augroup nvim_term - autocmd! - autocmd TermOpen * setlocal nolist - augroup END - lua require('claude-code').setup({ window = { position = 'vertical botright' } }) -else - let g:claude_code_map_toggle = '' - let g:claude_code_position = 'right' - let g:claude_code_split_ratio = 0.3 -endif +" vim-claude-code settings +let g:claude_code_map_toggle = '' +let g:claude_code_position = 'right' +let g:claude_code_split_ratio = 0.3 """ PLUGIN SPECIFIC SETTINGS if exists("g:plug_home") -- cgit v1.3