Commit Graph

138 Commits

Author SHA1 Message Date
ray-x
6ff9cbad4c check go ts parser 2023-01-12 15:25:47 +11:00
ray-x
b53dfd4fdb dap options for time out issue #263 🎄🎆 2022-12-28 17:14:42 +11:00
ray-x
17adc5c600 [feature] go coverage partially tested, skip covered 🎄🎆 2022-12-28 11:46:31 +11:00
ray-x
c61d2f447b verbose mode in gotest no longer default, use '-v' instead 🇯🇵 2022-12-06 02:08:45 +11:00
Shaw Vrana
4599360f5d
Add ability to set gomodifytag options in config (#246) 2022-11-27 17:33:53 +11:00
ray-x
79c79c4872 autocmd for mod on_save 2022-11-03 12:54:24 +11:00
ray-x
d34868d2fa testrunner default 2022-10-03 20:20:36 +11:00
ray-x
25f844684b allow gotestsum in watch mode 2022-10-01 15:03:26 +10:00
Patrick Artounian
0e3a10f595
allow for user to toggle lsp_diag underline (#221)
Co-authored-by: Patrick Artounian <patrick.artounian@insomniac.com>
2022-09-28 08:28:05 +10:00
ray-x
d5e5a65c03 moving from vim script to lua scripts (autocmd, highlight) 2022-08-05 19:34:44 +10:00
ray-x
7fea49e79f rename from gocoverage_sign_priority to sign_priority 2022-08-05 10:07:56 +10:00
ray-x
4c1ee0ddeb update default priority of sign 2022-08-05 10:03:04 +10:00
ray-x
93c724d6b0 issue #184 trouble 2022-07-30 23:05:27 +10:00
ray-x
144eb6fb2a issue #182 setup merge 2022-07-29 22:23:52 +10:00
ray-x
3774ac0eba lint 2022-07-27 02:21:58 +10:00
ray-x
f334b05d0c issue #173 minimal defaults 2022-07-25 17:44:43 +10:00
ray-x
c8d02a9d6a inlay hints #172 2022-07-20 09:27:59 +10:00
ray-x
f0732425f9 more snips, e.g. uuid, random words/strings etc 2022-07-17 21:33:29 +10:00
rayx
104b832ee4
Luasnip (#165)
First commit for luasnip
Most of the snip code is from this repo shark
and TJ's neovim setup config_manager
and ziontee113

* add luasnip for go

* move command out to a dedicated function

* update ts node spec format

* bugfix alternate file

* Bring in more snippets

* updates for mockery 2.11

* snips for http handler and more

* update doc

* bench test
2022-07-11 23:32:06 +10:00
ray-x
a4026941d0 issue #161 allow project setup to be disabled 2022-07-08 20:30:23 +10:00
ray-x
ab8a075aa4 add efm only mode for testing when floating term is off 2022-07-08 02:34:50 +10:00
ray-x
a86e9d2a29 Feature: add go mock / mockgen 2022-07-06 08:28:29 +10:00
ray-x
a2d0bbee53 bugfix #153, update doc 2022-07-03 09:11:26 +10:00
ray-x
84ac01df53 Feature: show keybindings for debug session 2022-07-01 20:30:43 +10:00
ray-x
981adf9b39 Features:
1) count the overall test coverage per-file and per-project
2) add gotestsum as a test runner option
3) handle windows GOPATH and
4) minor fix: stop GoFmt if no formatter is available
2022-07-01 19:15:31 +10:00
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
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
d3d278d58a doc update 2022-06-22 13:53:26 +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
0690c83943 auto complete for modify tags 2022-06-03 21:35:07 +10:00
ray-x
30d30f407a fix diagnostic warnings for all files 2022-06-01 21:29:13 +10:00
ray-x
1a3f4003a6 issue #132 changes after writes 2022-05-31 21:44:28 +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
张海林
6c51c0a909
doc: clarify test_runner option (#129)
* doc: clarify test_runner option

* Update README.md

* Update go.txt

* Update go.lua

Co-authored-by: rayx <rayx.cn@gmail.com>
2022-05-27 12:39:11 +10:00
ray-x
eb4d380807 allow format all buffers with goimports 2022-05-26 15:07:14 +10:00
ray-x
051e8b2afa cheatsheet(cht.sh) supports in go.nvim 2022-05-25 14:36:34 +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
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
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
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
0dd08fddc5 add gonvim project file parser 2022-05-14 21:24:55 +10:00