basic read env command
This commit is contained in:
parent
3d13be910f
commit
73131041fb
5
init.lua
5
init.lua
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue