basic read env command

This commit is contained in:
Christoph J. Scherr 2025-01-27 11:00:06 +01:00
parent 3d13be910f
commit 73131041fb
Signed by: PlexSheep
GPG Key ID: 9EB784BB202BB7BB
1 changed files with 5 additions and 0 deletions

View File

@ -141,6 +141,11 @@ vim.opt.spell = true -- manually enable spell with `set spell` or `<leader>ts`
vim.opt.spelllang = 'en,de_de'
vim.opt.spellsuggest = 'double,50,timeout:5000'
-- user commands
vim.api.nvim_create_user_command('Env', function(opts)
vim.cmd(string.format('r!echo $%s', opts.fargs[1]))
end, { nargs = 1 })
-- autocommands
-- ===
local function augroup(name)