neovim: Fix deprecation warning for LSP formatting
This commit is contained in:
parent
85f68aa5df
commit
80808e97c2
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue