Lazy-managed config built with the help of kickstart.nvim.
xclip
to enable<leader>y
to yank to system clipboard:sudo apt install xclip
- Clean up your existing nvim plugins to prevent weird clashes. Usually
rm -rf ~/.local/share/nvim
(backup is a good idea). - Get a Nerd Font for snazzy symbols. I like Fira Mono. Make sure to set it as your terminals font (not your systems).
- Don't care about a nerd font? Set
vim.g.have_nerd_font = false
ininit.lua
.
- Clone to
~/.config/
asnvim/
:cd ~/.config && git clone https://www.github.com/puttehi/nvim-lua nvim
- Start and let Lazy do its thing:
nvim
Use :Lazy update
. This should also update lazy-lock.json
.
init.lua
: Main entrypoint, installs Lazy and imports everything.lua/puttehi/
: Custom configuration that is imported.lua/puttehi/plugins
: Plugins which are either in their own files (plugin per file, likenvim-colorizer.lua
), or in their own category (several plugins per file, likegit.lua
with fugitive and gitsigns).lua/puttehi/vim
: "Raw" configuration and Lua scripts outside of anything "plugin", such as base keymaps,:set
tings etc. Things that do not depend on anything but VIM installation.
- Start with
:checkhealth
. Not everything must be fixed.
- Start with
:Lazy update
+:TSUpdate
. - Find highlights under cursor with
:Inspect
- - Debug node tree with
:InspectTree
- Highlights refuse to work? Revert buffer to use no highlighter from TS:
:TSBufToggle highlight
.
- Getting some weird "could not start
xxx-yyy-zzz
" errors with languages? Try adding it tolsp.lua
under the language server, i.e.languages["lua_ls"].tools = { "lua-language-server" }
. - Server does not seem to be working? Check
:LSPInfo
and if it crashed, check:LSPLog
. Filetype setting (:set filetype=...
) could also be wrong, check with:echo &filetype
. :LSPRestart
can work when you managed to blow up the language server, IT Crowd style.