Skip to content

kennethjyang/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim Configuration

Built to be both minimal but still have some bells and whistles that make the experience enjoyable.

Inspired by:

Installation

Clone this repository to where Neovim expects the config to be.

macOS and Linux

~/.config/nvim/

Windows

~\AppData\Local\nvim

Core

  • neovim 0.11+
  • ripgrep
  • lazygit

Useful (optional) tools

  • Neovide (GUI host for Neovim)
  • A font with nerd fonts (like JetBrainsMono NF)
  • Write per-machine configurations into the lua/config/local.lua file. They will be run last if it exists and not tracked in git.

Example local.lua:

-- Configure Neovide scale.
vim.g.neovide_scale_factor = 0.8

-- Use Powershell in ToggleTerm
require("toggleterm").setup({
  shell = "powershell.exe",
})
  • smear-cursor can be nice if Neovide or Kitty is unavailable. This file will be ignored.
-- lua/plugins/smear-cursor.lua

return {
  "sphamba/smear-cursor.nvim",
  opts = {
    time_interval = 7
  },
}

Languages

Only install what you want to use. Most LSPs and formatters can be installed via Mason while external tools should be installed separately.

  • Lua
    • lua-language-server
    • stylua
  • nixd (for macOS only)
  • Markdown
    • marksman
    • ltex-ls-plus
  • LaTeX
    • Some LaTeX distribution like MiKTeX (Windows) or MacTex (macOS)
      • MiKTeX needs Perl installed as well
    • texlab
    • Skim (PDF viewer for macOS)
    • SumatraPDF (PDF viewer for Windows, must add to PATH)
  • Typst
    • Typst
    • tinymist
    • typstyle
  • Python
    • Python
    • basedpyright
    • ruff
  • Rust
    • Rust (rustup)
    • rust-analyzer
  • Go
    • Go
    • gopls

About

Neovim configuration

Resources

License

Stars

Watchers

Forks

Languages