add go.nvim and gopls settings
This commit is contained in:
parent
bb659a72ac
commit
8f4dabefe6
4 changed files with 63 additions and 1 deletions
|
|
@ -35,3 +35,12 @@ vim.api.nvim_create_autocmd('FileType', {
|
|||
end
|
||||
end,
|
||||
})
|
||||
|
||||
local format_sync_grp = vim.api.nvim_create_augroup('GoFormat', {})
|
||||
vim.api.nvim_create_autocmd('BufWritePre', {
|
||||
pattern = '*.go',
|
||||
callback = function()
|
||||
require('go.format').goimports()
|
||||
end,
|
||||
group = format_sync_grp,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue