Backup current config (if any):
mv ~/.config/nvim ~/.config/nvim.bak
Install this one:
git clone git@github.com:nikosbatsaras/NeovimConfig.git ~/.config/nvim
For MacOS via Homebrew:
- Neovim:
brew install neovim
- ripgrep:
brew install ripgrep
- fd:
brew install fd
- fzf:
brew install fzf
- Nerd Fonts:
brew install font-meslo-lg-nerd-font
- On iTerm2, under Profiles -> Text, pick
MesloLGS Nerd Font Mono
forFont
.
- On iTerm2, under Profiles -> Text, pick
- LSPs:
gopls
andlua-language-server
via Mason (:MasonInstall
) - Linters:
goimports
,gofumpt
,golangci-lint
, etc via Mason (:MasonInstall
)
Before you do anything, ensure you :Lazy
and U
to update plugins.
Also ensure you: :MasonUpdate
& TSUpdate
.
Here is a list of issues I dealt with in the past:
- If
telescope
is not showing preview because offzf-native
:- Ensure you
:Lazy
, go totelescope-fzf-native
plugin and hitgb
to build it
- Ensure you
- If
telescope
is not showing Dockerfile previews:- Ensure you
:TSInstall dockerfile
- Ensure you
- If edit mode does not autoindent:
- Ensure you
:TSInstall go
- Ensure you
Brief step-by-step guides.
- Toggle breakpoint (<space>db)
- Start the debugger (<space>dc)
- Select
Debug test (go.mod)
Note: Good practice to first toggle breakpoint inside the specific test you are trying to run to ensure that you know when the specific test is being debugged. Currently the debugger starts from the 1st test of the suite :(