1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-02 01:39:26 +00:00

[neovim] Update go plugin lazy loading

This commit is contained in:
2023-04-29 17:09:28 +02:00
parent 36a6e89f25
commit 7f1282053c
2 changed files with 11 additions and 8 deletions

View File

@ -5,5 +5,9 @@ require("go").setup({
lsp_gofumpt = true,
})
require("guihua.maps").setup({
maps = { close_view = "<C-x>" },
})
vim.cmd("autocmd FileType go nmap <Leader>gf :lua require('go.format').goimport()<CR>")
vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go.format').goimport() ]], false)