This commit is contained in:
abs3nt 2023-03-01 22:55:24 -08:00
parent 4c77597809
commit d5bfc57e35
3 changed files with 18 additions and 9 deletions

View File

@ -151,9 +151,5 @@ autocmd('BufUnload', {
end, end,
}) })
-- auto format on write
vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.format()]]
-- syntax fix -- syntax fix
vim.cmd("syntax sync fromstart") vim.cmd("syntax sync fromstart")

View File

@ -61,9 +61,6 @@ require('mason-lspconfig').setup_handlers {
globals = { 'vim' } globals = { 'vim' }
} }
}, },
gopls = {
gofumpt = true
}
} }
} }
end end

View File

@ -26,8 +26,24 @@ return require('packer').startup({ function(use)
--nim --nim
use 'alaviss/nim.nvim' use 'alaviss/nim.nvim'
-- golang use 'nvim-treesitter/nvim-treesitter'
use 'fatih/vim-go'
use 'ray-x/guihua.lua'
use {
'ray-x/go.nvim',
ft = { "go" },
config = function()
require("go").setup({
max_line_len = 120,
tag_transform = false,
test_dir = '',
comment_placeholder = '',
lsp_cfg = true, -- false: use your own lspconfig
dap_debug = true,
})
end
}
-- obsession -- obsession
use 'tpope/vim-obsession' use 'tpope/vim-obsession'