mirror of
https://github.com/ray-x/navigator.lua
synced 2024-11-05 12:00:21 +00:00
minor the lspformat should be hook to BufWritePre
This commit is contained in:
parent
c597965d0f
commit
c11ae3feed
@ -276,7 +276,7 @@ local function set_mapping(lsp_attach_info)
|
||||
end
|
||||
|
||||
if fmt then
|
||||
api.nvim_create_autocmd({ 'BufWritePost' }, {
|
||||
api.nvim_create_autocmd({ 'BufWritePre' }, {
|
||||
group = gn,
|
||||
desc = 'auto format',
|
||||
buffer = bufnr,
|
||||
|
Loading…
Reference in New Issue
Block a user