uh
This commit is contained in:
@ -12,8 +12,12 @@ return {
|
|||||||
{ "nvim-lua/plenary.nvim", lazy = false },
|
{ "nvim-lua/plenary.nvim", lazy = false },
|
||||||
{ "squk/java-syntax.vim", ft = "java" },
|
{ "squk/java-syntax.vim", ft = "java" },
|
||||||
{ "udalov/kotlin-vim", event = "VeryLazy", ft = "kotlin" },
|
{ "udalov/kotlin-vim", event = "VeryLazy", ft = "kotlin" },
|
||||||
{ "ray-x/go.nvim", ft = "go" },
|
{
|
||||||
{ "ray-x/guihua.lua", ft = "go" },
|
"ray-x/go.nvim",
|
||||||
|
ft = "go",
|
||||||
|
cond = not use_google(),
|
||||||
|
dependencies = { "ray-x/guihua.lua" },
|
||||||
|
},
|
||||||
{ "andymass/vim-matchup", event = "VimEnter" },
|
{ "andymass/vim-matchup", event = "VimEnter" },
|
||||||
{ "jghauser/mkdir.nvim", event = "BufWritePre" },
|
{ "jghauser/mkdir.nvim", event = "BufWritePre" },
|
||||||
-- Session management
|
-- Session management
|
||||||
|
@ -113,15 +113,15 @@ return {
|
|||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
local format_sync_grp = vim.api.nvim_create_augroup("GoFormat", {})
|
||||||
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
|
pattern = "*.go",
|
||||||
|
callback = function()
|
||||||
|
require("go.format").goimport()
|
||||||
|
end,
|
||||||
|
group = format_sync_grp,
|
||||||
|
})
|
||||||
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").goimport()
|
|
||||||
end,
|
|
||||||
group = format_sync_grp,
|
|
||||||
})
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user