Skip to content
Victor-johnssonPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

nvim config

Personal Neovim config. Plugins via lazy.nvim, LSP servers via mason.nvim.

Install on a new machine

macOS / Linux

git clone https://github.com/Victor-johnsson/.dev.git ~/.config/nvim
cd ~/.config/nvim
./install.sh

Windows (elevated PowerShell)

git clone https://github.com/Victor-johnsson/.dev.git $env:LOCALAPPDATA\nvim
cd $env:LOCALAPPDATA\nvim
.\install.ps1

Both scripts are safe to re-run. If a config already exists at the target path and isn't this repo, it's backed up (.bak.<timestamp>) rather than overwritten.

What the scripts do

  • Install system dependencies via the native package manager (brew on macOS, apt-get/dnf/pacman on Linux, winget on Windows): git, ripgrep, fd, a C compiler (for treesitter/LuaSnip), Node.js, Python 3, Terraform, xmllint, cargo/rustc (mason builds gitlab_ci_ls from source, and fff.nvim falls back to building itself), a Nerd Font, and oh-my-posh.
  • Clone this repo to the right config path for your OS.
  • Install the ohmyposh/theme.json prompt theme to ~/.config/ohmyposh/theme.json and wire oh-my-posh init into your shell profile (.zshrc/.bashrc on macOS/Linux, $PROFILE on Windows) if it isn't already there.
  • Headlessly install all lazy.nvim plugins and mason-managed LSP servers/formatters (prettier, jq, yamlfmt, netcoredbg, stylua), so the first real launch of nvim doesn't need to do any of that itself.

What's left manual

  • Terminal font: the scripts install a Nerd Font (JetBrainsMono Nerd Font) system-wide, but you still need to set your terminal emulator to use it — this is per-terminal and can't be scripted generically.
  • .NET SDK: only needed if you're working in a C# project (roslyn.nvim / neotest-dotnet). Not installed by these scripts.

Troubleshooting

Inside nvim:

  • :checkhealth — flags missing external dependencies.
  • :Lazy — plugin status.
  • :Mason — LSP server / tool install status.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages