summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-04-30 19:59:59 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-04-30 19:59:59 +0200
commit0d025b4e59100b9ac37ecdf5f5317c9d599c2c16 (patch)
treea621351a4c733bdd47c761870eaab023296bd896
parent56c01629c682063c87b762bb177a2980ff3ae7a4 (diff)
downloaddotfiles-0d025b4e59100b9ac37ecdf5f5317c9d599c2c16.tar.gz
dotfiles-0d025b4e59100b9ac37ecdf5f5317c9d599c2c16.zip
nvim: fix format binding after fn name changed
-rw-r--r--nvim.init.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/nvim.init.vim b/nvim.init.vim
index c551b7e..62bcf6f 100644
--- a/nvim.init.vim
+++ b/nvim.init.vim
@@ -174,7 +174,7 @@ nnoremap <silent> <C-k> <cmd>lua vim.lsp.buf.signature_help()<cr>
inoremap <silent> <C-k> <cmd>lua vim.lsp.buf.signature_help()<cr>
nnoremap <silent> <leader>r <cmd>lua vim.lsp.buf.references()<cr>
nnoremap <silent> <leader>i <cmd>lua vim.lsp.buf.implementation()<cr>
-nnoremap <silent> <leader>f <cmd>lua vim.lsp.buf.formatting()<cr>
+nnoremap <silent> <leader>f <cmd>lua vim.lsp.buf.format()<cr>
nnoremap <silent> <leader>a <cmd>lua vim.lsp.buf.code_action()<cr>
nnoremap <silent> <leader>n <cmd>lua vim.lsp.buf.rename()<cr>