Commit Graph

54 Commits

Author SHA1 Message Date
ray-x
2930eb9f17 spelling, default sign highlight 2022-08-05 10:48:08 +10:00
rayx
0e8cc90e30
Bugfix #160 (#167)
* snips

* update ts node spec format

* luasnip up and running

* bugfix alternate file

* Bring in more snippets

* updates for mockery 2.11

* snips for http handler and more

* update doc

* bench test

* for snips

* update treesitter query and api

* refact get_xxx_at_cursor

* update test spec

* update row to vim range

* update col number

* remove comments

* merge conflicts
2022-07-12 23:11:46 +10:00
ray-x
29a23a31e3 issue #153 -count=x 2022-07-07 21:23:18 +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
eae9af9c1d recommit fix for #145 due to merge failure 2022-06-30 12:41:20 +10:00
ray-x
5873520c34 #143 exact function mane match 2022-06-29 15:01:17 +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
ray-x
755e5816f0 guru support 2022-06-18 15:43:07 +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
ray-x
ccaed8c573 cli improvement for gomodifytags, gotest 2022-06-03 19:07:05 +10:00
ray-x
30d30f407a fix diagnostic warnings for all files 2022-06-01 21:29:13 +10:00
ray-x
56143544d7 revert escape changes, it breaks floaterm run 2022-05-31 02:41:48 +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
eb4d380807 allow format all buffers with goimports 2022-05-26 15:07:14 +10:00
ray-x
bbb37ea81f split none UI releated logic for testing 2022-05-24 21:43:33 +10:00
ray-x
fed6b24482 select test from functions 2022-05-24 19:17:26 +10:00
ray-x
125d6fa3d3 better test coverage for gotest 2022-05-24 17:54:52 +10:00
ray-x
323cfae1fa add tests for go test 2022-05-24 17:23:53 +10:00
ray-x
1c727c8768 ts keybinding update 2022-05-13 20:54:47 +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
ray-x
65b3c19709 issue #110 use releative path to handle symbolic link 2022-04-25 14:57:27 +10:00
ray-x
f4c07bb5d6 deprecate get_node_text 2022-04-19 00:22:08 +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
ray-x
3043e9bf04 gotest bench 2022-03-15 10:16:34 +11:00
ray-x
0fe0a9ee33 feature: auto jump to quickfix list item if test failed 2022-02-23 21:01:19 +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
e5ebbd9460 Add GoTest -c option, compile test package issue#76 2022-01-16 13:08:16 +11:00
ray-x
85f2300e72 issue #75, better default package path for tests 2022-01-14 14:35:23 +11:00
ray-x
0493df8b44 go 1.18beta 2022-01-12 15:57:30 +11:00
ray-x
bd25255d03 fallback to package test, argument and notify 2022-01-11 11:57:54 +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
c7c3ab885a better workfolder 2021-12-16 18:15:21 +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
64460e4f88 Add GoVet, update errorformat for issue #55 2021-12-15 19:02:22 +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
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
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