|
|
|
@ -780,7 +780,7 @@ require('go').setup({
|
|
|
|
|
go='go', -- go command, can be go[default] or go1.18beta1
|
|
|
|
|
goimport='gopls', -- goimport command, can be gopls[default] or either goimport or golines if need to split long lines
|
|
|
|
|
gofmt = 'gofumpt', --gofmt cmd,
|
|
|
|
|
max_line_len = 128, -- max line length in golines format, Target maximum line length for golines
|
|
|
|
|
max_line_len = 0, -- max line length in golines format, Target maximum line length for golines
|
|
|
|
|
tag_transform = false, -- can be transform option("snakecase", "camelcase", etc) check gomodifytags for details and more options
|
|
|
|
|
tag_options = 'json=omitempty', -- sets options sent to gomodifytags, i.e., json=omitempty
|
|
|
|
|
gotests_template = "", -- sets gotests -template parameter (check gotests for details)
|
|
|
|
@ -909,7 +909,6 @@ return {
|
|
|
|
|
go = "go", -- set to go1.18beta1 if necessary
|
|
|
|
|
goimport = "gopls", -- if set to 'gopls' will use gopls format, also goimport
|
|
|
|
|
gofmt = "gofumpt", -- if set to gopls will use gopls format
|
|
|
|
|
max_line_len = 120
|
|
|
|
|
null_ls_document_formatting_disable = true
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
@ -1274,7 +1273,6 @@ lua <<EOF
|
|
|
|
|
require 'go'.setup({
|
|
|
|
|
goimport = 'gopls', -- if set to 'gopls' will use golsp format
|
|
|
|
|
gofmt = 'gopls', -- if set to gopls will use golsp format
|
|
|
|
|
max_line_len = 120,
|
|
|
|
|
tag_transform = false,
|
|
|
|
|
test_dir = '',
|
|
|
|
|
comment_placeholder = ' ',
|
|
|
|
|