From f7b9e91062a7e3bdab65f4dbb0e7e6c81636b388 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Fri, 26 Jun 2026 20:24:33 -0500 Subject: [PATCH] doc/neovim: document plugin lua config type option Explain the type attribute in the plugins list configuration option, showing how to specify a Lua configuration block instead of VimScript. --- doc/languages-frameworks/neovim.section.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/languages-frameworks/neovim.section.md b/doc/languages-frameworks/neovim.section.md index 57aaae9212f9..ba258267352a 100644 --- a/doc/languages-frameworks/neovim.section.md +++ b/doc/languages-frameworks/neovim.section.md @@ -83,7 +83,8 @@ wrapNeovimUnstable neovim-unwrapped { vim.opt.colorcolumn = { 100 } vim.opt.termguicolors = true ''; - # plugins accepts a list of either plugins or { plugin = ...; config = ..vimscript.. }; + # plugins accepts a list of either plugins or attribute sets containing: + # { plugin = ...; config = ...; type = "viml"|"lua"; } (type defaults to "viml") plugins = with vimPlugins; [ { plugin = vim-obsession; @@ -91,6 +92,15 @@ wrapNeovimUnstable neovim-unwrapped { map $ Obsession ''; } + { + plugin = grug-far-nvim; + type = "lua"; + config = '' + require('grug-far').setup({ + startInInsertMode = false, + }) + ''; + } (nvim-treesitter.withPlugins (p: [ p.nix p.python ])) hex-nvim ];