mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
fix gofmt
This commit is contained in:
parent
8b0a7ef1a6
commit
dc80e6953d
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
-- Setup language servers.
|
-- Setup language servers.
|
||||||
local lspconfig = require('lspconfig')
|
local lspconfig = require('lspconfig')
|
||||||
lspconfig.gopls.setup { on_attach = function(_, bufnr)
|
lspconfig.gopls.setup { on_attach = function(_, bufnr)
|
||||||
vim.api.nvim_command("au BufWritePost <buffer> lua vim.lsp.buf.format { async = true }")
|
vim.api.nvim_command("au BufWritePre <buffer> lua vim.lsp.buf.format { async = false }")
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue