Khanelivim Docs
This site is built from the flake and the evaluated profile configuration.
The profile matrix is generated from mkNixvimConfig, so it tracks the
effective khanelivim.profile behavior instead of hand-maintained README prose.
Commands
nix build .#docs-html
nix run .#docs
Included Pages
Using the Flakeexplains the supported ways to run the default package, install it from Home Manager, or build a customized package through the flakelibhelpers.Customizing Khanelivimexplains the intended override layers:khanelivim.*, thenplugins.*, thenextraConfigLua.Development Workflowdocuments the repo-facing shell, checks, plugin generator, docs build, and profiling commands.Keymapsgroups runtime-discovered mappings into UX-oriented pages like navigation, search, git, LSP, toggles, and language workflows.Language Tooling Workflowsexplains the generic<leader>land language-specific<leader>zruntime model, plus the workspace-aware web tooling ownership rules.Selecting Profilesexplains how the flake default is chosen and how to build a non-default profile.Options Referencedocuments thekhanelivim.*option surface from the evaluated module tree.Profile Matrixshows the evaluated enablement for each profile.Docs Pipelineexplains how the generated site is built.
Using the Flake
Khanelivim supports three main ways of working with the config.
1. Run The Default Package
This is the fastest way to try it. The default package currently builds the
standard profile.
nix run github:khaneliman/khanelivim
From a local checkout:
nix run
2. Install It From Home Manager
The supported Home Manager workflow is to install the built Neovim package via
home.packages.
{
home.packages = [
khanelivim.packages.${pkgs.system}.default
];
}
This repo does not expose a dedicated Home Manager module for configuration. Use
the package or build a customized package through the flake lib helpers.
To keep the docs for the version you have pinned, install the docs package
next to the editor. It adds a khanelivim-docs command that opens the generated
site in a browser.
{
home.packages = [
khanelivim.packages.${pkgs.system}.default
khanelivim.packages.${pkgs.system}.docs
];
}
3. Build A Customized Config
Use khanelivim.lib.mkNixvimConfig when you want an evaluated config you can
extend with modules, or khanelivim.lib.mkNixvimPackage when you only need the
final package.
Pick a non-default profile directly:
let
debugConfig = khanelivim.lib.mkNixvimConfig {
system = pkgs.system;
profile = "debug";
};
in
debugConfig.config.build.package
Extend a base profile with your own overrides:
let
customConfig = (khanelivim.lib.mkNixvimConfig {
system = pkgs.system;
profile = "minimal";
}).extendModules {
modules = [
{
khanelivim.editor.fileManager = "yazi";
khanelivim.ui.keybindingHelp = "which-key";
extraConfigLua = ''
vim.opt.relativenumber = false
'';
}
];
};
in
customConfig.config.build.package
Prefer the high-level khanelivim.* options when possible. Drop to plugins.*
or raw Lua only when the curated option surface does not already cover what you
need.
Customizing Khanelivim
Khanelivim is meant to be customized in layers, from the highest-level option surface down to raw plugin or Lua overrides when needed.
Preferred Order
Use the narrowest layer that solves the problem cleanly:
khanelivim.*optionsplugins.*overridesextraConfigLua
This keeps customizations easier to reason about and less likely to break when internal plugin wiring changes.
1. Use khanelivim.* First
The curated khanelivim.* options are the intended public surface for choosing
major workflows, UI components, and language tooling.
Examples:
{
khanelivim.editor.fileManager = "yazi";
khanelivim.ui.keybindingHelp = "which-key";
khanelivim.lsp.java = "nvim-java";
}
Use the generated Options Reference when looking for the supported knobs.
Cross-cutting policy toggles also live here. For example, you can disable all account-backed integrations, or only selected categories:
{
khanelivim.integrations.accountBacked = {
enable = true;
ai.enable = false;
timeTracking.enable = false;
};
}
2. Override plugins.* When The Public Surface Is Too Coarse
Drop to plugin-specific settings when the feature already exists in the plugin,
but Khanelivim does not expose a dedicated khanelivim.* option for it.
Examples:
{
plugins.lualine.settings.options.theme = "gruvbox";
plugins.typescript-tools.settings.settings.tsserver_max_memory = "auto";
}
This is still a Nix-level override, so it is usually safer than patching things with raw Lua.
3. Use extraConfigLua For Truly Local Behavior
Use extraConfigLua when you need editor behavior that is:
- specific to your own setup
- too small to justify a dedicated option
- not cleanly expressed through existing module settings
Example:
{
extraConfigLua = ''
vim.opt.relativenumber = false
'';
}
Prefer small, targeted Lua additions over large private rewrites of the config.
Extend Instead Of Forking
The normal customization model is to evaluate a base config, then extend it with your own module overrides.
let
customConfig = (khanelivim.lib.mkNixvimConfig {
system = pkgs.system;
profile = "minimal";
}).extendModules {
modules = [
{
khanelivim.editor.fileManager = "yazi";
khanelivim.ui.keybindingHelp = "which-key";
extraConfigLua = ''
vim.opt.relativenumber = false
'';
}
];
};
in
customConfig.config.build.package
This lets you keep the upstream module graph and only replace the parts you actually care about.
What To Avoid
- Editing
modules/nixvim/plugins/*just to customize your own local install - Copying large chunks of generated or internal config into
extraConfigLua - Treating internal module layout as a stable public API
If the change is broadly useful, it should usually become a new khanelivim.*
option rather than a permanent private patch.
Development Workflow
This page is for working on the Khanelivim repo itself, not for consuming the built package.
Development Shell
Enter the dev shell before doing repo work:
nix develop
That gives you the formatting, linting, and helper tools used by the repo.
Core Commands
# Update flake inputs
nix flake update
# Validate the flake
nix flake check
# Format and lint Nix code
nix fmt
deadnix -e
statix fix .
# Build the default package
nix build
# Run the default package
nix run
Adding A Plugin
Use the plugin generator from the dev shell:
new-plugin <plugin-name> <template-type>
Template choices:
nixvimfor standard plugins that map cleanly to upstream Nixvim optionscustomfor plugins that need custom Lua or more complex setupcustom-lazyfor plugins that should be lazy-loaded and need custom setup
After generating the module:
- configure the plugin in its module
- prefer
khanelivim.*option wiring when exposing user-facing behavior - test the result with
nix buildornix run
Editing Existing Behavior
When changing the repo itself:
- keep edits modular
- prefer semantic
khanelivim.*options over one-off plugin hacks - use the generated init as the runtime source of truth when debugging behavior
If you are debugging Neovim runtime behavior, inspect nixvim-print-init output
rather than assuming a local ad-hoc config matches the built package.
Docs
The docs are generated from the evaluated flake outputs:
nix build .#docs-html
nix run .#docs
Use the generated docs for:
khanelivim.*options- evaluated profile differences
- usage workflows and customization guidance
Performance
When adding or changing plugins, measure startup impact:
nix run .#profile -- -i --iterations 1
nix run .#profile -- -i --baseline --event deferred
nix run .#profile -- -i --compare --event deferred
The current target is to keep deferred startup under roughly 800ms, and new
plugins that add meaningful startup cost should usually be lazy-loaded.
Contribution Notes
For repository conventions, read:
CONTRIBUTING.mdfor style, workflow, and commit guidanceAGENTS.mdfor repo-specific development rules used during automated edits
Keymaps
This section is generated from a headless run of the evaluated standard profile.
It includes startup maps plus buffer-local maps discovered after opening representative sample files.
Representative filetypes: lua, nix, markdown, typescript, python, rust
Only mappings with an explicit description or a small generated fallback label are shown.
- Essential Navigation (10 maps)
- Windows & Buffers (41 maps)
- Search & Picking (60 maps)
- File Management (3 maps)
- Git (73 maps)
- LSP & Navigation (48 maps)
- Diagnostics & Debugging (57 maps)
- Language Workflows (43 maps)
- Toggles (110 maps)
- Editing & Text (27 maps)
- Miscellaneous (159 maps)
Essential Navigation
This page is generated from runtime keymap state.
| Key | Modes | Description | Context |
|---|---|---|---|
[j | n o | Jump backward | global |
[J | n o | Jump first | global |
]j | n o | Jump forward | global |
]J | n o | Jump last | global |
j | n v x s | Move cursor down | global |
k | n v x s | Move cursor up | global |
s | n v x o | Flash | global |
S | n v x o | Flash Treesitter | global |
[[ | n | Jump to previous section | markdown buffer |
]] | n | Jump to next section | markdown buffer |
Windows & Buffers
This page is generated from runtime keymap state.
| Key | Modes | Description | Context |
|---|---|---|---|
<leader>, | n | Down window | global |
<leader>. | n | Up window | global |
<leader>[ | n | Left window | global |
<leader>] | n | Right window | global |
<leader>b[ | n | Previous buffer | global |
<leader>b] | n | Next buffer | global |
<leader>bC | n | Close all buffers | global |
<leader>bc | n | Close all buffers but current | global |
<leader>bp | n | Pick Buffer | global |
<leader>bsd | n | Sort By Directory | global |
<leader>bse | n | Sort By Extension | global |
<leader>bsr | n | Sort By Relative Directory | global |
<leader>cH | v x s | Save Highlight | global |
<leader>cs | v x s | Save | global |
<leader>nn | n | New Scratch Buffer | global |
<leader>ns | n | Select Scratch Buffer | global |
<leader>Q | n | Force quit | global |
<leader>q | n | Quit | global |
<leader>W | n | Force write | global |
<leader>w | n | Save | global |
- | n | Horizontal split | global |
<C-C> | n | Switch to alternate buffer | global |
<C-N> | n | New file | global |
<C-S> | n v x s i | Save | global |
<C-W> | n | Close buffer | global |
<S-Tab> | n | Previous buffer | global |
<S-Tab> | v x s | Unindent line | global |
<S-Tab> | i | vim.snippet.jump if active, otherwise <S-Tab> | global |
<Tab> | n | Goto/Apply Next Edit Suggestion | global |
<Tab> | v x s | Indent line | global |
<Tab> | i | vim.snippet.jump if active, otherwise <Tab> | global |
[b | n | Buffer backward | global |
[B | n | Buffer first | global |
[w | n | Window backward | global |
[W | n | Window first | global |
]b | n | Buffer forward | global |
]B | n | Buffer last | global |
]w | n | Window forward | global |
]W | n | Window last | global |
| | n | Vertical split | global |
gO | n | Show an Outline of the current buffer | markdown buffer |
Search & Picking
This page is generated from runtime keymap state.
| Key | Modes | Description | Context |
|---|---|---|---|
<leader> | n | Smart Find Files | global |
<leader>: | n | Command History | global |
<leader>f' | n | Find marks | global |
<leader>f, | n | Find icons | global |
<leader>f/ | n | Fuzzy find in current buffer | global |
<leader>f<CR> | n | Resume find | global |
<leader>f? | n | Fuzzy find in open buffers | global |
<leader>fa | n | Find autocmds | global |
<leader>fb | n | Find buffers | global |
<leader>fc | n | Find commands | global |
<leader>fC | n | Find config files | global |
<leader>fe | n | File Explorer | global |
<leader>ff | n | Find files | global |
<leader>fFa | n | Find asset files | global |
<leader>fFA | n | Find files (All files) | global |
<leader>fFc | n | Find current directory | global |
<leader>fFd | n | Find files in ~/.config | global |
<leader>fFf | n | Find flake files | global |
<leader>fFh | n | Find files in home directory | global |
<leader>fFi | n | Change indexing directory interactively | global |
<leader>fFm | n | Find module files | global |
<leader>fFo | n | Find overlay files | global |
<leader>fFp | n | Find package files | global |
<leader>fFr | n | Find result files | global |
<leader>fFs | n | Find shell files | global |
<leader>fh | n | Find help tags | global |
<leader>fH | n | Find Highlights | global |
<leader>fj | n | Find jumps | global |
<leader>fk | n | Find keymaps | global |
<leader>fL | n | Find Neovim Logs | global |
<leader>fm | n | Find man pages | global |
<leader>fn | n | Find notifications | global |
<leader>fo | n | Find old files | global |
<leader>fO | n | Find Smart (Frecency) | global |
<leader>fp | n | Find projects | global |
<leader>fq | n | Find quickfix | global |
<leader>fr | n | Find registers | global |
<leader>fS | n | Find spelling suggestions | global |
<leader>fs | n | Rescan files in current directory | global |
<leader>fT | n | Find theme | global |
<leader>ft | n | Find TODOs | global |
<leader>fu | n | Undo History | global |
<leader>fw | n | Live grep | global |
<leader>fW | n | Live grep (All files) | global |
<leader>fz | n | Find Zoxide | global |
<leader>fZ | n | Search History | global |
<leader>nog | n | Grep Notes | global |
<leader>nos | n | Search Notes | global |
<leader>sw | n v x | Search Word (visual or cursor) | global |
# | v x | :help v_#-default | global |
& | n | :help &-default | global |
* | v x | :help v_star-default | global |
<C-L> | n | :help CTRL-L-default | global |
<C-U> | i | :help i_CTRL-U-default | global |
<C-W> | i | :help i_CTRL-W-default | global |
<Esc> | n | Clear search highlight | global |
@ | v x | :help v_@-default | global |
gsF | n | Find surrounding (left) | global |
gsf | n | Find surrounding (right) | global |
R | o | Treesitter Search | global |
File Management
This page is generated from runtime keymap state.
| Key | Modes | Description | Context |
|---|---|---|---|
<leader>e | n | Yazi (current file) | global |
<leader>E | n | Yazi (resume) | global |
gx | n v x | Opens filepath or URI under cursor with the system handler (file explorer, web browser, …) | global |
Git
This page is generated from runtime keymap state.
| Key | Modes | Description | Context |
|---|---|---|---|
<leader>fg | n | Find files in git repository | global |
<leader>gbb | n | Blame Line | global |
<leader>gbc | n | Show at Cursor | global |
<leader>gbd | n | Show Diff Source | global |
<leader>gbf | n | Blame File | global |
<leader>gbr | n v x s o | Range History | global |
<leader>gc[ | n | Prev | global |
<leader>gc] | n | Next | global |
<leader>gcb | n | Choose Base | global |
<leader>gcB | n | Choose Both | global |
<leader>gcl | n | List | global |
<leader>gcn | n | Choose None | global |
<leader>gco | n | Choose Ours | global |
<leader>gcr | n | Refresh | global |
<leader>gct | n | Choose Theirs | global |
<leader>gdc | n | Close diff mode | global |
<leader>gdC | n | Close diff mode (all windows) | global |
<leader>gdd | n | Add file to diff | global |
<leader>gdg | n | Gitsigns Diff This | global |
<leader>gdG | n | Gitsigns Diff This ~ | global |
<leader>gdn | n | Native DiffTool | global |
<leader>gdV | n | VSCode Diff (-1) | global |
<leader>gdv | n | VSCode Diff (CodeDiff) | global |
<leader>gfa | n | Git Log File | global |
<leader>gfb | n | Git Branches | global |
<leader>gfc | n | Git Commits | global |
<leader>gfd | n | Git Diff (Hunks) | global |
<leader>gfD | n | Git Worktree Delete | global |
<leader>gff | n | Git Files | global |
<leader>gfh | n | Git Stashes | global |
<leader>gfL | n | Git Log Line | global |
<leader>gfs | n | Git Status | global |
<leader>gfW | n | Git Worktree Create | global |
<leader>gfw | n | Git Worktrees | global |
<leader>gG | n | Gitignore generate | global |
<leader>gg | n | Open lazygit | global |
<leader>ghi | n | Preview Hunk Inline | global |
<leader>ghp | n v x s | Preview Hunk | global |
<leader>ghq | n | Set Quickfix List | global |
<leader>ghQ | n | Set Quickfix List All | global |
<leader>ghr | n v x s | Reset Hunk | global |
<leader>ghs | n v x s | Stage Hunk | global |
<leader>ghu | n v x s | Undo Stage Hunk | global |
<leader>gm | n | Open file on main branch | global |
<leader>gM | n | Open file on master branch | global |
<leader>go | n | Open file in browser | global |
<leader>gO | n | Open repository in browser | global |
<leader>go | v x s | Open selection in browser | global |
<leader>gr | n | Refresh git status | global |
<leader>gR | n | Reset Buffer | global |
<leader>gs | n | Git Status (CodeDiff) | global |
<leader>gS | n | Stage Buffer | global |
<leader>gU | n | Unstage Buffer | global |
<leader>gva | n | Actions | global |
<leader>gvc | n | Checkout PR | global |
<leader>gvg | n | Guh | global |
<leader>gvI | n | Issues (all) | global |
<leader>gvi | n | Issues (open) | global |
<leader>gvn | n | Notifications | global |
<leader>gvo | n | Open PR | global |
<leader>gvP | n | Pull Requests (all) | global |
<leader>gvp | n | Pull Requests (open) | global |
<leader>gvR | n | Resume Review | global |
<leader>gvr | n | Start Review | global |
<leader>gvs | n | Search | global |
<Plug>(resolve-diff-both) | n | Show diff both (Resolve) | global |
<Plug>(resolve-diff-ours) | n | Show diff ours (Resolve) | global |
<Plug>(resolve-diff-theirs) | n | Show diff theirs (Resolve) | global |
<Plug>(resolve-diff-vs) | n | Show diff ours vs theirs (Resolve) | global |
<Plug>(resolve-diff-vs-reverse) | n | Show diff theirs vs ours (Resolve) | global |
[c | n | Previous Hunk | global |
]c | n | Next Hunk | global |
ih | v x o | Select Hunk | global |
LSP & Navigation
This page is generated from runtime keymap state.
| Key | Modes | Description | Context |
|---|---|---|---|
<leader>L | n | Leet code | global |
<leader>lA | n | Generate Annotation | global |
<leader>lc | n v x s | Fastaction code action | global |
<leader>ld | n | Glance definition | global |
<leader>lD | n | Glance reference | global |
<leader>lf | n v x s o | Format buffer | global |
<leader>li | n | Glance implementation | global |
<leader>lll | n | LazyDev lsp | global |
<leader>lR | n | Rename File | global |
<leader>lt | n | Glance type definition | global |
<leader>lT | n | Tooling info | global |
<leader>lw | n | Trim trailing whitespace | global |
<leader>lwl | n | Trim trailing empty lines | global |
<leader>ph | n | Patterns hover | global |
<leader>rw | v x s | Rename selection in buffer | global |
<leader>rw | n | Rename word in buffer | global |
<leader>rW | n | Rename word in project | global |
gR | n | Start IncRename | global |
gri | n | vim.lsp.buf.implementation() | global |
grn | n | Rename Symbol | global |
grr | n | vim.lsp.buf.references() | global |
grt | n | vim.lsp.buf.type_definition() | global |
K | v x s | Hover documentation | global |
<leader>la | n | Lsp buf code_action | lua buffer |
<leader>lI | n | LSP info | lua buffer |
<leader>lX | n | Restart LSP | lua buffer |
gra | n | Code Action | lua buffer |
K | n | vim.lsp.buf.hover() | lua buffer |
<leader>la | n | Lsp buf code_action | markdown buffer |
<leader>lI | n | LSP info | markdown buffer |
<leader>lX | n | Restart LSP | markdown buffer |
gra | n | Code Action | markdown buffer |
K | n | vim.lsp.buf.hover() | markdown buffer |
<leader>la | n | Lsp buf code_action | nix buffer |
<leader>lI | n | LSP info | nix buffer |
<leader>lX | n | Restart LSP | nix buffer |
gra | n | Code Action | nix buffer |
K | n | vim.lsp.buf.hover() | nix buffer |
<leader>la | n | Lsp buf code_action | python buffer |
<leader>lI | n | LSP info | python buffer |
<leader>lX | n | Restart LSP | python buffer |
gra | n | Code Action | python buffer |
K | n | vim.lsp.buf.hover() | python buffer |
<leader>la | n | Lsp buf code_action | rust buffer |
<leader>lI | n | LSP info | rust buffer |
<leader>lX | n | Restart LSP | rust buffer |
gra | n | Code Action | rust buffer |
K | n | vim.lsp.buf.hover() | rust buffer |
Diagnostics & Debugging
This page is generated from runtime keymap state.
| Key | Modes | Description | Context |
|---|---|---|---|
<leader>dc | n | Continue Debugging (Start) | global |
<leader>dC | n | Run to cursor | global |
<leader>dg | n | Go to line (no execute) | global |
<leader>di | n | Step Into | global |
<leader>dj | n | Down | global |
<leader>dk | n | Up | global |
<leader>dL | n | nlua Launch | global |
<leader>dl | n | Run Last | global |
<leader>dn | n | Debug (Last) | global |
<leader>dO | n | Step Out | global |
<leader>do | n | Step Over | global |
<leader>dp | n | Pause | global |
<leader>dP | n | Profile Current Line | global |
<leader>dR | n | Restart Debugging | global |
<leader>ds | n | Session | global |
<leader>dS | n | Show Debug Stats | global |
<leader>dt | n | Terminate Debugging | global |
<leader>dw | n | Add Watch | global |
<leader>dX | n | Run Buffer | global |
<leader>dX | v x | Run Selection | global |
<leader>ir | n | Open REPL | global |
<leader>iR | n | Open REPL here | global |
<leader>l[ | n | Previous diagnostic | global |
<leader>l] | n | Next diagnostic | global |
<leader>le | n | Buffer errors list | global |
<leader>lE | n | Workspace diagnostics list | global |
<leader>lH | n | Diagnostic open_float | global |
<leader>lld | n | LazyDev debug | global |
<leader>lq | n | Buffer diagnostics list | global |
<leader>lW | n | Workspace errors list | global |
<leader>rc | n | Debug Cleanup | global |
<leader>rP | n v x | Debug Print Variable | global |
<leader>rp | n v x | Debug Printf | global |
<leader>SL | n | Load the last session | global |
<leader>Sl | n | Load the session for the current directory | global |
<leader>Ss | n | Select a session to load | global |
<leader>td | n | Debug | global |
<F10> | n | Step Over | global |
<F11> | n | Step Into | global |
<F12> | n | Step Out | global |
<F5> | n | Continue Debugging (Start) | global |
<S-F5> | n | Terminate Debugging | global |
[d | n v x o | Diagnostic backward | global |
[D | n v x o | Diagnostic first | global |
]d | n v x o | Diagnostic forward | global |
]D | n v x o | Diagnostic last | global |
gsr | n | Replace surrounding | global |
<leader>lQ | n | Workspace diagnostics | lua buffer |
<leader>lx | n | Run code lens | lua buffer |
<leader>lQ | n | Workspace diagnostics | markdown buffer |
<leader>lx | n | Run code lens | markdown buffer |
<leader>lQ | n | Workspace diagnostics | nix buffer |
<leader>lx | n | Run code lens | nix buffer |
<leader>lQ | n | Workspace diagnostics | python buffer |
<leader>lx | n | Run code lens | python buffer |
<leader>lQ | n | Workspace diagnostics | rust buffer |
<leader>lx | n | Run code lens | rust buffer |
Language Workflows
This page is generated from runtime keymap state.
| Key | Modes | Description | Context |
|---|---|---|---|
<leader>zw | n | Toggle RustOwl | global |
<leader>zc | n | Activate Cached Virtual Environment | python buffer |
<leader>zd | n | Debug Nearest Python Test | python buffer |
<leader>zL | n | Open Venv Selector Log | python buffer |
<leader>zl | n | Run Last Python Test | python buffer |
<leader>zt | n | Run Nearest Python Test | python buffer |
<leader>zT | n | Run Python Test File | python buffer |
<leader>zv | n | Select Virtual Environment | python buffer |
<leader>za | n v x | Code Action (Rust) | rust buffer |
<leader>zc | n | Open Cargo.toml | rust buffer |
<leader>zd | n | Rust Debuggables | rust buffer |
<leader>ze | n | Render Diagnostic (Current Line) | rust buffer |
<leader>zg | n | Crate Graph | rust buffer |
<leader>zh | n | Hover Actions (Rust) | rust buffer |
<leader>zh | v x | Hover Range (Rust) | rust buffer |
<leader>zj | n | Join Lines | rust buffer |
<leader>zj | v x | Join Lines (Selection) | rust buffer |
<leader>zl | n | Open rust-analyzer Log | rust buffer |
<leader>zm | n | Expand Macro | rust buffer |
<leader>zo | n | Open Docs (Rust) | rust buffer |
<leader>zO | n | Open External Docs | rust buffer |
<leader>zP | n | Open Parent Module | rust buffer |
<leader>zp | n | Rebuild Proc Macros | rust buffer |
<leader>zq | n | Render Diagnostic (Cycle) | rust buffer |
<leader>zR | n | Restart RustOwl Client | rust buffer |
<leader>zr | n | Rust Runnables | rust buffer |
<leader>zs | n | Structural Search/Replace | rust buffer |
<leader>zs | v x | Structural Search/Replace (Selection) | rust buffer |
<leader>zt | n | Rust Testables | rust buffer |
<leader>zV | n | Disable RustOwl | rust buffer |
<leader>zv | n | Enable RustOwl | rust buffer |
<leader>zW | n | Reload Workspace | rust buffer |
<leader>zx | n | Explain Error (Current Line) | rust buffer |
<leader>zf | n | Fix All | typescript buffer |
<leader>zi | n | Add Missing Imports | typescript buffer |
<leader>zl | n | Open tsserver Logs | typescript buffer |
<leader>zm | n | Remove Unused | typescript buffer |
<leader>zn | n | Rename File | typescript buffer |
<leader>zo | n | Organize Imports | typescript buffer |
<leader>zR | n | File References | typescript buffer |
<leader>zs | n | Source Definition | typescript buffer |
<leader>zt | n | Sort Imports | typescript buffer |
<leader>zu | n | Remove Unused Imports | typescript buffer |
Toggles
This page is generated from runtime keymap state.
| Key | Modes | Description | Context |
|---|---|---|---|
<leader>/ | n | Toggle comment line | global |
<leader>/ | v x s | Toggle comment selection | global |
<leader>ast | n | Sidekick Toggle | global |
<leader>bP | n | Pin buffer toggle | global |
<leader>db | n | Breakpoint toggle | global |
<leader>dr | n | Toggle REPL | global |
<leader>dT | n | Toggle Debug Trace | global |
<leader>du | n | Toggle Debugger UI | global |
<leader>dv | n | Toggle Virtual Text | global |
<leader>gD | n | Toggle Diff (Primary) | global |
<leader>gvw | n | Toggle polling | global |
<leader>mt | n v x | Toggle cursor | global |
<leader>nc | n | Toggle Concealer | global |
<leader>rg | n | GrugFar toggle | global |
<leader>Rt | n | Toggle Output | global |
<leader>to | n | Output Panel toggle | global |
<leader>tt | n | Summary toggle | global |
<leader>uaa | n | Toggle Animations | global |
<leader>uac | n | Colorizing toggle | global |
<leader>uC | n | Colorschemes | global |
<leader>uca | n | Toggle Completions (Buffer) | global |
<leader>ucb | n | Buffer Completion from All Buffers toggle | global |
<leader>uci | n | Completion Item Index toggle | global |
<leader>ucp | n | Path Completion from CWD toggle | global |
<leader>udd | n | Buffer Diagnostics toggle | global |
<leader>udD | n | Global Diagnostics toggle | global |
<leader>ueC | n | Code Lens toggle | global |
<leader>uec | n | Document Colors toggle | global |
<leader>uef | n | Buffer Autoformatting toggle | global |
<leader>ueF | n | Global Autoformatting toggle | global |
<leader>ueh | n | Toggle Inlay Hints | global |
<leader>ueI | n | Diagnostics In Insert toggle | global |
<leader>ueL | n | Lensline engine toggle | global |
<leader>uel | n | Lensline view toggle | global |
<leader>uem | n | Toggle Markdown Preview | global |
<leader>uen | n | Toggle Line Numbers | global |
<leader>ueo | n | Toggle Fold Column | global |
<leader>uep | n | Buffer AutoPairs toggle | global |
<leader>ueP | n | Global AutoPairs toggle | global |
<leader>ueS | n | Semantic Tokens toggle | global |
<leader>ues | n | Spell toggle | global |
<leader>uet | n | Toggle Tabs/Spaces | global |
<leader>ueT | n | Toggle Terminal | global |
<leader>ueu | n | Undotree toggle | global |
<leader>uev | n | Diagnostic Virtual Lines toggle | global |
<leader>ueW | n | Toggle Whitespace Characters | global |
<leader>uew | n | Word Wrap toggle | global |
<leader>ugb | n | Toggle Blame | global |
<leader>ugj | n | Toggle JjSigns | global |
<leader>ugL | n | Toggle JjSigns Line Highlight | global |
<leader>ugN | n | Toggle JjSigns Number Highlight | global |
<leader>ugS | n | Toggle JjSigns Column | global |
<leader>ugw | n | Toggle Word Diff | global |
<leader>ui | n | Indent Guides toggle | global |
<leader>ul | n | Open logs | global |
<leader>uP | n | Color Picker | global |
<leader>uph | n | Toggle Profiler Highlights | global |
<leader>upp | n | Toggle Profiler | global |
<leader>ups | n | Profiler Scratch (adjust options) | global |
<leader>uR | n | Restart Nvim | global |
<leader>usd | n | Toggle Dim | global |
<leader>usk | n | Toggle showkeys | global |
<leader>usm | n | MiniMap toggle | global |
<leader>uss | n | Toggle Smooth Scroll | global |
<leader>usZ | n | Toggle Zen Mode | global |
<leader>usz | n | Toggle Zoom (Maximize) | global |
<leader>uT | n | Choose TUI | global |
<leader>utc | n | Treesitter Context toggle | global |
<leader>utr | n | Toggle Reference Highlighting | global |
<leader>utt | n | Toggle Treesitter Highlight | global |
<leader>uxa | n | Toggle All Features | global |
<leader>uxb | n | Toggle Bigfile Behavior | global |
<leader>uxd | n | Toggle Blink Indent | global |
<leader>uxg | n | Toggle Gitsigns | global |
<leader>uxk | n | Toggle Snacks | global |
<leader>uxl | n | Toggle LSP | global |
<leader>uxm | n | Toggle Fastmacro Behavior | global |
<leader>uxn | n | Toggle Noice | global |
<leader>uxo | n | Toggle Bufferline | global |
<leader>uxp | n | Toggle Matchparen | global |
<leader>uxs | n | Toggle Syntax | global |
<leader>uxt | n | Toggle Treesitter | global |
<leader>uxu | n | Toggle Lualine | global |
<leader>uxv | n | Toggle Filetype | global |
<leader>uxy | n | Toggle Vimopts | global |
<leader>vh | n | Hardtime toggle | global |
<leader>vp | n | Precognition Toggle | global |
<leader>X | n | Toggle Neovim profiler | global |
<leader>xL | n | Location List toggle | global |
<leader>xl | n | LSP Definitions / references / … toggle | global |
<leader>xQ | n | Quickfix List toggle | global |
<leader>xs | n | Symbols toggle | global |
<leader>xX | n | Buffer Diagnostics toggle | global |
<leader>xx | n | Diagnostics toggle | global |
<C-/> | n t | Toggle Terminal | global |
<F9> | n | Breakpoint toggle | global |
\b | n | Toggle ‘background’ | global |
\C | n | Toggle ‘cursorcolumn’ | global |
\c | n | Toggle ‘cursorline’ | global |
\d | n | Toggle diagnostic | global |
\h | n | Toggle search highlight | global |
\i | n | Toggle ‘ignorecase’ | global |
\l | n | Toggle ‘list’ | global |
\n | n | Toggle ‘number’ | global |
\r | n | Toggle ‘relativenumber’ | global |
\s | n | Toggle ‘spell’ | global |
\w | n | Toggle ‘wrap’ | global |
gc | n v x | Toggle comment | global |
gcc | n | Toggle comment line | global |
gS | n v x | Toggle arguments | global |
Editing & Text
This page is generated from runtime keymap state.
| Key | Modes | Description | Context |
|---|---|---|---|
<C-P> | n | Select previous entry through yank history | global |
<lt> | v x s | Unindent line | global |
<lt>p | n | Put and indent left | global |
<lt>P | n | Put before and indent left | global |
> | v x s | Indent line | global |
>p | n | Put and indent right | global |
>P | n | Put before and indent right | global |
[i | n v x o | Go to indent scope top | global |
[P | n | Put indented before cursor (linewise) | global |
[p | n | Put indented before cursor (linewise) | global |
[y | n | Yank backward | global |
[Y | n | Yank first | global |
]i | n v x o | Go to indent scope bottom | global |
]P | n | Put indented after cursor (linewise) | global |
]p | n | Put indented after cursor (linewise) | global |
]y | n | Yank forward | global |
]Y | n | Yank last | global |
gc | o | Comment textobject | global |
gp | n v x | Put yanked text after selection | global |
gP | n v x | Put yanked text before selection | global |
gsa | n v x s | Add surrounding | global |
gsd | n | Delete surrounding | global |
gsh | n | Highlight surrounding | global |
p | n v x | Put yanked text after cursor | global |
P | n v x | Put yanked text before cursor | global |
y | n v x | Yank text | global |
Y | n | Yank to end of line | global |
Miscellaneous
This page is generated from runtime keymap state.
| Key | Modes | Description | Context |
|---|---|---|---|
<leader>asP | n v x s | Ask Prompt | global |
<leader>cc | v x s | Copy | global |
<leader>Cc | n | Select Config | global |
<leader>Cg | n | Configure Global Settings | global |
<leader>ch | v x s | Highlight | global |
<leader>Cl | n | Configure Local Settings | global |
<leader>CL | n | Show LSP Configuration | global |
<leader>Cs | n | Show Configuration | global |
<leader>Ha | n | Add file | global |
<leader>He | n | Quick Menu | global |
<leader>Hj | n | 1 | global |
<leader>Hk | n | 2 | global |
<leader>Hl | n | 3 | global |
<leader>Hm | n | 4 | global |
<leader>ma | n v x | Add cursor above | global |
<leader>mA | n v x | Skip cursor above | global |
<leader>mb | n v x | Add cursor below | global |
<leader>mB | n v x | Skip cursor below | global |
<leader>mn | n v x | Add cursor by match (next) | global |
<leader>mp | n v x | Add cursor by match (prev) | global |
<leader>ms | n v x | Skip cursor by match (next) | global |
<leader>mS | n v x | Skip cursor by match (prev) | global |
<leader>nJ | n | Custom Date Journal | global |
<leader>nj | n | Today’s Journal | global |
<leader>noi | n | Open Index | global |
<leader>non | n | New Note | global |
<leader>nor | n | Return to Workspace | global |
<leader>now | n | Select Workspace | global |
<leader>nt | n | Tomorrow’s Journal | global |
<leader>ny | n | Yesterday’s Journal | global |
<leader>pe | n | Patterns explain | global |
<leader>RA | n | Task Action | global |
<leader>rb | n | Extract Block | global |
<leader>rB | n | Extract Block to File | global |
<leader>re | v x | Extract Function | global |
<leader>rE | v x | Extract Function to File | global |
<leader>rI | n | Inline Function | global |
<leader>ri | n | Inline Variable | global |
<leader>Rl | n | Restart Last Task | global |
<leader>Ro | n | Open Output | global |
<leader>RR | n | Run Task | global |
<leader>Rs | n | Run Shell Command | global |
<leader>rv | v x | Extract Variable | global |
<leader>SS | n | Stop Persistence | global |
<leader>ta | n | Attach | global |
<leader>tf | n | Run (Next Failed) | global |
<leader>th | n | Output | global |
<leader>tl | n | Run (Last) | global |
<leader>tR | n | Run (File) | global |
<leader>tr | n | Run (Nearest Test) | global |
<leader>ts | n | Stop | global |
" | i | Closeopen action for ‘“”’ pair | global |
' | i | Closeopen action for “‘’” pair | global |
( | i | Open action for “()” pair | global |
) | i | Close action for “()” pair | global |
<BS> | i | MiniPairs <BS> | global |
<C-LeftDrag> | n | Drag cursor with mouse | global |
<C-LeftMouse> | n | Add cursor with mouse | global |
<C-LeftRelease> | n | Release mouse cursor | global |
<CR> | i | MiniPairs <CR> | global |
<M-h> | v x | Move left | global |
<M-h> | n | Move line left | global |
<M-i> | v x | Shrink syntax selection | global |
<M-j> | v x | Move down | global |
<M-j> | n | Move line down | global |
<M-k> | n | Move line up | global |
<M-k> | v x | Move up | global |
<M-l> | n | Move line right | global |
<M-l> | v x | Move right | global |
<M-o> | n v x | Expand syntax selection | global |
<Plug>(nvim-dir-open) | n | Open directory entry | global |
<Plug>(nvim-dir-reload) | n | Reload directory | global |
<Plug>(nvim-dir-up) | n | Open parent directory | global |
<Plug>(nvim-zip-extract) | n | Extract zip archive entry | global |
<Plug>(resolve-base) | n | Choose base (Resolve) | global |
<Plug>(resolve-both) | n | Choose both (Resolve) | global |
<Plug>(resolve-both-reverse) | n | Choose both (reverse) (Resolve) | global |
<Plug>(resolve-list) | n | List conflicts (Resolve) | global |
<Plug>(resolve-next) | n | Next conflict (Resolve) | global |
<Plug>(resolve-none) | n | Choose none (Resolve) | global |
<Plug>(resolve-ours) | n | Choose ours (Resolve) | global |
<Plug>(resolve-prev) | n | Previous conflict (Resolve) | global |
<Plug>(resolve-theirs) | n | Choose theirs (Resolve) | global |
<S-CR> | c | Redirect Cmdline to Popup | global |
=p | n | Put after applying a filter | global |
=P | n | Put before applying a filter | global |
[ | i | Open action for “[]” pair | global |
[ | n | Add empty line above cursor | global |
[<C-L> | n | :lpfile | global |
[<C-Q> | n | :cpfile | global |
[<C-T> | n | :ptprevious | global |
[[ | n | Previous Reference | global |
[a | n | :previous | global |
[A | n | :rewind | global |
[f | n | File backward | global |
[F | n | File first | global |
[l | n | Location backward | global |
[L | n | Location first | global |
[n | n | Previous Failed Test | global |
[n | v x | Select previous node | global |
[N | v x | Select previous sibling node | global |
[o | n | Oldfile backward | global |
[O | n | Oldfile first | global |
[Q | n | :crewind | global |
[q | n | Previous quickfix item | global |
[t | n v x o | Treesitter backward | global |
[T | n v x o | Treesitter first | global |
[u | n | Undo backward | global |
[U | n | Undo first | global |
[x | n v x o | Conflict backward | global |
[X | n v x o | Conflict first | global |
] | i | Close action for “[]” pair | global |
] | n | Add empty line below cursor | global |
]<C-L> | n | :lnfile | global |
]<C-Q> | n | :cnfile | global |
]<C-T> | n | :ptnext | global |
]] | n | Next Reference | global |
]A | n | :last | global |
]a | n | :next | global |
]f | n | File forward | global |
]F | n | File last | global |
]l | n | Location forward | global |
]L | n | Location last | global |
]n | n | Next Failed Test | global |
]n | v x | Select next node | global |
]N | v x | Select next sibling node | global |
]o | n | Oldfile forward | global |
]O | n | Oldfile last | global |
]Q | n | :clast | global |
]q | n | Next quickfix item | global |
]t | n v x o | Treesitter forward | global |
]T | n v x o | Treesitter last | global |
]u | n | Undo forward | global |
]U | n | Undo last | global |
]x | n v x o | Conflict forward | global |
]X | n v x o | Conflict last | global |
| ``` | i | Closeopen action for “``” pair | global |
a | v x o | Around textobject | global |
ai | v x o | Object scope with border | global |
al | v x o | Around last textobject | global |
an | v x o | Around next textobject | global |
g[ | n v x o | Move to left “around” | global |
g] | n v x o | Move to right “around” | global |
ga | n v x | Align | global |
gA | n v x | Align with preview | global |
gl | n v x o | Flash Line | global |
gO | n | vim.lsp.buf.document_symbol() | global |
gra | n v x | vim.lsp.buf.code_action() | global |
grx | n | vim.lsp.codelens.run() | global |
gsn | n | Update n_lines | global |
gy | v x s | Copy to system clipboard | global |
i | v x o | Inside textobject | global |
ii | v x o | Object scope | global |
il | v x o | Inside last textobject | global |
in | v x o | Inside next textobject | global |
r | o | Remote Flash | global |
{ | i | Open action for “{}” pair | global |
} | i | Close action for “{}” pair | global |
gx | n | Tree-sitter based link opener from markview.nvim. | markdown buffer |
Language Tooling Workflows
Khanelivim splits editing workflows into two namespaces:
<leader>lfor generic LSP and diagnostics actions<leader>zfor language-specific tooling in the current buffer
Generic LSP Workflow
Common actions live under <leader>l:
<leader>lTshows:ToolingInfofor the current buffer<leader>lIruns:checkhealth vim.lsp<leader>lXruns:lsp restart<leader>l[/<leader>l]jump between diagnostics<leader>lHopens the diagnostic float<leader>la,<leader>lr,<leader>ld,<leader>li,<leader>ltcover the usual code-action, rename, definition, implementation, and type-definition flow<leader>lq,<leader>le,<leader>lE,<leader>lW, and<leader>lQsurface diagnostics in loclists, quickfix, or workspace requests
Neovim’s built-in motions are still available too, such as gd, grr, gri,
K, and gx.
Language Namespaces
Language-specific actions live under <leader>z and are buffer-local.
Examples:
- TypeScript: organize imports, fix all, add missing imports, source definition, tsserver logs
- Rust: runnables, debuggables, crate graph, cargo, rust-analyzer logs, macro
expansion, RustOwl visualization with
<leader>zw - Python: virtual environment selection, cached env activation, venv logs, nearest/file/last test, DAP-backed test debugging
- .NET: build, run, debug, test runner, watch, diagnostics, outdated packages
This keeps the <leader>l group stable across languages while still making
language-specific power features easy to reach.
Workspace Tool Ownership
Web tooling is workspace-aware:
- Formatting owner:
biome.json/biome.jsonc-> Biome- Prettier config /
package.json#prettier-> Prettier - otherwise -> fallback order, currently
biomethenprettierdfor JS/TS
- Diagnostics owner:
- Biome config -> Biome
- ESLint config /
package.json#eslintConfig-> ESLint - otherwise -> no explicit JS/TS diagnostics owner
Use :WebToolingInfo to inspect the current workspace’s detected formatter and
diagnostics owners.
Inspectors and Toggles
Use these when troubleshooting editor behavior:
:ToolingInfoor<leader>lTfor current buffer roots, clients, diagnostic state, and formatter details:WebToolingInfofor web-specific tool ownership<leader>ueIto toggle diagnostics while typing<leader>uevto toggle diagnostic virtual lines<leader>ueCto toggle code lens<leader>uecto toggle document colors<leader>ueSto toggle semantic tokens
Selecting Profiles
Khanelivim exposes multiple presets through the khanelivim.profile module
option.
The default flake package is a separate layer from that module option. nix run
and nix build use the package built from mkNixvimConfig, and that function
currently defaults to the standard profile.
What This Means
nix runandnix builduse the default flake package, which currently evaluates thestandardprofile.- Changing the option default in
modules/khanelivim/options/profiles.nixchanges the module fallback, but it does not change the flake’s default package by itself. - To select a different profile, build or evaluate through
khanelivim.lib.mkNixvimPackageorkhanelivim.lib.mkNixvimConfigand passprofile = "...".
Available profiles:
minimal- rescue and smoke-test profile. Native UI/LSP with the smallest plugin surface. Use this when debugging breakage, testing native Neovim behavior, or working where startup cost and moving parts matter most.basic- comfortable remote editor. Native core plus treesitter, picker, statusline, key hints, file navigation, git signs, motion, and small editing comforts. Use this for SSH, containers, and daily-lite sessions.standard- conservative daily workstation. Current workflow-rich defaults stay intact because this is the khanelinix daily driver. Use this for normal development until standard pruning gets a dedicated pass.full- lab profile. Every optional and overlapping workflow remains enabled: alternate providers, experiments, account-backed tools, demos, and rarely used workflows. There is intentionally nofullblock inprofiles.nix.debug- incident profile.fullbehavior with performance optimizations disabled and debug logging enabled.
See the Profile Matrix page for the evaluated differences between them.
Plugin Posture
Profiles are meant to answer “why would I reach for this?”, not only “how many plugins are enabled?”
- Basic editor experience: treesitter, small
mini.*editing helpers, comments, statusline, keybinding help, picker, file manager, motion, and git signs. - Workflow layer: completion engine, formatter/linter orchestration, diagnostics browser, LSP navigation UI, project search, sessions, clipboard history, task runner, debugger, tests, and richer git/JJ tools.
- Specialized workstation layer: language-specific IDE plugins, refactoring, generated docs, framework helpers, and project-local environment integration.
- Fluff or visual nicety: dashboards, bufferline, animations, richer command UI, color previews, status decorations, screenshots, map views, and teaching overlays.
- Full-only experiments: duplicate providers, alternate AI clients, note systems, coding challenge tools, REPL integrations, browser integrations, broad test adapter sets, and rarely used markdown/documentation viewers.
Local Example
Build and run the debug profile from a local checkout:
nix build --impure --expr '
let
f = builtins.getFlake (toString ./.);
in
f.lib.mkNixvimPackage {
system = builtins.currentSystem;
profile = "debug";
}'
./result/bin/nvim
Home Manager Example
Use a specific profile when adding khanelivim to home.packages:
{
home.packages = [
(let
debugConfig = khanelivim.lib.mkNixvimConfig {
system = pkgs.system;
profile = "debug";
};
in
debugConfig.config.build.package)
];
}
Options Reference
- AI
- Completion
- Dashboard
- Debugging
- Documentation
- Editor
- GIT
- Integrations
- Jj
- Loading
- LSP
- Performance
- Picker
- Profile
- Tasks
- Text
- UI
- Utilities
AI
chatEnable
Whether to enable AI chat functionality.
Type: boolean
Default:
true
Example:
true
Declared by:
duetEnable
Predict the next edit with a local model through minuet’s duet module.
Needs “minuet” in khanelivim.ai.plugins. Upstream calls duet experimental, so this stays off until a user opts in.
Duet rewrites a region through a chat endpoint. Completion at the cursor uses a separate provider and a separate model.
Type: boolean
Default:
false
Example:
true
Declared by:
localEndpoint
OpenAI-compatible base URL for locally served models.
The default points at a proxy on this machine, so the flake works on its own. A host that runs the model elsewhere, or on another port, sets this once and every plugin that reads it follows. minuet names ollama directly, because it needs a fill-in-the-middle endpoint the proxy does not serve.
Type: string
Default:
"http://127.0.0.1:8090/v1"
Example:
"http://gpu-host.lan:8090/v1"
Declared by:
plugins
List of AI plugins to enable. Multiple plugins can be enabled simultaneously. Set to [] to disable all AI features.
Disabling khanelivim.integrations.accountBacked.ai keeps only the plugins that serve completions from a local endpoint.
Available plugins:
- avante: Claude AI interface with inline editing
- claudecode: Claude Code integration
- codecompanion: Gemini-based AI assistant
- codex: OpenAI Codex integration
- copilot: GitHub Copilot (includes chat)
- copilot-lsp: GitHub Copilot LSP integration
- minuet: Local completion at the cursor, served by ollama
- opencode: OpenCode AI assistant with snacks integration
- sidekick: Multi-provider AI suggestion system (Claude, Copilot, Gemini, Opencode)
- windsurf: Codeium Windsurf integration
Type: list of (one of “avante”, “claudecode”, “codecompanion”, “codex”, “copilot”, “copilot-lsp”, “gemini”, “minuet”, “opencode”, “sidekick”, “windsurf”)
Default:
[
"claudecode"
"copilot"
"copilot-lsp"
"codex"
"gemini"
"opencode"
"sidekick"
]
Declared by:
Completion
tool
Completion tool to use
Type: null or one of “blink”, “native”
Default:
"blink"
Declared by:
wordProvider
Word completion provider (dictionary for synonyms, words for offline word completion)
Type: null or one of “dictionary”, “words”
Default:
"words"
Declared by:
Dashboard
tool
Dashboard tool to use
Type: null or one of “snacks”, “mini-starter”
Default:
"mini-starter"
Declared by:
Debugging
adapters
Debug adapter plugins (work together)
Type: list of (one of “dap”, “dap-virtual-text”, “debugprint”)
Default:
[
"dap"
"dap-virtual-text"
"debugprint"
]
Declared by:
ui
Debug UI plugin (mutually exclusive)
Type: null or one of “dap-ui”, “dap-view”
Default:
"dap-ui"
Declared by:
Documentation
viewers
Documentation viewing plugins (can coexist)
Type: list of (one of “devdocs”, “helpview”, “glow”)
Default:
[
"helpview"
"glow"
"devdocs"
]
Declared by:
Editor
autopairs
Auto-pairing plugin to use
Type: null or one of “blink-pairs”, “mini-pairs”
Default:
"mini-pairs"
Declared by:
fileManager
File manager plugin to use
Type: null or one of “neo-tree”, “yazi”, “mini-files”
Default:
"yazi"
Declared by:
httpClient
HTTP client plugin to use
Type: null or one of “rest”, “kulala”
Default:
"kulala"
Declared by:
motion
Motion/jump plugin to use
Type: null or one of “flash”, “hop”
Default:
"flash"
Declared by:
movement
Plugin for moving text and selections in any direction
Type: null or value “mini-move” (singular enum)
Default:
"mini-move"
Declared by:
rename
Rename plugin to use
Type: null or value “inc-rename” (singular enum)
Default:
"inc-rename"
Declared by:
search
Search and replace plugin to use
Type: null or value “grug-far” (singular enum)
Default:
"grug-far"
Declared by:
snippet
Snippet engine to use
Type: null or one of “luasnip”, “mini-snippets”
Default:
null
Declared by:
textObjects
Text objects plugins to use (complementary)
Type: list of (one of “mini-ai”, “snacks-scope”, “treesitter-textobjects”)
Default:
[
"mini-ai"
"snacks-scope"
"treesitter-textobjects"
]
Declared by:
GIT
diffViewer
Diff viewer plugin to use
Type: null or one of “codediff”, “diffview”, “hunk”, “mini-diff”, “unified”
Default:
"codediff"
Declared by:
integrations
Git integration plugins to enable (complementary)
Type: list of (one of “codediff”, “git-conflict”, “git-worktree”, “gitsigns”, “guh”, “hunk”, “native-difftool”, “octo”, “resolve”, “snacks-gh”, “snacks-gitbrowse”, “snacks-lazygit”, “unified”)
Default:
[
"gitsigns"
"guh"
"snacks-gh"
"snacks-gitbrowse"
"snacks-lazygit"
"git-worktree"
"resolve"
"unified"
]
Declared by:
Integrations
accountBacked.enable
Master gate for integrations that require an account, login, token, or API key.
When disabled, all account-backed categories are forced off regardless of their individual settings.
Type: boolean
Default:
true
Example:
true
Declared by:
accountBacked.ai.enable
Whether to enable account-backed AI integrations.
Type: boolean
Default:
true
Example:
true
Declared by:
accountBacked.timeTracking.enable
Whether to enable account-backed time tracking integrations.
Type: boolean
Default:
true
Example:
true
Declared by:
Jj
integrations
Jujutsu integration plugins to enable.
Type: list of (one of “jj”, “jjsigns”)
Default:
[
"jj"
"jjsigns"
]
Declared by:
Loading
strategy
Plugin loading strategy
Type: one of “lazy”, “eager”
Default:
"lazy"
Declared by:
LSP
cpp
Which C/C++ LSP to enable (mutually exclusive).
Type: null or one of “clangd”, “ccls”
Default:
"clangd"
Declared by:
csharp
Which C# LSP to enable (mutually exclusive).
Type: null or one of “roslyn”, “roslyn_ls”
Default:
"roslyn"
Declared by:
diagnosticsViewer
LSP diagnostics viewer to use.
Type: one of “native”, “trouble”
Default:
"trouble"
Declared by:
docker
Which Docker LSPs to enable.
Type: list of (one of “dockerls”, “docker-language-server”)
Default:
[
"dockerls"
"docker-language-server"
]
Declared by:
java
Which Java LSP implementation to use.
Type: null or one of “nvim-jdtls”, “nvim-java”, “java-language-server”
Default:
"nvim-java"
Declared by:
lua
Which Lua LSP to enable (mutually exclusive).
Type: null or one of “lua-ls”, “emmylua-ls”
Default:
"emmylua-ls"
Declared by:
navigation
LSP navigation UI to use.
Type: one of “glance”, “native”, “picker”
Default:
"glance"
Declared by:
nix
Which Nix LSP to enable (mutually exclusive).
Type: null or one of “nixd”, “nil-ls”
Default:
"nixd"
Declared by:
python.linters
Python linters and formatters to enable alongside the type checker.
Type: list of value “ruff” (singular enum)
Default:
[
"ruff"
]
Declared by:
python.typeChecker
Which Python type checker to use (mutually exclusive).
Type: null or one of “pyright”, “pylsp”, “basedpyright”
Default:
"basedpyright"
Declared by:
rust
Which Rust LSP integration to use (direct rust-analyzer or rustaceanvim).
Type: null or one of “rust-analyzer”, “rustaceanvim”
Default:
"rustaceanvim"
Declared by:
typescript
Which TypeScript/JavaScript LSP integration to use.
Type: null or one of “typescript-tools”, “ts_ls”, “tsgo”
Default:
"typescript-tools"
Declared by:
Performance
disabledPlugins
Built-in Neovim plugins to disable for faster startup
Type: list of string
Default:
[
"gzip"
"matchit"
"matchparen"
"rplugin"
"tarPlugin"
"tohtml"
"tutor"
"zipPlugin"
]
Declared by:
optimizeEnable
Whether to enable nixvim performance optimizations (byte compilation, plugin combining).
Type: boolean
Default:
true
Example:
true
Declared by:
optimizer
Performance optimization strategies for large files (can use multiple)
Type: null or (list of (one of “faster”, “snacks”))
Default:
[
"faster"
]
Declared by:
treesitter.excludedGrammars
List of treesitter grammars to exclude from the installation to save space.
Type: list of string
Default:
[
"tree-sitter-agda"
"tree-sitter-apex"
"tree-sitter-arduino"
"tree-sitter-blade"
"tree-sitter-c3"
"tree-sitter-cuda"
"tree-sitter-d"
"tree-sitter-elixir"
"tree-sitter-fortran"
"tree-sitter-gnuplot"
"tree-sitter-hack"
"tree-sitter-haskell"
"tree-sitter-hlsl"
"tree-sitter-hoon"
"tree-sitter-idris"
"tree-sitter-ispc"
"tree-sitter-julia"
"tree-sitter-kotlin"
"tree-sitter-koto"
"tree-sitter-latex"
"tree-sitter-lean"
"tree-sitter-nim"
"tree-sitter-ocaml"
"tree-sitter-ocaml_interface"
"tree-sitter-odin"
"tree-sitter-perl"
"tree-sitter-purescript"
"tree-sitter-qmljs"
"tree-sitter-razor"
"tree-sitter-ruby"
"tree-sitter-scala"
"tree-sitter-slang"
"tree-sitter-systemverilog"
"tree-sitter-tlaplus"
"tree-sitter-unison"
"tree-sitter-v"
"tree-sitter-verilog"
"tree-sitter-vhdl"
]
Declared by:
treesitter.includedGrammars
List of treesitter grammars to explicitly include when whitelistMode is enabled.
Type: list of string
Default:
[
"tree-sitter-angular"
"tree-sitter-bash"
"tree-sitter-c"
"tree-sitter-css"
"tree-sitter-diff"
"tree-sitter-dockerfile"
"tree-sitter-git_config"
"tree-sitter-git_rebase"
"tree-sitter-gitattributes"
"tree-sitter-gitcommit"
"tree-sitter-gitignore"
"tree-sitter-go"
"tree-sitter-gomod"
"tree-sitter-gosum"
"tree-sitter-helm"
"tree-sitter-html"
"tree-sitter-http"
"tree-sitter-ini"
"tree-sitter-java"
"tree-sitter-javascript"
"tree-sitter-json"
"tree-sitter-just"
"tree-sitter-kdl"
"tree-sitter-lua"
"tree-sitter-make"
"tree-sitter-markdown"
"tree-sitter-markdown_inline"
"tree-sitter-mermaid"
"tree-sitter-nginx"
"tree-sitter-nix"
"tree-sitter-php"
"tree-sitter-python"
"tree-sitter-query"
"tree-sitter-regex"
"tree-sitter-rust"
"tree-sitter-scss"
"tree-sitter-terraform"
"tree-sitter-toml"
"tree-sitter-tsx"
"tree-sitter-typescript"
"tree-sitter-vim"
"tree-sitter-vimdoc"
"tree-sitter-xml"
"tree-sitter-yaml"
]
Declared by:
treesitter.whitelistMode
Whether to enable whitelist mode for treesitter grammars (only install specified grammars).
Type: boolean
Default:
false
Example:
true
Declared by:
Picker
tool
Fuzzy finder/picker tool to use
Type: null or one of “snacks”, “fzf”
Default:
"snacks"
Declared by:
Profile
khanelivim.profile
Configuration profile preset.
- minimal: rescue and smoke-test profile with native UI/LSP and the smallest plugin surface.
- basic: comfortable remote editor with native core, treesitter, picker, statusline, key hints, file, and git basics.
- standard: conservative daily workstation profile with current workflow-rich defaults preserved.
- full: lab profile with every optional and overlapping workflow enabled. Applies no overrides: every khanelivim option keeps its declared default, which is the everything-enabled setup the other profiles trim down from.
- debug: incident profile with full behavior, performance optimizations disabled, and debug logging enabled.
Type: one of “minimal”, “basic”, “standard”, “full”, “debug”
Default:
"standard"
Declared by:
Tasks
tool
Task runner tool to use
Type: null or one of “overseer”, “vs-tasks”
Default:
"overseer"
Declared by:
Text
comments
Text commenting plugins to use (can complement each other)
Type: list of (one of “comment-box”, “ts-comments”)
Default:
[
"comment-box"
"ts-comments"
]
Declared by:
markdownRendering
Markdown rendering and preview plugins (can coexist)
Type: list of (one of “markview”, “markdown-preview”)
Default:
[
"markview"
"markdown-preview"
]
Declared by:
operators
Text edit operators (exchange, replace, multiply, etc.)
Type: list of value “mini-operators” (singular enum)
Default:
[
"mini-operators"
]
Declared by:
patterns
Text pattern highlighting plugins (can work together)
Type: list of (one of “todo-comments”, “mini-hipatterns”, “markview”)
Default:
[
"todo-comments"
"mini-hipatterns"
]
Declared by:
splitJoin
Plugin for splitting and joining arguments/arrays/objects
Type: null or value “mini-splitjoin” (singular enum)
Default:
"mini-splitjoin"
Declared by:
whitespace
Trailing whitespace highlighting and removal plugin (mutually exclusive)
Type: null or value “mini-trailspace” (singular enum)
Default:
"mini-trailspace"
Declared by:
UI
animations
Animation plugin for UI transitions (mutually exclusive)
Type: null or one of “snacks”, “mini-animate”
Default:
"snacks"
Declared by:
bufferDelete
Buffer deletion strategy (mutually exclusive)
Type: null or one of “mini-bufremove”, “snacks”
Default:
"snacks"
Declared by:
bufferline
Bufferline/tabline plugin to use
Type: null or value “bufferline” (singular enum)
Default:
"bufferline"
Declared by:
commandline
Command line UI enhancement to use
Type: null or one of “noice”, “ui2”
Default:
"noice"
Declared by:
indentGuides
Indent guides plugin to use (mutually exclusive)
Type: null or one of “blink-indent”, “mini-indentscope”, “snacks”
Default:
"blink-indent"
Declared by:
keybindingHelp
Keybinding help/hints plugin to use (mutually exclusive)
Type: null or one of “which-key”, “mini-clue”
Default:
"which-key"
Declared by:
notifications
Notification system to use (mutually exclusive)
Type: one of “mini-notify”, “native”, “noice”, “snacks”
Default:
"noice"
Declared by:
referenceHighlighting
LSP reference/word highlighting plugin to use (mutually exclusive)
Type: null or one of “snacks-words”, “mini-cursorword”
Default:
"snacks-words"
Declared by:
renamePopup
Rename popup UI provider to use
Type: null or one of “snacks”, “noice”
Default:
"snacks"
Declared by:
signatureHelp
LSP signature help UI provider to use (mutually exclusive)
Type: null or one of “blink”, “noice”, “lsp-signature”
Default:
"blink"
Declared by:
statusColumn
Status column plugin to use (mutually exclusive)
Type: null or value “snacks” (singular enum)
Default:
"snacks"
Declared by:
statusline
Statusline plugin to use
Type: null or value “lualine” (singular enum)
Default:
"lualine"
Declared by:
terminal
Terminal emulator plugins to use (can have multiple)
Type: list of value “snacks” (singular enum)
Default:
[
"snacks"
]
Declared by:
theme
Colorscheme/theme to use
Type: one of “catppuccin”, “nord”, “tokyonight”
Default:
"catppuccin"
Declared by:
zenMode
Zen/centered editing mode plugin to use (mutually exclusive)
Type: null or value “snacks” (singular enum)
Default:
"snacks"
Declared by:
Utilities
clipboard
Clipboard enhancement plugins (complementary)
Type: list of (one of “img-clip”, “yanky”)
Default:
[
"yanky"
"img-clip"
]
Declared by:
screenshots
Code screenshot plugins for sharing
Type: list of value “codesnap” (singular enum)
Default:
[
"codesnap"
]
Declared by:
sessions
Session management plugins (can complement each other)
Type: list of (one of “persistence”, “mini-sessions”)
Default:
[
"persistence"
]
Declared by:
undoTree
Undo tree provider to use
Type: null or one of “native”, “plugin”
Default:
"plugin"
Declared by:
Profile Matrix
This page is generated from evaluated khanelivim.profile configs via mkNixvimConfig.
full currently reflects the raw component defaults from the option modules.
debug follows the full/default surface and adds debug-focused overrides.
Core
| Setting | minimal | basic | standard | full | debug |
|---|---|---|---|---|---|
| Description | Rescue and smoke-test profile with native UI/LSP and the smallest plugin surface. | Comfortable remote editor with native core, treesitter, picker, statusline, key hints, file, and git basics. | Conservative daily workstation profile with current workflow-rich defaults preserved. | Lab profile with every optional and overlapping workflow enabled. | Incident profile with full behavior, performance optimizations disabled, and debug logging enabled. |
| Treesitter whitelist | true | false | false | false | false |
| Optimize enable | true | true | true | true | false |
| Optimizer | none | none | faster | faster | none |
| AI plugins | none | none | sidekickcopilotcopilot-lsp | claudecodecopilotcopilot-lspcodexgeminiopencodesidekick | claudecodecopilotcopilot-lspcodexgeminiopencodesidekick |
| Dashboard | none | none | mini-starter | mini-starter | mini-starter |
| Docs viewers | none | none | helpview | helpviewglowdevdocs | helpviewglowdevdocs |
Developer Workflow
| Setting | minimal | basic | standard | full | debug |
|---|---|---|---|---|---|
| Debug adapters | none | none | dapdebugprint | dapdap-virtual-textdebugprint | dapdap-virtual-textdebugprint |
| Debug UI | none | none | dap-view | dap-ui | dap-ui |
| Diff viewer | none | none | codediff | codediff | codediff |
| Git integrations | native-difftool | gitsignsnative-difftool | gitsignsresolvegit-worktreeguhhunknative-difftooloctosnacks-ghsnacks-gitbrowsesnacks-lazygit | gitsignsguhsnacks-ghsnacks-gitbrowsesnacks-lazygitgit-worktreeresolveunified | gitsignsguhsnacks-ghsnacks-gitbrowsesnacks-lazygitgit-worktreeresolveunified |
| Picker | none | snacks | snacks | snacks | snacks |
| File manager | none | yazi | yazi | yazi | yazi |
| HTTP client | none | none | none | kulala | kulala |
| Motion | none | flash | flash | flash | flash |
| Rename | none | none | inc-rename | inc-rename | inc-rename |
| Search | none | none | grug-far | grug-far | grug-far |
| Text objects | none | mini-ai | mini-ai | mini-aisnacks-scopetreesitter-textobjects | mini-aisnacks-scopetreesitter-textobjects |
Text
| Setting | minimal | basic | standard | full | debug |
|---|---|---|---|---|---|
| Comments | none | ts-comments | ts-comments | comment-boxts-comments | comment-boxts-comments |
| Markdown rendering | none | none | markview | markviewmarkdown-preview | markviewmarkdown-preview |
| Patterns | none | none | todo-comments | todo-commentsmini-hipatterns | todo-commentsmini-hipatterns |
| Split/join | none | none | mini-splitjoin | mini-splitjoin | mini-splitjoin |
| Whitespace | none | none | mini-trailspace | mini-trailspace | mini-trailspace |
UI
| Setting | minimal | basic | standard | full | debug |
|---|---|---|---|---|---|
| Animations | none | none | snacks | snacks | snacks |
| Bufferline | none | none | bufferline | bufferline | bufferline |
| Commandline | ui2 | ui2 | noice | noice | noice |
| Indent guides | none | none | blink-indent | blink-indent | blink-indent |
| Keybinding help | none | which-key | which-key | which-key | which-key |
| Notifications | native | native | noice | noice | noice |
| Rename popup | none | none | snacks | snacks | snacks |
| Signature help | none | none | blink | blink | blink |
| Status column | none | none | snacks | snacks | snacks |
| Statusline | none | lualine | lualine | lualine | lualine |
| Terminal | none | none | snacks | snacks | snacks |
Utilities
| Setting | minimal | basic | standard | full | debug |
|---|---|---|---|---|---|
| Clipboard | none | none | yanky | yankyimg-clip | yankyimg-clip |
| Screenshots | none | none | codesnap | codesnap | codesnap |
| Sessions | none | none | persistence | persistence | persistence |
Docs Pipeline
This site is built directly from the flake and the profile evaluation logic.
Pipeline Steps
- Evaluate the
khanelivim.*option tree withmkNixvimConfig. - Generate markdown for the
khanelivimoptions reference. - Split the options reference into pages by the level below
khanelivim. - Evaluate each
khanelivim.profilewithmkNixvimConfig. - Serialize the curated profile data to JSON.
- Render the JSON into
profiles.md. - Build an mdBook site as
docs-html.
Commands
nix build .#docs-html
nix run .#docs
Binary Cache
The build runs the standard profile headless to collect keymaps, so building
the docs locally needs the whole default package. CI builds docs-html on
x86_64-linux and aarch64-darwin and pushes it to the khanelivim Cachix
cache. Pull requests from forks are built but not pushed. On those two systems,
with the cache enabled, Nix substitutes the generated site for a pushed revision
instead of building the editor. On other systems, and for revisions CI has not
pushed, nix run .#docs still builds everything locally.
Published Site
Every push to main deploys the docs-html output from the Linux CI build to
GitHub Pages at https://khaneliman.github.io/khanelivim/. The published site
always tracks main. For the docs of a pinned revision, use nix run .#docs
from that revision or install the docs package.
Notes
- The option reference covers the
khanelivim.*surface. It does not attempt to duplicate the entire upstreamplugins.*universe from Nixvim. - The profile matrix is intentionally curated. It documents the workflow surface you actually care about instead of dumping every option.
fullcurrently reflects the raw component defaults from the option modules.debugfollows the full/default surface and layers debug-focused overrides on top.