fix: max_line_line typo (#21)

pull/22/head
Ryder 3 years ago committed by GitHub
parent 9df90c86d5
commit 49c0a4280e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -363,7 +363,7 @@ 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_line = 120,
max_line_len = 120,
tag_transform = false,
test_dir = '',
comment_placeholder = '  ',

@ -3,7 +3,7 @@ local go = {}
_GO_NVIM_CFG = {
goimport = 'gofumports', -- if set to 'gopls' will use gopls format
gofmt = 'gofumpt', -- if set to gopls will use gopls format
max_line_line = 120,
max_line_len = 120,
tag_transform = false,
test_dir = '',
comment_placeholder = '',

@ -2,7 +2,7 @@
-- golines + gofumports(stricter gofmt + goimport)
local api = vim.api
local utils = require("go.utils")
local max_len = _GO_NVIM_CFG.max_len or 120
local max_len = _GO_NVIM_CFG.max_line_len or 120
local goimport = _GO_NVIM_CFG.goimport ~= nil and _GO_NVIM_CFG.goimport or "gofumports"
local gofmt = _GO_NVIM_CFG.gofmt ~= nil and _GO_NVIM_CFG.gofmt or "gofumpt"
local gofmt_args = _GO_NVIM_CFG.gofmt_args and _GO_NVIM_CFG.gofmt_args

Loading…
Cancel
Save