mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 08:08:00 +00:00
[neovim] Update go plugin lazy loading
This commit is contained in:
parent
36a6e89f25
commit
7f1282053c
@ -139,15 +139,14 @@ require("lazy").setup({
|
||||
{ "theHamsta/nvim-dap-virtual-text", event = "VeryLazy" },
|
||||
|
||||
-- Go
|
||||
{ "ray-x/go.nvim" },
|
||||
{
|
||||
"ray-x/guihua.lua",
|
||||
build = "cd lua/fzy && make",
|
||||
config = function()
|
||||
require("guihua.maps").setup({
|
||||
maps = { close_view = "<C-x>" },
|
||||
})
|
||||
end,
|
||||
"ray-x/go.nvim",
|
||||
dependencies = {
|
||||
"ray-x/guihua.lua",
|
||||
build = "cd lua/fzy && make",
|
||||
},
|
||||
event = { "CmdlineEnter" },
|
||||
ft = { "go", "gomod" },
|
||||
},
|
||||
|
||||
-- Markdown
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user