Commit Graph

448 Commits

Author SHA1 Message Date
David Brouwer
6e7410452f
Fix empty string and GoRun -F main module (#147)
* fix: append check if val is nil
Add check to see if value is empty. And don't add to path if already in
path.

Signed-off-by: Davincible <david.brouwer.99@gmail.com>

* feat: auto run main module in floating term
Add check to see if floating term, to auto run main file

Signed-off-by: Davincible <david.brouwer.99@gmail.com>

* Update asyncmake.lua

no need to show a notification as there is another one once the program is finished.

Co-authored-by: rayx <rayx.cn@gmail.com>
2022-07-01 08:26:14 +10:00
Lukas
10264d6904
fix(setup): getenv vim.NIL check (#148)
* fix(setup): handle gobin env nil

Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>

* fix(setup): use vim.NIL

Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>

* return if GOBIN not present

Co-authored-by: rayx <rayx.cn@gmail.com>
2022-07-01 08:14:38 +10:00
ray-x
36a33ad5b0 #146 better fallback if test runner is non-default and not installed 2022-07-01 02:44:39 +10:00
ray-x
c9ba685250 should call dapui.setup only once, #145
check dapui is_open
2022-06-30 15:44:54 +10:00
ray-x
eae9af9c1d recommit fix for #145 due to merge failure 2022-06-30 12:41:20 +10:00
ray-x
1fd353947b issue #145 GoDebug failure 2022-06-30 11:55:00 +10:00
Nikola Milovic
d402d9cbf9
fix(docs): fix command typo and duplicate (#144)
* fix(docs): remove duplicate command from debug table

In the Debug section Command table `GoBreakToggle` was mentioned twice, I just removed the duplicate

* fix(docs): fix the BreakCondition command and formatting on some markdown tables

* indentation

Co-authored-by: rayx <rayx.cn@gmail.com>
2022-06-30 08:51:42 +10:00
ray-x
65bd2685b4 fix test cases 2022-06-30 02:15:44 +10:00
ray-x
5873520c34 #143 exact function mane match 2022-06-29 15:01:17 +10:00
rayx
a7edcfac84
Fix pipeline for neovim 0.6.1 (#142)
* updates delays

* repeat actions

* fix golden file

* fix neovim 0.6.x

* fillstruct updates for 0.6.x

* remove treesitter dependency for fillstruct test
2022-06-29 10:16:14 +10:00
ray-x
93db33751c fillstruct with gopls 2022-06-29 09:33:53 +10:00
ray-x
331e14d728 pipeline updates as treesitter-master no-longer supports nvim 0.6.1. First github 500 stars 2022-06-29 09:28:59 +10:00
ray-x
4bc6b563ce go treesitter locals.scm add go_impl_spec 2022-06-29 00:37:20 +10:00
ray-x
28b553aa52 handle nil output with runner 2022-06-28 15:35:05 +10:00
ray-x
3f8551cc11 issue #141 the result of shell command should be checked before proccess
the output
2022-06-28 14:36:30 +10:00
rayx
5504f55b4f
[Feature]Package info side panel (#140)
New feature.
It shows all public symbols inside a go package with a side panel.

Also refer https://github.com/golang/go/issues/37237 for some workaround

* add side_panel for go package

* Add command GoPkgInfo

* multi lines hint

* allow refresh when buffer write happed

* remove node of receiver

* update treesitter queries for better panel display

* variadic args
2022-06-27 08:12:49 +10:00
ray-x
16c37da2f8 go coverage: toggle the coverage indicator after metric is shown 2022-06-22 13:57:27 +10:00
ray-x
d3d278d58a doc update 2022-06-22 13:53:26 +10:00
ray-x
fb4f37a328 allow show coverage summary with 'go tool cover -func' in qf 2022-06-22 13:33:30 +10:00
ray-x
7045635404 bugfix for fish terminal 2022-06-21 19:04:30 +10:00
ray-x
7945c74580 breaking changes dapui #137 2022-06-21 12:54:26 +10:00
ray-x
be47f4fb6c errorformat/efm 2022-06-18 18:37:42 +10:00
ray-x
410808938e lint 2022-06-18 18:31:37 +10:00
ray-x
296fc66941 typo 2022-06-18 15:43:51 +10:00
ray-x
755e5816f0 guru support 2022-06-18 15:43:07 +10:00
ray-x
a059a12010 GoListImports command 2022-06-16 14:11:09 +10:00
ray-x
44d6a9d8f3 add list_imports support 2022-06-16 14:10:49 +10:00
ray-x
9d8117766c dap restart fix, fish fix 2022-06-16 11:38:37 +10:00
ray-x
040c7bd110 Update document
Smart build tags detection
2022-06-15 14:11:10 +10:00
ray-x
0bf69f9315 pull #136 use cmd string for floating terminal run 2022-06-07 20:10:49 +10:00
ray-x
b3c6bde824 flags to load coverage file 2022-06-07 20:10:49 +10:00
Hiroyuki Tanaka
b22f8c7760
Fix typo in README.md (#135) 2022-06-04 01:26:43 +10:00
ray-x
0690c83943 auto complete for modify tags 2022-06-03 21:35:07 +10:00
ray-x
ccaed8c573 cli improvement for gomodifytags, gotest 2022-06-03 19:07:05 +10:00
ray-x
ffd3b019a9 treesitter with dap to capture current function name 2022-06-02 19:07:28 +10:00
ray-x
9036f3bf88 fix plurals change edit orders 2022-06-02 13:25:08 +10:00
ray-x
fb4048df8b package.config 2022-06-02 00:47:00 +10:00
ray-x
a064f1e4f5 DIR_SEP nil 2022-06-02 00:43:34 +10:00
ray-x
76b31e6e74 DIR_SEP 2022-06-02 00:41:29 +10:00
ray-x
099790c988 go lint 2022-06-02 00:38:58 +10:00
ray-x
ff94aa139d add notes 2022-06-01 21:29:34 +10:00
ray-x
30d30f407a fix diagnostic warnings for all files 2022-06-01 21:29:13 +10:00
ray-x
2b15b59d18 issue #132 goimport format options 2022-06-01 09:01:41 +10:00
ray-x
1a3f4003a6 issue #132 changes after writes 2022-05-31 21:44:28 +10:00
ray-x
f5f5c41165 fix typo 2022-05-31 16:16:09 +10:00
ray-x
56143544d7 revert escape changes, it breaks floaterm run 2022-05-31 02:41:48 +10:00
ray-x
0cc455457c notify level based on test result 2022-05-31 00:32:26 +10:00
ray-x
ad84a0806c update GoTest adding more flags 2022-05-31 00:04:52 +10:00
ray-x
002d7dfd73 infer the test func name with treesitter 2022-05-29 23:07:39 +10:00
ray-x
c2c2100287 test golden file updates for issue #131 2022-05-29 15:03:13 +10:00