Skip to content

krisfur/neovim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim Setup

screenshot

Dependencies

Requires neovim >= 0.11.x

Arch Linux

sudo pacman -S --needed neovim nodejs npm tree-sitter-cli

Clipboard (pick one):

# Wayland
sudo pacman -S wl-clipboard

# X11
sudo pacman -S xclip

macOS

brew install neovim node tree-sitter ripgrep

Clipboard works out of the box (uses pbcopy/pbpaste).

Install the config

mkdir -p ~/.config/nvim
cp init.lua ~/.config/nvim/
nvim

On first launch:

  • Plugins install automatically via lazy.nvim
  • LSPs install automatically via Mason (uses npm for pyright, typescript-language-server, etc.)
  • Treesitter parsers install automatically

Zed fallback

This repo also includes a repo-managed Zed backup configuration under zed/.

Use that setup if you want a practical Vim-friendly fallback editor with similar search, LSP, formatting, and pane-navigation workflows, while keeping this Neovim config as the primary setup.

The Zed workflow is intentionally not a literal Neovim keymap port, Python uses Zed-native tooling, Typst PDF generation is terminal-driven with typst compile / typst watch, Markdown filepath completion is still a known gap, and long lines are visually soft-wrapped to the editor width by default.

See zed/README.md for the actual Zed-native workflow and tradeoffs.

Keymaps

Keymap Action
<Space>sf Search files
<Space>sg Live grep (search text)
<Space>sw Search word under cursor
<Space>/ Fuzzy search in current buffer
<Space><Space> Switch buffers
<Space>mp Markdown preview toggle
<Space>tp Typst preview toggle
<Space>f Format buffer
<Space>th Toggle inlay hints
gcc Comment out selection
grd Go to definition
grr Go to references
grn Rename symbol
gra Code action

About

My config for NeoVim and Vim-motions Zed.

Topics

Resources

License

Stars

Watchers

Forks

Contributors