mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 19:48:01 +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" },
|
{ "theHamsta/nvim-dap-virtual-text", event = "VeryLazy" },
|
||||||
|
|
||||||
-- Go
|
-- Go
|
||||||
{ "ray-x/go.nvim" },
|
|
||||||
{
|
{
|
||||||
"ray-x/guihua.lua",
|
"ray-x/go.nvim",
|
||||||
build = "cd lua/fzy && make",
|
dependencies = {
|
||||||
config = function()
|
"ray-x/guihua.lua",
|
||||||
require("guihua.maps").setup({
|
build = "cd lua/fzy && make",
|
||||||
maps = { close_view = "<C-x>" },
|
},
|
||||||
})
|
event = { "CmdlineEnter" },
|
||||||
end,
|
ft = { "go", "gomod" },
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Markdown
|
-- Markdown
|
||||||
|
@ -5,5 +5,9 @@ require("go").setup({
|
|||||||
lsp_gofumpt = true,
|
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.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)
|
vim.api.nvim_exec([[ autocmd BufWritePre *.go :silent! lua require('go.format').goimport() ]], false)
|
||||||
|
Loading…
Reference in New Issue
Block a user