1
0
Fork 0

neovim: Fix deprecation warning for LSP formatting

This commit is contained in:
Jeremy Kaplan 2022-10-30 17:37:00 -07:00
commit 80808e97c2

View file

@ -375,7 +375,7 @@ local on_attach = function(client, bufno)
buf_set_keymap('n', '<Leader>q', '<cmd>lua vim.diagnostic.setloclist()<CR>', opts)
buf_set_keymap('n', '<Leader>f', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
vim.api.nvim_command [[autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_seq_sync()]]
vim.api.nvim_command [[autocmd BufWritePre <buffer> lua vim.lsp.buf.format()]]
end
local lsp_installer = require('nvim-lsp-installer')