summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2022-12-06 22:41:31 +0300
committerYigit Sever2022-12-06 22:41:31 +0300
commit6f0a28e57835362a4a8222ee072563a4ba25e8da (patch)
tree9a6277592da2a5260fcfb7962a263ebb7eab13b2
parentba37c448ccd9048e99e8d809a73ae77901c75b0b (diff)
downloaddotfiles-6f0a28e57835362a4a8222ee072563a4ba25e8da.tar.gz
dotfiles-6f0a28e57835362a4a8222ee072563a4ba25e8da.tar.bz2
dotfiles-6f0a28e57835362a4a8222ee072563a4ba25e8da.zip
nvim: change deprecated lsp format
-rw-r--r--.config/nvim/lua/plugin_settings.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua
index 48426ba..fbd54ad 100644
--- a/.config/nvim/lua/plugin_settings.lua
+++ b/.config/nvim/lua/plugin_settings.lua
@@ -357,7 +357,7 @@ local on_attach = function(client, bufnr)
357 vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, bufopts) 357 vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, bufopts)
358 vim.keymap.set('n', '<leader>ca', vim.lsp.buf.code_action, bufopts) 358 vim.keymap.set('n', '<leader>ca', vim.lsp.buf.code_action, bufopts)
359 vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts) 359 vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
360 vim.keymap.set('n', '<leader>fm', vim.lsp.buf.formatting, bufopts) 360 vim.keymap.set('n', '<leader>fm', function() vim.lsp.buf.format { async = true } end, bufopts)
361end 361end
362 362
363-- bring in cmp_nvim_lsp 363-- bring in cmp_nvim_lsp