mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-11-22 07:15:25 +00:00
Nvim format on save fix
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
This commit is contained in:
parent
6bf0b284f9
commit
635d261dcc
1 changed files with 4 additions and 4 deletions
|
@ -79,7 +79,7 @@ M.on_attach = function(client, bufnr)
|
||||||
--end
|
--end
|
||||||
lsp_keymaps(bufnr)
|
lsp_keymaps(bufnr)
|
||||||
lsp_highlight_document(client, bufnr)
|
lsp_highlight_document(client, bufnr)
|
||||||
vim.cmd [[autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync()]]
|
vim.cmd [[autocmd BufWritePre <buffer> lua vim.lsp.buf.format()]]
|
||||||
end
|
end
|
||||||
|
|
||||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
|
|
Loading…
Reference in a new issue