Commit Graph

58 Commits

Author SHA1 Message Date
rayx
7852fd8e1c
Fixtures Updates (#392)
* go mod setup for fixtures

* go mod setup for fixtures

* fillstruct test refactor
2023-11-01 13:12:43 +11:00
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
2023-10-31 16:30:38 +11:00
ray-x
694af9c0ee file autosave after format; disable autocmd when saving a file 2023-10-20 22:19:04 +11:00
rayx
c61f9371cd
Fix github pipeline. Make gopls fmt/import async (#366)
* fillstruct updates
* gopls async fmt/import
* github action fix
* add gopls tests
2023-08-08 17:04:43 -07:00
ray-x
4f3d09f0a3 use vim.log.levels instead of vim.lsp.log_levels 2023-02-16 07:37:10 +11:00
ray-x
26fd07ebad use gopls in gofmt 2023-01-04 21:50:01 +11:00
rayx
0f72dbdd87
Fix unit test errors 🎄🎆 (#265)
* test pipeline

* update unit tests
2022-12-28 15:03:29 +11:00
ray-x
6eea6a265d format format.lua 2022-10-27 11:39:09 +11:00
ray-x
74d65542d4 issue #189 format warning message 2022-08-01 17:02:21 +10:00
ray-x
4e44e251db update notify message when format is missing 2022-08-01 09:05:04 +10:00
ray-x
bedc73166a #187 vim.lsp.buf.format missing in some version of neovim 2022-08-01 09:04:28 +10:00
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>
2022-08-01 08:30:35 +10:00
ray-x
3774ac0eba lint 2022-07-27 02:21:58 +10:00
liangkai
dffe933fd1
replace utils.notify by utils.warn (#168) 2022-07-14 15:38:54 +10:00
ray-x
6108dc9ea1 bugfix test failure 2022-07-06 13:21:02 +10:00
ray-x
484524b875 do not use golines as goimport default formater, #157 2022-07-06 08:29:59 +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
ray-x
fb4f37a328 allow show coverage summary with 'go tool cover -func' in qf 2022-06-22 13:33:30 +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
f5f5c41165 fix typo 2022-05-31 16:16:09 +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
051e8b2afa cheatsheet(cht.sh) supports in go.nvim 2022-05-25 14:36:34 +10:00
ray-x
dbf0094f25 write buffer after gofmt 2022-05-17 15:04:26 +10:00
ray-x
8b7d2c3eda formatting_sync -> format 2022-05-12 14:46:49 +10:00
ray-x
97f0d7e620 formatting -> format for neovim 0.8 2022-05-04 15:15:49 +10:00
ray-x
49b311aff2 issue #83 disable notify 2022-04-24 20:30:41 +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
192486892b bugfix #65 coverage failed 2021-12-27 19:47:59 +11:00
Craig Rodrigues
483b56f4a2
Replace print() with vim.notify() (#64) 2021-12-22 14:34:10 +11:00
ray-x
0bc7abace6 bug fix for github workflow 2021-12-02 17:44:22 +11:00
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.
2021-10-01 18:49:58 +10:00
ray-x
7feb745e6c remove gofumport from go.nvim #18 2021-09-25 12:44:52 +10:00
ray-x
3fc75ca46a refact fillstruct and codeaction add GoFixPlurals 2021-09-20 19:05:04 +10:00
ray-x
8ea0ff1d3a commit 2021-09-03 03:14:04 +10:00
ray-x
5c5b102b93 arguments 2021-09-03 02:59:45 +10:00
ray-x
d6f0249023 format 2021-09-03 02:21:31 +10:00
ray-x
b517d7a6b9 updates 2021-09-03 02:15:54 +10:00
ray-x
af25e1e2e7 goimport cleanup 2021-09-02 22:27:40 +10:00
ray-x
d9e0a4be9f workflow fix 2021-09-02 20:34:57 +10:00
ray-x
c0771b93c8 test workflow 2021-09-02 20:21:41 +10:00
ray-x
e17b25eee7 #26 add goimports -local support 2021-09-01 11:22:05 +10:00
ray-x
35f546fed1 test workflow 2021-08-24 17:10:04 +10:00
ray-x
c28fa04029 merge github action/workflow 2021-08-24 14:53:37 +10:00
ray-x
a3d29e5cbd bugfix for gopls: goimport check code action type 2021-08-17 09:59:21 +10:00
Ryder
49c0a4280e
fix: max_line_line typo (#21) 2021-08-14 10:27:55 +10:00
ray-x
786a9c67ad rename lsp format to gopls format 2021-07-11 21:52:39 +10:00
ray-x
d8fc9cbe1e rename lsp_enable to lsp_cfg 2021-07-11 21:50:09 +10:00