Skip to content
connerohnesorgePublic

About

Personal neovim configuration.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

conneroisu-nvim

Introduction

Conner Ohnesorge's Personal Neovim Configuration.

Languages setup for:

Installation (Of configuration)

  1. Clone this repository into your Neovim configuration directory.

For example, for linux and MacOS:

git clone https://github.com/connerohnesorge/nvim ~/.config/nvim

For windows:

git clone https://github.com/connerohnesorge/nvim %USERPROFILE%\AppData\Local\nvim
  1. Open Neovim.
nvim

Run with Nix

flake.nix builds this config with nvf. Every plugin and treesitter grammar comes from the Nix store, so nothing is cloned at runtime. It needs Nix with flakes enabled.

nix run github:connerohnesorge/nvim

Pass Neovim arguments after --:

nix run github:connerohnesorge/nvim -- file.go

From a local checkout, run nix run .#.

The first run downloads about 300 treesitter grammars and all plugins, so it is slow. State (macros, snippets, undo, shada) lives in the normal ~/.config/nvim and ~/.local/share/nvim directories, the same as plain nvim.

On a Pantheon computer, the build can fail with chmod: ... Operation not permitted because /nix/var/nix/builds has the setgid bit. Use a build directory without it:

mkdir -p ~/nix-build
nix run --option build-dir ~/nix-build github:connerohnesorge/nvim

Adding a plugin spec under lua/plugins also requires adding it to the plugins set in flake.nix.

Customizing Plugin Specifications with Lazy

Defaults merging rules:

  • cmd: the list of commands will be extended with your custom commands
  • event: the list of events will be extended with your custom events
  • ft: the list of filetypes will be extended with your custom filetypes
  • keys: the list of keymaps will be extended with your custom keymaps
  • opts: your custom options will be merged with the default options
  • dependencies: the list of dependencies will be extended with your custom dependencies any other property will override the defaults
  • enabled: Enables or disables the plugin

About

Personal neovim configuration.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages