mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-15 04:10:31 +02:00
Replace bare programs.neovim with programs.nixvim. Only 3 plugins: neo-tree (file explorer), catppuccin (colorscheme), treesitter. Add core editor opts matching helix defaults: clipboard, cursorline, scrolloff, wrap, mouse, undofile, smart search, split direction. Enable 5 LSP servers: nixd, rust-analyzer, gopls, pyright, bashls. Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
Editors
Shared editor configuration and usage notes for terminal-focused editing.
Roles
- Helix (
helix/): Primary TUI editor — batteries-included, small attack surface.$EDITOR/$VISUALdefault tohx(session-env.nix). - Neovim (
neovim/): Backup editor — classic vim-style workflow and:helpwhen needed. For privileged edits (sudoedit) and other security-sensitive inputs,$SUDO_EDITORisnvim --clean; use that explicitly when$EDITORmust avoid user config/plugins.
Terminal layout and files: Zellij and Yazi live under core/zellij/ and core/yazi.nix
(not in this folder).
Docs
helix/README.md— Helix basics, cheatsheet, official doc links, Helix vs Neovim notes.neovim/README.md— Vim/Neovim basics, cheatsheet, and official doc links.
Nix modules in helix/ and neovim/ enable each editor via Home Manager. Language servers and
other heavy editor-related packages are listed in
../../tui/editors/ (imported from home/base/tui).
Editor terminology (LSP, tree-sitter): Glossary.md.