[mirror] Make your go dev experience better github.com/olexsmir/gopher.nvim
neovim golang

refactor(api)!: mave tags and gotests api into their sub tables

Changed files
+14 -10
lua
gopher
plugin
+9 -5
lua/gopher/init.lua
··· 9 9 gopher.iferr = require("gopher.iferr").iferr 10 10 gopher.comment = require "gopher.comment" 11 11 12 - gopher.tags_add = tags.add 13 - gopher.tags_rm = tags.remove 12 + gopher.tags = { 13 + add = tags.add, 14 + rm = tags.remove, 15 + } 14 16 15 - gopher.test_add = tests.func_test 16 - gopher.test_exported = tests.all_exported_tests 17 - gopher.tests_all = tests.all_tests 17 + gopher.test = { 18 + add = tests.func_test, 19 + exported = tests.all_exported_tests, 20 + all = tests.all_tests, 21 + } 18 22 19 23 gopher.get = function(...) 20 24 gocmd("get", { ... })
+5 -5
plugin/gopher.vim
··· 1 - command! -nargs=* GoTagAdd :lua require"gopher".tags_add(<f-args>) 2 - command! -nargs=* GoTagRm :lua require"gopher".tags_rm(<f-args>) 3 - command! GoTestAdd :lua require"gopher".test_add() 4 - command! GoTestsAll :lua require"gopher".tests_all() 5 - command! GoTestsExp :lua require"gopher".test_exported() 1 + command! -nargs=* GoTagAdd :lua require"gopher".tags.add(<f-args>) 2 + command! -nargs=* GoTagRm :lua require"gopher".tags.rm(<f-args>) 3 + command! GoTestAdd :lua require"gopher".test.add() 4 + command! GoTestsAll :lua require"gopher".test.all() 5 + command! GoTestsExp :lua require"gopher".test.exported() 6 6 command! -nargs=* GoMod :lua require"gopher".mod(<f-args>) 7 7 command! -nargs=* GoGet :lua require"gopher".get(<f-args>) 8 8 command! -nargs=* GoWork :lua require"gopher".work(<f-args>)