mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-23 05:38:38 +02:00
Latest changes
This commit is contained in:
parent
c1315e0d16
commit
8d946c13e7
6 changed files with 95 additions and 79 deletions
|
@ -5,6 +5,14 @@ return {
|
|||
},
|
||||
config = function()
|
||||
require("go").setup()
|
||||
local format_sync_grp = vim.api.nvim_create_augroup("GoImport", {})
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
pattern = "*.go",
|
||||
callback = function()
|
||||
require('go.format').goimport()
|
||||
end,
|
||||
group = format_sync_grp,
|
||||
})
|
||||
end,
|
||||
event = { 'CmdlineEnter' },
|
||||
ft = { 'go', 'gomod' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue