Nicolas Barbosa
63d81679d0
fix: remove cover file ( #107 )
...
* fix: remove cover file
* fix: coverage notify message
3 years ago
ray-x
dbfde6ea1b
fix double close when end dap session
3 years ago
Mochammad Hanif R
f5aa4a7046
Return cursor to previous cursor position ( #101 )
...
`GoGet` and `GoMod` opens up a new split and move the cursor there.
If the cursor isn't moved back to the *.go buffer, `utils.restart`
will try to spawn gopls in the terminal split, which results in
gopls failed to restart properly.
3 years ago
ray-x
058e748409
allow GoRun to run inside a terminal
3 years ago
ray-x
bed2b6818c
issue #82 allow close terminal in current buffer
3 years ago
Prescott Murphy
db7ecb86a6
Fix typo in rename.lua ( #99 )
3 years ago
ray-x
ef32d8914b
allow multipls arguments for go mod
3 years ago
ray-x
8c5d95b3ff
bugfix issue #96
3 years ago
ray-x
7b4f7620f7
failure message should not show
3 years ago
ray-x
3043e9bf04
gotest bench
3 years ago
Prescott Murphy
82d796a01f
Handle literal "go" in path for GoAlt command ( #93 )
...
The original logic fails if you have go in your path, like: `/Code/mygoproject/myfile.go` because the split will have more than two elements.
3 years ago
ray-x
ed3dfb85b2
Breaking changes for GoDebug, deprecate old argument and using linux style command line arguments
3 years ago
ray-x
0fe0a9ee33
feature: auto jump to quickfix list item if test failed
3 years ago
ray-x
f355905c00
bqf friendly qickfix output for testing
3 years ago
ray-x
1bc6249495
feature: in quickfix, shows full path name instead of name only. That allows jump to the failed location
3 years ago
ray-x
4c66365aa2
Add GoModeTidy and GoModeVendor
3 years ago
ray-x
630a813360
remove tagSupport, it is not supported by gopls
3 years ago
ray-x
d8638ab9c8
issue#88 cmp setup. set it as default
3 years ago
Darkclainer
0ca3de9f84
Fix gotests integration ( #87 )
...
GoAddTest, GoAddExpTest and GoAddAllTest affected.
Previously they weren't work with templates (go_nvim_test_template
variable) because file paths should be last argument to gotests.
Also removed different handling of stdout/stderr because seems that
gotests doesn't use stderr or produce any exit code except zero (that
probably OK, but not useful for go.nvim).
Also fixed README.md: description of GoAddTest, GoAddExpTest and
GoAddAllTest and setup example (go.nvim doesn't default test_template to
testify)
3 years ago
ray-x
3e905d07ac
health check for treesitter-go parser issue#86
3 years ago
ray-x
c9359bb14d
Allow lsp diagnostic setup passed from outside
3 years ago
ray-x
d98d4e9eda
better error message for dlv; dlv attach mode
3 years ago
ray-x
f5c029e5fa
Update GoGet. if cursor current line is a valid pkg url, will auto fill it to go get argument
3 years ago
ray-x
edbd796ded
Add GoStop command to stop the background task started with GoRun
3 years ago
ray-x
2b059afc54
GoGet
3 years ago
ray-x
4e3b2b1971
bugfix #81
3 years ago
ray-x
f599a5e2cc
gopls cmd fallback
3 years ago
ray-x
ce29866640
lsp installer path setup for version check
3 years ago
ray-x
180e44ac07
handle nil
3 years ago
ray-x
a853613467
use `-1` for random port
3 years ago
ray-x
ee3c36e25d
allow config debug port
3 years ago
ray.xu
4c54762e63
gopls vesion can be very slow, change to jobstart
3 years ago
ray.xu
f2b227d3e2
telescope codeaction loader
3 years ago
Craig Rodrigues
0f1740ed23
Fix URL for gotests for GoInstallBinaries ( #79 )
3 years ago
ray.xu
50a9fe57ec
textobject breaking changes https://github.com/nvim-treesitter/nvim-treesitter-textobjects/issues/169
3 years ago
ray.xu
2a2c5f4cd8
open qf only when on error
3 years ago
ray-x
532f7256b1
issue #71 , change warn/info/error to notify
3 years ago
Aleš Brelih
3c44e3a998
fix: test file function ( #78 )
...
Test file function wasn't working anymore. It didn't find functions to
test even though the sed found them.
Problem was in the escaping the pipe sign.
Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
3 years ago
Aleš Brelih
d369ef454d
fix: test fun defaults ( #77 )
...
The default package parameter for TestFun is not needed because this
function is meant to target the current file only. Using the default
package parameter increased run time of time function drastically.
Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
3 years ago
ray-x
b1271d5e6a
issue #71 packer loader failed to load plugins
3 years ago
ray-x
99cc459eed
cleanup asyncmake
3 years ago
ray-x
a191de4920
issue #76 better qf
3 years ago
ray-x
cd395e96fb
setup option to disable gopls doc format
3 years ago
ray-x
22fe0379de
check dap module before disconnect dap
3 years ago
ray-x
cad485661b
offset encoding
3 years ago
ray-x
e5ebbd9460
Add GoTest -c option, compile test package issue#76
3 years ago
ray-x
0d5f1c9f31
add health.lua
3 years ago
ray-x
2869c5b8fc
Add support for vscode launch.json. Allow launch debugger from config in .vscode/launch.json
3 years ago
ray-x
85f2300e72
issue #75 , better default package path for tests
3 years ago
ray-x
ff9a34bffb
issue #71 session and restart for the debugger
3 years ago
ray-x
ca1d46b4ab
prevent re-launch dap
3 years ago
ray-x
29960fe775
ANSI color remove for quickfix
3 years ago
ray-x
0493df8b44
go 1.18beta
3 years ago
ray-x
6a228e05cb
allow doc argument to be nil
3 years ago
ray-x
2a096a93c1
Default GoDoc to lsp hover if no arguments are provided
3 years ago
ray-x
bd25255d03
fallback to package test, argument and notify
3 years ago
ray-x
310339cbc5
floatterm width ceiling
3 years ago
ray-x
88ef38d88b
issue #68 golangci-lint handle error message
3 years ago
ray-x
264efc57c1
issue #65 failed to run coverage tests. Notify updates.
3 years ago
ray-x
192486892b
bugfix #65 coverage failed
3 years ago
ray-x
437748a09f
update impl, CLI complete
3 years ago
Craig Rodrigues
483b56f4a2
Replace print() with vim.notify() ( #64 )
3 years ago
ray-x
4c0a400956
update on_attach no longer support bool
3 years ago
ray-x
3fe0c3eded
gopls filetypes update
3 years ago
Craig Rodrigues
d18ac7460a
Add gopls to GoInstallBinaries/GoUpdateBinaries ( #60 )
3 years ago
ray-x
6d6b3afc3b
add gotexttmpl and gohtmltmpl support for gopls
3 years ago
ray-x
14ad56d297
cleanup logs
3 years ago
ray-x
9be4a230fe
typo :(
3 years ago
ray-x
3fe53eaf13
use latest version of codelens api, allow to hook guihua.lua
3 years ago
ray-x
db819954d3
Add GoCodeAction, GUI with guihua.lua and vim.ui.select()
3 years ago
ray-x
124d2e269c
dap_debug_keymap missing issue #57
3 years ago
ray-x
c7c3ab885a
better workfolder
3 years ago
ray-x
47866b4847
some cleanup and use list instead of string for jobsstart
3 years ago
ray-x
4484f167d6
bugfix #56 escape '<space>' and '-'
3 years ago
ray-x
2d7e23b72b
return gopls setup so we can use in nvim-lsp-installer, issue #56 escape '-'
3 years ago
ray-x
64460e4f88
Add GoVet, update errorformat for issue #55
3 years ago
ray-x
45348a8c83
bugfix #54 quickfix position
3 years ago
ray-x
1aab3bcea0
add go.txt
3 years ago
ray-x
6574dd2e6b
add textobject default setup, doc updates
3 years ago
ray-x
7f625aceca
stylua/selene gotest update
3 years ago
ray-x
6e87d834a4
efm format for quickfix; golangci-lint efm setup
3 years ago
ray-x
8712f31898
golangci-lint quickfix
3 years ago
ray-x
7d39be9431
add gobinaryinstall/update issue #49
3 years ago
ray-x
0bc7abace6
bug fix for github workflow
3 years ago
ray-x
4eeafad97e
issue #47
3 years ago
ray-x
a038113bad
add default to highlight command to prevent overrule
3 years ago
ray-x
3329238deb
code action with telescope, dap debug restart
3 years ago
Aleš Brelih
cfeab3d398
fix: build tags was missing space ( #46 )
...
* fix: build tags was missing space
* if run in floaterm, '\ ' may cause error
Thanks for the PR. I did some update please check if it works
Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
Co-authored-by: rayx <rayx.cn@gmail.com>
3 years ago
ray-x
4611c34548
updates for dapui
3 years ago
ray-x
1b11f52b08
updates for dap.ui
3 years ago
ray-x
ef332025ce
allow return value for test
3 years ago
Vincent Xiao
21017717c1
Support multiple files on GoDebug ( #44 )
...
Running `GoDebug` on `main()` will fail if there are multiple files in `package main` since the other files won't be compiled along with the target file.
3 years ago
ray-x
f59422008a
Add warn messages
3 years ago
ray-x
ec91d9915f
Add command autocomplete
3 years ago
ray-x
8f075be252
Allow rename with gopls when lsp is ready
3 years ago
ray-x
165714cfea
allow godoc focusable
3 years ago
ray-x
0dc7b57f6f
windows path issue #40
3 years ago
ray-x
39a66c3534
dap sign #35
3 years ago
Aleš Brelih
d9f44a9320
feat: default build tags ( #38 )
...
* feat: default build tags
Added option to specify default build tags for test and debugger.
* Update dap.lua
check if _GO_NVIM_CFG.build_tags ~= "" then
Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
Co-authored-by: rayx <rayx.cn@gmail.com>
3 years ago
Viktor Kojouharov
b09f8354bf
Make formatting sync during import ( #32 )
...
With sync formatting, the function can be used in BufWritePre without the buffer ending up modified the save.
3 years ago
ray-x
569e8e4320
Update reftool and fillstruct
3 years ago
ray-x
7feb745e6c
remove gofumport from go.nvim #18
3 years ago
ray-x
3fc75ca46a
refact fillstruct and codeaction add GoFixPlurals
3 years ago
ray-x
54dea272d1
#31 expose bufnr to ts APIs
3 years ago
ray-x
8c3abfb9f2
go doc command with floating preview
3 years ago
ray-x
d6c4cf570a
add % before special char to string match
3 years ago
ray-x
1988bf39ae
LSP api changes https://github.com/neovim/neovim/pull/15504
3 years ago
ray-x
c9a07b85cb
support lsp API changes neovim/pull/15504
3 years ago
ray-x
c984ce7757
update gotest it will output to buffer
3 years ago
ray-x
ee0d43ce5c
merge github workflow and goimport fix
3 years ago
ray-x
8ea0ff1d3a
commit
3 years ago
ray-x
5c5b102b93
arguments
3 years ago
ray-x
d6f0249023
format
3 years ago
ray-x
b517d7a6b9
updates
3 years ago
ray-x
af25e1e2e7
goimport cleanup
3 years ago
ray-x
85b587fada
gopls setup
3 years ago
ray-x
d9e0a4be9f
workflow fix
3 years ago
ray-x
c0771b93c8
test workflow
3 years ago
Viktor Kojouharov
22a0ac4e2b
Seems like a typo ( #27 )
3 years ago
ray-x
401e08e2b4
improve error message
3 years ago
ray-x
e17b25eee7
#26 add goimports -local support
3 years ago
ray-x
200dcd22e4
Allow test nearest function
3 years ago
ray-x
2cf2a1b36c
Dap debug: change workspaceFolder to relativeFileDirname
3 years ago
ray-x
b96cdefea3
Add go coverage
3 years ago
schwartx
7de6a600f2
using dlv no output fix ( #25 )
3 years ago
ray-x
35f546fed1
test workflow
3 years ago
ray-x
c28fa04029
merge github action/workflow
3 years ago
ray-x
dfd801debc
move print to error log
3 years ago
ray-x
025ed88af5
log not found
3 years ago
ray-x
989be3f213
update lspconfig setup; add sample vimrc, add codelens config
3 years ago
ray-x
1dce1155ed
update highlight
3 years ago
ray-x
ef1f2bb7cc
Feature: Show code lens and add support for run code len action
3 years ago
ray-x
cdbdb743bc
add util function
3 years ago
ray-x
7694511159
Merge and update for gopls & gopls import code action
3 years ago
ray-x
a3d29e5cbd
bugfix for gopls: goimport check code action type
3 years ago
Ryder
ab0b8c5b2c
fix: deprecated dap.stop ( #22 )
3 years ago
Ryder
49c0a4280e
fix: max_line_line typo ( #21 )
3 years ago
ray-x
9df90c86d5
ignore error messages when unmap keybind for DAP
3 years ago
ray-x
3237744c92
update gomodifytag command arguments
3 years ago
ray-x
018de85e7f
add gopls cmd path
3 years ago
ray-x
541b234343
issue #16 add `-line` to gomodifytag, suggested by @AllenDang
3 years ago
ray-x
a093d2420b
cursor range col/row calculate
3 years ago
ray-x
e7a7e95c85
Bugfix issue #15 GoRun
3 years ago
ray-x
b566782f4a
Update Impl
3 years ago
ray-x
76c950b01a
update iferr
3 years ago
ray-x
b499269a9d
Fix: unmap key, command
3 years ago
ray-x
a65af41408
[Breaking] Rename commands(GoFillStruct GoFillSwitch, Goiferr)
3 years ago
ray-x
034ea57ffe
Add alternative command to swtich between go and test file
3 years ago
ray-x
87fcb47470
update lsp setup and document
3 years ago
ray-x
786a9c67ad
rename lsp format to gopls format
3 years ago
ray-x
d8fc9cbe1e
rename lsp_enable to lsp_cfg
3 years ago
ray-x
a1dc56973d
Add options allows goimport and gofmt with lsp. Add options for go.nvim gopls config be loaded
3 years ago
ray-x
8bbabcbbbb
verify both `GoDebug test` and `GoDebug`
3 years ago
ray-x
de17b1154f
add dap.lua for keybind and default setup
3 years ago
ray-x
9d170d4954
Dap support
3 years ago
ray-x
5e37dc67e9
allow specify path of test
3 years ago
ray-x
1bdf18bfc2
Add log to file. Fix gotest_fun
3 years ago
Crows
6d41723098
fix require('go.util') error ( #7 )
3 years ago
Crows
ba4156a5b8
Fix format error on macOS ( #6 )
3 years ago
David Brouwer
9485e37cc3
Increase reliability ( #4 )
...
* Add check to see if commands already exist
* Migrate to go install, as go get will be depricated
* Fix bug in comparison function
* Add installation instructions for $PATH
* remove old stuff
* remove backtick
* complete install
* remove unused function
3 years ago
ray-x
f9e75eda64
Update GoAddTests and allow vim command override
3 years ago
ray-x
ec8177edb3
go format should remove old lines at the end
4 years ago
ray-x
0a86f87cff
add iferr and fillstruct
4 years ago
ray-x
f79d55d971
update rename output
4 years ago
ray-x
7b285a3600
Add gorename
4 years ago
ray-x
5f4c67bc68
remove print statement
4 years ago
ray-x
b1ebb39543
add asyncmake
4 years ago
ray-x
abbc421aee
update treesitter syntax
4 years ago
ray-x
3b11dbb98c
adjust gofmt goline setup
4 years ago
ray-x
f6561e7807
update treesitter syntax
4 years ago
ray-x
1e190d6a0e
init commit
4 years ago