bugfix #54 quickfix position

pull/59/head
ray-x 3 years ago
parent 1aab3bcea0
commit 45348a8c83

@ -1,4 +1,4 @@
go-nvim.txt: plugin for the Go programming language
go.txt: plugin for the Go programming language
==============================================================================
INTRODUCTION *go-nvim*
@ -173,6 +173,15 @@ COMMANDS *go-nvim-commands*
:GoTest {-tags=tagname}{pakcage_name} *:GoTest*
Test package
:GoTestFile {-tags=tagname} *:GoTestFile*
Test current file
:GoTestFunc {-tags=tagname} *:GoTestFunc*
Test current function
:GoAddTest *:GoAddTest*
Add unit test for current function
:GoFmt {-tags=tagname}{pakcage_name} *:GoFmt*
Format code with golines+gofumpt package
@ -233,6 +242,9 @@ COMMANDS *go-nvim-commands*
Open alternative file (test/go), Also GoAltS/GoAltV
:GoDoc {options} *:GoDoc*
e.g. GoDoc fmt.Println
==============================================================================
OPTIONS *go-nvim-options*

@ -82,7 +82,7 @@ function M.make(...)
vim.api.nvim_command("doautocmd QuickFixCmdPost")
end
if lines and #lines > 1 then
vim.cmd("copen")
vim.cmd("botright copen")
end
end

@ -290,7 +290,7 @@ M.run = function(...)
-- efm = vim.api.nvim_buf_get_option(bufnr, "errorformat")
})
vim.api.nvim_command("doautocmd QuickFixCmdPost")
vim.cmd([[copen]])
vim.cmd([[botright copen]])
end
})
end

Loading…
Cancel
Save