mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 00:25:47 +02:00
enc: add new command
This commit is contained in:
parent
82d6ba2889
commit
5df3f7b2ab
3 changed files with 238 additions and 3 deletions
|
@ -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,
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue