ACH-NEOVIM MIT
Figure 1. The start screen Neovim opens to when it is given no file.
Figure 2. Editing a file, with the explorer open on the left, the Space menu raised, and the status bar below.
Figure 3. Finding a file, with a preview of the highlighted match beside the list.
I generate this page with scripts/docs, from the configuration's own source: the plugin specs, the language table, the keys the configuration sets, and four pages I write by hand in docs/site/. Edit the source, not this page.
ACH-NEOVIM is my Neovim configuration for macOS. Neovim is a text editor that runs inside a terminal and is driven from the keyboard, and a configuration is the set of files that tells it which plugins to load, what each key does and how each language is handled. I wrote this one from scratch on lazy.nvim, the plugin manager, and it lives at github.com/anirbanchakraborty-dev/ACH-NEOVIM under the MIT licence.
Why I built it. I wanted one editor that already knows every language I work in: C and C++, Python, Rust, SystemVerilog and Verilog, VHDL, LaTeX and Markdown, with the rest of about ninety languages there when I need them. I did not want it to fill my disk with tools for languages I never open, so nothing for a language installs until I open a file in it. I wanted it to start fast, too. It starts within 10% of stock LazyVim's time, and its own test suite fails any change that makes it take more than one and a half times as long to start as it did when I first timed it. LazyVim showed me what a well-made Neovim setup looks like. I took its ideas and built my own, small enough that I can read every line of it and keep it working, and the few files that adapt a LazyVim function say so in their first lines and name LazyVim's Apache-2.0 licence.
Who it is for. It is for someone on a Mac who writes code and technical documents in many languages, works from the keyboard, and would rather set things up properly once than tinker forever.
It is not for someone learning Vim for the first time. Run nvim --clean +Tutor first, which opens Neovim's own lessons without this configuration, and come back when the motions feel natural. ACH-NEOVIM switches the tutor off, with a few other built-in plugins, so it starts faster.
My favourite part. I never install a language's tools by hand. I open a file in a language I have not touched in months, and while I read the first screen, its highlighting, completion and formatter install in the background and switch on. A close second is having Claude Code right inside the editor, on Space a c, looking at the same file I am.
Keep the key card beside you while the keys are new. It is docs/key-card.md in the repository, the dashboard points to it, and every key on it has a one-line description and a sentence saying what it does. The Keymaps section below lists every key the configuration sets.
Installing takes one Homebrew session, one clone and one first start. Every command below is typed in a terminal, in the order given.
Install Homebrew. Homebrew is the Mac's package manager, and everything else comes from it. If brew --version prints nothing, follow the one command on brew.sh .
Install the programs. Neovim itself, git, ripgrep and fd for searching, lazygit for git, the tree-sitter command-line program, ImageMagick for pictures, Ghostty, and the font:
brew install neovim git ripgrep fd lazygit tree-sitter-cli imagemagick brew install --cask ghostty font-meslo-lg-nerd-font xcode-select --install
ACH-NEOVIM needs Neovim 0.12.4 or later, and nvim --version prints the version on its first line. The tree-sitter program builds each language's parser, the part that reads its syntax, with the compiler from Apple's Command Line Tools, which is what the last line installs.
Back up what you have. The clone goes exactly where a Neovim configuration lives, so move yours aside first, with the folders Neovim keeps its data, its state and its cache in:
mv ~/.config/nvim ~/.config/nvim.bak mv ~/.local/share/nvim ~/.local/share/nvim.bak mv ~/.local/state/nvim ~/.local/state/nvim.bak mv ~/.cache/nvim ~/.cache/nvim.bak
A line whose folder does not exist only prints an error, so run all four.
Do not skip the backup. ACH-NEOVIM keeps its plugins, its language tools, its history and its sessions in those same folders, so starting it on top of another setup's folders leaves the two mixed together.
Clone the configuration.
git clone https://github.com/anirbanchakraborty-dev/ACH-NEOVIM ~/.config/nvim
Link Ghostty's settings. The repository carries Ghostty's settings in ghostty/config.ghostty: the font at 16 points, the navy background, the left Option key working as Alt, and the sixteen colours Neovim's own terminal uses. Link the file to where Ghostty reads it:
mkdir -p ~/.config/ghostty ln -s ~/.config/nvim/ghostty/config.ghostty ~/.config/ghostty/config.ghostty
Start Neovim.
The first start installs every plugin at the commit pinned in lazy-lock.json, so you get the versions I test. Let it finish before you open anything.
Check what is missing. Inside Neovim, type this and press Enter:
Read what it says. It lists each program the configuration uses, installed or not, and gives each missing one the single command that installs it.
Open a file. The first time you open a file in a language, its parser, its language server, its formatter and its linter install by themselves in the background, without asking, and switch on when they are ready. A language that needs a compiler or runtime only Homebrew provides, such as Haskell's GHC or Julia, asks first, once, in one line that names it and its rough size. Say yes, and Homebrew installs it in the background while you keep editing. Say no, and it does not ask again until you next start Neovim.
Add the programs some keys use. A key whose program is missing prints the line that installs it instead of running, and :checkhealth ach lists the same programs:
Do not brew install language servers, formatters or linters yourself. Mason, the package manager inside Neovim, installs each one into Neovim's own folder at the version pinned in mason-lock.json, and puts that folder on the path Neovim searches. A second copy from Homebrew is one more version that can differ from the pinned one, and you are left guessing which one runs.
Here is what ACH-NEOVIM does beyond editing text, area by area. Each area's keys are in the Keymaps section below.
Git. Change bars in the margin show what changed since the last commit, and ] h and [ h move between the changes. Lazygit opens on Space g g. Neogit, git's status page inside Neovim, opens on Space g n, and diffview shows every uncommitted change side by side on Space g D. GitHub's issues and pull requests are on Space g i and Space g p, through gh. A git key pressed on a file outside every repository says so and opens nothing, and a link copied to the current line never carries a user name or a token from the remote's address.
Claude Code. Space a c opens Claude Code in a panel on the right, 40 percent of the screen wide. It sees the file and the selection I am on, and a change it proposes opens side by side, to accept with Space a a or reject with Space a d. Its server listens only on this Mac, refuses a connection without the token in its lock file, and never starts when Neovim has no window.
LaTeX. VimTeX builds the document on Space c b, with latexmk or with a command the project sets, and shows the PDF in Skim, and I can jump from a line of the source to its place in the PDF and back. The build's own files are kept outside the repository.
Markdown. Headings, lists and tables are drawn in place while I write, formulas and pictures are drawn as images inside the editor, and Space c p opens a preview in the browser that keeps up with the file as it changes. The preview's server listens only on this Mac and serves nothing outside the folder it was started for.
LilyPond. Swara colours a score, checks it each time I stop typing, and tidies it when I save. Backslash o opens the PDF in Skim and Backslash v shows the score inside the editor. Backslash p plays it through FluidSynth and Backslash s stops it, Backslash m opens it in MuseScore, and Backslash b builds the PDF and the MIDI file. Swara downloads its own program the first time a score opens, and LilyPond itself, about 400 MB, is offered once, like the other compilers.
Intel's manual. Space c x opens Intel's x86 manual in Skim at the page for the instruction under the cursor, and on any other word lists every instruction to pick one. The manual is Intel's to publish, so it is not in the repository.
News. Space N opens newsboat, a feed reader, in a window floating over the editor.
Ghostty. The repository carries Ghostty's settings: MesloLGS Nerd Font Mono at 16 points, the same navy background as the editor, the left Option key working as Alt, and the sixteen colours Neovim's own terminal uses.
Startup. It starts within 10% of stock LazyVim's time, the two timed side by side over thirty starts each, and the test suite fails any change that makes it take more than one and a half times as long to start as it did when first timed.
Updates. scripts/update updates every plugin and Mason package, runs the full test suite, and commits both lock files when it passes, or puts everything back when it does not.
Upgrade check. The first time a new Neovim release starts on a screen, the fast test suite runs in the background, and the release is recorded once it passes.
Key card. docs/key-card.md is one page of keys to keep beside the keyboard, and a test fails whenever it disagrees with the keys the configuration sets.
This page. scripts/docs writes this page from the configuration's own source, so a plugin, a key or a language added to the configuration shows here the next time it runs.
Every key this configuration sets, with the description the menus show for it and the modes it works in, grouped the way the key card in docs/key-card.md groups them. A key is written the way it is pressed: Space f f is Space, then f, then f, and Ctrl-h is h pressed while Ctrl is held.
The Mode column uses Neovim's one-letter names. n is normal mode, where keys move and edit. x is visual mode, after selecting text with v. s is select mode, which snippets use for the parts to fill in. o is operator-pending mode, after an operator such as d and before the motion that says what it acts on. i is insert mode, for typing. c is the command line, after :. t is a terminal window.
Inside Neovim each key also shows an icon. This page leaves the icons out, because they come from the MesloLGS Nerd Font Mono and this website does not load that font, so each would draw as an empty box. Keys a plugin sets only inside its own window, and text objects such as i ( in d i (, are not listed here. Inside Neovim, Space s k searches every key, those included.
Everything that makes ACH-NEOVIM what it is lives in plain Lua files in the repository. These are the places I change most, and how I change them.
~/.config/nvim ├── init.lua checks the Neovim version, then loads lua/ach ├── lazy-lock.json the commit of every plugin ├── mason-lock.json the version of every Mason package ├── lua/ach/ options, keys, autocommands, the language table, and the logic behind each feature │ └── plugins/ the plugin specs, one file per area ├── snippets/ my own snippets ├── ghostty/ Ghostty's settings ├── docs/ the key card, the list of languages, and the hand-written parts of this page ├── scripts/ check, update and docs └── tests/ the test suite
Editor options live in lua/ach/options.lua, keys that belong to no plugin in lua/ach/keymaps.lua, and autocommands, the small actions Neovim runs when something happens, such as opening a file or saving one, in lua/ach/autocmds.lua. Keys that belong to a plugin live in that plugin's spec, under keys.
A plugin is a file in lua/ach/plugins/ that returns its spec, because lazy.nvim imports every file in that folder. The Full Spec tabs in the Plugins section below are real specs to copy from. Then:
Give every key a desc, and give that description a line in M.keys in lua/ach/icons.lua. The test suite fails a key without one, since that line is what draws its icon in the menus.
Give the plugin an entry in lua/ach/docs.lua, with its category and one sentence saying what it does. The test suite fails a plugin in lazy-lock.json without one.
Start Neovim once, so lazy.nvim installs the plugin and records its commit in lazy-lock.json.
If the plugin adds keys, run scripts/check --keymaps. Then run scripts/check, and commit the new file, lazy-lock.json, lua/ach/icons.lua, lua/ach/docs.lua and docs/site/keymaps.json together.
Every language is one entry in M.languages in lua/ach/languages.lua, under its name. The entry lists the file types it covers in ft, the Tree-sitter parsers in ts, the language servers in lsp, the formatters in fmt, the linters in lint, any other Mason packages it needs in mason, and harper = true when Harper should check its grammar. The Entry tab of each language in the Languages section below is that language's real entry, and CMake's uses every one of these fields. Settings for a server go in M.settings in lua/ach/servers.lua, under the server's name, and show in the language's Options tab.
Then run scripts/check, and scripts/check --full, which installs the new language's tools, tests them, adds their versions to mason-lock.json and rewrites the list of languages in docs/languages.md. Commit all of it together.
Neovim reads a file called .nvim.lua in the folder it starts in, because ACH-NEOVIM turns on Neovim's exrc option. Neovim asks before it runs such a file the first time, and again whenever the file changes, so a repository you clone cannot run code on you just by shipping one. A LaTeX project can use it to give Space c b its own build command:
require ( "ach.latex" ) . build_with ( function ( main ) return { "make" , "pdf" } , vim. fs . dirname ( main ) end )
The function receives the main file's path and returns the command and the folder to run it in. Returning nothing falls back to latexmk.
lazy-lock.json holds the commit of every plugin and mason-lock.json the version of every Mason package, so two Macs on the same commit of this repository run the same code.
scripts/update --list shows what an update would move: the new commits of each plugin and the newer release of each Mason package. It changes nothing.
scripts/update updates every plugin and Mason package, runs scripts/check --full, and commits both lock files when it passes. When it fails, it puts the lock files back and makes what is installed match them again.
scripts/update --restore does only that second part. Run it on a second Mac after a git pull brings new lock files.
Inside Neovim, :AchMasonUpdate updates every installed Mason package and moves its pin, and :AchMasonLock pins a package installed by hand from the :Mason window.
Every plugin in lazy-lock.json, grouped by what it does, each with a link to its repository. The Options tab shows opts, the settings lazy.nvim hands to the plugin, and the Full Spec tab shows the whole spec: where the plugin comes from, when it loads, its keys and its options. Either one can be copied into a file in lua/ach/plugins/.
Some plugins are set up in pieces, one in each file that needs a part of them, and each piece is shown with the file it lives in. A plugin that only comes in for another plugin's sake shows the line that brings it in.
The completion menu, offering words from the language server, snippets, file paths and the open buffer.
Repository: saghen/blink.cmp
From lua/ach/plugins/coding.lua:
Options Full Spec
Options
opts = { keymap = { preset = "enter" } , -- The kind icons are the icon database's, bare, since blink adds its own spacing. appearance = { nerd_font_variant = "mono" , kind_icons = require ( "ach.icons" ) . kinds } , completion = { accept = { auto_brackets = { enabled = true } } , documentation = { auto_show = true , auto_show_delay_ms = 200 } , ghost_text = { enabled = true } , menu = { draw = { treesitter = { "lsp" } } } , } , signature = { enabled = true } , sources = { default = { "lsp" , "path" , "snippets" , "buffer" } , providers = { -- The repository's own folder, so the snippets are found through the link and under nvim -u alike. snippets = { opts = { search_paths = { vim. g . ach_root .. "/snippets" } } } , } , } , fuzzy = { implementation = "prefer_rust_with_warning" } , cmdline = { enabled = true } , }
Full Spec
-- The completion menu, fed by the language server, file paths, snippets and words in open buffers. { "saghen/blink.cmp" , -- Releases carry the compiled matcher; scripts/fetch-matcher downloads the one for this tag. version = "1.*" , event = { "InsertEnter" , "CmdlineEnter" } , dependencies = { "rafamadriz/friendly-snippets" } , opts_extend = { "sources.default" } , opts = { keymap = { preset = "enter" } , -- The kind icons are the icon database's, bare, since blink adds its own spacing. appearance = { nerd_font_variant = "mono" , kind_icons = require ( "ach.icons" ) . kinds } , completion = { accept = { auto_brackets = { enabled = true } } , documentation = { auto_show = true , auto_show_delay_ms = 200 } , ghost_text = { enabled = true } , menu = { draw = { treesitter = { "lsp" } } } , } , signature = { enabled = true } , sources = { default = { "lsp" , "path" , "snippets" , "buffer" } , providers = { -- The repository's own folder, so the snippets are found through the link and under nvim -u alike. snippets = { opts = { search_paths = { vim. g . ach_root .. "/snippets" } } } , } , } , fuzzy = { implementation = "prefer_rust_with_warning" } , cmdline = { enabled = true } , } , }
From lua/ach/plugins/lsp.lua:
Options Full Spec
Options
opts = { sources = { default = { "lazydev" } , providers = { lazydev = { name = "LazyDev" , module = "lazydev.integrations.blink" , score_offset = 100 } , } , } , }
Full Spec
{ "saghen/blink.cmp" , opts = { sources = { default = { "lazydev" } , providers = { lazydev = { name = "LazyDev" , module = "lazydev.integrations.blink" , score_offset = 100 } , } , } , } , }
A collection of snippets for many languages.
Repository: rafamadriz/friendly-snippets
lazy.nvim installs it as a dependency of blink.cmp, in lua/ach/plugins/coding.lua:
Full Spec
Full Spec
dependencies = { "rafamadriz/friendly-snippets" }
Tells the Lua language server about Neovim's own Lua functions and the installed plugins, for completion and checking in these configuration files.
Repository: folke/lazydev.nvim
From lua/ach/plugins/lsp.lua:
Options Full Spec
Options
opts = { library = { { path = "${3rd}/luv/library" , words = { "vim%.uv" } } , { path = "snacks.nvim" , words = { "Snacks" } } , "lazy.nvim" , } , }
Full Spec
{ "folke/lazydev.nvim" , ft = "lua" , cmd = "LazyDev" , opts = { library = { { path = "${3rd}/luv/library" , words = { "vim%.uv" } } , { path = "snacks.nvim" , words = { "Snacks" } } , "lazy.nvim" , } , } , }
Extends the a and i text objects, so d i ( and its kind reach further, such as into the next pair.
Repository: nvim-mini/mini.ai
From lua/ach/plugins/coding.lua:
Options Full Spec
Options
opts = function ( ) local ai = require ( "mini.ai" ) return { -- Look this far for an object, so a long function still counts as one. n_lines = 500 , custom_textobjects = { o = ai. gen_spec . treesitter ( { a = { "@block.outer" , "@conditional.outer" , "@loop.outer" } , i = { "@block.inner" , "@conditional.inner" , "@loop.inner" } , } ) , f = ai. gen_spec . treesitter ( { a = "@function.outer" , i = "@function.inner" } ) , c = ai. gen_spec . treesitter ( { a = "@class.outer" , i = "@class.inner" } ) , u = ai. gen_spec . function_call ( ) , } , } end
Full Spec
-- Text objects: af and if for a function, ac and ic for a class, ao and io for a block, -- au and iu for a call, on top of mini.ai's brackets, quotes and arguments. { "nvim-mini/mini.ai" , event = "VeryLazy" , opts = function ( ) local ai = require ( "mini.ai" ) return { -- Look this far for an object, so a long function still counts as one. n_lines = 500 , custom_textobjects = { o = ai. gen_spec . treesitter ( { a = { "@block.outer" , "@conditional.outer" , "@loop.outer" } , i = { "@block.inner" , "@conditional.inner" , "@loop.inner" } , } ) , f = ai. gen_spec . treesitter ( { a = "@function.outer" , i = "@function.inner" } ) , c = ai. gen_spec . treesitter ( { a = "@class.outer" , i = "@class.inner" } ) , u = ai. gen_spec . function_call ( ) , } , } end , }
Types the closing bracket or quote when the opening one is typed.
Repository: nvim-mini/mini.pairs
From lua/ach/plugins/coding.lua:
Options Full Spec
Options
opts = { modes = { insert = true , command = true , terminal = false } }
Full Spec
-- Closes brackets and quotes as they open. { "nvim-mini/mini.pairs" , event = "VeryLazy" , opts = { modes = { insert = true , command = true , terminal = false } } , }
Makes g c use the right comment marker in a file that mixes languages.
Repository: folke/ts-comments.nvim
From lua/ach/plugins/coding.lua:
Options Full Spec
Full Spec
-- The right comment marker inside embedded languages, such as Lua inside Markdown. { "folke/ts-comments.nvim" , event = "VeryLazy" , opts = { } }
Tokyo Night, in its night style, with the navy background.
Repository: folke/tokyonight.nvim
From lua/ach/plugins/colorscheme.lua:
Options Full Spec
Options
opts = function ( ) local p = require ( "ach.palette" ) return { style = "night" , on_colors = function ( c ) c. bg = p. bg c. bg_dark = p. bg_dark c. bg_float = p. bg_dark c. bg_popup = p. bg_dark c. bg_sidebar = p. bg_dark c. bg_statusline = p. bg_dark c. bg_highlight = p. bg_highlight c. bg_search = p. bg_search c. bg_visual = p. bg_visual c. border = p. border c. fg = p. fg c. fg_dark = p. fg_dark c. fg_float = p. fg c. fg_gutter = p. fg_gutter c. fg_sidebar = p. fg_dark c. comment = p. comment c. dark3 = p. dark3 end , on_highlights = function ( hl ) hl. AchBanner = { fg = p. banner } hl. AchBannerShadow = { fg = p. border } hl. AchBannerCaption = { fg = p. fg_dark } -- Math drawn by snacks.image takes the text colour, so a formula -- reads as part of the page. hl. SnacksImageMath = { fg = p. fg } end , } end
Full Spec
{ "folke/tokyonight.nvim" , lazy = false , priority = 1000 , opts = function ( ) local p = require ( "ach.palette" ) return { style = "night" , on_colors = function ( c ) c. bg = p. bg c. bg_dark = p. bg_dark c. bg_float = p. bg_dark c. bg_popup = p. bg_dark c. bg_sidebar = p. bg_dark c. bg_statusline = p. bg_dark c. bg_highlight = p. bg_highlight c. bg_search = p. bg_search c. bg_visual = p. bg_visual c. border = p. border c. fg = p. fg c. fg_dark = p. fg_dark c. fg_float = p. fg c. fg_gutter = p. fg_gutter c. fg_sidebar = p. fg_dark c. comment = p. comment c. dark3 = p. dark3 end , on_highlights = function ( hl ) hl. AchBanner = { fg = p. banner } hl. AchBannerShadow = { fg = p. border } hl. AchBannerCaption = { fg = p. fg_dark } -- Math drawn by snacks.image takes the text colour, so a formula -- reads as part of the page. hl. SnacksImageMath = { fg = p. fg } end , } end , config = function ( _, opts ) require ( "tokyonight" ) . setup ( opts ) vim. cmd . colorscheme ( "tokyonight-night" ) end , }
Jumps anywhere on the screen: s, then the first letters of the place, then the label shown there.
Repository: folke/flash.nvim
From lua/ach/plugins/editor.lua:
Options Full Spec
Full Spec
-- Jump to any spot on screen by typing two or three of its letters. { "folke/flash.nvim" , event = "VeryLazy" , opts = { } , keys = { { "s" , mode = { "n" , "x" , "o" } , function ( ) require ( "flash" ) . jump ( ) end , desc = "Flash Jump" } , { "S" , mode = { "n" , "x" , "o" } , function ( ) require ( "flash" ) . treesitter ( ) end , desc = "Flash Select by Syntax" } , { "r" , mode = "o" , function ( ) require ( "flash" ) . remote ( ) end , desc = "Flash Remote" } , { "R" , mode = { "o" , "x" } , function ( ) require ( "flash" ) . treesitter_search ( ) end , desc = "Flash Search by Syntax" , } , { "<c-s>" , mode = "c" , function ( ) require ( "flash" ) . toggle ( ) end , desc = "Toggle Flash in Search" } , { "<c-space>" , mode = { "n" , "o" , "x" } , function ( ) require ( "flash" ) . treesitter ( { actions = { [ "<c-space>" ] = "next" , [ "<BS>" ] = "prev" } } ) end , desc = "Grow Selection by Syntax" , } , } , }
Search and replace across files, with a preview (Space s r).
Repository: MagicDuck/grug-far.nvim
From lua/ach/plugins/editor.lua:
Options Full Spec
Options
opts = { headerMaxWidth = 80 }
Full Spec
-- Project-wide search and replace in a buffer you edit like any other. { "MagicDuck/grug-far.nvim" , cmd = "GrugFar" , opts = { headerMaxWidth = 80 } , keys = { { "<leader>sr" , function ( ) local ext = vim. bo . buftype == "" and vim. fn . expand ( "%:e" ) require ( "grug-far" ) . open ( { transient = true , prefills = { filesFilter = ext and ext ~= "" and "*." .. ext or nil } , } ) end , mode = { "n" , "x" } , desc = "Search and Replace" , } , } , }
Several cursors that edit together. Alt-Down adds one on the line below.
Repository: jake-stewart/multicursor.nvim
From lua/ach/plugins/editor.lua:
Full Spec
Full Spec
-- Several cursors that edit together. { "jake-stewart/multicursor.nvim" , branch = "1.0" , config = function ( ) local m = mc ( ) m. setup ( ) -- These keys exist only while there is more than one cursor. m. addKeymapLayer ( function ( set ) set ( { "n" , "x" } , "<left>" , m. prevCursor , { desc = "Previous Cursor" } ) set ( { "n" , "x" } , "<right>" , m. nextCursor , { desc = "Next Cursor" } ) set ( { "n" , "x" } , "<leader>md" , m. deleteCursor , { desc = "Delete This Cursor" } ) set ( "n" , "<esc>" , function ( ) if not m. cursorsEnabled ( ) then m. enableCursors ( ) else m. clearCursors ( ) end end , { desc = "Clear Cursors" } ) end ) end , keys = { { "<leader>mn" , function ( ) mc ( ) . matchAddCursor ( 1 ) end , mode = { "n" , "x" } , desc = "Add Cursor at Next Match" } , { "<leader>mN" , function ( ) mc ( ) . matchAddCursor ( - 1 ) end , mode = { "n" , "x" } , desc = "Add Cursor at Previous Match" , } , { "<leader>ms" , function ( ) mc ( ) . matchSkipCursor ( 1 ) end , mode = { "n" , "x" } , desc = "Skip to Next Match" } , { "<leader>mS" , function ( ) mc ( ) . matchSkipCursor ( - 1 ) end , mode = { "n" , "x" } , desc = "Skip to Previous Match" } , { "<leader>mA" , function ( ) mc ( ) . matchAllAddCursors ( ) end , mode = { "n" , "x" } , desc = "Add Cursors at Every Match" , } , { "<leader>mx" , function ( ) mc ( ) . toggleCursor ( ) end , mode = { "n" , "x" } , desc = "Add or Remove a Cursor Here" } , { "<leader>ma" , function ( ) mc ( ) . alignCursors ( ) end , desc = "Align Cursors" } , -- Ctrl with the arrows resizes windows (keymaps.lua), so Option adds cursors. { "<A-Up>" , function ( ) mc ( ) . lineAddCursor ( - 1 ) end , mode = { "n" , "x" } , desc = "Add Cursor Above" } , { "<A-Down>" , function ( ) mc ( ) . lineAddCursor ( 1 ) end , mode = { "n" , "x" } , desc = "Add Cursor Below" } , } , }
Shows a folder as a text buffer, where renaming a line renames the file (Space f o).
Repository: stevearc/oil.nvim
From lua/ach/plugins/editor.lua:
Options Full Spec
Options
opts = { default_file_explorer = false , view_options = { show_hidden = true } }
Full Spec
-- A folder as a text buffer: rename a line to rename the file, delete it to delete the file. { "stevearc/oil.nvim" , cmd = "Oil" , opts = { default_file_explorer = false , view_options = { show_hidden = true } } , keys = { { "<leader>fo" , function ( ) require ( "oil" ) . open ( ) end , desc = "Open Folder as Text (oil)" } , } , }
Highlights TODO, FIX, HACK and NOTE comments, and finds them all in a picker.
Repository: folke/todo-comments.nvim
From lua/ach/plugins/editor.lua:
Options Full Spec
Options
-- Only the icons change; the colours and alternate names stay todo-comments' own. opts = { keywords = I. todo_keywords ( ) }
Full Spec
-- TODO, FIX, HACK, NOTE and WARN comments, highlighted and searchable. { "folke/todo-comments.nvim" , cmd = "TodoTrouble" , event = { "BufReadPost" , "BufNewFile" } , -- Only the icons change; the colours and alternate names stay todo-comments' own. opts = { keywords = I. todo_keywords ( ) } , keys = { { "]t" , function ( ) require ( "todo-comments" ) . jump_next ( ) end , desc = "Next TODO Comment" } , { "[t" , function ( ) require ( "todo-comments" ) . jump_prev ( ) end , desc = "Previous TODO Comment" } , { "<leader>xt" , "<cmd>Trouble todo toggle<cr>" , desc = "TODO Comments (Trouble)" } , { "<leader>xT" , "<cmd>Trouble todo toggle filter = {tag = {TODO,FIX,FIXME}}<cr>" , desc = "TODO and FIX Comments (Trouble)" , } , -- todo-comments registers this picker source with snacks when it loads, and pressing -- the key loads it first. { "<leader>st" , function ( ) Snacks. picker . todo_comments ( ) end , desc = "TODO Comments" } , { "<leader>sT" , function ( ) Snacks. picker . todo_comments ( { keywords = { "TODO" , "FIX" , "FIXME" } } ) end , desc = "TODO and FIX Comments" , } , } , }
Lists of problems, references and symbols to move through (Space x x).
Repository: folke/trouble.nvim
From lua/ach/plugins/editor.lua:
Options Full Spec
Options
opts = { modes = { lsp = { win = { position = "right" } } } , icons = { kinds = I. spaced ( I. kinds ) } , }
Full Spec
-- The problem list: diagnostics, symbols, references, quickfix and location lists. { "folke/trouble.nvim" , cmd = "Trouble" , opts = { modes = { lsp = { win = { position = "right" } } } , icons = { kinds = I. spaced ( I. kinds ) } , } , keys = { { "<leader>xx" , "<cmd>Trouble diagnostics toggle<cr>" , desc = "Problems (Trouble)" } , { "<leader>xX" , "<cmd>Trouble diagnostics toggle filter.buf=0<cr>" , desc = "Problems in This Buffer (Trouble)" } , { "<leader>cs" , "<cmd>Trouble symbols toggle focus=false<cr>" , desc = "Symbols (Trouble)" } , { "<leader>cS" , "<cmd>Trouble lsp toggle<cr>" , desc = "Definitions and References (Trouble)" } , { "<leader>xL" , "<cmd>Trouble loclist toggle<cr>" , desc = "Location List (Trouble)" } , { "<leader>xQ" , "<cmd>Trouble qflist toggle<cr>" , desc = "Quickfix List (Trouble)" } , { "[q" , function ( ) step ( "prev" ) end , desc = "Previous Problem or Quickfix Entry" } , { "]q" , function ( ) step ( "next" ) end , desc = "Next Problem or Quickfix Entry" } , } , }
Shows the keys that can follow the ones already pressed, each with a description and an icon.
Repository: folke/which-key.nvim
From lua/ach/plugins/keys.lua:
Options Full Spec
Options
opts = { preset = "helix" , spec = { { mode = { "n" , "x" } , { "<leader><tab>" , group = "tabs" , icon = I. group ( "tabs" ) } , { "<leader>a" , group = "claude" , icon = I. group ( "claude" ) } , { "<leader>b" , group = "buffer" , icon = I. group ( "buffer" ) , expand = function ( ) return require ( "which-key.extras" ) . expand . buf ( ) end , } , { "<leader>c" , group = "code" , icon = I. group ( "code" ) } , { "<leader>d" , group = "debug" , icon = I. group ( "debug" ) } , { "<leader>f" , group = "file/find" , icon = I. group ( "file/find" ) } , { "<leader>g" , group = "git" , icon = I. group ( "git" ) } , { "<leader>gh" , group = "hunks" , icon = I. group ( "hunks" ) } , { "<leader>m" , group = "multicursor" , icon = I. group ( "multicursor" ) } , { "<leader>q" , group = "quit/session" , icon = I. group ( "quit/session" ) } , { "<leader>s" , group = "search" , icon = I. group ( "search" ) } , { "<leader>u" , group = "toggles" , icon = I. group ( "toggles" ) } , { "<leader>w" , group = "windows" , icon = I. group ( "windows" ) , proxy = "<c-w>" , expand = function ( ) return require ( "which-key.extras" ) . expand . win ( ) end , } , { "<leader>x" , group = "diagnostics/quickfix" , icon = I. group ( "diagnostics/quickfix" ) } , { "[" , group = "prev" , icon = I. group ( "prev" ) } , { "]" , group = "next" , icon = I. group ( "next" ) } , { "g" , group = "goto" , icon = I. group ( "goto" ) } , { "z" , group = "fold" , icon = I. group ( "fold" ) } , } , } , }
Full Spec
{ "folke/which-key.nvim" , event = "VeryLazy" , -- A later plugin file may add groups with its own which-key spec; this makes -- lazy.nvim join the lists instead of letting the later one replace this one. opts_extend = { "spec" } , opts = { preset = "helix" , spec = { { mode = { "n" , "x" } , { "<leader><tab>" , group = "tabs" , icon = I. group ( "tabs" ) } , { "<leader>a" , group = "claude" , icon = I. group ( "claude" ) } , { "<leader>b" , group = "buffer" , icon = I. group ( "buffer" ) , expand = function ( ) return require ( "which-key.extras" ) . expand . buf ( ) end , } , { "<leader>c" , group = "code" , icon = I. group ( "code" ) } , { "<leader>d" , group = "debug" , icon = I. group ( "debug" ) } , { "<leader>f" , group = "file/find" , icon = I. group ( "file/find" ) } , { "<leader>g" , group = "git" , icon = I. group ( "git" ) } , { "<leader>gh" , group = "hunks" , icon = I. group ( "hunks" ) } , { "<leader>m" , group = "multicursor" , icon = I. group ( "multicursor" ) } , { "<leader>q" , group = "quit/session" , icon = I. group ( "quit/session" ) } , { "<leader>s" , group = "search" , icon = I. group ( "search" ) } , { "<leader>u" , group = "toggles" , icon = I. group ( "toggles" ) } , { "<leader>w" , group = "windows" , icon = I. group ( "windows" ) , proxy = "<c-w>" , expand = function ( ) return require ( "which-key.extras" ) . expand . win ( ) end , } , { "<leader>x" , group = "diagnostics/quickfix" , icon = I. group ( "diagnostics/quickfix" ) } , { "[" , group = "prev" , icon = I. group ( "prev" ) } , { "]" , group = "next" , icon = I. group ( "next" ) } , { "g" , group = "goto" , icon = I. group ( "goto" ) } , { "z" , group = "fold" , icon = I. group ( "fold" ) } , } , } , } , -- The icon rules are built when which-key loads, after the first screen, -- rather than when this file is read during the start. config = function ( _, opts ) opts. icons = vim. tbl_extend ( "force" , opts. icons or { } , { rules = I. which_key_rules ( ) } ) require ( "which-key" ) . setup ( opts ) end , keys = { { "<leader>?" , function ( ) require ( "which-key" ) . show ( { global = false } ) end , desc = "Buffer Keymaps (which-key)" , } , { "<c-w><space>" , function ( ) require ( "which-key" ) . show ( { keys = "<c-w>" , loop = true } ) end , desc = "Window Hydra Mode (which-key)" , } , } , }
Runs each language's formatters on save and on Space c f.
Repository: stevearc/conform.nvim
From lua/ach/plugins/format.lua:
Options Full Spec
Options
opts = function ( ) return require ( "ach.format" ) . opts ( ) end
Full Spec
{ "stevearc/conform.nvim" , -- Loaded when a file opens rather than at the first save, so the status -- bar can name the formatter from the start. event = { "BufReadPost" , "BufNewFile" , "BufWritePre" } , cmd = "ConformInfo" , keys = { { "<leader>cf" , function ( ) require ( "conform" ) . format ( { async = true } ) end , mode = { "n" , "x" } , desc = "Format" , } , { "<leader>cF" , function ( ) require ( "conform" ) . format ( { formatters = { "injected" } , async = true } ) end , mode = { "n" , "x" } , desc = "Format Injected Langs" , } , } , init = function ( ) require ( "ach.format" ) . setup ( ) end , opts = function ( ) return require ( "ach.format" ) . opts ( ) end , }
Runs each language's linters and shows what they find.
Repository: mfussenegger/nvim-lint
From lua/ach/plugins/lint.lua:
Full Spec
Full Spec
{ "mfussenegger/nvim-lint" , -- Loaded when a file opens, so the first file is linted and the status -- bar can name its linters from the start. event = { "BufReadPost" , "BufNewFile" , "BufWritePost" } , config = function ( ) require ( "ach.lint" ) . setup ( ) end , }
Downloads language servers, formatters, linters and debuggers into Neovim's own folder, at the versions mason-lock.json names (Space c m).
Repository: mason-org/mason.nvim
From lua/ach/plugins/mason.lua:
Options Full Spec
Options
opts = { ui = { icons = { package_installed = I. mason . installed , package_pending = I. mason . pending , package_uninstalled = I. mason . uninstalled , } , } , }
Full Spec
{ "mason-org/mason.nvim" , cmd = { "Mason" , "MasonInstall" , "MasonUninstall" , "MasonUninstallAll" , "MasonLog" , "MasonUpdate" } , keys = { { "<leader>cm" , "<cmd>Mason<cr>" , desc = "Mason" } } , init = function ( ) vim. api . nvim_create_user_command ( "AchMasonLock" , function ( ) local added = require ( "ach.masonlock" ) . adopt ( ) vim. notify ( # added == 0 and "mason-lock.json already pins every installed package" or ( "Pinned %s in mason-lock.json" ) : format ( table.concat ( added, ", " ) ) ) end , { desc = "Pin each installed Mason package that mason-lock.json does not list" } ) vim. api . nvim_create_user_command ( "AchMasonUpdate" , function ( ) vim. notify ( "Updating Mason packages" ) require ( "ach.masonlock" ) . update ( function ( changed, failed ) local lines = { # changed == 0 and "Every Mason package is up to date" or ( "Updated " .. table.concat ( changed, ", " ) ) } if # failed > 0 then lines [ # lines + 1 ] = "Could not update " .. table.concat ( failed, ", " ) end vim. notify ( table.concat ( lines, " \n " ) , # failed > 0 and vim. log . levels . WARN or vim. log . levels . INFO ) end ) end , { desc = "Update every installed Mason package and move its pin" } ) end , opts = { ui = { icons = { package_installed = I. mason . installed , package_pending = I. mason . pending , package_uninstalled = I. mason . uninstalled , } , } , } , }
Starting settings for each language server, added to from lua/ach/servers.lua.
Repository: neovim/nvim-lspconfig
From lua/ach/plugins/lsp.lua:
Full Spec
Full Spec
{ "neovim/nvim-lspconfig" , -- Loaded as the first file is read, so the diagnostics' look and the -- servers' settings are in place before anything reports on it, and with -- no file after the first screen. Its lsp/ folder must be on the runtime -- path before the first server is enabled, so lua/ach/lsp.lua loads it -- then too, for a file type set on a buffer with no file. event = { "BufReadPre" , "BufNewFile" , "VeryLazy" } , config = function ( ) require ( "ach.lsp" ) . setup ( ) end , }
The schemas that tell the JSON and YAML servers what a file such as package.json may hold.
Repository: b0o/SchemaStore.nvim
From lua/ach/plugins/lsp.lua:
Full Spec
Full Spec
{ "b0o/SchemaStore.nvim" , lazy = true , version = false }
Installs the Tree-sitter parsers, which read each language's syntax for highlighting, indenting and selecting.
Repository: nvim-treesitter/nvim-treesitter
From lua/ach/plugins/treesitter.lua:
Full Spec
Full Spec
{ "nvim-treesitter/nvim-treesitter" , branch = "main" , -- The main branch says it does not support lazy loading, meaning its -- commands and parser folder must be there before a file needs them. -- LazyVim loads it lazily all the same, and so does this: at the start -- when a file is named, otherwise after the first screen, or sooner when -- lua/ach/treesitter.lua starts it on a buffer or one of its commands runs. lazy = vim. fn . argc ( - 1 ) == 0 , event = "VeryLazy" , cmd = { "TSUpdate" , "TSInstall" , "TSInstallFromGrammar" , "TSUninstall" , "TSLog" } , build = ":TSUpdate" , init = function ( ) -- nvim-treesitter rereads its parser list on this event, so the table's -- own parsers are added back each time. vim. api . nvim_create_autocmd ( "User" , { pattern = "TSUpdate" , callback = function ( ) require ( "ach.treesitter" ) . register_custom ( ) end , } ) end , config = function ( ) require ( "nvim-treesitter" ) . setup ( { } ) end , }
Text objects and moves by syntax: functions, classes and parameters.
Repository: nvim-treesitter/nvim-treesitter-textobjects
From lua/ach/plugins/treesitter.lua:
Full Spec
Full Spec
{ "nvim-treesitter/nvim-treesitter-textobjects" , branch = "main" , event = "VeryLazy" , config = function ( ) require ( "nvim-treesitter-textobjects" ) . setup ( { move = { set_jumps = true } } ) -- Buffers opened before VeryLazy were attached before these queries -- were on the runtime path, so they get their moves now. for _, buf in ipairs ( vim. api . nvim_list_bufs ( ) ) do if vim. api . nvim_buf_is_loaded ( buf ) then require ( "ach.treesitter" ) . attach ( buf ) end end end , }
Keeps the side panels, such as the file tree, the problem list and the Claude Code panel, at fixed places and sizes.
Repository: folke/edgy.nvim
From lua/ach/plugins/ui.lua:
Options Full Spec
Options
opts = function ( ) local opts = { bottom = { { ft = "qf" , title = "QuickFix" } , { ft = "help" , size = { height = 20 } , -- A help file opened for editing is an ordinary file, not a docked page. filter = function ( buf ) return vim. bo [ buf ] . buftype == "help" end , } , } , right = { -- The Claude Code panel's view comes first, so it claims the panel -- before the generic terminal view the loop below appends, which -- names no width and would leave the panel 30 columns wide. require ( "ach.claude" ) . view ( ) , { title = "Grug Far" , ft = "grug-far" , size = { width = 0.4 } } , } , -- Inside a docked pane, Ctrl and the arrows resize the pane. keys = { [ "<c-Right>" ] = function ( win ) win : resize ( "width" , 2 ) end , [ "<c-Left>" ] = function ( win ) win : resize ( "width" , - 2 ) end , [ "<c-Up>" ] = function ( win ) win : resize ( "height" , 2 ) end , [ "<c-Down>" ] = function ( win ) win : resize ( "height" , - 2 ) end , } , } for _, pos in ipairs ( { "top" , "bottom" , "left" , "right" } ) do opts [ pos ] = opts [ pos ] or { } table.insert ( opts [ pos ] , { ft = "trouble" , filter = function ( _, win ) local w = vim. w [ win ] . trouble return w and w. position == pos and w. type == "split" and w. relative == "editor" and not vim. w [ win ] . trouble_preview end , } ) table.insert ( opts [ pos ] , { ft = "snacks_terminal" , size = { height = 0.4 } , title = "%{b:snacks_terminal.id}: %{b:term_title}" , filter = function ( _, win ) local w = vim. w [ win ] . snacks_win return w and w. position == pos and w. relative == "editor" and not vim. w [ win ] . trouble_preview end , } ) end return opts end
Full Spec
-- Help, the terminal, the problem list and search-and-replace dock into fixed panes. { "folke/edgy.nvim" , event = "VeryLazy" , keys = { { "<leader>ue" , function ( ) require ( "edgy" ) . toggle ( ) end , desc = "Toggle Docked Panes" } , { "<leader>uE" , function ( ) require ( "edgy" ) . select ( ) end , desc = "Pick a Docked Pane" } , } , opts = function ( ) local opts = { bottom = { { ft = "qf" , title = "QuickFix" } , { ft = "help" , size = { height = 20 } , -- A help file opened for editing is an ordinary file, not a docked page. filter = function ( buf ) return vim. bo [ buf ] . buftype == "help" end , } , } , right = { -- The Claude Code panel's view comes first, so it claims the panel -- before the generic terminal view the loop below appends, which -- names no width and would leave the panel 30 columns wide. require ( "ach.claude" ) . view ( ) , { title = "Grug Far" , ft = "grug-far" , size = { width = 0.4 } } , } , -- Inside a docked pane, Ctrl and the arrows resize the pane. keys = { [ "<c-Right>" ] = function ( win ) win : resize ( "width" , 2 ) end , [ "<c-Left>" ] = function ( win ) win : resize ( "width" , - 2 ) end , [ "<c-Up>" ] = function ( win ) win : resize ( "height" , 2 ) end , [ "<c-Down>" ] = function ( win ) win : resize ( "height" , - 2 ) end , } , } for _, pos in ipairs ( { "top" , "bottom" , "left" , "right" } ) do opts [ pos ] = opts [ pos ] or { } table.insert ( opts [ pos ] , { ft = "trouble" , filter = function ( _, win ) local w = vim. w [ win ] . trouble return w and w. position == pos and w. type == "split" and w. relative == "editor" and not vim. w [ win ] . trouble_preview end , } ) table.insert ( opts [ pos ] , { ft = "snacks_terminal" , size = { height = 0.4 } , title = "%{b:snacks_terminal.id}: %{b:term_title}" , filter = function ( _, win ) local w = vim. w [ win ] . snacks_win return w and w. position == pos and w. relative == "editor" and not vim. w [ win ] . trouble_preview end , } ) end return opts end , }
The status bar along the bottom of the screen.
Repository: nvim-lualine/lualine.nvim
From lua/ach/plugins/statusline.lua:
Options Full Spec
Options
opts = function ( ) return require ( "ach.statusline" ) . options ( ) end
Full Spec
{ "nvim-lualine/lualine.nvim" , event = "VeryLazy" , dependencies = { "nvim-mini/mini.icons" } , opts = function ( ) return require ( "ach.statusline" ) . options ( ) end , config = function ( _, opts ) require ( "ach.statusline" ) . setup ( opts ) end , }
Shows a colour code such as #1a1b26 in the colour it names.
Repository: nvim-mini/mini.hipatterns
From lua/ach/plugins/ui.lua:
Options Full Spec
Options
opts = function ( ) return { highlighters = { hex_color = require ( "mini.hipatterns" ) . gen_highlighter . hex_color ( ) } } end
Full Spec
-- A swatch behind every hex colour such as #rrggbb. { "nvim-mini/mini.hipatterns" , event = { "BufReadPre" , "BufNewFile" } , opts = function ( ) return { highlighters = { hex_color = require ( "mini.hipatterns" ) . gen_highlighter . hex_color ( ) } } end , }
An icon for each file type, folder and plugin.
Repository: nvim-mini/mini.icons
From lua/ach/plugins/statusline.lua:
Options Full Spec
Options
-- The icon database's overrides: the hardware languages get chips, gates and -- waveforms, and file types mini.icons does not know get an icon of their own. opts = function ( ) return require ( "ach.icons" ) . mini ( ) end
Full Spec
{ "nvim-mini/mini.icons" , -- The icon database's overrides: the hardware languages get chips, gates and -- waveforms, and file types mini.icons does not know get an icon of their own. opts = function ( ) return require ( "ach.icons" ) . mini ( ) end , init = function ( ) -- Plugins that ask for nvim-web-devicons get mini.icons instead. package.preload [ "nvim-web-devicons" ] = function ( ) require ( "mini.icons" ) . mock_nvim_web_devicons ( ) return package.loaded [ "nvim-web-devicons" ] end end , }
Colours each level of nested brackets differently.
Repository: HiPhish/rainbow-delimiters.nvim
From lua/ach/plugins/ui.lua:
Full Spec
Full Spec
-- Each nesting level of brackets in its own colour, from tokyonight's rainbow groups. -- It reads no options, so lazy.nvim only has to put it on the runtime path. { "HiPhish/rainbow-delimiters.nvim" , event = { "BufReadPre" , "BufNewFile" } }
The plugin manager. It installs each plugin at the commit lazy-lock.json names, and loads each one when it is first needed.
Repository: folke/lazy.nvim
From lua/ach/plugins/core.lua:
Full Spec
Full Spec
{ "folke/lazy.nvim" , version = false }
Saves which files were open in each folder, so Space q s brings them back.
Repository: folke/persistence.nvim
From lua/ach/plugins/editor.lua:
Options Full Spec
Full Spec
-- One session per folder, saved on quit under ~/.local/state/nvim/sessions. { "folke/persistence.nvim" , event = "BufReadPre" , opts = { } , keys = { { "<leader>qs" , function ( ) require ( "persistence" ) . load ( ) end , desc = "Restore Session for This Folder" } , { "<leader>qS" , function ( ) require ( "persistence" ) . select ( ) end , desc = "Pick a Session" } , { "<leader>ql" , function ( ) require ( "persistence" ) . load ( { last = true } ) end , desc = "Restore Last Session" } , { "<leader>qd" , function ( ) require ( "persistence" ) . stop ( ) end , desc = "Don't Save This Session" } , } , }
A library of Lua functions other plugins build on, among them octo.nvim.
Repository: nvim-lua/plenary.nvim
lazy.nvim installs it as a dependency of octo.nvim, in lua/ach/plugins/git.lua:
Full Spec
Full Spec
dependencies = { "nvim-lua/plenary.nvim" }
Many small tools in one plugin. Here it gives the file picker, the dashboard, notifications, toggles, the terminal, the file tree, indent guides, the git keys and the image previews.
Repository: folke/snacks.nvim
From lua/ach/plugins/dashboard.lua:
Options Full Spec
Options
opts = { notifier = { enabled = true , timeout = 3000 } , dashboard = { enabled = true , sections = { function ( self ) return require ( "ach.dashboard" ) . sections ( self ) end , } , } , }
Full Spec
{ "folke/snacks.nvim" , lazy = false , priority = 1000 , opts = { notifier = { enabled = true , timeout = 3000 } , dashboard = { enabled = true , sections = { function ( self ) return require ( "ach.dashboard" ) . sections ( self ) end , } , } , } , }
From lua/ach/plugins/editor.lua:
Options Full Spec
Options
opts = { explorer = { enabled = true } , bigfile = { enabled = true } , quickfile = { enabled = true } , }
Full Spec
-- The file tree with git status, and two guards for very large or first-opened files. { "folke/snacks.nvim" , opts = { explorer = { enabled = true } , bigfile = { enabled = true } , quickfile = { enabled = true } , } , keys = { { "<leader>fe" , function ( ) Snacks. explorer ( { cwd = root ( ) } ) end , desc = "File Tree (project)" } , { "<leader>fE" , function ( ) Snacks. explorer ( ) end , desc = "File Tree (working folder)" } , { "<leader>e" , "<leader>fe" , desc = "File Tree (project)" , remap = true } , { "<leader>E" , "<leader>fE" , desc = "File Tree (working folder)" , remap = true } , } , }
From lua/ach/plugins/git.lua:
Full Spec
Full Spec
{ "folke/snacks.nvim" , keys = { { "<leader>gg" , git ( "lazygit" ) , desc = "Lazygit (Root Dir)" } , { "<leader>gG" , git ( "lazygit" , "cwd" ) , desc = "Lazygit (cwd)" } , { "<leader>gs" , git ( "pick" , "git_status" ) , desc = "Git Status" } , { "<leader>gS" , git ( "pick" , "git_stash" ) , desc = "Git Stash" } , { "<leader>gd" , git ( "pick" , "git_diff" ) , desc = "Git Diff (hunks)" } , { "<leader>gl" , git ( "pick" , "git_log" ) , desc = "Git Log (Root Dir)" } , { "<leader>gL" , git ( "pick" , "git_log" , "cwd" ) , desc = "Git Log (cwd)" } , { "<leader>gf" , git ( "pick" , "git_log_file" ) , desc = "Git File History" } , { "<leader>gb" , git ( "pick" , "git_log_line" ) , desc = "Git Line History" } , { "<leader>gc" , git ( "pick" , "git_branches" ) , desc = "Git Branches" } , { "<leader>gB" , git ( "browse" ) , mode = { "n" , "x" } , desc = "Git Browse (open)" } , { "<leader>gY" , git ( "copy_link" ) , mode = { "n" , "x" } , desc = "Git Browse (copy link)" } , } , }
From lua/ach/plugins/keys.lua:
Options Full Spec
Options
opts = { picker = { enabled = true , icons = { kinds = I. spaced ( I. kinds ) , diagnostics = I. spaced ( I. diagnostics ) } , } , }
Full Spec
{ "folke/snacks.nvim" , opts = { picker = { enabled = true , icons = { kinds = I. spaced ( I. kinds ) , diagnostics = I. spaced ( I. diagnostics ) } , } , } , -- stylua: ignore keys = { { "<leader><space>" , function ( ) Snacks. picker . files ( { cwd = root ( ) } ) end , desc = "Find Files (Root Dir)" } , { "<leader>," , function ( ) Snacks. picker . buffers ( ) end , desc = "Buffers" } , { "<leader>/" , function ( ) Snacks. picker . grep ( { cwd = root ( ) } ) end , desc = "Grep (Root Dir)" } , { "<leader>:" , function ( ) Snacks. picker . command_history ( ) end , desc = "Command History" } , { "<leader>n" , function ( ) Snacks. picker . notifications ( ) end , desc = "Notification History" } , -- find { "<leader>fb" , function ( ) Snacks. picker . buffers ( ) end , desc = "Buffers" } , { "<leader>fc" , function ( ) Snacks. picker . files ( { cwd = vim. g . ach_root } ) end , desc = "Find Config File" } , { "<leader>ff" , function ( ) Snacks. picker . files ( { cwd = root ( ) } ) end , desc = "Find Files (Root Dir)" } , { "<leader>fF" , function ( ) Snacks. picker . files ( ) end , desc = "Find Files (cwd)" } , { "<leader>fg" , function ( ) Snacks. picker . git_files ( ) end , desc = "Find Files (git-files)" } , { "<leader>fp" , function ( ) Snacks. picker . projects ( ) end , desc = "Projects" } , { "<leader>fr" , function ( ) Snacks. picker . recent ( ) end , desc = "Recent" } , { "<leader>fR" , function ( ) Snacks. picker . recent ( { filter = { cwd = true } } ) end , desc = "Recent (cwd)" } , -- search { '<leader>s"' , function ( ) Snacks. picker . registers ( ) end , desc = "Registers" } , { "<leader>s/" , function ( ) Snacks. picker . search_history ( ) end , desc = "Search History" } , { "<leader>sa" , function ( ) Snacks. picker . autocmds ( ) end , desc = "Autocmds" } , { "<leader>sb" , function ( ) Snacks. picker . lines ( ) end , desc = "Buffer Lines" } , { "<leader>sB" , function ( ) Snacks. picker . grep_buffers ( ) end , desc = "Grep Open Buffers" } , { "<leader>sc" , function ( ) Snacks. picker . command_history ( ) end , desc = "Command History" } , { "<leader>sC" , function ( ) Snacks. picker . commands ( ) end , desc = "Commands" } , { "<leader>sd" , function ( ) Snacks. picker . diagnostics ( ) end , desc = "Diagnostics" } , { "<leader>sD" , function ( ) Snacks. picker . diagnostics_buffer ( ) end , desc = "Buffer Diagnostics" } , { "<leader>sg" , function ( ) Snacks. picker . grep ( { cwd = root ( ) } ) end , desc = "Grep (Root Dir)" } , { "<leader>sG" , function ( ) Snacks. picker . grep ( ) end , desc = "Grep (cwd)" } , { "<leader>sh" , function ( ) Snacks. picker . help ( ) end , desc = "Help Pages" } , { "<leader>sH" , function ( ) Snacks. picker . highlights ( ) end , desc = "Highlights" } , { "<leader>si" , function ( ) Snacks. picker . icons ( ) end , desc = "Icons" } , { "<leader>sj" , function ( ) Snacks. picker . jumps ( ) end , desc = "Jumps" } , { "<leader>sk" , function ( ) Snacks. picker . keymaps ( ) end , desc = "Keymaps" } , { "<leader>sl" , function ( ) Snacks. picker . loclist ( ) end , desc = "Location List" } , { "<leader>sm" , function ( ) Snacks. picker . marks ( ) end , desc = "Marks" } , { "<leader>sM" , function ( ) Snacks. picker . man ( ) end , desc = "Man Pages" } , { "<leader>sp" , function ( ) Snacks. picker . lazy ( ) end , desc = "Search for Plugin Spec" } , { "<leader>sq" , function ( ) Snacks. picker . qflist ( ) end , desc = "Quickfix List" } , { "<leader>sR" , function ( ) Snacks. picker . resume ( ) end , desc = "Resume" } , { "<leader>su" , function ( ) Snacks. picker . undo ( ) end , desc = "Undo History" } , { "<leader>sw" , function ( ) Snacks. picker . grep_word ( { cwd = root ( ) } ) end , desc = "Selection or Word (Root Dir)" , mode = { "n" , "x" } } , { "<leader>sW" , function ( ) Snacks. picker . grep_word ( ) end , desc = "Selection or Word (cwd)" , mode = { "n" , "x" } } , } , }
From lua/ach/plugins/markdown.lua:
Options Full Spec
Options
opts = { image = { enabled = true } }
Full Spec
{ "folke/snacks.nvim" , opts = { image = { enabled = true } } , }
From lua/ach/plugins/tools.lua:
Full Spec
Full Spec
{ "folke/snacks.nvim" , keys = { { "<leader>cx" , function ( ) require ( "ach.x86" ) . lookup ( ) end , desc = "x86 Manual" , } , { "<leader>N" , function ( ) require ( "ach.news" ) . open ( ) end , desc = "News" , } , } , }
From lua/ach/plugins/ui.lua:
Options Full Spec
Options
opts = { indent = { enabled = true } , scope = { enabled = true } , words = { enabled = true } , statuscolumn = { enabled = true } , input = { enabled = true } , }
Full Spec
-- Indent guides, the current scope, highlights on other uses of the word under the -- cursor, the line-number column and the input box. { "folke/snacks.nvim" , opts = { indent = { enabled = true } , scope = { enabled = true } , words = { enabled = true } , statuscolumn = { enabled = true } , input = { enabled = true } , } , }
Reads which debug packages Mason has installed and sets up an adapter and launch choices for each.
Repository: jay-babu/mason-nvim-dap.nvim
From lua/ach/plugins/dap.lua:
Full Spec
Full Spec
{ "jay-babu/mason-nvim-dap.nvim" , version = "^2" , dependencies = { "mason-org/mason.nvim" } }
The debugger client: breakpoints, stepping and inspecting.
Repository: mfussenegger/nvim-dap
From lua/ach/plugins/dap.lua:
Full Spec
Full Spec
{ "mfussenegger/nvim-dap" , commit = "cfa2d58f4537aca6ca83e2de1a0d9f1491121264" , dependencies = { { "rcarriga/nvim-dap-ui" , commit = "cc9dd33aade7f20bae414d0cba163bc60d4d4b43" } , { "nvim-neotest/nvim-nio" , commit = "edcc181a875301dd21840189aa2f2f9ad69fc172" } , { "theHamsta/nvim-dap-virtual-text" , commit = "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" } , { "jay-babu/mason-nvim-dap.nvim" , version = "^2" , dependencies = { "mason-org/mason.nvim" } } , { "mfussenegger/nvim-dap-python" , commit = "1808458eba2b18f178f990e01376941a42c7f93b" } , } , cmd = { "DapContinue" , "DapToggleBreakpoint" , "DapClearBreakpoints" , "DapToggleRepl" , "DapStepOver" , "DapStepInto" , "DapStepOut" , "DapPause" , "DapTerminate" , "DapDisconnect" , "DapRestartFrame" , "DapNew" , "DapEval" , "DapSetLogLevel" , "DapShowLog" , } , keys = function ( ) local keys = { } for _, k in ipairs ( require ( "ach.dap" ) . keys ) do keys [ # keys + 1 ] = { k [ 1 ] , k [ 2 ] , desc = k [ 3 ] , mode = k [ 4 ] } end return keys end , config = function ( ) require ( "ach.dap" ) . setup ( ) end , }
Debugs Python through debugpy.
Repository: mfussenegger/nvim-dap-python
From lua/ach/plugins/dap.lua:
Full Spec
Full Spec
{ "mfussenegger/nvim-dap-python" , commit = "1808458eba2b18f178f990e01376941a42c7f93b" }
The debugger's panels (Space d u).
Repository: rcarriga/nvim-dap-ui
From lua/ach/plugins/dap.lua:
Full Spec
Full Spec
{ "rcarriga/nvim-dap-ui" , commit = "cc9dd33aade7f20bae414d0cba163bc60d4d4b43" }
Shows each variable's value beside the code while the program is paused.
Repository: theHamsta/nvim-dap-virtual-text
From lua/ach/plugins/dap.lua:
Full Spec
Full Spec
{ "theHamsta/nvim-dap-virtual-text" , commit = "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" }
A library for running Lua side by side, which nvim-dap-ui needs.
Repository: nvim-neotest/nvim-nio
From lua/ach/plugins/dap.lua:
Full Spec
Full Spec
{ "nvim-neotest/nvim-nio" , commit = "edcc181a875301dd21840189aa2f2f9ad69fc172" }
Starts the Haskell language server, evaluates a module's examples, and debugs through hdb.
Repository: mrcjkb/haskell-tools.nvim
From lua/ach/plugins/managed.lua:
Full Spec
Full Spec
{ "mrcjkb/haskell-tools.nvim" , version = "^11" , lazy = false }
Starts the Lean server and shows the proof state beside the file.
Repository: Julian/lean.nvim
From lua/ach/plugins/managed.lua:
Full Spec
Full Spec
-- Lean, loaded as a .lean file is read or created, before its file type is -- set, so its own ftplugin and commands are there when the type is. { "Julian/lean.nvim" , commit = "42186878a385ab021296e8f8024521d11a661754" , event = { "BufReadPre *.lean" , "BufNewFile *.lean" } , }
Starts jdtls for Java, imports the project, and runs the debugger and the tests.
Repository: mfussenegger/nvim-jdtls
From lua/ach/plugins/managed.lua:
Full Spec
Full Spec
-- Java and Scala, loaded when ach.managed first requires them. { "mfussenegger/nvim-jdtls" , commit = "6e9d953f0b82bccdb834cfde0e893f3119c22592" }
Starts Metals for Scala, with its own debug server.
Repository: scalameta/nvim-metals
From lua/ach/plugins/managed.lua:
Full Spec
Full Spec
{ "scalameta/nvim-metals" , commit = "a4b20656bf1014404dd63bf9fd5f22fcc50fee52" }
Starts rust-analyzer for Rust, adds Cargo's commands, and debugs through codelldb.
Repository: mrcjkb/rustaceanvim
From lua/ach/plugins/managed.lua:
Full Spec
Full Spec
-- Rust and Haskell. Neither may be lazy-loaded: each does its work from an -- ftplugin, which must be on the runtime path before the first file of its -- type opens, and each loads the rest of itself only when first used. { "mrcjkb/rustaceanvim" , version = "^9" , lazy = false }
Reads LilyPond scores: highlighting, a check each time typing stops, the PDF in Skim on Backslash o and playback through FluidSynth on Backslash p. It downloads its own program the first time a score opens.
Repository: anirbanchakraborty-dev/swara
From lua/ach/plugins/lilypond.lua:
Options Full Spec
Options
opts = function ( ) return { -- Saving formats through conform, whose LSP fallback asks Swara's -- server, so the autoformat switches govern LilyPond like any other -- language. Swara's own format on save would format a second time. format_on_save = false , -- A dry run, as scripts/check makes, downloads nothing. A file address -- that does not exist fails at once, without the network. release_base_url = require ( "ach.install" ) . dry and "file:///nonexistent/swara" or nil , } end
Full Spec
{ "anirbanchakraborty-dev/swara" , -- The plugin downloads the release matching its own version, so lazy.nvim -- takes only released versions, never a commit between two releases. version = "^0.1" , ft = "lilypond" , opts = function ( ) return { -- Saving formats through conform, whose LSP fallback asks Swara's -- server, so the autoformat switches govern LilyPond like any other -- language. Swara's own format on save would format a second time. format_on_save = false , -- A dry run, as scripts/check makes, downloads nothing. A file address -- that does not exist fails at once, without the network. release_base_url = require ( "ach.install" ) . dry and "file:///nonexistent/swara" or nil , } end , }
Every uncommitted change side by side, and a file's history (Space g D).
Repository: sindrets/diffview.nvim
From lua/ach/plugins/git.lua:
Options Full Spec
Options
opts = { enhanced_diff_hl = true , -- A merge conflict shows the two sides above and the result below. view = { merge_tool = { layout = "diff3_mixed" } } , }
Full Spec
{ "sindrets/diffview.nvim" , cmd = { "DiffviewOpen" , "DiffviewClose" , "DiffviewFileHistory" , "DiffviewToggleFiles" , "DiffviewFocusFiles" , "DiffviewRefresh" , } , opts = { enhanced_diff_hl = true , -- A merge conflict shows the two sides above and the result below. view = { merge_tool = { layout = "diff3_mixed" } } , } , keys = { { "<leader>gD" , git ( "diffview" , "open" ) , desc = "Diff View (Root Dir)" } , { "<leader>gF" , git ( "diffview" , "file" ) , desc = "File History (Diff View)" } , } , }
Change bars in the margin, and keys to move between changes and stage them. ] h moves to the next.
Repository: lewis6991/gitsigns.nvim
From lua/ach/plugins/git.lua:
Options Full Spec
Options
opts = function ( ) return require ( "ach.git" ) . gitsigns_opts ( ) end
Full Spec
{ "lewis6991/gitsigns.nvim" , event = { "BufReadPre" , "BufNewFile" } , opts = function ( ) return require ( "ach.git" ) . gitsigns_opts ( ) end , config = function ( _, opts ) require ( "gitsigns" ) . setup ( opts ) require ( "ach.git" ) . toggles ( ) end , }
git's status page inside Neovim, where changes are staged and committed (Space g n).
Repository: NeogitOrg/neogit
From lua/ach/plugins/git.lua:
Options Full Spec
Options
opts = { kind = "tab" , graph_style = "unicode" , integrations = { diffview = true , snacks = true } , }
Full Spec
{ "NeogitOrg/neogit" , cmd = "Neogit" , dependencies = { "sindrets/diffview.nvim" } , opts = { kind = "tab" , graph_style = "unicode" , integrations = { diffview = true , snacks = true } , } , keys = { { "<leader>gn" , git ( "neogit" ) , desc = "Neogit (Root Dir)" } , } , }
GitHub's issues and pull requests, through gh, on Space g i and Space g p.
Repository: pwntester/octo.nvim
From lua/ach/plugins/git.lua:
Options Full Spec
Options
opts = { picker = "snacks" , enable_builtin = true }
Full Spec
{ "pwntester/octo.nvim" , cmd = "Octo" , -- Reopening an octo:// buffer, from the jump list or a session, loads it. event = { { event = "BufReadCmd" , pattern = "octo://*" } } , dependencies = { "nvim-lua/plenary.nvim" } , opts = { picker = "snacks" , enable_builtin = true } , keys = { { "<leader>gi" , git ( "octo" , "issue list" ) , desc = "GitHub Issues" } , { "<leader>gp" , git ( "octo" , "pr list" ) , desc = "GitHub Pull Requests" } , } , }
Claude Code in a panel beside the code. It sees the open file and the selection, and shows each change it proposes side by side (Space a c).
Repository: coder/claudecode.nvim
From lua/ach/plugins/claude.lua:
Options Full Spec
Options
opts = function ( ) return require ( "ach.claude" ) . opts ( ) end
Full Spec
{ "coder/claudecode.nvim" , -- Loaded once Neovim is idle, so the server is up before Claude Code looks -- for an editor, without slowing the start. event = "VeryLazy" , dependencies = { "folke/snacks.nvim" } , cmd = { "ClaudeCode" , "ClaudeCodeAdd" , "ClaudeCodeClose" , "ClaudeCodeCloseAllDiffs" , "ClaudeCodeDiffAccept" , "ClaudeCodeDiffDeny" , "ClaudeCodeFocus" , "ClaudeCodeOpen" , "ClaudeCodeSelectModel" , "ClaudeCodeSend" , "ClaudeCodeSendText" , "ClaudeCodeStart" , "ClaudeCodeStatus" , "ClaudeCodeStop" , "ClaudeCodeTreeAdd" , } , opts = function ( ) return require ( "ach.claude" ) . opts ( ) end , keys = { { "<leader>ac" , claude ( "ClaudeCode" ) , desc = "Toggle Claude" } , { "<leader>af" , claude ( "ClaudeCodeFocus" ) , desc = "Focus Claude" } , { "<leader>ar" , claude ( "ClaudeCode --resume" ) , desc = "Resume Claude" } , { "<leader>aC" , claude ( "ClaudeCode --continue" ) , desc = "Continue Claude" } , { "<leader>am" , claude ( "ClaudeCodeSelectModel" ) , desc = "Select Claude Model" } , -- ClaudeCodeAdd completes file names, so Neovim turns % into this file's name. { "<leader>ab" , claude ( "ClaudeCodeAdd %" ) , desc = "Add Buffer to Claude" } , { "<leader>as" , claude ( "ClaudeCodeSend" ) , mode = "x" , desc = "Send to Claude" } , { "<leader>as" , claude ( "ClaudeCodeTreeAdd" ) , ft = { "oil" , "snacks_picker_list" } , desc = "Add File to Claude" , } , { "<leader>aa" , claude ( "ClaudeCodeDiffAccept" ) , desc = "Accept Diff" } , { "<leader>ad" , claude ( "ClaudeCodeDiffDeny" ) , desc = "Deny Diff" } , } , }
Builds the PDF on Space c b, shows it in Skim, and jumps from the source to the PDF and back.
Repository: lervag/vimtex
From lua/ach/plugins/latex.lua:
Full Spec
Full Spec
{ "lervag/vimtex" , -- Loaded at start rather than on a LaTeX file, because the Neovim that -- Skim starts for an inverse search opens no LaTeX file and still needs -- the VimtexInverseSearch command. lazy = false , -- VimTeX reads its settings when it loads, so they are set first. init = function ( ) for name, value in pairs ( require ( "ach.latex" ) . globals ( ) ) do vim. g [ name ] = value end end , config = function ( ) vim. api . nvim_create_autocmd ( "User" , { group = vim. api . nvim_create_augroup ( "ach_latex" , { clear = true } ) , pattern = "VimtexEventInitPost" , callback = function ( ) require ( "ach.latex" ) . attach ( vim. api . nvim_get_current_buf ( ) ) end , } ) end , }
A preview in the browser that keeps up with the file as it changes (Space c p).
Repository: brianhuster/live-preview.nvim
From lua/ach/plugins/markdown.lua:
Options Full Spec
Full Spec
{ "brianhuster/live-preview.nvim" , cmd = "LivePreview" , opts = P. opts ( ) , -- Runs at start, so Space c p is on every Markdown file before the plugin -- itself has loaded. init = function ( ) vim. api . nvim_create_autocmd ( "FileType" , { group = vim. api . nvim_create_augroup ( "ach_markdown" , { clear = true } ) , pattern = P. file_types , callback = function ( ev ) require ( "ach.preview" ) . attach ( ev. buf ) end , } ) end , -- The guard goes on as the plugin loads, before its server can start. config = function ( _, opts ) require ( "livepreview.config" ) . set ( opts ) P. guard ( ) end , }
Draws headings, lists, tables and code blocks in place while a Markdown file is open.
Repository: MeanderingProgrammer/render-markdown.nvim
From lua/ach/plugins/markdown.lua:
Options Full Spec
Options
opts = { file_types = P. file_types , debounce = debounce, completions = { blink = { enabled = true } } , -- snacks draws formulas as pictures, and two drawings would overlap. latex = { enabled = false } , code = { sign = false , width = "block" , right_pad = 1 } , heading = { sign = false } , }
Full Spec
{ "MeanderingProgrammer/render-markdown.nvim" , ft = P. file_types , opts = { file_types = P. file_types , debounce = debounce, completions = { blink = { enabled = true } } , -- snacks draws formulas as pictures, and two drawings would overlap. latex = { enabled = false } , code = { sign = false , width = "block" , right_pad = 1 } , heading = { sign = false } , } , config = function ( _, opts ) require ( "render-markdown" ) . setup ( opts ) I. toggle ( Snacks. toggle ( { id = "render_markdown" , name = "Render Markdown" , get = function ( ) return require ( "render-markdown" ) . get ( ) end , set = function ( state ) require ( "render-markdown" ) . set ( state ) -- render-markdown drops a drawing asked for within debounce of the -- last one, so a press straight after scrolling would change the -- setting and leave the old drawing up. Asking again once that -- window has passed makes the press land. vim. defer_fn ( function ( ) require ( "render-markdown" ) . set ( state ) end , debounce + 50 ) end , } ) ) : map ( "<leader>um" ) end , }
One subsection for each entry in lua/ach/languages.lua. Nothing here is installed until a file of that language is opened. Then its Tree-sitter parser, its language servers, its formatters and its linters install in the background, without asking, and switch on when they are ready. A compiler or runtime that only Homebrew provides is asked about first, once, in one line that names it and its rough size.
Each table names the parts: the file types the entry covers, the parsers that read its syntax, the language servers that check the code as it is typed, the formatters that tidy it on save, the linters that report problems, the debugger, and whether Harper, a grammar checker, reads it. The Entry tab is the language's entry in lua/ach/languages.lua. The Options tab, where there is one, holds its servers' settings from lua/ach/servers.lua.
Entry
Entry
angular = { ft = { "htmlangular" } , ts = { "angular" } , lsp = { "angularls" , "tailwindcss" } , fmt = { "prettier" } , mason = { "prettier" } , }
Entry
Entry
ansible = { ft = { "yaml.ansible" } , ts = { "yaml" } , lsp = { "ansiblels" } , mason = { "ansible-lint" } }
Entry
Entry
asm = { ft = { "asm" , "nasm" } , ts = { "asm" , "nasm" } , lsp = { "asm_lsp" } }
Entry Options
Entry
astro = { ft = { "astro" } , ts = { "astro" } , lsp = { "astro" , "tailwindcss" } }
Options
-- astro-ls will not start without a path to TypeScript's library. A project -- with TypeScript installed gives its own; a file outside one, or a project -- whose packages are not installed yet, gets the copy Mason installed with -- the server. astro = { before_init = function ( _, config ) local tsdk = require ( "lspconfig.util" ) . get_typescript_server_path ( config. root_dir ) if tsdk == "" then tsdk = mason .. "/astro-language-server/node_modules/typescript/lib" end config. init_options = config. init_options or { } config. init_options . typescript = config. init_options . typescript or { } config. init_options . typescript . tsdk = tsdk end , }
Entry
Entry
awk = { ft = { "awk" } , ts = { "awk" } , lsp = { "awk_ls" } }
Entry
Entry
bsv = { ft = { "bsv" } , ts = { "bsv" } }
Entry Options
Entry
c = { ft = { "c" , "cpp" , "objc" , "objcpp" , "cuda" } , ts = { "c" , "cpp" , "cuda" , "objc" } , lsp = { "clangd" } , fmt = { "clang_format" } , mason = { "clang-format" } , harper = { "c" , "cpp" } , }
Options
clangd = { cmd = { "clangd" , "--background-index" , "--clang-tidy" , "--header-insertion=iwyu" , "--completion-style=detailed" , "--function-arg-placeholders" , "--fallback-style=llvm" , } , init_options = { usePlaceholders = true , completeUnimported = true , clangdFileStatus = true } , }
Entry
Entry
clojure = { ft = { "clojure" , "edn" } , ts = { "clojure" } , lsp = { "clojure_lsp" } , harper = { "clojure" } }
Entry
Entry
cmake = { ft = { "cmake" } , ts = { "cmake" } , lsp = { "neocmake" } , -- cmake-format, from cmakelang, no longer runs on current Python. fmt = { "gersemi" } , lint = { "cmakelint" } , mason = { "gersemi" , "cmakelint" } , harper = true , }
Entry
Entry
css = { ft = { "css" , "scss" , "less" } , ts = { "css" , "scss" } , lsp = { "cssls" , "tailwindcss" } , fmt = { "prettier" } , mason = { "prettier" } , }
Entry
Entry
csv = { ft = { "csv" , "tsv" } , ts = { "csv" , "tsv" } }
Entry
Entry
dart = { ft = { "dart" } , ts = { "dart" } , lsp = { "dartls" } , fmt = { "dart_format" } , harper = true , system = { dart = { name = "the Dart SDK" , brew = { "dart-sdk" } , size = "about 600 MB" } } , }
Entry
Entry
devicetree = { ft = { "dts" } , ts = { "devicetree" } }
Entry
Entry
docker = { ft = { "dockerfile" , "yaml.docker-compose" } , ts = { "dockerfile" , "yaml" } , lsp = { "dockerls" , "docker_compose_language_service" } , lint = { dockerfile = { "hadolint" } } , mason = { "hadolint" } , }
Entry
Entry
dot = { ft = { "dot" } , ts = { "dot" } , lsp = { "dotls" } }
Entry
Entry
dotnet = { ft = { "cs" , "fsharp" } , ts = { "c_sharp" , "fsharp" } , lsp = { "csharp_ls" , "fsautocomplete" } , fmt = { cs = { "csharpier" } , fsharp = { "fantomas" } } , mason = { "csharpier" , "fantomas" , "netcoredbg" } , harper = { "cs" } , runtime = { name = ".NET SDK" , check = { "dotnet" , "--version" } , brew = { "dotnet" } , size = "about 800 MB" } , }
Entry
Entry
elixir = { ft = { "elixir" , "eelixir" , "heex" } , ts = { "elixir" , "heex" , "eex" } , lsp = { "elixirls" } , harper = { "elixir" } , runtime = { name = "Elixir" , check = { "elixir" , "--version" } , brew = { "elixir" } , size = "about 400 MB" } , }
Entry
Entry
elm = { ft = { "elm" } , ts = { "elm" } , lsp = { "elmls" } , fmt = { "elm_format" } , mason = { "elm-format" } }
Entry
Entry
ember = { ft = { "handlebars" , "javascript.glimmer" , "typescript.glimmer" } , ts = { "glimmer" , "glimmer_javascript" , "glimmer_typescript" } , lsp = { "ember" } , fmt = { "prettier" } , mason = { "prettier" } , }
Entry
Entry
erlang = { ft = { "erlang" } , ts = { "erlang" } , lsp = { "elp" } , runtime = { name = "Erlang" , check = { "erl" , "-version" } , brew = { "erlang" } , size = "about 350 MB" } , }
Entry
Entry
firrtl = { ft = { "firrtl" } , ts = { "firrtl" } }
Entry
Entry
fish = { ft = { "fish" } , ts = { "fish" } , lsp = { "fish_lsp" } , fmt = { "fish_indent" } , -- fish_indent ships with the shell, and fish-lsp runs it. runtime = { name = "fish" , check = { "fish" , "--version" } , brew = { "fish" } , size = "about 20 MB" } , }
Entry
Entry
fortran = { ft = { "fortran" } , ts = { "fortran" } , lsp = { "fortls" } }
Entry
Entry
git = { ft = { "gitcommit" , "gitconfig" , "gitrebase" , "gitignore" , "gitattributes" } , ts = { "git_config" , "gitcommit" , "git_rebase" , "gitignore" , "gitattributes" } , harper = { "gitcommit" } , }
Entry
Entry
gleam = { ft = { "gleam" } , ts = { "gleam" } , lsp = { "gleam" } , fmt = { "gleam" } , harper = true , system = { gleam = { name = "Gleam" , brew = { "gleam" } , size = "about 400 MB" } } , }
Entry
Entry
glsl = { ft = { "glsl" } , ts = { "glsl" } , lsp = { "glsl_analyzer" } }
Entry Options
Entry
go = { ft = { "go" , "gomod" , "gowork" , "gotmpl" } , ts = { "go" , "gomod" , "gowork" , "gosum" , "gotmpl" } , lsp = { "gopls" } , fmt = { go = { "goimports" , "gofumpt" } } , lint = { go = { "golangcilint" } } , mason = { "goimports" , "gofumpt" , "gomodifytags" , "impl" , "golangci-lint" , "delve" } , harper = { "go" } , runtime = { name = "Go" , check = { "go" , "version" } , brew = { "go" } , size = "about 250 MB" } , }
Options
gopls = { settings = { gopls = { gofumpt = true , codelenses = { generate = true , regenerate_cgo = true , test = true , tidy = true , upgrade_dependency = true , vendor = true , vulncheck = true , } , hints = { assignVariableTypes = true , compositeLiteralFields = true , compositeLiteralTypes = true , constantValues = true , functionTypeParameters = true , parameterNames = true , rangeVariableTypes = true , } , analyses = { nilness = true , unusedparams = true , unusedwrite = true } , usePlaceholders = true , staticcheck = true , directoryFilters = { "-.git" , "-.vscode" , "-.idea" , "-.vscode-test" , "-node_modules" } , semanticTokens = true , } , } , }
Entry
Entry
graphql = { ft = { "graphql" } , ts = { "graphql" } , lsp = { "graphql" } , fmt = { "prettier" } , mason = { "prettier" } , }
Entry
Entry
groovy = { ft = { "groovy" } , ts = { "groovy" } , lsp = { "groovyls" } , harper = true , runtime = java }
Entry
Entry
haskell = { ft = { "haskell" , "lhaskell" , "cabal" } , ts = { "haskell" } , managed = "haskell-tools.nvim" , fmt = { haskell = { "fourmolu" } , cabal = { "cabal_fmt" } } , lint = { haskell = { "hlint" } } , mason = { "haskell-language-server" , "fourmolu" , "hlint" } , harper = { "haskell" , "lhaskell" } , runtime = { name = "GHC" , check = { "ghc" , "--version" } , brew = { "ghcup" } , after = { { "ghcup" , "install" , "ghc" , "--set" , "recommended" } } , size = "about 3 GB" , } , }
Entry
Entry
helm = { ft = { "helm" } , ts = { "helm" } , lsp = { "helm_ls" } }
Entry
Entry
hlsl = { ft = { "hlsl" } , ts = { "hlsl" } , lsp = { "slangd" } }
Entry
Entry
html = { ft = { "html" } , ts = { "html" } , lsp = { "html" , "emmet_language_server" , "tailwindcss" } , fmt = { "prettier" } , mason = { "prettier" } , harper = true , }
Entry
Entry
ini = { ft = { "dosini" , "editorconfig" } , ts = { "ini" , "editorconfig" } }
Entry
Entry
java = { ft = { "java" } , ts = { "java" } , managed = "nvim-jdtls" , mason = { "jdtls" , "java-debug-adapter" , "java-test" } , harper = true , runtime = java, }
Entry
Entry
jq = { ft = { "jq" } , ts = { "jq" } }
Entry Options
Entry
json = { ft = { "json" , "jsonc" , "json5" } , ts = { "json" , "json5" } , lsp = { "jsonls" } , fmt = { "prettier" } , mason = { "prettier" } , }
Options
-- SchemaStore's catalogue, read when the server starts rather than when -- this file loads, so opening a Lua file never pays for it. jsonls = { before_init = function ( _, config ) config. settings . json . schemas = config. settings . json . schemas or { } vim. list_extend ( config. settings . json . schemas , require ( "schemastore" ) . json . schemas ( ) ) end , settings = { json = { format = { enable = true } , validate = { enable = true } } } , }
Entry Options
Entry
julia = { ft = { "julia" } , ts = { "julia" } , lsp = { "julials" } , runtime = { name = "Julia" , check = { "julia" , "--version" } , brew = { "julia" } , size = "about 1.5 GB" } , }
Options
-- Mason's julia-lsp takes the Julia environment to load as its one -- argument; nvim-lspconfig's command runs julia directly instead. julials = { cmd = function ( dispatchers, config ) local root = ( config and config. root_dir ) or vim. fn . getcwd ( ) return vim. lsp . rpc . start ( { "julia-lsp" , root } , dispatchers ) end , }
Entry
Entry
just = { ft = { "just" } , ts = { "just" } , lsp = { "just" } }
Entry
Entry
kconfig = { ft = { "kconfig" } , ts = { "kconfig" } }
Entry Options
Entry
kotlin = { ft = { "kotlin" } , ts = { "kotlin" } , lsp = { "kotlin_language_server" } , fmt = { "ktlint" } , lint = { "ktlint" } , mason = { "ktlint" , "kotlin-debug-adapter" } , harper = true , runtime = java, }
Options
-- nvim-lspconfig works the cache folder out once, from whichever buffer is -- current when its file loads, and outside a Gradle or Maven project leaves -- the options empty. Neovim sends an empty table as a JSON array, which the -- server refuses, so it never starts. Each start gets the project's root, -- or a folder of Neovim's own cache for a file outside a project. kotlin_language_server = { before_init = function ( params, config ) local storage = config. root_dir if not storage then storage = vim. fn . stdpath ( "cache" ) .. "/kotlin-language-server" vim. fn . mkdir ( storage, "p" ) end params. initializationOptions = { storagePath = storage } end , }
Entry
Entry
lean = { ft = { "lean" } , managed = "lean.nvim" , runtime = { name = "elan" , check = { "elan" , "--version" } , brew = { "elan-init" } , after = { { "elan" , "default" , "stable" } } , size = "about 1.5 GB" , } , }
Entry
Entry
lilypond = { ft = { "lilypond" } , system = { lilypond = { name = "LilyPond" , brew = { "lilypond" } , size = "about 400 MB" } } , }
Entry
Entry
linker = { ft = { "ld" } , ts = { "linkerscript" } }
Entry
Entry
llvm = { ft = { "llvm" } , ts = { "llvm" } }
Entry Options
Entry
lua = { ft = { "lua" } , ts = { "lua" , "luadoc" , "luap" } , lsp = { "lua_ls" } , fmt = { "stylua" } , mason = { "stylua" } , harper = true , }
Options
lua_ls = { settings = { Lua = { workspace = { checkThirdParty = false } , codeLens = { enable = true } , completion = { callSnippet = "Replace" } , doc = { privateName = { "^_" } } , hint = { enable = true , setType = false , paramType = true , paramName = "Disable" , semicolon = "Disable" , arrayIndex = "Disable" , } , } , } , }
Entry
Entry
make = { ft = { "make" , "automake" } , ts = { "make" } , lsp = { "autotools_ls" } }
Entry
Entry
markdown = { ft = { "markdown" , "markdown.mdx" } , ts = { "markdown" , "markdown_inline" } , lsp = { "marksman" } , fmt = { "prettier" , "markdownlint-cli2" } , lint = { "markdownlint-cli2" } , mason = { "prettier" , "markdownlint-cli2" } , harper = { "markdown" } , manual = true , }
Entry
Entry
meson = { ft = { "meson" } , ts = { "meson" } , lsp = { "mesonlsp" } }
Entry
Entry
mlir = { ft = { "mlir" } , ts = { "mlir" } , lsp = { "mlir_lsp_server" } , system = { [ "mlir-lsp-server" ] = llvm } }
Entry
Entry
ninja = { ft = { "ninja" } , ts = { "ninja" } }
Entry
Entry
nix = { ft = { "nix" } , ts = { "nix" } , lsp = { "nil_ls" } , fmt = { "nixfmt" } , lint = { "statix" } , mason = { "statix" } , -- nil asks Nix for its builtins as it builds, and Homebrew does not carry Nix. runtime = { name = "Nix" , check = { "nix" , "--version" } , command = "curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh" , } , -- Mason's nixfmt is built for Linux only. system = { nixfmt = { name = "nixfmt" , brew = { "nixfmt" } , size = "about 30 MB" } } , harper = true , }
Entry
Entry
nushell = { ft = { "nu" } , ts = { "nu" } , lsp = { "nushell" } , system = { nu = { name = "nushell" , brew = { "nushell" } , size = "about 60 MB" } } , }
Entry
Entry
ocaml = { ft = { "ocaml" , "ocamlinterface" } , ts = { "ocaml" , "ocaml_interface" } , lsp = { "ocamllsp" } , fmt = { "ocamlformat" } , mason = { "ocamlformat" } , runtime = { name = "OCaml" , check = { "ocaml" , "-version" } , brew = { "opam" } , after = { { "opam" , "init" , "-n" , "-y" } } , size = "about 600 MB" , } , }
Entry
Entry
perl = { ft = { "perl" } , ts = { "perl" } , lsp = { "perlnavigator" } }
Entry
Entry
php = { ft = { "php" } , ts = { "php" , "phpdoc" } , lsp = { "intelephense" } , fmt = { "php_cs_fixer" } , lint = { "phpcs" } , mason = { "php-cs-fixer" , "phpcs" , "php-debug-adapter" } , harper = true , runtime = { name = "PHP" , check = { "php" , "--version" } , brew = { "php" } , size = "about 500 MB" } , }
Entry Options
Entry
powershell = { ft = { "ps1" } , ts = { "powershell" } , lsp = { "powershell_es" } , runtime = { name = "PowerShell" , check = { "pwsh" , "-Version" } , brew = { "powershell" } , size = "about 900 MB" } , }
Options
powershell_es = { bundle_path = mason .. "/powershell-editor-services" , }
Entry
Entry
prisma = { ft = { "prisma" } , ts = { "prisma" } , lsp = { "prismals" } }
Entry
Entry
proto = { ft = { "proto" } , ts = { "proto" } , lsp = { "buf_ls" } , fmt = { "buf" } }
Entry Options
Entry
python = { ft = { "python" } , ts = { "python" , "rst" , "requirements" } , lsp = { "basedpyright" , "ruff" } , fmt = { "ruff_format" } , mason = { "debugpy" } , harper = true , }
Options
-- basedpyright's default mode reports far more than most code is written -- for; "standard" matches what pyright checks. basedpyright = { settings = { basedpyright = { analysis = { typeCheckingMode = "standard" } } } , } -- Ruff's hover only explains its own rule codes, and two hovers in one -- window bury basedpyright's, which documents the code itself. ruff = { init_options = { settings = { logLevel = "error" } } , on_init = function ( client ) client. server_capabilities . hoverProvider = false end , }
Entry
Entry
r = { ft = { "r" , "rmd" , "quarto" , "rnoweb" } , ts = { "r" , "rnoweb" , "markdown" } , lsp = { "r_language_server" } , harper = { "quarto" } , -- The server is an R package, which R builds from source on install. runtime = { name = "R" , check = { "Rscript" , "-e" , "library(languageserver)" } , brew = { "r" } , after = { { "Rscript" , "-e" , "install.packages('languageserver', repos = 'https://cloud.r-project.org')" } } , size = "about 1.5 GB" , } , }
Entry
Entry
rego = { ft = { "rego" } , ts = { "rego" } , lsp = { "regols" , "regal" } }
Entry
Entry
ruby = { ft = { "ruby" , "eruby" } , ts = { "ruby" , "embedded_template" } , lsp = { "ruby_lsp" , "rubocop" } , fmt = { ruby = { "rubocop" } , eruby = { "erb_format" } } , mason = { "erb-formatter" } , harper = { "ruby" } , runtime = { name = "Ruby 3" , check = { "ruby" , "-e" , "exit(RUBY_VERSION >= '3.0' ? 0 : 1)" } , brew = { "ruby" } , size = "about 100 MB" , } , }
Entry
Entry
rust = { ft = { "rust" } , ts = { "rust" , "ron" } , managed = "rustaceanvim" , mason = { "rust-analyzer" , "codelldb" } , harper = true , runtime = { name = "Rust" , check = { "cargo" , "--version" } , brew = { "rustup" } , after = { { "rustup" , "default" , "stable" } } , size = "about 1.5 GB" , } , }
Entry
Entry
scala = { ft = { "scala" , "sbt" } , ts = { "scala" } , managed = "nvim-metals" , harper = { "scala" } , runtime = { name = "Coursier" , check = { "coursier" , "list" } , brew = { "coursier" , "openjdk@21" } , size = "about 700 MB" , } , }
Entry
Entry
sh = { ft = { "sh" , "bash" , "zsh" } , ts = { "bash" , "zsh" } , lsp = { "bashls" } , fmt = { sh = { "shfmt" } , bash = { "shfmt" } } , mason = { "shfmt" , "shellcheck" } , harper = { "sh" } , }
Entry
Entry
solidity = { ft = { "solidity" } , ts = { "solidity" } , lsp = { "solidity_ls" } , harper = true }
Entry
Entry
sql = { ft = { "sql" , "mysql" , "plsql" } , ts = { "sql" } , fmt = { "sqlfluff" } , lint = { "sqlfluff" } , mason = { "sqlfluff" } , }
Entry
Entry
starlark = { ft = { "bzl" , "starlark" } , ts = { "starlark" } , lsp = { "starpls" } , fmt = { "buildifier" } , mason = { "buildifier" } , }
Entry
Entry
svelte = { ft = { "svelte" } , ts = { "svelte" } , lsp = { "svelte" , "tailwindcss" } }
Entry
Entry
swift = { ft = { "swift" } , ts = { "swift" } , lsp = { "sourcekit" } , harper = true , system = { [ "sourcekit-lsp" ] = xcode } , }
Entry
Entry
systemverilog = { ft = { "verilog" , "systemverilog" } , ts = { "systemverilog" } , lsp = { "verible" } , fmt = { "verible" } , mason = { "verible" } , }
Entry
Entry
tablegen = { ft = { "tablegen" } , ts = { "tablegen" } , lsp = { "tblgen_lsp_server" } , system = { [ "tblgen-lsp-server" ] = llvm } , }
Entry
Entry
tcl = { ft = { "tcl" , "sdc" , "xdc" } , ts = { "tcl" } , lsp = { "tclsp" } , lint = { "tclint" } }
Entry
Entry
terraform = { ft = { "terraform" , "terraform-vars" , "hcl" } , ts = { "terraform" , "hcl" } , lsp = { "terraformls" } , lint = { terraform = { "tflint" } } , mason = { "tflint" } , }
Entry
Entry
tex = { ft = { "tex" , "plaintex" , "bib" } , ts = { "latex" , "bibtex" } , lsp = { "texlab" } , harper = { "tex" , "plaintex" } , manual = true , }
Entry
Entry
text = { ft = { "text" } , harper = true , manual = true }
Entry
Entry
thrift = { ft = { "thrift" } , ts = { "thrift" } , lsp = { "thriftls" } }
Entry
Entry
toml = { ft = { "toml" } , ts = { "toml" } , lsp = { "taplo" } , fmt = { "taplo" } , harper = true }
Entry
Entry
twig = { ft = { "twig" } , ts = { "twig" } , lsp = { "twiggy_language_server" } }
Entry Options
Entry
typescript = { ft = { "javascript" , "javascriptreact" , "javascript.jsx" , "typescript" , "typescriptreact" , "typescript.tsx" } , ts = { "javascript" , "jsdoc" , "typescript" , "tsx" } , lsp = { "vtsls" , "eslint" , "tailwindcss" } , fmt = { "prettier" } , mason = { "prettier" , "js-debug-adapter" } , harper = { "javascript" , "javascriptreact" , "typescript" , "typescriptreact" } , }
Options
-- vtsls also serves Vue files, through Vue's TypeScript plugin, which Mason -- installs inside the Vue server's package. vtsls = { filetypes = { "javascript" , "javascriptreact" , "javascript.jsx" , "typescript" , "typescriptreact" , "typescript.tsx" , "vue" , } , settings = { complete_function_calls = true , vtsls = { enableMoveToFileCodeAction = true , autoUseWorkspaceTsdk = true , experimental = { maxInlayHintLength = 30 , completion = { enableServerSideFuzzyMatch = true } , } , tsserver = { globalPlugins = { { name = "@vue/typescript-plugin" , location = mason .. "/vue-language-server/node_modules/@vue/language-server" , languages = { "vue" } , configNamespace = "typescript" , enableForWorkspaceTypeScriptVersions = true , } , } , } , } , typescript = typescript, javascript = vim. deepcopy ( typescript ) , } , }
Entry
Entry
typst = { ft = { "typst" } , ts = { "typst" } , lsp = { "tinymist" } , fmt = { "typstyle" } , mason = { "typstyle" } , harper = true , manual = true , }
Entry
Entry
veryl = { ft = { "veryl" } , ts = { "veryl" } , lsp = { "veryl_ls" } }
Entry
Entry
vhdl = { ft = { "vhdl" } , ts = { "vhdl" } , lsp = { "vhdl_ls" } }
Entry
Entry
vim = { ft = { "vim" } , ts = { "vim" , "vimdoc" } , lsp = { "vimls" } }
Entry Options
Entry
vue = { ft = { "vue" } , ts = { "vue" } , lsp = { "vue_ls" , "vtsls" , "tailwindcss" } , fmt = { "prettier" } , mason = { "prettier" } , }
Options
-- vtsls also serves Vue files, through Vue's TypeScript plugin, which Mason -- installs inside the Vue server's package. vtsls = { filetypes = { "javascript" , "javascriptreact" , "javascript.jsx" , "typescript" , "typescriptreact" , "typescript.tsx" , "vue" , } , settings = { complete_function_calls = true , vtsls = { enableMoveToFileCodeAction = true , autoUseWorkspaceTsdk = true , experimental = { maxInlayHintLength = 30 , completion = { enableServerSideFuzzyMatch = true } , } , tsserver = { globalPlugins = { { name = "@vue/typescript-plugin" , location = mason .. "/vue-language-server/node_modules/@vue/language-server" , languages = { "vue" } , configNamespace = "typescript" , enableForWorkspaceTypeScriptVersions = true , } , } , } , } , typescript = typescript, javascript = vim. deepcopy ( typescript ) , } , }
Entry
Entry
wgsl = { ft = { "wgsl" } , ts = { "wgsl" } , lsp = { "wgsl_analyzer" } }
Entry
Entry
xml = { ft = { "xml" , "xsd" , "xslt" , "svg" } , ts = { "xml" } , lsp = { "lemminx" } }
Entry Options
Entry
yaml = { ft = { "yaml" } , ts = { "yaml" } , lsp = { "yamlls" } , fmt = { "prettier" } , mason = { "prettier" } }
Options
yamlls = { before_init = function ( _, config ) config. settings . yaml . schemas = vim. tbl_deep_extend ( "force" , config. settings . yaml . schemas or { } , require ( "schemastore" ) . yaml . schemas ( ) ) end , settings = { redhat = { telemetry = { enabled = false } } , yaml = { keyOrdering = false , format = { enable = true } , validate = true , -- SchemaStore.nvim supplies the catalogue; yamlls' own download is off. schemaStore = { enable = false , url = "" } , } , } , }
Entry
Entry
zig = { ft = { "zig" } , ts = { "zig" } , lsp = { "zls" } , harper = true , runtime = { name = "Zig" , check = { "zig" , "version" } , brew = { "zig" } , size = "about 2 GB" } , }