Commit Graph

124 Commits (3774ac0eba34db6b4dbe9ac07fbd1533ee1cb3c1)

Author SHA1 Message Date
ray-x 3774ac0eba lint 2 years ago
ray-x f334b05d0c issue #173 minimal defaults 2 years ago
ray-x c8d02a9d6a inlay hints #172 2 years ago
ray-x f0732425f9 more snips, e.g. uuid, random words/strings etc 2 years ago
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
2 years ago
ray-x a4026941d0 issue #161 allow project setup to be disabled 2 years ago
ray-x ab8a075aa4 add efm only mode for testing when floating term is off 2 years ago
ray-x a86e9d2a29 Feature: add go mock / mockgen 2 years ago
ray-x a2d0bbee53 bugfix #153, update doc 2 years ago
ray-x 84ac01df53 Feature: show keybindings for debug session 2 years ago
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
2 years ago
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>
2 years ago
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>
2 years ago
ray-x 36a33ad5b0 #146 better fallback if test runner is non-default and not installed 2 years ago
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
2 years ago
ray-x d3d278d58a doc update 2 years ago
ray-x 296fc66941 typo 2 years ago
ray-x 755e5816f0 guru support 2 years ago
ray-x a059a12010 GoListImports command 2 years ago
ray-x 0690c83943 auto complete for modify tags 2 years ago
ray-x 30d30f407a fix diagnostic warnings for all files 2 years ago
ray-x 1a3f4003a6 issue #132 changes after writes 2 years ago
ray-x ad84a0806c update GoTest adding more flags 2 years ago
ray-x 002d7dfd73 infer the test func name with treesitter 2 years ago
张海林 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>
2 years ago
ray-x eb4d380807 allow format all buffers with goimports 2 years ago
ray-x 051e8b2afa cheatsheet(cht.sh) supports in go.nvim 2 years ago
ray-x 52ccb2e690 GoImpl updates, allow no arguments and let treesitter do everything for you 2 years ago
ray-x 257218611e merge conflict 2 years ago
ray-x ed8a2484ba merge master 2 years ago
ray-x 80e94444bb merge master 2 years ago
ray-x 669ad39639 update launch.json and readme.md for the new commands 2 years ago
ray-x f187f10678 Update GoModxxx cmds 2 years ago
ray-x de1306a986 goenv and load breakpoints 2 years ago
ray-x f3e1da9968 save and load breaks 2 years ago
ray-x 0dd08fddc5 add gonvim project file parser 2 years ago
ray-x 0c8ffc2b86 add go boilerplate 2 years ago
Marco Mayer eba7daeb16
fix gotests template parameters, better names(?), small formatting fixes, update README (#125) 2 years ago
ray-x 0faaf7bd0a save and load breaks 2 years ago
ray-x 7c434918be add gonvim project file parser 2 years ago
ray-x dead9e2c70 add go boilerplate 2 years ago
ray-x 0916cb3da1 bugfix for releative path for `GoTest -c` 2 years ago
Aleš Brelih 6d2062c3d7
feat: verbose tests toggle (#123)
Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
2 years ago
ray-x 54df0e9994 fixplurals 2 years ago
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>
2 years ago
ray-x 7ca5ad805b allow lsp_keymaps to be a function 2 years ago
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>
2 years ago
ray-x 4c66365aa2 Add GoModeTidy and GoModeVendor 2 years ago
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)
2 years ago
ray-x c622c27bf8 doc updates 2 years ago