ray-x
9b9744a341
bug fix for neovim 0.6.1
2022-04-19 00:38:13 +10:00
ray-x
7320a536d7
update ts nodes
2022-04-19 00:28:13 +10:00
ray-x
f4c07bb5d6
deprecate get_node_text
2022-04-19 00:22:08 +10:00
ray-x
b71f814e20
update lint
2022-04-19 00:13:51 +10:00
ray-x
df512d695f
issue #94 GoImport autocomplete
2022-04-18 22:33:02 +10:00
rayx
32f103258b
Gotest refactor ( #102 )
...
* issue #82 allow close terminal in current buffer
* update go test arguments
* auto complete args updates based on @Craig Rodgigues feedbacks
* update test arguments
* 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.
* fix double close when end dap session
* add relFileDir in launch.json
* update sample go app
* fix: remove cover file (#107 )
* fix: remove cover file
* fix: coverage notify message
* github action setup for go 1.18
* issue #109 config dap marker
* setup pipeline with go install
* add icons setup options in doc issue #35 issue #109
Co-authored-by: Mochammad Hanif R <etrnal70@gmail.com>
Co-authored-by: Nicolas Barbosa <ndevbarbosa@gmail.com>
2022-04-16 22:09:15 +10:00
Nicolas Barbosa
63d81679d0
fix: remove cover file ( #107 )
...
* fix: remove cover file
* fix: coverage notify message
2022-04-08 00:37:12 +10:00
ray-x
dbfde6ea1b
fix double close when end dap session
2022-03-30 15:44:33 +11:00
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.
2022-03-24 14:10:45 +11:00
ray-x
058e748409
allow GoRun to run inside a terminal
2022-03-23 13:40:15 +11:00
ray-x
bed2b6818c
issue #82 allow close terminal in current buffer
2022-03-23 13:13:35 +11:00
Prescott Murphy
db7ecb86a6
Fix typo in rename.lua ( #99 )
2022-03-20 10:26:54 +11:00
ray-x
ef32d8914b
allow multipls arguments for go mod
2022-03-17 00:05:07 +11:00
ray-x
8c5d95b3ff
bugfix issue #96
2022-03-16 23:54:06 +11:00
ray-x
7b4f7620f7
failure message should not show
2022-03-16 10:55:22 +11:00
ray-x
3043e9bf04
gotest bench
2022-03-15 10:16:34 +11:00
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.
2022-03-14 17:18:31 +11:00
ray-x
ed3dfb85b2
Breaking changes for GoDebug, deprecate old argument and using linux style command line arguments
2022-03-07 17:09:42 +11:00
ray-x
0fe0a9ee33
feature: auto jump to quickfix list item if test failed
2022-02-23 21:01:19 +11:00
ray-x
f355905c00
bqf friendly qickfix output for testing
2022-02-23 16:36:13 +11:00
ray-x
1bc6249495
feature: in quickfix, shows full path name instead of name only. That allows jump to the failed location
2022-02-23 16:28:21 +11:00
ray-x
4c66365aa2
Add GoModeTidy and GoModeVendor
2022-02-22 09:46:59 +11:00
ray-x
630a813360
remove tagSupport, it is not supported by gopls
2022-02-21 15:43:55 +11:00
ray-x
d8638ab9c8
issue#88 cmp setup. set it as default
2022-02-17 13:32:58 +11:00
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)
2022-02-17 06:57:54 +11:00
ray-x
3e905d07ac
health check for treesitter-go parser issue#86
2022-02-16 22:11:36 +11:00
ray-x
c622c27bf8
doc updates
2022-02-16 21:25:21 +11:00
ray-x
c9359bb14d
Allow lsp diagnostic setup passed from outside
2022-02-15 20:30:42 +11:00
ray-x
d98d4e9eda
better error message for dlv; dlv attach mode
2022-02-14 15:59:31 +11:00
ray-x
f5c029e5fa
Update GoGet. if cursor current line is a valid pkg url, will auto fill it to go get argument
2022-02-09 15:33:19 +11:00
ray-x
edbd796ded
Add GoStop command to stop the background task started with GoRun
2022-02-02 17:37:07 +11:00
ray-x
2b059afc54
GoGet
2022-02-02 15:49:54 +11:00
ray-x
4e3b2b1971
bugfix #81
2022-01-31 21:40:40 +11:00
ray-x
f599a5e2cc
gopls cmd fallback
2022-01-31 17:28:53 +11:00
ray-x
ce29866640
lsp installer path setup for version check
2022-01-31 17:25:53 +11:00
ray-x
180e44ac07
handle nil
2022-01-30 16:02:18 +11:00
ray-x
a853613467
use -1
for random port
2022-01-30 15:57:56 +11:00
ray-x
ee3c36e25d
allow config debug port
2022-01-26 22:51:00 +11:00
ray.xu
4c54762e63
gopls vesion can be very slow, change to jobstart
2022-01-21 22:25:06 +11:00
ray.xu
f2b227d3e2
telescope codeaction loader
2022-01-21 11:20:40 +11:00
Craig Rodrigues
0f1740ed23
Fix URL for gotests for GoInstallBinaries ( #79 )
2022-01-20 12:36:48 +11:00
ray.xu
50a9fe57ec
textobject breaking changes https://github.com/nvim-treesitter/nvim-treesitter-textobjects/issues/169
2022-01-20 08:39:05 +11:00
ray.xu
2a2c5f4cd8
open qf only when on error
2022-01-20 03:27:03 +11:00
ray-x
532f7256b1
issue #71 , change warn/info/error to notify
2022-01-19 13:12:36 +11:00
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>
2022-01-19 08:41:11 +11:00
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>
2022-01-19 08:22:53 +11:00
ray-x
b1271d5e6a
issue #71 packer loader failed to load plugins
2022-01-19 08:14:02 +11:00
ray-x
99cc459eed
cleanup asyncmake
2022-01-17 17:48:16 +11:00
ray-x
a191de4920
issue #76 better qf
2022-01-17 17:33:00 +11:00
ray-x
cd395e96fb
setup option to disable gopls doc format
2022-01-17 15:29:38 +11:00
ray-x
22fe0379de
check dap module before disconnect dap
2022-01-17 10:31:24 +11:00
ray-x
cad485661b
offset encoding
2022-01-16 15:26:25 +11:00
ray-x
e5ebbd9460
Add GoTest -c option, compile test package issue#76
2022-01-16 13:08:16 +11:00
ray-x
0d5f1c9f31
add health.lua
2022-01-15 22:14:56 +11:00
ray-x
2869c5b8fc
Add support for vscode launch.json. Allow launch debugger from config in .vscode/launch.json
2022-01-15 20:59:03 +11:00
ray-x
85f2300e72
issue #75 , better default package path for tests
2022-01-14 14:35:23 +11:00
ray-x
ff9a34bffb
issue #71 session and restart for the debugger
2022-01-13 09:07:14 +11:00
ray-x
ca1d46b4ab
prevent re-launch dap
2022-01-12 19:57:30 +11:00
Craig Rodrigues
817eb44890
Put options in same order in README.md, go.lua ( #74 )
2022-01-12 19:12:29 +11:00
ray-x
d2f5f9c683
Merge master
2022-01-12 16:02:40 +11:00
ray-x
37b9a66dc2
default debug/dlv keymap to true
2022-01-12 15:58:21 +11:00
ray-x
e232ed38e6
doc update for test_runner
2022-01-12 15:57:55 +11:00
ray-x
29960fe775
ANSI color remove for quickfix
2022-01-12 15:57:30 +11:00
ray-x
0493df8b44
go 1.18beta
2022-01-12 15:57:30 +11:00
Craig Rodrigues
60e0659d50
Set dap_debug_keymap to true by default ( #73 )
2022-01-12 09:35:42 +11:00
Craig Rodrigues
a54f5d452f
Put options in same order in README.md, go.txt, go.lua ( #72 )
2022-01-12 08:57:21 +11:00
ray-x
6a228e05cb
allow doc argument to be nil
2022-01-11 22:33:23 +11:00
ray-x
2a096a93c1
Default GoDoc to lsp hover if no arguments are provided
2022-01-11 22:12:34 +11:00
ray-x
bd25255d03
fallback to package test, argument and notify
2022-01-11 11:57:54 +11:00
ray-x
310339cbc5
floatterm width ceiling
2022-01-10 15:47:21 +11:00
ray-x
88ef38d88b
issue #68 golangci-lint handle error message
2022-01-07 10:29:51 +11:00
ray-x
264efc57c1
issue #65 failed to run coverage tests. Notify updates.
2021-12-30 01:33:24 +11:00
ray-x
192486892b
bugfix #65 coverage failed
2021-12-27 19:47:59 +11:00
ray-x
437748a09f
update impl, CLI complete
2021-12-22 15:01:15 +11:00
Craig Rodrigues
483b56f4a2
Replace print() with vim.notify() ( #64 )
2021-12-22 14:34:10 +11:00
Craig Rodrigues
3a35bff71e
Add warning if lsp_cfg is false, but lsp_on_attach is not nil ( #63 )
2021-12-22 11:13:52 +11:00
ray-x
4c0a400956
update on_attach no longer support bool
2021-12-22 10:58:06 +11:00
Craig Rodrigues
eebe136396
Make lsp_on_attach nil by default ( #62 )
...
Clarify lsp_on_attach in the docs.
2021-12-22 10:51:20 +11:00
ray-x
f53e130370
lsp_on_attach default to false
2021-12-21 22:04:45 +11:00
ray-x
3fe0c3eded
gopls filetypes update
2021-12-21 20:57:06 +11:00
Craig Rodrigues
d18ac7460a
Add gopls to GoInstallBinaries/GoUpdateBinaries ( #60 )
2021-12-21 20:24:17 +11:00
ray-x
6d6b3afc3b
add gotexttmpl and gohtmltmpl support for gopls
2021-12-18 15:22:27 +11:00
ray-x
14ad56d297
cleanup logs
2021-12-17 17:04:29 +11:00
ray-x
9be4a230fe
typo :(
2021-12-17 14:48:41 +11:00
ray-x
3fe53eaf13
use latest version of codelens api, allow to hook guihua.lua
2021-12-17 10:05:37 +11:00
ray-x
db819954d3
Add GoCodeAction, GUI with guihua.lua and vim.ui.select()
2021-12-17 09:59:47 +11:00
ray-x
124d2e269c
dap_debug_keymap missing issue #57
2021-12-17 09:02:29 +11:00
ray-x
c7c3ab885a
better workfolder
2021-12-16 18:15:21 +11:00
ray-x
47866b4847
some cleanup and use list instead of string for jobsstart
2021-12-16 17:46:52 +11:00
ray-x
4484f167d6
bugfix #56 escape '<space>' and '-'
2021-12-16 12:34:06 +11:00
ray-x
2d7e23b72b
return gopls setup so we can use in nvim-lsp-installer, issue #56 escape '-'
2021-12-16 12:23:43 +11:00
ray-x
84c5ce26f3
GoVet command
2021-12-15 20:22:32 +11:00
ray-x
64460e4f88
Add GoVet, update errorformat for issue #55
2021-12-15 19:02:22 +11:00
ray-x
45348a8c83
bugfix #54 quickfix position
2021-12-15 03:59:14 +11:00
ray-x
1aab3bcea0
add go.txt
2021-12-11 14:56:08 +11:00
ray-x
6574dd2e6b
add textobject default setup, doc updates
2021-12-11 14:44:15 +11:00
ray-x
7f625aceca
stylua/selene gotest update
2021-12-11 08:45:42 +11:00
ray-x
6e87d834a4
efm format for quickfix; golangci-lint efm setup
2021-12-10 21:13:23 +11:00
ray-x
8712f31898
golangci-lint quickfix
2021-12-10 11:44:08 +11:00
ray-x
cac2016243
update delay to make test happy
2021-12-07 12:01:22 +11:00
ray-x
7d39be9431
add gobinaryinstall/update issue #49
2021-12-06 21:32:23 +11:00
ray-x
0bc7abace6
bug fix for github workflow
2021-12-02 17:44:22 +11:00
ray-x
4eeafad97e
issue #47
2021-12-02 15:04:52 +11:00
ray-x
a038113bad
add default to highlight command to prevent overrule
2021-12-01 13:58:08 +11:00
ray-x
3329238deb
code action with telescope, dap debug restart
2021-11-30 07:19:45 +11:00
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>
2021-11-29 23:09:30 +11:00
ray-x
4611c34548
updates for dapui
2021-11-24 20:05:02 +11:00
ray-x
1b11f52b08
updates for dap.ui
2021-11-24 10:13:40 +11:00
ray-x
ef332025ce
allow return value for test
2021-11-22 20:12:57 +11:00
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.
2021-11-22 13:00:04 +11:00
ray-x
f59422008a
Add warn messages
2021-11-17 09:22:16 +11:00
ray-x
ec91d9915f
Add command autocomplete
2021-11-13 14:29:42 +11:00
Hank Donnay
51f4d41363
fix syntax error in default GoTest command ( #41 )
2021-11-13 09:49:01 +11:00
ray-x
8f075be252
Allow rename with gopls when lsp is ready
2021-11-12 10:30:45 +11:00
ray-x
165714cfea
allow godoc focusable
2021-11-11 13:01:14 +11:00
ray-x
0dc7b57f6f
windows path issue #40
2021-11-10 13:20:54 +11:00
ray-x
39a66c3534
dap sign #35
2021-10-26 11:16:15 +11:00
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>
2021-10-25 10:05:02 +11:00
ray-x
37a4cfb1ad
issue #35 config break sign
2021-10-23 20:26:11 +11:00
ray-x
94d4baac31
nvim 5.1
2021-10-11 21:57:41 +11:00
ray-x
f339373ed4
test udpate
2021-10-11 21:26:04 +11:00
ray-x
6385a1a53f
lua format
2021-10-11 21:22:14 +11:00
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.
2021-10-01 18:49:58 +10:00
ray-x
569e8e4320
Update reftool and fillstruct
2021-09-30 22:23:36 +10:00
ray-x
7feb745e6c
remove gofumport from go.nvim #18
2021-09-25 12:44:52 +10:00
ray-x
3fc75ca46a
refact fillstruct and codeaction add GoFixPlurals
2021-09-20 19:05:04 +10:00
ray-x
54dea272d1
#31 expose bufnr to ts APIs
2021-09-19 09:58:04 +10:00
ray-x
8c3abfb9f2
go doc command with floating preview
2021-09-18 21:14:02 +10:00
ray-x
d6c4cf570a
add % before special char to string match
2021-09-14 15:03:29 +10:00
ray-x
1988bf39ae
LSP api changes https://github.com/neovim/neovim/pull/15504
2021-09-04 14:59:11 +10:00
ray-x
c9a07b85cb
support lsp API changes neovim/pull/15504
2021-09-04 14:51:43 +10:00
ray-x
c984ce7757
update gotest it will output to buffer
2021-09-03 12:13:15 +10:00
ray-x
ee0d43ce5c
merge github workflow and goimport fix
2021-09-03 03:18:46 +10:00
ray-x
8ea0ff1d3a
commit
2021-09-03 03:14:04 +10:00
ray-x
5c5b102b93
arguments
2021-09-03 02:59:45 +10:00
ray-x
c67b1c8912
revert changes
2021-09-03 02:35:54 +10:00
ray-x
00a7405904
save file
2021-09-03 02:33:34 +10:00
ray-x
da9cd35645
gopls 2s
2021-09-03 02:25:54 +10:00
ray-x
d6f0249023
format
2021-09-03 02:21:31 +10:00
ray-x
b517d7a6b9
updates
2021-09-03 02:15:54 +10:00
ray-x
6cb17285ff
save
2021-09-03 01:17:30 +10:00
ray-x
bdce678adf
sequences
2021-09-03 01:11:09 +10:00
ray-x
af25e1e2e7
goimport cleanup
2021-09-02 22:27:40 +10:00
ray-x
6e6446c45f
sequence
2021-09-02 21:35:54 +10:00
ray-x
eb74902ba9
sequence
2021-09-02 21:28:34 +10:00
ray-x
446f4e6b94
fix gofmt
2021-09-02 21:14:13 +10:00
ray-x
85b587fada
gopls setup
2021-09-02 21:07:32 +10:00
ray-x
c6b391a303
format
2021-09-02 21:03:45 +10:00
ray-x
e4abbb80ea
format
2021-09-02 21:02:01 +10:00
ray-x
82fc245d78
comment out
2021-09-02 21:00:28 +10:00
ray-x
cf8ca142e1
clean up
2021-09-02 20:59:20 +10:00
ray-x
79563afa49
go setup
2021-09-02 20:57:20 +10:00
ray-x
81c92c5362
merge master
2021-09-02 20:53:44 +10:00
ray-x
766fd37327
print errors
2021-09-02 20:48:58 +10:00
ray-x
8b3b744b5e
gopls format
2021-09-02 20:42:22 +10:00
ray-x
d9e0a4be9f
workflow fix
2021-09-02 20:34:57 +10:00
ray-x
c0771b93c8
test workflow
2021-09-02 20:21:41 +10:00
Viktor Kojouharov
22a0ac4e2b
Seems like a typo ( #27 )
2021-09-02 20:03:38 +10:00
ray-x
401e08e2b4
improve error message
2021-09-02 16:26:07 +10:00
ray-x
e17b25eee7
#26 add goimports -local support
2021-09-01 11:22:05 +10:00
ray-x
200dcd22e4
Allow test nearest function
2021-08-31 21:19:14 +10:00
ray-x
2cf2a1b36c
Dap debug: change workspaceFolder to relativeFileDirname
2021-08-30 16:37:36 +10:00
ray-x
cae9ad6a88
update test cases in github workflow
2021-08-26 10:33:17 +10:00
ray-x
b96cdefea3
Add go coverage
2021-08-26 01:42:31 +10:00
schwartx
7de6a600f2
using dlv no output fix ( #25 )
2021-08-25 22:37:22 +10:00
ray-x
28bbafeeb9
revert changes to golden file
2021-08-24 21:13:26 +10:00
ray-x
e53e689415
revert
2021-08-24 21:10:09 +10:00
ray-x
8db7f9af39
gopls test case
2021-08-24 21:05:14 +10:00
ray-x
21ee2891ef
gopls still not working
2021-08-24 17:42:03 +10:00
ray-x
5a72a0ef31
lspconfig in spec test
2021-08-24 17:34:33 +10:00
ray-x
35f546fed1
test workflow
2021-08-24 17:10:04 +10:00
ray-x
1a44ff6956
add go.mod in tests
2021-08-24 16:15:17 +10:00
ray-x
c28fa04029
merge github action/workflow
2021-08-24 14:53:37 +10:00
ray-x
dfd801debc
move print to error log
2021-08-23 16:36:30 +10:00
ray-x
025ed88af5
log not found
2021-08-23 13:55:27 +10:00
ray-x
989be3f213
update lspconfig setup; add sample vimrc, add codelens config
2021-08-23 12:24:48 +10:00
ray-x
1dce1155ed
update highlight
2021-08-22 18:37:11 +10:00
ray-x
ef1f2bb7cc
Feature: Show code lens and add support for run code len action
2021-08-21 20:52:23 +10:00
ray-x
cdbdb743bc
add util function
2021-08-17 09:59:21 +10:00
ray-x
7694511159
Merge and update for gopls & gopls import code action
2021-08-17 09:59:21 +10:00
ray-x
a3d29e5cbd
bugfix for gopls: goimport check code action type
2021-08-17 09:59:21 +10:00
Ryder
ab0b8c5b2c
fix: deprecated dap.stop ( #22 )
2021-08-14 19:18:08 +10:00
Ryder
49c0a4280e
fix: max_line_line typo ( #21 )
2021-08-14 10:27:55 +10:00
ray-x
9df90c86d5
ignore error messages when unmap keybind for DAP
2021-08-12 09:52:22 +10:00
ray-x
3237744c92
update gomodifytag command arguments
2021-08-11 23:08:55 +10:00
ray-x
018de85e7f
add gopls cmd path
2021-07-26 10:35:58 +10:00
ray-x
541b234343
issue #16 add -line
to gomodifytag, suggested by @AllenDang
2021-07-17 20:11:01 +10:00
ray-x
a093d2420b
cursor range col/row calculate
2021-07-17 01:58:44 +10:00
ray-x
e7a7e95c85
Bugfix issue #15 GoRun
2021-07-17 00:37:41 +10:00
ray-x
af37cb81b8
update Goiferr and doc
2021-07-15 19:18:04 +10:00
ray-x
b566782f4a
Update Impl
2021-07-15 01:35:38 +10:00
ray-x
76c950b01a
update iferr
2021-07-15 01:01:09 +10:00
ray-x
b499269a9d
Fix: unmap key, command
2021-07-15 00:15:15 +10:00
ray-x
a65af41408
[Breaking] Rename commands(GoFillStruct GoFillSwitch, Goiferr)
2021-07-14 23:58:31 +10:00
ray-x
034ea57ffe
Add alternative command to swtich between go and test file
2021-07-14 08:39:27 +10:00
ray-x
87fcb47470
update lsp setup and document
2021-07-12 14:25:07 +10:00
ray-x
786a9c67ad
rename lsp format to gopls format
2021-07-11 21:52:39 +10:00
ray-x
d8fc9cbe1e
rename lsp_enable to lsp_cfg
2021-07-11 21:50:09 +10:00
ray-x
a1dc56973d
Add options allows goimport and gofmt with lsp. Add options for go.nvim gopls config be loaded
2021-07-11 21:33:22 +10:00
ray-x
8bbabcbbbb
verify both GoDebug test
and GoDebug
2021-07-10 23:53:33 +10:00