Commit Graph

729 Commits (8b28f988779d86eaad28f8057b6c0187f35c191c)

Author SHA1 Message Date
Yajie Zhu 6c793a1c6f
fix: use strict test function name while debugging (#197)
* fix: use strict test function name while debugging

* fix: use strict test function name while debugging

* Revert "fix: use strict test function name while debugging"

This reverts commit f47dd66c50.

Co-authored-by: zhuyajie <930664@qq.com>
2 years ago
ray-x 943cf236d0 goget #194 2 years ago
ray-x 2a48166beb mockgen 2 years ago
ray-x c3dd9e3ee8 smart build tags 2 years ago
ray-x ca7cb5fe34 lint 2 years ago
ray-x ce73ef43f0 cleanup ts logs; utils get build tags renaming 2 years ago
ray-x ddbb30a38e remove log messages 2 years ago
ray-x c94c488307 automatically add build tags to gopls. handle "// go:build tagxxx" 2 years ago
ray-x 160897a93f test failure 2 years ago
ray-x feaef378b7 testcase update 2 years ago
ray-x d5e5a65c03 moving from vim script to lua scripts (autocmd, highlight) 2 years ago
ray-x 2930eb9f17 spelling, default sign highlight 2 years ago
ray-x 7fea49e79f rename from gocoverage_sign_priority to sign_priority 2 years ago
ray-x 4c1ee0ddeb update default priority of sign 2 years ago
ray-x 9ea9ee2c4b issue #192 coverage sign priority 2 years ago
ray-x 3f2e7f49bd json to go struct 2 years ago
ray-x 5516cf7fff issue #190 check line range before get_params 2 years ago
ray-x 524b65f85a bugfix: some user commands failed because incorrect setup of lua api 2 years ago
mateusz e401dd9f31
fix wrongly documented default value (lsp_gofumpt) (#188)
* fix wrongly documented default value

* Revert "fix wrongly documented default value"

This reverts commit 63c537dc50.

* fix default lsp_gofumpt
2 years ago
ray-x 74d65542d4 issue #189 format warning message 2 years ago
ray-x f4d8a0b691 allow dap to be lazyload 2 years ago
ray-x b7d6288bbd use neovim 0.7 API to create commands. this is a breaking change for anyone using neovim 0.6.x 2 years ago
ray-x c1db235792 issue #186 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
ray-x 06c27c1cf5 missing end 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 a9b669772f check if gopls is running before send codelens request 2 years ago
ray-x 5c2c14a5f6 lint 2 years ago
ray-x b647bd1ae9 issue #183 codelens refresh in on_attach 2 years ago
ray-x 1ca53c0a00 refresh codelens in on_attach 2 years ago
ray-x 8fb06f43a2 cache the client info results for inlay 2 years ago
ray-x db47b70d21 startup delay because the BufEnter autocommands 2 years ago
ray-x 93c724d6b0 issue #184 trouble 2 years ago
ray-x 7aed764507 allow more trigger events for codelens 2 years ago
ray-x 144eb6fb2a issue #182 setup merge 2 years ago
ray-x 72bff85508 issue #181 merge gopls setup 2 years ago
ray-x a816cdb5e7 windows extensions 2 years ago
ray-x 7c62c7c27a add windows exe extension #179 2 years ago
Tai Groot f378f7ffa2
remove leading space on hint args (#180) 2 years ago
ray-x 3bdd56b1c0 issue #179 windows 11 2 years ago
ray-x 3774ac0eba lint 2 years ago
ray-x 5b70d93603 lint 2 years ago
ray-x e5c7d643b1 gosnips return default, similar to fillreturns by gopls 2 years ago
ray-x f334b05d0c issue #173 minimal defaults 2 years ago
ray-x 7342608bd6 issue #175 hover 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
ray-x deccb2c6c3 GoMockGen cmd fix 2 years ago
liangkai dffe933fd1
replace utils.notify by utils.warn (#168) 2 years ago
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
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
ZHL bc25de4d85
upgrade ginkgo version to v2 (#166)
It might be a breaking change for those using ginkgo v1
2 years ago
ray-x c7fa2fe5fc tuning treesitter type def 2 years ago
ray-x e43eaf43b7 go-dap keymap desc 2 years ago
ray-x 607ed738e5 improve treesitter query 2 years ago
ray-x d1384cf2c0 revert changes break github actions 2 years ago
Steffen Siering 300fffc87d
Fix: GoCoverage (#164)
Co-authored-by: urso <steffen.siering at gmail>
2 years ago
Benedikt Müller 1b5b77feb8
fix lsp_on_client_start option (#163) 2 years ago
ray-x a4026941d0 issue #161 allow project setup to be disabled 2 years ago
ray-x 1315ed89ad add tests for asyncmake 2 years ago
ray-x ab8a075aa4 add efm only mode for testing when floating term is off 2 years ago
ray-x fcc473b1ec GoImpl autocomplete from treesitter symbols 2 years ago
ray-x 9ad2568465 better key unmap, allow recover the keymap to user defined key 2 years ago
ray-x 29a23a31e3 issue #153 -count=x 2 years ago
ray-x 300836a9cb go impl: allow omit interface and use treesitter to find a interface name and package name 2 years ago
ray-x 31624e1365 treesitter node for struct and type 2 years ago
ray-x eaec8c45f2 revert changes to golden file 2 years ago
ray-x 8021f2a484 fix test automation 2 years ago
ray-x c588f2bf4a tests updates 2 years ago
ray-x 7102361efd test spec 2 years ago
ray-x 6108dc9ea1 bugfix test failure 2 years ago
ray-x a15427f902 mockgen from source 2 years ago
ray-x e84d3ab545 improve #155 allow GoImpl fallback if struct type def not found 2 years ago
ray-x 484524b875 do not use golines as goimport default formater, #157 2 years ago
ray-x a86e9d2a29 Feature: add go mock / mockgen 2 years ago
rayx 2371bf414b
[Breaking] change keymap api (#152)
the keymap api used in version no longer support neovim 0.6.x. Please use nvim-0.6 branch if you do not want to update to neovim 0.7, BTW, if you do not use go.nvim for debugging, it should not affect you.
2 years ago
ray-x a2d0bbee53 bugfix #153, update doc 2 years ago
Aleš Brelih edda37cb5e
Cmd is tranformed to string before pushed to term (#151)
* Cmd is tranformed to string before pushed to term

Float terminal command is tranformed to string using table.concat before
used. This allow us to use neovim buff option to unite quoting.

* Update term.lua

Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
Co-authored-by: rayx <rayx.cn@gmail.com>
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 ee39b539b9
fix(dap): don't close empty stdout stderr handle (#149)
Add nil check to closure of stdout stderr handle
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
ray-x c9ba685250 should call dapui.setup only once, #145
check dapui is_open
2 years ago
ray-x eae9af9c1d recommit fix for #145 due to merge failure 2 years ago
ray-x 65bd2685b4 fix test cases 2 years ago
ray-x 5873520c34 #143 exact function mane match 2 years ago
rayx a7edcfac84
Fix pipeline for neovim 0.6.1 (#142)
* updates delays

* repeat actions

* fix golden file

* fix neovim 0.6.x

* fillstruct updates for 0.6.x

* remove treesitter dependency for fillstruct test
2 years ago
ray-x 93db33751c fillstruct with gopls 2 years ago
ray-x 331e14d728 pipeline updates as treesitter-master no-longer supports nvim 0.6.1. First github 500 stars 2 years ago
ray-x 4bc6b563ce go treesitter locals.scm add go_impl_spec 2 years ago
ray-x 28b553aa52 handle nil output with runner 2 years ago
ray-x 3f8551cc11 issue #141 the result of shell command should be checked before proccess
the output
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 16c37da2f8 go coverage: toggle the coverage indicator after metric is shown 2 years ago
ray-x d3d278d58a doc update 2 years ago
ray-x fb4f37a328 allow show coverage summary with 'go tool cover -func' in qf 2 years ago
ray-x 7045635404 bugfix for fish terminal 2 years ago
ray-x 7945c74580 breaking changes dapui #137 2 years ago
ray-x be47f4fb6c errorformat/efm 2 years ago
ray-x 410808938e lint 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 44d6a9d8f3 add list_imports support 2 years ago
ray-x 9d8117766c dap restart fix, fish fix 2 years ago
ray-x 040c7bd110 Update document
Smart build tags detection
2 years ago
ray-x 0bf69f9315 pull #136 use cmd string for floating terminal run 2 years ago
ray-x b3c6bde824 flags to load coverage file 2 years ago
ray-x 0690c83943 auto complete for modify tags 2 years ago
ray-x ccaed8c573 cli improvement for gomodifytags, gotest 2 years ago
ray-x ffd3b019a9 treesitter with dap to capture current function name 2 years ago
ray-x 9036f3bf88 fix plurals change edit orders 2 years ago
ray-x fb4048df8b package.config 2 years ago
ray-x a064f1e4f5 DIR_SEP nil 2 years ago
ray-x 76b31e6e74 DIR_SEP 2 years ago
ray-x 099790c988 go lint 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 1a3f4003a6 issue #132 changes after writes 2 years ago
ray-x f5f5c41165 fix typo 2 years ago
ray-x 56143544d7 revert escape changes, it breaks floaterm run 2 years ago
ray-x 0cc455457c notify level based on test result 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
ray-x c2c2100287 test golden file updates for issue #131 2 years ago
ray-x ec99df2098 fix test golden file 2 years ago
ray-x 9d01246a56 new test cases for gofmt 2 years ago
ray-x fc928a40e9 show cheatsheet in floating window 2 years ago
ray-x 9d7845707d gorename setup in lsp, allow guihua gui 2 years ago
qasimwarraich f9d094c8e5
fix(code_actions): Remove now deprecated telescope_code_actions() (#130)
- Removes `telescope_code_actions()` function.
- Sets associated keybinding to `vim.lsp.buf.code_action`
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 e09a3ebe23 error handle for exit code from go build and allow chtsh get query from current word 2 years ago
ray-x 7e35330a35 gotest run test file in folder. 2 years ago
ray-x eb4d380807 allow format all buffers with goimports 2 years ago
ray-x 58dd76bf90 remove trace func 2 years ago
ray-x 051e8b2afa cheatsheet(cht.sh) supports in go.nvim 2 years ago
ray-x bbb37ea81f split none UI releated logic for testing 2 years ago
ray-x 8d1c468901 github action 2 years ago
ray-x 8103d462c5 github action fix 2 years ago
ray-x 7b5c408b88 github action failure fix 2 years ago
ray-x fed6b24482 select test from functions 2 years ago
ray-x 125d6fa3d3 better test coverage for gotest 2 years ago
ray-x 323cfae1fa add tests for go test 2 years ago
ray-x 362ff2fd37 more tests fixplurals 2 years ago
ray-x bc1a1ea33b update minimal.vim for github actions 2 years ago
ray-x a173420ed9 disable plenary debug in github action 2 years ago
ray-x a06e091d68 GoImpl allow specify receiver name 2 years ago
ray-x 52ccb2e690 GoImpl updates, allow no arguments and let treesitter do everything for you 2 years ago
ray-x dbf0094f25 write buffer after gofmt 2 years ago
ray-x e3504bc50f allow gorun in float terminal 2 years ago
ray-x 257218611e merge conflict 2 years ago
ray-x ed8a2484ba merge master 2 years ago
ray-x 1f4711e681 Merge branch 'master' into serverCapcities 2 years ago
ray-x 73eed9e67b remove un-used setup in breakpoint save 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 1449635984 launch.json create folder if not existed 2 years ago
ray-x e3551f08bc add logs 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 e54ed67325 remove fixplurals gotool and using treesitter 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 128d2c14f3 Merge branch 'master' into serverCapcities 2 years ago
ray-x 14f298af92 Merge branch 'boilerplate' 2 years ago
ray-x 0faaf7bd0a save and load breaks 2 years ago
ray-x e77920422e Merge branch 'master' into serverCapcities 2 years ago
ray-x 1c727c8768 ts keybinding update 2 years ago
ray-x 8e6ad61371 remove fixplurals gotool and using treesitter 2 years ago
ray-x 7c434918be add gonvim project file parser 2 years ago
ray-x 8b7d2c3eda formatting_sync -> format 2 years ago
ray-x 86720cae95 update ts keybindings 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
Mochammad Hanif R 5c4fcc49ac
Fix tags when using `tag_transform` (#121)
Also clarify `tag_transform` documentation in README for more clarity
2 years ago
ray-x 5bebe38de0 push gopls and lsp changes for nvim 0.7 2 years ago
ray-x 97f0d7e620 formatting -> format for neovim 0.8 2 years ago
ray-x 3154dfffb9 Merge branch 'master' into serverCapcities 2 years ago
ray-x c89418aa4b nil checking when loading cfg 2 years ago
ray-x 54df0e9994 fixplurals 2 years ago
ray-x 69d4085638 update options name to floaterm 2 years ago
ray-x 8cc8337343 Merge branch 'master' into serverCapcities 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 cf3915c331 neovim breaking changes https://github.com/neovim/neovim/pull/17814 2 years ago
ray-x 9143b3a4b9 bugfix issue #114 2 years ago
ray-x 08b36ea9e6 gopls version check issue #114 2 years ago
ray-x 88a846b3e1 issue #113 check lsp code lens 2 years ago
ray-x 1875416553 codelens message 2 years ago
ray-x 65b3c19709 issue #110 use releative path to handle symbolic link 2 years ago
ray-x 1fabdb4fd9 issue #111 fixpurals 2 years ago
ray-x c7bf2f59c6 issue #108 2 years ago
ray-x 4b1eea8b90 issue #90 remove lsp codelens check 2 years ago
ray-x 49b311aff2 issue #83 disable notify 2 years ago
ray-x edd8240d7f go.sum file type 2 years ago
ray-x 7ca5ad805b allow lsp_keymaps to be a function 2 years ago
ray-x 272d11d622 issue #104 allow user disable key mapping in lsp attach 2 years ago
ray-x c8c63fb9a1 handle stderr output 2 years ago
ray-x 5d53132e52 updates for 0.5.1 2 years ago
ray-x 72e8a82ebd neovim 0.5.x treesitter 2 years ago
ray-x 9b9744a341 bug fix for neovim 0.6.1 2 years ago
ray-x 7320a536d7 update ts nodes 2 years ago
ray-x f4c07bb5d6 deprecate get_node_text 2 years ago
ray-x b71f814e20 update lint 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
Nicolas Barbosa 63d81679d0
fix: remove cover file (#107)
* fix: remove cover file

* fix: coverage notify message
2 years ago
ray-x dbfde6ea1b fix double close when end dap session 2 years ago
Mochammad Hanif R f5aa4a7046
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.
2 years ago
ray-x 058e748409 allow GoRun to run inside a terminal 2 years ago
ray-x bed2b6818c issue #82 allow close terminal in current buffer 2 years ago
Prescott Murphy db7ecb86a6
Fix typo in rename.lua (#99) 2 years ago
ray-x ef32d8914b allow multipls arguments for go mod 2 years ago
ray-x 8c5d95b3ff bugfix issue #96 2 years ago
ray-x 7b4f7620f7 failure message should not show 2 years ago
ray-x 3043e9bf04 gotest bench 2 years ago
Prescott Murphy 82d796a01f
Handle literal "go" in path for GoAlt command (#93)
The original logic fails if you have go in your path, like: `/Code/mygoproject/myfile.go` because the split will have more than two elements.
2 years ago
ray-x ed3dfb85b2 Breaking changes for GoDebug, deprecate old argument and using linux style command line arguments 2 years ago
ray-x 0fe0a9ee33 feature: auto jump to quickfix list item if test failed 2 years ago
ray-x f355905c00 bqf friendly qickfix output for testing 2 years ago
ray-x 1bc6249495 feature: in quickfix, shows full path name instead of name only. That allows jump to the failed location 2 years ago
ray-x 4c66365aa2 Add GoModeTidy and GoModeVendor 2 years ago
ray-x 630a813360 remove tagSupport, it is not supported by gopls 2 years ago
ray-x d8638ab9c8 issue#88 cmp setup. set it as default 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 3e905d07ac health check for treesitter-go parser issue#86 2 years ago
ray-x c622c27bf8 doc updates 2 years ago
ray-x c9359bb14d Allow lsp diagnostic setup passed from outside 2 years ago
ray-x d98d4e9eda better error message for dlv; dlv attach mode 2 years ago
ray-x f5c029e5fa Update GoGet. if cursor current line is a valid pkg url, will auto fill it to go get argument 2 years ago
ray-x edbd796ded Add GoStop command to stop the background task started with GoRun 2 years ago
ray-x 2b059afc54 GoGet 2 years ago
ray-x 4e3b2b1971 bugfix #81 2 years ago
ray-x f599a5e2cc gopls cmd fallback 2 years ago
ray-x ce29866640 lsp installer path setup for version check 2 years ago
ray-x 180e44ac07 handle nil 2 years ago
ray-x a853613467 use `-1` for random port 2 years ago
ray-x ee3c36e25d allow config debug port 2 years ago
ray.xu 4c54762e63 gopls vesion can be very slow, change to jobstart 2 years ago
ray.xu f2b227d3e2 telescope codeaction loader 2 years ago
Craig Rodrigues 0f1740ed23
Fix URL for gotests for GoInstallBinaries (#79) 2 years ago
ray.xu 50a9fe57ec textobject breaking changes https://github.com/nvim-treesitter/nvim-treesitter-textobjects/issues/169 2 years ago
ray.xu 2a2c5f4cd8 open qf only when on error 2 years ago
ray-x 532f7256b1 issue #71, change warn/info/error to notify 2 years ago
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>
2 years ago
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>
2 years ago
ray-x b1271d5e6a issue #71 packer loader failed to load plugins 2 years ago
ray-x 99cc459eed cleanup asyncmake 2 years ago
ray-x a191de4920 issue #76 better qf 2 years ago
ray-x cd395e96fb setup option to disable gopls doc format 2 years ago
ray-x 22fe0379de check dap module before disconnect dap 2 years ago
ray-x cad485661b offset encoding 2 years ago
ray-x e5ebbd9460 Add GoTest -c option, compile test package issue#76 2 years ago
ray-x 0d5f1c9f31 add health.lua 2 years ago
ray-x 2869c5b8fc Add support for vscode launch.json. Allow launch debugger from config in .vscode/launch.json 2 years ago
ray-x 85f2300e72 issue #75, better default package path for tests 3 years ago
ray-x ff9a34bffb issue #71 session and restart for the debugger 3 years ago
ray-x ca1d46b4ab prevent re-launch dap 3 years ago
Craig Rodrigues 817eb44890
Put options in same order in README.md, go.lua (#74) 3 years ago
ray-x d2f5f9c683 Merge master 3 years ago
ray-x 37b9a66dc2 default debug/dlv keymap to true 3 years ago
ray-x e232ed38e6 doc update for test_runner 3 years ago
ray-x 29960fe775 ANSI color remove for quickfix 3 years ago
ray-x 0493df8b44 go 1.18beta 3 years ago
Craig Rodrigues 60e0659d50
Set dap_debug_keymap to true by default (#73) 3 years ago
Craig Rodrigues a54f5d452f
Put options in same order in README.md, go.txt, go.lua (#72) 3 years ago
ray-x 6a228e05cb allow doc argument to be nil 3 years ago
ray-x 2a096a93c1 Default GoDoc to lsp hover if no arguments are provided 3 years ago
ray-x bd25255d03 fallback to package test, argument and notify 3 years ago
ray-x 310339cbc5 floatterm width ceiling 3 years ago
ray-x 88ef38d88b issue #68 golangci-lint handle error message 3 years ago
ray-x 264efc57c1 issue #65 failed to run coverage tests. Notify updates. 3 years ago
ray-x 192486892b bugfix #65 coverage failed 3 years ago
ray-x 437748a09f update impl, CLI complete 3 years ago
Craig Rodrigues 483b56f4a2
Replace print() with vim.notify() (#64) 3 years ago
Craig Rodrigues 3a35bff71e
Add warning if lsp_cfg is false, but lsp_on_attach is not nil (#63) 3 years ago
ray-x 4c0a400956 update on_attach no longer support bool 3 years ago
Craig Rodrigues eebe136396
Make lsp_on_attach nil by default (#62)
Clarify lsp_on_attach in the docs.
3 years ago
ray-x f53e130370 lsp_on_attach default to false 3 years ago
ray-x 3fe0c3eded gopls filetypes update 3 years ago
Craig Rodrigues d18ac7460a
Add gopls to GoInstallBinaries/GoUpdateBinaries (#60) 3 years ago
ray-x 6d6b3afc3b add gotexttmpl and gohtmltmpl support for gopls 3 years ago
ray-x 14ad56d297 cleanup logs 3 years ago
ray-x 9be4a230fe typo :( 3 years ago
ray-x 3fe53eaf13 use latest version of codelens api, allow to hook guihua.lua 3 years ago
ray-x db819954d3 Add GoCodeAction, GUI with guihua.lua and vim.ui.select() 3 years ago
ray-x 124d2e269c dap_debug_keymap missing issue #57 3 years ago
ray-x c7c3ab885a better workfolder 3 years ago
ray-x 47866b4847 some cleanup and use list instead of string for jobsstart 3 years ago
ray-x 4484f167d6 bugfix #56 escape '<space>' and '-' 3 years ago
ray-x 2d7e23b72b return gopls setup so we can use in nvim-lsp-installer, issue #56 escape '-' 3 years ago
ray-x 84c5ce26f3 GoVet command 3 years ago
ray-x 64460e4f88 Add GoVet, update errorformat for issue #55 3 years ago
ray-x 45348a8c83 bugfix #54 quickfix position 3 years ago
ray-x 1aab3bcea0 add go.txt 3 years ago
ray-x 6574dd2e6b add textobject default setup, doc updates 3 years ago
ray-x 7f625aceca stylua/selene gotest update 3 years ago
ray-x 6e87d834a4 efm format for quickfix; golangci-lint efm setup 3 years ago
ray-x 8712f31898 golangci-lint quickfix 3 years ago
ray-x cac2016243 update delay to make test happy 3 years ago
ray-x 7d39be9431 add gobinaryinstall/update issue #49 3 years ago
ray-x 0bc7abace6 bug fix for github workflow 3 years ago
ray-x 4eeafad97e issue #47 3 years ago
ray-x a038113bad add default to highlight command to prevent overrule 3 years ago
ray-x 3329238deb code action with telescope, dap debug restart 3 years ago
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>
3 years ago
ray-x 4611c34548 updates for dapui 3 years ago
ray-x 1b11f52b08 updates for dap.ui 3 years ago
ray-x ef332025ce allow return value for test 3 years ago
Vincent Xiao 21017717c1
Support multiple files on GoDebug (#44)
Running `GoDebug` on `main()` will fail if there are multiple files in `package main` since the other files won't be compiled along with the target file.
3 years ago
ray-x f59422008a Add warn messages 3 years ago
ray-x ec91d9915f Add command autocomplete 3 years ago
Hank Donnay 51f4d41363
fix syntax error in default GoTest command (#41) 3 years ago
ray-x 8f075be252 Allow rename with gopls when lsp is ready 3 years ago
ray-x 165714cfea allow godoc focusable 3 years ago
ray-x 0dc7b57f6f windows path issue #40 3 years ago
ray-x 39a66c3534 dap sign #35 3 years ago
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>
3 years ago
ray-x 37a4cfb1ad issue #35 config break sign 3 years ago
ray-x 94d4baac31 nvim 5.1 3 years ago
ray-x f339373ed4 test udpate 3 years ago
ray-x 6385a1a53f lua format 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 569e8e4320 Update reftool and fillstruct 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 54dea272d1 #31 expose bufnr to ts APIs 3 years ago
ray-x 8c3abfb9f2 go doc command with floating preview 3 years ago
ray-x d6c4cf570a add % before special char to string match 3 years ago
ray-x 1988bf39ae LSP api changes https://github.com/neovim/neovim/pull/15504 3 years ago
ray-x c9a07b85cb support lsp API changes neovim/pull/15504 3 years ago
ray-x c984ce7757 update gotest it will output to buffer 3 years ago
ray-x ee0d43ce5c merge github workflow and goimport fix 3 years ago
ray-x 8ea0ff1d3a commit 3 years ago
ray-x 5c5b102b93 arguments 3 years ago
ray-x c67b1c8912 revert changes 3 years ago
ray-x 00a7405904 save file 3 years ago
ray-x da9cd35645 gopls 2s 3 years ago
ray-x d6f0249023 format 3 years ago
ray-x b517d7a6b9 updates 3 years ago
ray-x 6cb17285ff save 3 years ago
ray-x bdce678adf sequences 3 years ago
ray-x af25e1e2e7 goimport cleanup 3 years ago
ray-x 6e6446c45f sequence 3 years ago
ray-x eb74902ba9 sequence 3 years ago