Commit Graph

382 Commits

Author SHA1 Message Date
ray-x
bc1a1ea33b update minimal.vim for github actions 2022-05-22 11:52:07 +10:00
ray-x
a173420ed9 disable plenary debug in github action 2022-05-22 11:42:29 +10:00
ray-x
a06e091d68 GoImpl allow specify receiver name 2022-05-21 15:11:10 +10:00
ray-x
52ccb2e690 GoImpl updates, allow no arguments and let treesitter do everything for you 2022-05-19 14:12:14 +10:00
ray-x
dbf0094f25 write buffer after gofmt 2022-05-17 15:04:26 +10:00
ray-x
e3504bc50f allow gorun in float terminal 2022-05-17 11:34:35 +10:00
ray-x
257218611e merge conflict 2022-05-15 22:34:44 +10:00
ray-x
ed8a2484ba merge master 2022-05-15 22:25:50 +10:00
ray-x
1f4711e681 Merge branch 'master' into serverCapcities 2022-05-15 22:06:04 +10:00
ray-x
73eed9e67b remove un-used setup in breakpoint save 2022-05-15 22:05:12 +10:00
ray-x
80e94444bb merge master 2022-05-15 21:46:44 +10:00
ray-x
669ad39639 update launch.json and readme.md for the new commands 2022-05-15 21:43:59 +10:00
ray-x
1449635984 launch.json create folder if not existed 2022-05-15 14:38:55 +10:00
ray-x
e3551f08bc add logs 2022-05-15 14:19:05 +10:00
ray-x
f187f10678 Update GoModxxx cmds 2022-05-15 14:09:07 +10:00
ray-x
de1306a986 goenv and load breakpoints 2022-05-14 21:24:55 +10:00
ray-x
f3e1da9968 save and load breaks 2022-05-14 21:24:55 +10:00
ray-x
e54ed67325 remove fixplurals gotool and using treesitter 2022-05-14 21:24:55 +10:00
ray-x
0dd08fddc5 add gonvim project file parser 2022-05-14 21:24:55 +10:00
ray-x
0c8ffc2b86 add go boilerplate 2022-05-14 21:24:55 +10:00
Marco Mayer
eba7daeb16
fix gotests template parameters, better names(?), small formatting fixes, update README (#125) 2022-05-14 20:52:12 +10:00
ray-x
128d2c14f3 Merge branch 'master' into serverCapcities 2022-05-14 01:08:28 +10:00
ray-x
14f298af92 Merge branch 'boilerplate' 2022-05-14 01:08:04 +10:00
ray-x
0faaf7bd0a save and load breaks 2022-05-14 01:07:44 +10:00
ray-x
e77920422e Merge branch 'master' into serverCapcities 2022-05-13 20:58:27 +10:00
ray-x
1c727c8768 ts keybinding update 2022-05-13 20:54:47 +10:00
ray-x
8e6ad61371 remove fixplurals gotool and using treesitter 2022-05-13 20:13:59 +10:00
ray-x
7c434918be add gonvim project file parser 2022-05-13 19:27:02 +10:00
ray-x
8b7d2c3eda formatting_sync -> format 2022-05-12 14:46:49 +10:00
ray-x
86720cae95 update ts keybindings 2022-05-12 00:59:21 +10:00
ray-x
dead9e2c70 add go boilerplate 2022-05-10 17:59:48 +10:00
ray-x
0916cb3da1 bugfix for releative path for GoTest -c 2022-05-10 11:03:15 +10:00
Aleš Brelih
6d2062c3d7
feat: verbose tests toggle (#123)
Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
2022-05-08 20:44:13 +10:00
Mochammad Hanif R
5c4fcc49ac
Fix tags when using tag_transform (#121)
Also clarify `tag_transform` documentation in README for more clarity
2022-05-06 17:42:19 +10:00
ray-x
5bebe38de0 push gopls and lsp changes for nvim 0.7 2022-05-05 15:37:59 +10:00
ray-x
97f0d7e620 formatting -> format for neovim 0.8 2022-05-04 15:15:49 +10:00
ray-x
3154dfffb9 Merge branch 'master' into serverCapcities 2022-05-04 14:27:08 +10:00
ray-x
c89418aa4b nil checking when loading cfg 2022-05-04 08:22:38 +10:00
ray-x
54df0e9994 fixplurals 2022-05-04 00:14:55 +10:00
ray-x
69d4085638 update options name to floaterm 2022-05-02 09:06:31 +10:00
ray-x
8cc8337343 Merge branch 'master' into serverCapcities 2022-05-02 08:49:06 +10:00
Aleš Brelih
ab864c4c17
feat: added command to close floating term (#119)
* feat: added command to close floating term

* feat: automatically close previous float term

* Update go.lua

remove auto complete

Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
Co-authored-by: rayx <rayx.cn@gmail.com>
2022-05-02 08:47:45 +10:00
ray-x
cf3915c331 neovim breaking changes https://github.com/neovim/neovim/pull/17814 2022-04-30 19:55:07 +10:00
ray-x
9143b3a4b9 bugfix issue #114 2022-04-30 19:22:19 +10:00
ray-x
08b36ea9e6 gopls version check issue #114 2022-04-30 11:57:51 +10:00
ray-x
88a846b3e1 issue #113 check lsp code lens 2022-04-28 14:23:18 +10:00
ray-x
1875416553 codelens message 2022-04-27 20:22:16 +10:00
ray-x
65b3c19709 issue #110 use releative path to handle symbolic link 2022-04-25 14:57:27 +10:00
ray-x
1fabdb4fd9 issue #111 fixpurals 2022-04-25 14:45:24 +10:00
ray-x
c7bf2f59c6 issue #108 2022-04-24 21:38:30 +10:00
ray-x
4b1eea8b90 issue #90 remove lsp codelens check 2022-04-24 21:03:38 +10:00
ray-x
49b311aff2 issue #83 disable notify 2022-04-24 20:30:41 +10:00
ray-x
edd8240d7f go.sum file type 2022-04-21 00:43:35 +10:00
ray-x
7ca5ad805b allow lsp_keymaps to be a function 2022-04-20 21:24:07 +10:00
ray-x
272d11d622 issue #104 allow user disable key mapping in lsp attach 2022-04-20 21:16:09 +10:00
ray-x
c8c63fb9a1 handle stderr output 2022-04-20 12:00:49 +10:00
ray-x
5d53132e52 updates for 0.5.1 2022-04-19 00:51:12 +10:00
ray-x
72e8a82ebd neovim 0.5.x treesitter 2022-04-19 00:46:54 +10:00
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