Skip to content
JoshSLawrencePublic

About

My neovim configuration.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

287 Commits

Folders and files

Repository files navigation

nvim

My personal Neovim configuration (part of my dotfiles — joshslawrence/dotfiles).

Requirements

  • Neovim 0.12.0+
  • A Nerd Font (the config sets vim.g.have_nerd_font = true)
  • git (used to bootstrap lazy.nvim)
  • A C compiler. Treesitter compiles its parsers from source, so without a compiler on your PATH the parsers will fail to build and Treesitter features will not work.

LSP servers, formatters, and linters are installed automatically via mason.nvim on first launch (stylua, prettierd, csharpier, black, markdownlint, and the language servers configured in lua/plugins/lsp-config.lua).

Two servers come from elsewhere: the SOQL server is a mise tool (npm:@salesforce/soql-language-server, declared in my dotfiles' global mise config) and C# uses the Roslyn server bundled with easy-dotnet.nvim.

Structure

.
├── init.lua              # Thin loader; documents module load order
├── lazy-lock.json        # Pinned plugin versions
├── lua/
│   ├── config/           # Core editor config (options, keymaps, autocmds…)
│   └── plugins/          # Feature-grouped lazy.nvim specs
├── queries/              # Custom Treesitter queries (Tailwind class ranges)
└── after/queries/        # Query extensions (mise.toml run-command injections)

Files under lua/plugins/ are grouped by topic rather than strictly one plugin per file (e.g. themes.lua holds all colorschemes, and some specs bundle a plugin with its companions).

Notable choices

  • lazy.nvim for plugin management
  • snacks.nvim as the picker, explorer, and general UI layer
  • Transparent tokyonight, switched between tokyonight-night and tokyonight-day by auto-dark-mode.nvim to follow the OS appearance
  • A small custom Tailwind class sorter in lua/config/tailwind-sort.lua

Development

Formatting and whitespace are enforced with pre-commit. The StyLua hook runs the stylua binary that mason installs, so make sure ~/.local/share/nvim/mason/bin is on your PATH, then:

pre-commit install
pre-commit run --all-files

About

My neovim configuration.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages