Commit Graph

63 Commits (fe8196f9d1ef3b69adb707d02ecdcc5550f8152b)

Author SHA1 Message Date
ray-x fe8196f9d1 [goimport->goimports] Enduring the frustration of a longstanding typo, I've finally resolved to correct it. The change updates "goimport" to "goimport," including all related documentation and tests.
Additionally, I've set gopls as the default tool for both gofmt and goimports. This integration will be quicker than executing a separate command in the background and analyzing its output.
3 months ago
ray-x 9ac3e6faa3 make gofumpt default formatter (replacing golines) 3 months ago
ray-x 3c497f6e5e import save and auto format 3 months ago
ray-x 9dfc750472 gopls.change_signature 3 months ago
ray-x 737c44f5b4 force format after import 3 months ago
rayx 7852fd8e1c
Fixtures Updates (#392)
* go mod setup for fixtures

* go mod setup for fixtures

* fillstruct test refactor
7 months ago
rayx c4819d1625
CLI refact (#391)
* some refact of gotest

* issue #376 add handlers to async formatting

* issue #343 title length

* add parallel flag

* disable trace log

* Error lines output in github action

* Go mod update in fixtures
7 months ago
ray-x 694af9c0ee file autosave after format; disable autocmd when saving a file 8 months ago
rayx c61f9371cd
Fix github pipeline. Make gopls fmt/import async (#366)
* fillstruct updates
* gopls async fmt/import
* github action fix
* add gopls tests
10 months ago
ray-x 4f3d09f0a3 use vim.log.levels instead of vim.lsp.log_levels 1 year ago
ray-x 26fd07ebad use gopls in gofmt 1 year ago
rayx 0f72dbdd87
Fix unit test errors 🎄🎆 (#265)
* test pipeline

* update unit tests
1 year ago
ray-x 6eea6a265d format format.lua 2 years ago
ray-x 74d65542d4 issue #189 format warning message 2 years ago
ray-x 4e44e251db update notify message when format is missing 2 years ago
ray-x bedc73166a #187 vim.lsp.buf.format missing in some version of neovim 2 years ago
mateusz 002e199562
synchronous goimports (#186)
* fix save formatting

* fix vim.lsp.buf.format polyfill

* reformat and default values

* remove extra end

Co-authored-by: rayx <rayx.cn@gmail.com>
2 years ago
ray-x 3774ac0eba lint 2 years ago
liangkai dffe933fd1
replace utils.notify by utils.warn (#168) 2 years ago
ray-x 6108dc9ea1 bugfix test failure 2 years ago
ray-x 484524b875 do not use golines as goimport default formater, #157 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
ray-x fb4f37a328 allow show coverage summary with 'go tool cover -func' in qf 2 years ago
ray-x 30d30f407a fix diagnostic warnings for all files 2 years ago
ray-x 2b15b59d18 issue #132 goimport format options 2 years ago
ray-x f5f5c41165 fix typo 2 years ago
ray-x 002d7dfd73 infer the test func name with treesitter 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 dbf0094f25 write buffer after gofmt 2 years ago
ray-x 8b7d2c3eda formatting_sync -> format 2 years ago
ray-x 97f0d7e620 formatting -> format for neovim 0.8 2 years ago
ray-x 49b311aff2 issue #83 disable notify 2 years ago
ray-x df512d695f issue #94 GoImport autocomplete 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 192486892b bugfix #65 coverage failed 2 years ago
Craig Rodrigues 483b56f4a2
Replace print() with vim.notify() (#64) 2 years ago
ray-x 0bc7abace6 bug fix for github workflow 3 years ago
Viktor Kojouharov b09f8354bf
Make formatting sync during import (#32)
With sync formatting, the function can be used in BufWritePre without the buffer ending up modified the save.
3 years ago
ray-x 7feb745e6c remove gofumport from go.nvim #18 3 years ago
ray-x 3fc75ca46a refact fillstruct and codeaction add GoFixPlurals 3 years ago
ray-x 8ea0ff1d3a commit 3 years ago
ray-x 5c5b102b93 arguments 3 years ago
ray-x d6f0249023 format 3 years ago
ray-x b517d7a6b9 updates 3 years ago
ray-x af25e1e2e7 goimport cleanup 3 years ago
ray-x d9e0a4be9f workflow fix 3 years ago
ray-x c0771b93c8 test workflow 3 years ago
ray-x e17b25eee7 #26 add goimports -local support 3 years ago
ray-x 35f546fed1 test workflow 3 years ago