Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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 Flake explains the supported ways to run the default package, install it from Home Manager, or build a customized package through the flake lib helpers.
  • Customizing Khanelivim explains the intended override layers: khanelivim.*, then plugins.*, then extraConfigLua.
  • Development Workflow documents the repo-facing shell, checks, plugin generator, docs build, and profiling commands.
  • Keymaps groups runtime-discovered mappings into UX-oriented pages like navigation, search, git, LSP, toggles, and language workflows.
  • Language Tooling Workflows explains the generic <leader>l and language-specific <leader>z runtime model, plus the workspace-aware web tooling ownership rules.
  • Selecting Profiles explains how the flake default is chosen and how to build a non-default profile.
  • Options Reference documents the khanelivim.* option surface from the evaluated module tree.
  • Profile Matrix shows the evaluated enablement for each profile.
  • Docs Pipeline explains 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:

  1. khanelivim.* options
  2. plugins.* overrides
  3. extraConfigLua

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:

  • nixvim for standard plugins that map cleanly to upstream Nixvim options
  • custom for plugins that need custom Lua or more complex setup
  • custom-lazy for plugins that should be lazy-loaded and need custom setup

After generating the module:

  1. configure the plugin in its module
  2. prefer khanelivim.* option wiring when exposing user-facing behavior
  3. test the result with nix build or nix 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.md for style, workflow, and commit guidance
  • AGENTS.md for 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

This page is generated from runtime keymap state.

KeyModesDescriptionContext
[jn oJump backwardglobal
[Jn oJump firstglobal
]jn oJump forwardglobal
]Jn oJump lastglobal
jn v x sMove cursor downglobal
kn v x sMove cursor upglobal
sn v x oFlashglobal
Sn v x oFlash Treesitterglobal
[[nJump to previous sectionmarkdown buffer
]]nJump to next sectionmarkdown buffer

Windows & Buffers

This page is generated from runtime keymap state.

KeyModesDescriptionContext
<leader>,nDown windowglobal
<leader>.nUp windowglobal
<leader>[nLeft windowglobal
<leader>]nRight windowglobal
<leader>b[nPrevious bufferglobal
<leader>b]nNext bufferglobal
<leader>bCnClose all buffersglobal
<leader>bcnClose all buffers but currentglobal
<leader>bpnPick Bufferglobal
<leader>bsdnSort By Directoryglobal
<leader>bsenSort By Extensionglobal
<leader>bsrnSort By Relative Directoryglobal
<leader>cHv x sSave Highlightglobal
<leader>csv x sSaveglobal
<leader>nnnNew Scratch Bufferglobal
<leader>nsnSelect Scratch Bufferglobal
<leader>QnForce quitglobal
<leader>qnQuitglobal
<leader>WnForce writeglobal
<leader>wnSaveglobal
-nHorizontal splitglobal
<C-C>nSwitch to alternate bufferglobal
<C-N>nNew fileglobal
<C-S>n v x s iSaveglobal
<C-W>nClose bufferglobal
<S-Tab>nPrevious bufferglobal
<S-Tab>v x sUnindent lineglobal
<S-Tab>ivim.snippet.jump if active, otherwise <S-Tab>global
<Tab>nGoto/Apply Next Edit Suggestionglobal
<Tab>v x sIndent lineglobal
<Tab>ivim.snippet.jump if active, otherwise <Tab>global
[bnBuffer backwardglobal
[BnBuffer firstglobal
[wnWindow backwardglobal
[WnWindow firstglobal
]bnBuffer forwardglobal
]BnBuffer lastglobal
]wnWindow forwardglobal
]WnWindow lastglobal
|nVertical splitglobal
gOnShow an Outline of the current buffermarkdown buffer

Search & Picking

This page is generated from runtime keymap state.

KeyModesDescriptionContext
<leader> nSmart Find Filesglobal
<leader>:nCommand Historyglobal
<leader>f'nFind marksglobal
<leader>f,nFind iconsglobal
<leader>f/nFuzzy find in current bufferglobal
<leader>f<CR>nResume findglobal
<leader>f?nFuzzy find in open buffersglobal
<leader>fanFind autocmdsglobal
<leader>fbnFind buffersglobal
<leader>fcnFind commandsglobal
<leader>fCnFind config filesglobal
<leader>fenFile Explorerglobal
<leader>ffnFind filesglobal
<leader>fFanFind asset filesglobal
<leader>fFAnFind files (All files)global
<leader>fFcnFind current directoryglobal
<leader>fFdnFind files in ~/.configglobal
<leader>fFfnFind flake filesglobal
<leader>fFhnFind files in home directoryglobal
<leader>fFinChange indexing directory interactivelyglobal
<leader>fFmnFind module filesglobal
<leader>fFonFind overlay filesglobal
<leader>fFpnFind package filesglobal
<leader>fFrnFind result filesglobal
<leader>fFsnFind shell filesglobal
<leader>fhnFind help tagsglobal
<leader>fHnFind Highlightsglobal
<leader>fjnFind jumpsglobal
<leader>fknFind keymapsglobal
<leader>fLnFind Neovim Logsglobal
<leader>fmnFind man pagesglobal
<leader>fnnFind notificationsglobal
<leader>fonFind old filesglobal
<leader>fOnFind Smart (Frecency)global
<leader>fpnFind projectsglobal
<leader>fqnFind quickfixglobal
<leader>frnFind registersglobal
<leader>fSnFind spelling suggestionsglobal
<leader>fsnRescan files in current directoryglobal
<leader>fTnFind themeglobal
<leader>ftnFind TODOsglobal
<leader>funUndo Historyglobal
<leader>fwnLive grepglobal
<leader>fWnLive grep (All files)global
<leader>fznFind Zoxideglobal
<leader>fZnSearch Historyglobal
<leader>nognGrep Notesglobal
<leader>nosnSearch Notesglobal
<leader>swn v xSearch Word (visual or cursor)global
#v x:help v_#-defaultglobal
&n:help &-defaultglobal
*v x:help v_star-defaultglobal
<C-L>n:help CTRL-L-defaultglobal
<C-U>i:help i_CTRL-U-defaultglobal
<C-W>i:help i_CTRL-W-defaultglobal
<Esc>nClear search highlightglobal
@v x:help v_@-defaultglobal
gsFnFind surrounding (left)global
gsfnFind surrounding (right)global
RoTreesitter Searchglobal

File Management

This page is generated from runtime keymap state.

KeyModesDescriptionContext
<leader>enYazi (current file)global
<leader>EnYazi (resume)global
gxn v xOpens filepath or URI under cursor with the system handler (file explorer, web browser, …)global

Git

This page is generated from runtime keymap state.

KeyModesDescriptionContext
<leader>fgnFind files in git repositoryglobal
<leader>gbbnBlame Lineglobal
<leader>gbcnShow at Cursorglobal
<leader>gbdnShow Diff Sourceglobal
<leader>gbfnBlame Fileglobal
<leader>gbrn v x s oRange Historyglobal
<leader>gc[nPrevglobal
<leader>gc]nNextglobal
<leader>gcbnChoose Baseglobal
<leader>gcBnChoose Bothglobal
<leader>gclnListglobal
<leader>gcnnChoose Noneglobal
<leader>gconChoose Oursglobal
<leader>gcrnRefreshglobal
<leader>gctnChoose Theirsglobal
<leader>gdcnClose diff modeglobal
<leader>gdCnClose diff mode (all windows)global
<leader>gddnAdd file to diffglobal
<leader>gdgnGitsigns Diff Thisglobal
<leader>gdGnGitsigns Diff This ~global
<leader>gdnnNative DiffToolglobal
<leader>gdVnVSCode Diff (-1)global
<leader>gdvnVSCode Diff (CodeDiff)global
<leader>gfanGit Log Fileglobal
<leader>gfbnGit Branchesglobal
<leader>gfcnGit Commitsglobal
<leader>gfdnGit Diff (Hunks)global
<leader>gfDnGit Worktree Deleteglobal
<leader>gffnGit Filesglobal
<leader>gfhnGit Stashesglobal
<leader>gfLnGit Log Lineglobal
<leader>gfsnGit Statusglobal
<leader>gfWnGit Worktree Createglobal
<leader>gfwnGit Worktreesglobal
<leader>gGnGitignore generateglobal
<leader>ggnOpen lazygitglobal
<leader>ghinPreview Hunk Inlineglobal
<leader>ghpn v x sPreview Hunkglobal
<leader>ghqnSet Quickfix Listglobal
<leader>ghQnSet Quickfix List Allglobal
<leader>ghrn v x sReset Hunkglobal
<leader>ghsn v x sStage Hunkglobal
<leader>ghun v x sUndo Stage Hunkglobal
<leader>gmnOpen file on main branchglobal
<leader>gMnOpen file on master branchglobal
<leader>gonOpen file in browserglobal
<leader>gOnOpen repository in browserglobal
<leader>gov x sOpen selection in browserglobal
<leader>grnRefresh git statusglobal
<leader>gRnReset Bufferglobal
<leader>gsnGit Status (CodeDiff)global
<leader>gSnStage Bufferglobal
<leader>gUnUnstage Bufferglobal
<leader>gvanActionsglobal
<leader>gvcnCheckout PRglobal
<leader>gvgnGuhglobal
<leader>gvInIssues (all)global
<leader>gvinIssues (open)global
<leader>gvnnNotificationsglobal
<leader>gvonOpen PRglobal
<leader>gvPnPull Requests (all)global
<leader>gvpnPull Requests (open)global
<leader>gvRnResume Reviewglobal
<leader>gvrnStart Reviewglobal
<leader>gvsnSearchglobal
<Plug>(resolve-diff-both)nShow diff both (Resolve)global
<Plug>(resolve-diff-ours)nShow diff ours (Resolve)global
<Plug>(resolve-diff-theirs)nShow diff theirs (Resolve)global
<Plug>(resolve-diff-vs)nShow diff ours vs theirs (Resolve)global
<Plug>(resolve-diff-vs-reverse)nShow diff theirs vs ours (Resolve)global
[cnPrevious Hunkglobal
]cnNext Hunkglobal
ihv x oSelect Hunkglobal

LSP & Navigation

This page is generated from runtime keymap state.

KeyModesDescriptionContext
<leader>LnLeet codeglobal
<leader>lAnGenerate Annotationglobal
<leader>lcn v x sFastaction code actionglobal
<leader>ldnGlance definitionglobal
<leader>lDnGlance referenceglobal
<leader>lfn v x s oFormat bufferglobal
<leader>linGlance implementationglobal
<leader>lllnLazyDev lspglobal
<leader>lRnRename Fileglobal
<leader>ltnGlance type definitionglobal
<leader>lTnTooling infoglobal
<leader>lwnTrim trailing whitespaceglobal
<leader>lwlnTrim trailing empty linesglobal
<leader>phnPatterns hoverglobal
<leader>rwv x sRename selection in bufferglobal
<leader>rwnRename word in bufferglobal
<leader>rWnRename word in projectglobal
gRnStart IncRenameglobal
grinvim.lsp.buf.implementation()global
grnnRename Symbolglobal
grrnvim.lsp.buf.references()global
grtnvim.lsp.buf.type_definition()global
Kv x sHover documentationglobal
<leader>lanLsp buf code_actionlua buffer
<leader>lInLSP infolua buffer
<leader>lXnRestart LSPlua buffer
granCode Actionlua buffer
Knvim.lsp.buf.hover()lua buffer
<leader>lanLsp buf code_actionmarkdown buffer
<leader>lInLSP infomarkdown buffer
<leader>lXnRestart LSPmarkdown buffer
granCode Actionmarkdown buffer
Knvim.lsp.buf.hover()markdown buffer
<leader>lanLsp buf code_actionnix buffer
<leader>lInLSP infonix buffer
<leader>lXnRestart LSPnix buffer
granCode Actionnix buffer
Knvim.lsp.buf.hover()nix buffer
<leader>lanLsp buf code_actionpython buffer
<leader>lInLSP infopython buffer
<leader>lXnRestart LSPpython buffer
granCode Actionpython buffer
Knvim.lsp.buf.hover()python buffer
<leader>lanLsp buf code_actionrust buffer
<leader>lInLSP inforust buffer
<leader>lXnRestart LSPrust buffer
granCode Actionrust buffer
Knvim.lsp.buf.hover()rust buffer

Diagnostics & Debugging

This page is generated from runtime keymap state.

KeyModesDescriptionContext
<leader>dcnContinue Debugging (Start)global
<leader>dCnRun to cursorglobal
<leader>dgnGo to line (no execute)global
<leader>dinStep Intoglobal
<leader>djnDownglobal
<leader>dknUpglobal
<leader>dLnnlua Launchglobal
<leader>dlnRun Lastglobal
<leader>dnnDebug (Last)global
<leader>dOnStep Outglobal
<leader>donStep Overglobal
<leader>dpnPauseglobal
<leader>dPnProfile Current Lineglobal
<leader>dRnRestart Debuggingglobal
<leader>dsnSessionglobal
<leader>dSnShow Debug Statsglobal
<leader>dtnTerminate Debuggingglobal
<leader>dwnAdd Watchglobal
<leader>dXnRun Bufferglobal
<leader>dXv xRun Selectionglobal
<leader>irnOpen REPLglobal
<leader>iRnOpen REPL hereglobal
<leader>l[nPrevious diagnosticglobal
<leader>l]nNext diagnosticglobal
<leader>lenBuffer errors listglobal
<leader>lEnWorkspace diagnostics listglobal
<leader>lHnDiagnostic open_floatglobal
<leader>lldnLazyDev debugglobal
<leader>lqnBuffer diagnostics listglobal
<leader>lWnWorkspace errors listglobal
<leader>rcnDebug Cleanupglobal
<leader>rPn v xDebug Print Variableglobal
<leader>rpn v xDebug Printfglobal
<leader>SLnLoad the last sessionglobal
<leader>SlnLoad the session for the current directoryglobal
<leader>SsnSelect a session to loadglobal
<leader>tdnDebugglobal
<F10>nStep Overglobal
<F11>nStep Intoglobal
<F12>nStep Outglobal
<F5>nContinue Debugging (Start)global
<S-F5>nTerminate Debuggingglobal
[dn v x oDiagnostic backwardglobal
[Dn v x oDiagnostic firstglobal
]dn v x oDiagnostic forwardglobal
]Dn v x oDiagnostic lastglobal
gsrnReplace surroundingglobal
<leader>lQnWorkspace diagnosticslua buffer
<leader>lxnRun code lenslua buffer
<leader>lQnWorkspace diagnosticsmarkdown buffer
<leader>lxnRun code lensmarkdown buffer
<leader>lQnWorkspace diagnosticsnix buffer
<leader>lxnRun code lensnix buffer
<leader>lQnWorkspace diagnosticspython buffer
<leader>lxnRun code lenspython buffer
<leader>lQnWorkspace diagnosticsrust buffer
<leader>lxnRun code lensrust buffer

Language Workflows

This page is generated from runtime keymap state.

KeyModesDescriptionContext
<leader>zwnToggle RustOwlglobal
<leader>zcnActivate Cached Virtual Environmentpython buffer
<leader>zdnDebug Nearest Python Testpython buffer
<leader>zLnOpen Venv Selector Logpython buffer
<leader>zlnRun Last Python Testpython buffer
<leader>ztnRun Nearest Python Testpython buffer
<leader>zTnRun Python Test Filepython buffer
<leader>zvnSelect Virtual Environmentpython buffer
<leader>zan v xCode Action (Rust)rust buffer
<leader>zcnOpen Cargo.tomlrust buffer
<leader>zdnRust Debuggablesrust buffer
<leader>zenRender Diagnostic (Current Line)rust buffer
<leader>zgnCrate Graphrust buffer
<leader>zhnHover Actions (Rust)rust buffer
<leader>zhv xHover Range (Rust)rust buffer
<leader>zjnJoin Linesrust buffer
<leader>zjv xJoin Lines (Selection)rust buffer
<leader>zlnOpen rust-analyzer Logrust buffer
<leader>zmnExpand Macrorust buffer
<leader>zonOpen Docs (Rust)rust buffer
<leader>zOnOpen External Docsrust buffer
<leader>zPnOpen Parent Modulerust buffer
<leader>zpnRebuild Proc Macrosrust buffer
<leader>zqnRender Diagnostic (Cycle)rust buffer
<leader>zRnRestart RustOwl Clientrust buffer
<leader>zrnRust Runnablesrust buffer
<leader>zsnStructural Search/Replacerust buffer
<leader>zsv xStructural Search/Replace (Selection)rust buffer
<leader>ztnRust Testablesrust buffer
<leader>zVnDisable RustOwlrust buffer
<leader>zvnEnable RustOwlrust buffer
<leader>zWnReload Workspacerust buffer
<leader>zxnExplain Error (Current Line)rust buffer
<leader>zfnFix Alltypescript buffer
<leader>zinAdd Missing Importstypescript buffer
<leader>zlnOpen tsserver Logstypescript buffer
<leader>zmnRemove Unusedtypescript buffer
<leader>znnRename Filetypescript buffer
<leader>zonOrganize Importstypescript buffer
<leader>zRnFile Referencestypescript buffer
<leader>zsnSource Definitiontypescript buffer
<leader>ztnSort Importstypescript buffer
<leader>zunRemove Unused Importstypescript buffer

Toggles

This page is generated from runtime keymap state.

KeyModesDescriptionContext
<leader>/nToggle comment lineglobal
<leader>/v x sToggle comment selectionglobal
<leader>astnSidekick Toggleglobal
<leader>bPnPin buffer toggleglobal
<leader>dbnBreakpoint toggleglobal
<leader>drnToggle REPLglobal
<leader>dTnToggle Debug Traceglobal
<leader>dunToggle Debugger UIglobal
<leader>dvnToggle Virtual Textglobal
<leader>gDnToggle Diff (Primary)global
<leader>gvwnToggle pollingglobal
<leader>mtn v xToggle cursorglobal
<leader>ncnToggle Concealerglobal
<leader>rgnGrugFar toggleglobal
<leader>RtnToggle Outputglobal
<leader>tonOutput Panel toggleglobal
<leader>ttnSummary toggleglobal
<leader>uaanToggle Animationsglobal
<leader>uacnColorizing toggleglobal
<leader>uCnColorschemesglobal
<leader>ucanToggle Completions (Buffer)global
<leader>ucbnBuffer Completion from All Buffers toggleglobal
<leader>ucinCompletion Item Index toggleglobal
<leader>ucpnPath Completion from CWD toggleglobal
<leader>uddnBuffer Diagnostics toggleglobal
<leader>udDnGlobal Diagnostics toggleglobal
<leader>ueCnCode Lens toggleglobal
<leader>uecnDocument Colors toggleglobal
<leader>uefnBuffer Autoformatting toggleglobal
<leader>ueFnGlobal Autoformatting toggleglobal
<leader>uehnToggle Inlay Hintsglobal
<leader>ueInDiagnostics In Insert toggleglobal
<leader>ueLnLensline engine toggleglobal
<leader>uelnLensline view toggleglobal
<leader>uemnToggle Markdown Previewglobal
<leader>uennToggle Line Numbersglobal
<leader>ueonToggle Fold Columnglobal
<leader>uepnBuffer AutoPairs toggleglobal
<leader>uePnGlobal AutoPairs toggleglobal
<leader>ueSnSemantic Tokens toggleglobal
<leader>uesnSpell toggleglobal
<leader>uetnToggle Tabs/Spacesglobal
<leader>ueTnToggle Terminalglobal
<leader>ueunUndotree toggleglobal
<leader>uevnDiagnostic Virtual Lines toggleglobal
<leader>ueWnToggle Whitespace Charactersglobal
<leader>uewnWord Wrap toggleglobal
<leader>ugbnToggle Blameglobal
<leader>ugjnToggle JjSignsglobal
<leader>ugLnToggle JjSigns Line Highlightglobal
<leader>ugNnToggle JjSigns Number Highlightglobal
<leader>ugSnToggle JjSigns Columnglobal
<leader>ugwnToggle Word Diffglobal
<leader>uinIndent Guides toggleglobal
<leader>ulnOpen logsglobal
<leader>uPnColor Pickerglobal
<leader>uphnToggle Profiler Highlightsglobal
<leader>uppnToggle Profilerglobal
<leader>upsnProfiler Scratch (adjust options)global
<leader>uRnRestart Nvimglobal
<leader>usdnToggle Dimglobal
<leader>usknToggle showkeysglobal
<leader>usmnMiniMap toggleglobal
<leader>ussnToggle Smooth Scrollglobal
<leader>usZnToggle Zen Modeglobal
<leader>usznToggle Zoom (Maximize)global
<leader>uTnChoose TUIglobal
<leader>utcnTreesitter Context toggleglobal
<leader>utrnToggle Reference Highlightingglobal
<leader>uttnToggle Treesitter Highlightglobal
<leader>uxanToggle All Featuresglobal
<leader>uxbnToggle Bigfile Behaviorglobal
<leader>uxdnToggle Blink Indentglobal
<leader>uxgnToggle Gitsignsglobal
<leader>uxknToggle Snacksglobal
<leader>uxlnToggle LSPglobal
<leader>uxmnToggle Fastmacro Behaviorglobal
<leader>uxnnToggle Noiceglobal
<leader>uxonToggle Bufferlineglobal
<leader>uxpnToggle Matchparenglobal
<leader>uxsnToggle Syntaxglobal
<leader>uxtnToggle Treesitterglobal
<leader>uxunToggle Lualineglobal
<leader>uxvnToggle Filetypeglobal
<leader>uxynToggle Vimoptsglobal
<leader>vhnHardtime toggleglobal
<leader>vpnPrecognition Toggleglobal
<leader>XnToggle Neovim profilerglobal
<leader>xLnLocation List toggleglobal
<leader>xlnLSP Definitions / references / … toggleglobal
<leader>xQnQuickfix List toggleglobal
<leader>xsnSymbols toggleglobal
<leader>xXnBuffer Diagnostics toggleglobal
<leader>xxnDiagnostics toggleglobal
<C-/>n tToggle Terminalglobal
<F9>nBreakpoint toggleglobal
\bnToggle ‘background’global
\CnToggle ‘cursorcolumn’global
\cnToggle ‘cursorline’global
\dnToggle diagnosticglobal
\hnToggle search highlightglobal
\inToggle ‘ignorecase’global
\lnToggle ‘list’global
\nnToggle ‘number’global
\rnToggle ‘relativenumber’global
\snToggle ‘spell’global
\wnToggle ‘wrap’global
gcn v xToggle commentglobal
gccnToggle comment lineglobal
gSn v xToggle argumentsglobal

Editing & Text

This page is generated from runtime keymap state.

KeyModesDescriptionContext
<C-P>nSelect previous entry through yank historyglobal
<lt>v x sUnindent lineglobal
<lt>pnPut and indent leftglobal
<lt>PnPut before and indent leftglobal
>v x sIndent lineglobal
>pnPut and indent rightglobal
>PnPut before and indent rightglobal
[in v x oGo to indent scope topglobal
[PnPut indented before cursor (linewise)global
[pnPut indented before cursor (linewise)global
[ynYank backwardglobal
[YnYank firstglobal
]in v x oGo to indent scope bottomglobal
]PnPut indented after cursor (linewise)global
]pnPut indented after cursor (linewise)global
]ynYank forwardglobal
]YnYank lastglobal
gcoComment textobjectglobal
gpn v xPut yanked text after selectionglobal
gPn v xPut yanked text before selectionglobal
gsan v x sAdd surroundingglobal
gsdnDelete surroundingglobal
gshnHighlight surroundingglobal
pn v xPut yanked text after cursorglobal
Pn v xPut yanked text before cursorglobal
yn v xYank textglobal
YnYank to end of lineglobal

Miscellaneous

This page is generated from runtime keymap state.

KeyModesDescriptionContext
<leader>asPn v x sAsk Promptglobal
<leader>ccv x sCopyglobal
<leader>CcnSelect Configglobal
<leader>CgnConfigure Global Settingsglobal
<leader>chv x sHighlightglobal
<leader>ClnConfigure Local Settingsglobal
<leader>CLnShow LSP Configurationglobal
<leader>CsnShow Configurationglobal
<leader>HanAdd fileglobal
<leader>HenQuick Menuglobal
<leader>Hjn1global
<leader>Hkn2global
<leader>Hln3global
<leader>Hmn4global
<leader>man v xAdd cursor aboveglobal
<leader>mAn v xSkip cursor aboveglobal
<leader>mbn v xAdd cursor belowglobal
<leader>mBn v xSkip cursor belowglobal
<leader>mnn v xAdd cursor by match (next)global
<leader>mpn v xAdd cursor by match (prev)global
<leader>msn v xSkip cursor by match (next)global
<leader>mSn v xSkip cursor by match (prev)global
<leader>nJnCustom Date Journalglobal
<leader>njnToday’s Journalglobal
<leader>noinOpen Indexglobal
<leader>nonnNew Noteglobal
<leader>nornReturn to Workspaceglobal
<leader>nownSelect Workspaceglobal
<leader>ntnTomorrow’s Journalglobal
<leader>nynYesterday’s Journalglobal
<leader>penPatterns explainglobal
<leader>RAnTask Actionglobal
<leader>rbnExtract Blockglobal
<leader>rBnExtract Block to Fileglobal
<leader>rev xExtract Functionglobal
<leader>rEv xExtract Function to Fileglobal
<leader>rInInline Functionglobal
<leader>rinInline Variableglobal
<leader>RlnRestart Last Taskglobal
<leader>RonOpen Outputglobal
<leader>RRnRun Taskglobal
<leader>RsnRun Shell Commandglobal
<leader>rvv xExtract Variableglobal
<leader>SSnStop Persistenceglobal
<leader>tanAttachglobal
<leader>tfnRun (Next Failed)global
<leader>thnOutputglobal
<leader>tlnRun (Last)global
<leader>tRnRun (File)global
<leader>trnRun (Nearest Test)global
<leader>tsnStopglobal
"iCloseopen action for ‘“”’ pairglobal
'iCloseopen action for “‘’” pairglobal
(iOpen action for “()” pairglobal
)iClose action for “()” pairglobal
<BS>iMiniPairs <BS>global
<C-LeftDrag>nDrag cursor with mouseglobal
<C-LeftMouse>nAdd cursor with mouseglobal
<C-LeftRelease>nRelease mouse cursorglobal
<CR>iMiniPairs <CR>global
<M-h>v xMove leftglobal
<M-h>nMove line leftglobal
<M-i>v xShrink syntax selectionglobal
<M-j>v xMove downglobal
<M-j>nMove line downglobal
<M-k>nMove line upglobal
<M-k>v xMove upglobal
<M-l>nMove line rightglobal
<M-l>v xMove rightglobal
<M-o>n v xExpand syntax selectionglobal
<Plug>(nvim-dir-open)nOpen directory entryglobal
<Plug>(nvim-dir-reload)nReload directoryglobal
<Plug>(nvim-dir-up)nOpen parent directoryglobal
<Plug>(nvim-zip-extract)nExtract zip archive entryglobal
<Plug>(resolve-base)nChoose base (Resolve)global
<Plug>(resolve-both)nChoose both (Resolve)global
<Plug>(resolve-both-reverse)nChoose both (reverse) (Resolve)global
<Plug>(resolve-list)nList conflicts (Resolve)global
<Plug>(resolve-next)nNext conflict (Resolve)global
<Plug>(resolve-none)nChoose none (Resolve)global
<Plug>(resolve-ours)nChoose ours (Resolve)global
<Plug>(resolve-prev)nPrevious conflict (Resolve)global
<Plug>(resolve-theirs)nChoose theirs (Resolve)global
<S-CR>cRedirect Cmdline to Popupglobal
=pnPut after applying a filterglobal
=PnPut before applying a filterglobal
[iOpen action for “[]” pairglobal
[ nAdd empty line above cursorglobal
[<C-L>n:lpfileglobal
[<C-Q>n:cpfileglobal
[<C-T>n:ptpreviousglobal
[[nPrevious Referenceglobal
[an:previousglobal
[An:rewindglobal
[fnFile backwardglobal
[FnFile firstglobal
[lnLocation backwardglobal
[LnLocation firstglobal
[nnPrevious Failed Testglobal
[nv xSelect previous nodeglobal
[Nv xSelect previous sibling nodeglobal
[onOldfile backwardglobal
[OnOldfile firstglobal
[Qn:crewindglobal
[qnPrevious quickfix itemglobal
[tn v x oTreesitter backwardglobal
[Tn v x oTreesitter firstglobal
[unUndo backwardglobal
[UnUndo firstglobal
[xn v x oConflict backwardglobal
[Xn v x oConflict firstglobal
]iClose action for “[]” pairglobal
] nAdd empty line below cursorglobal
]<C-L>n:lnfileglobal
]<C-Q>n:cnfileglobal
]<C-T>n:ptnextglobal
]]nNext Referenceglobal
]An:lastglobal
]an:nextglobal
]fnFile forwardglobal
]FnFile lastglobal
]lnLocation forwardglobal
]LnLocation lastglobal
]nnNext Failed Testglobal
]nv xSelect next nodeglobal
]Nv xSelect next sibling nodeglobal
]onOldfile forwardglobal
]OnOldfile lastglobal
]Qn:clastglobal
]qnNext quickfix itemglobal
]tn v x oTreesitter forwardglobal
]Tn v x oTreesitter lastglobal
]unUndo forwardglobal
]UnUndo lastglobal
]xn v x oConflict forwardglobal
]Xn v x oConflict lastglobal
```iCloseopen action for “``” pairglobal
av x oAround textobjectglobal
aiv x oObject scope with borderglobal
alv x oAround last textobjectglobal
anv x oAround next textobjectglobal
g[n v x oMove to left “around”global
g]n v x oMove to right “around”global
gan v xAlignglobal
gAn v xAlign with previewglobal
gln v x oFlash Lineglobal
gOnvim.lsp.buf.document_symbol()global
gran v xvim.lsp.buf.code_action()global
grxnvim.lsp.codelens.run()global
gsnnUpdate n_linesglobal
gyv x sCopy to system clipboardglobal
iv x oInside textobjectglobal
iiv x oObject scopeglobal
ilv x oInside last textobjectglobal
inv x oInside next textobjectglobal
roRemote Flashglobal
{iOpen action for “{}” pairglobal
}iClose action for “{}” pairglobal
gxnTree-sitter based link opener from markview.nvim.markdown buffer

Language Tooling Workflows

Khanelivim splits editing workflows into two namespaces:

  • <leader>l for generic LSP and diagnostics actions
  • <leader>z for language-specific tooling in the current buffer

Generic LSP Workflow

Common actions live under <leader>l:

  • <leader>lT shows :ToolingInfo for the current buffer
  • <leader>lI runs :checkhealth vim.lsp
  • <leader>lX runs :lsp restart
  • <leader>l[ / <leader>l] jump between diagnostics
  • <leader>lH opens the diagnostic float
  • <leader>la, <leader>lr, <leader>ld, <leader>li, <leader>lt cover the usual code-action, rename, definition, implementation, and type-definition flow
  • <leader>lq, <leader>le, <leader>lE, <leader>lW, and <leader>lQ surface 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 biome then prettierd for 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:

  • :ToolingInfo or <leader>lT for current buffer roots, clients, diagnostic state, and formatter details
  • :WebToolingInfo for web-specific tool ownership
  • <leader>ueI to toggle diagnostics while typing
  • <leader>uev to toggle diagnostic virtual lines
  • <leader>ueC to toggle code lens
  • <leader>uec to toggle document colors
  • <leader>ueS to 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 run and nix build use the default flake package, which currently evaluates the standard profile.
  • Changing the option default in modules/khanelivim/options/profiles.nix changes 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.mkNixvimPackage or khanelivim.lib.mkNixvimConfig and pass profile = "...".

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 no full block in profiles.nix.
  • debug - incident profile. full behavior 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

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 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:

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

Settingminimalbasicstandardfulldebug
DescriptionRescue 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 whitelisttruefalsefalsefalsefalse
Optimize enabletruetruetruetruefalse
Optimizernonenonefasterfasternone
AI pluginsnonenonesidekick
copilot
copilot-lsp
claudecode
copilot
copilot-lsp
codex
gemini
opencode
sidekick
claudecode
copilot
copilot-lsp
codex
gemini
opencode
sidekick
Dashboardnonenonemini-startermini-startermini-starter
Docs viewersnonenonehelpviewhelpview
glow
devdocs
helpview
glow
devdocs

Developer Workflow

Settingminimalbasicstandardfulldebug
Debug adaptersnonenonedap
debugprint
dap
dap-virtual-text
debugprint
dap
dap-virtual-text
debugprint
Debug UInonenonedap-viewdap-uidap-ui
Diff viewernonenonecodediffcodediffcodediff
Git integrationsnative-difftoolgitsigns
native-difftool
gitsigns
resolve
git-worktree
guh
hunk
native-difftool
octo
snacks-gh
snacks-gitbrowse
snacks-lazygit
gitsigns
guh
snacks-gh
snacks-gitbrowse
snacks-lazygit
git-worktree
resolve
unified
gitsigns
guh
snacks-gh
snacks-gitbrowse
snacks-lazygit
git-worktree
resolve
unified
Pickernonesnackssnackssnackssnacks
File managernoneyaziyaziyaziyazi
HTTP clientnonenonenonekulalakulala
Motionnoneflashflashflashflash
Renamenonenoneinc-renameinc-renameinc-rename
Searchnonenonegrug-fargrug-fargrug-far
Text objectsnonemini-aimini-aimini-ai
snacks-scope
treesitter-textobjects
mini-ai
snacks-scope
treesitter-textobjects

Text

Settingminimalbasicstandardfulldebug
Commentsnonets-commentsts-commentscomment-box
ts-comments
comment-box
ts-comments
Markdown renderingnonenonemarkviewmarkview
markdown-preview
markview
markdown-preview
Patternsnonenonetodo-commentstodo-comments
mini-hipatterns
todo-comments
mini-hipatterns
Split/joinnonenonemini-splitjoinmini-splitjoinmini-splitjoin
Whitespacenonenonemini-trailspacemini-trailspacemini-trailspace

UI

Settingminimalbasicstandardfulldebug
Animationsnonenonesnackssnackssnacks
Bufferlinenonenonebufferlinebufferlinebufferline
Commandlineui2ui2noicenoicenoice
Indent guidesnonenoneblink-indentblink-indentblink-indent
Keybinding helpnonewhich-keywhich-keywhich-keywhich-key
Notificationsnativenativenoicenoicenoice
Rename popupnonenonesnackssnackssnacks
Signature helpnonenoneblinkblinkblink
Status columnnonenonesnackssnackssnacks
Statuslinenonelualinelualinelualinelualine
Terminalnonenonesnackssnackssnacks

Utilities

Settingminimalbasicstandardfulldebug
Clipboardnonenoneyankyyanky
img-clip
yanky
img-clip
Screenshotsnonenonecodesnapcodesnapcodesnap
Sessionsnonenonepersistencepersistencepersistence

Docs Pipeline

This site is built directly from the flake and the profile evaluation logic.

Pipeline Steps

  1. Evaluate the khanelivim.* option tree with mkNixvimConfig.
  2. Generate markdown for the khanelivim options reference.
  3. Split the options reference into pages by the level below khanelivim.
  4. Evaluate each khanelivim.profile with mkNixvimConfig.
  5. Serialize the curated profile data to JSON.
  6. Render the JSON into profiles.md.
  7. 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 upstream plugins.* universe from Nixvim.
  • The profile matrix is intentionally curated. It documents the workflow surface you actually care about instead of dumping every option.
  • full currently reflects the raw component defaults from the option modules.
  • debug follows the full/default surface and layers debug-focused overrides on top.