Fix lazy.nvim Local Changes That Block vimdoc-ja and copilot.lua Updates

Reset dirty vimdoc-ja and copilot.lua trees before lazy.nvim updates

On a Linux machine I opened Neovim, ran :Lazy update, and it stopped with Failed (2). The problem was not only doc/tags-ja in vimdoc-ja. .gitattributes and .github/workflows/format.yml in zbirenbaum/copilot.lua were also treated as “local changes”. I had seen the same error on vimdoc-ja alone before, and I had put in a workaround that ran git checkout -- doc/tags-ja on LazyUpdatePre. That was not enough this time. The symptom The message that showed up at startup was the following. [Read More]
Categories: editor  Tags: neovim vimdoc-ja copilot lua 

Moving to init.lua on Neovim 0.11 and the E5422 Config Conflict

Migrating from init.vim to init.lua in Neovim 0.11: Complete Guide

I migrated the NeoVim configuration I set up in Reviewing my Zsh and NeoVim configuration over to Lua. TL;DR Neovim 0.11.5 assumes Lua, so moving from init.vim + vim-plug toward init.lua + lazy.nvim gives you a big return. For completion, blink.cmp is a strong choice these days. The 0.11 trap: init.lua and init.vim cannot live side by side (E5422: Conflicting configs). A staged migration takes some ingenuity. While I was at it: NERDTree→oil.nvim, hand-written brackets→nvim-autopairs, IME→Lua autocmd, cursor shape→guicursor. Background In the Neovim 0.11 generation, the ecosystem of LSP, diagnostics and the surrounding plugins moves ahead on the premise of Lua. If you keep maintaining a Vimscript-centred setup, [Read More]
Categories: editor  Tags: neovim lua