enc: add new command

This commit is contained in:
pojok code 2025-06-16 05:54:53 +07:00
parent 82d6ba2889
commit 5df3f7b2ab
3 changed files with 238 additions and 3 deletions

View file

@ -11,6 +11,10 @@ return {
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "gopls" })
-- add run command for current filebuffer
vim.api.nvim_create_user_command("RunGo", function()
vim.cmd("term go run " .. vim.fn.expand("%"))
end, {})
end,
},
{