git clone <dot-vim> ~/.config/nvim- Open neovim and run
:PaqInstallto install plugins. - Run
:TSInstall <languages>to install treesitter parsers for the languages you care about. See:TSModuleInfofor the list of supported languages.- NOTE: You may need to install the tree-sitter binary to install languages based on upstream grammar files. See the tree-sitter release page
I use Chris Simpkins' Hack font on a black background with darkish grey text. If you don't want to go through the effort of installing a custom font, I at least recommend using a monospaced font. Bitstream Vera Mono is a great choice and is present on most systems by default. For a lualine compatible version, see the version of Hack on Nerd Fonts.
I use paq to manage plugins, so
:PaqUpdate can be used to keep the plugins configured in init.lua
expandtabis on, which replaces hard tabs with spaces, because tabs are evil.- Similarly,
twis set to 79 andfowill automatically wrap in insert mode - clipboard is setup to use the
+register. Use it, you will love it. I promise. F9is setup to toggle folding where availableOandoare remapped. They do the same thing as normally except they don't leave you in insert mode.gqis setup to autowrap blocks at 79 characters. For best results, use visual mode to highlight all of someone else's long lines and then hitgqto win.- There's a handy
ToggleHighlightWSErrorsfunction that you can call that will highlight tabs in this offensive green color and long lines in blinding red. Use judiciously to banish tabs.- it also highlights trailing whitespace
call ToggleHighlightWSErrors()to use from normal mode
- There's some extra stuff here to support
vimpager
- Use vimpager, it's much better than the alternatives and allows you to regex search your paged content.
- When editing markdown, you can use
:TableFormatto automatically line up and center tables (brought to you by tabular and vim-markdown)