Skip to content

nikosbatsaras/NeovimConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Backup current config (if any):

mv ~/.config/nvim ~/.config/nvim.bak

Install this one:

git clone git@github.com:nikosbatsaras/NeovimConfig.git ~/.config/nvim

Dependencies

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 for Font.
  • LSPs: gopls and lua-language-server via Mason (:MasonInstall)
  • Linters: goimports, gofumpt, golangci-lint, etc via Mason (:MasonInstall)

Troubleshooting

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 of fzf-native:
    • Ensure you :Lazy, go to telescope-fzf-native plugin and hit gb to build it
  • If telescope is not showing Dockerfile previews:
    • Ensure you :TSInstall dockerfile
  • If edit mode does not autoindent:
    • Ensure you :TSInstall go

HOWTOs

Brief step-by-step guides.

Unit test debugging

  • 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 :(

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages