1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-04 09:59:25 +00:00

[neovim] Reorganize lua packages

This commit is contained in:
2022-10-16 12:28:51 +02:00
parent 8948fc6620
commit 7ae6819126
37 changed files with 40 additions and 37 deletions

View File

@ -0,0 +1,12 @@
local status_ok, go = pcall(require, "go")
if not status_ok then
return
end
go.setup({
icons = { breakpoint = "", currentpos = "🏃" },
fillstruct = "fillstruct",
})
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)