Mercurial > dotfiles
changeset 386:82155064643e
Apply formatting synchronously
author | Zeger Van de Vannet <zegervdv@me.com> |
---|---|
date | Mon, 10 May 2021 15:02:32 +0200 |
parents | b89d28b33253 |
children | 095b39bdfdf4 |
files | dot_config/nvim/config.lua |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dot_config/nvim/config.lua Wed Apr 28 14:45:44 2021 +0200 +++ b/dot_config/nvim/config.lua Mon May 10 15:02:32 2021 +0200 @@ -105,8 +105,6 @@ } -- Tmux - function test_tmux() return os.getenv('TMUX') ~= nil end - use { 'tmux-plugins/vim-tmux-focus-events', cond = test_tmux } use { 'numtostr/navigator.nvim', config = function() @@ -359,7 +357,7 @@ nnoremap { '1gD', vim.lsp.buf.type_definition, silent = true } nnoremap { 'gr', vim.lsp.buf.references, silent = true } nnoremap { 'g0', vim.lsp.buf.document_symbol, silent = true } - nnoremap { '<c-p>', vim.lsp.buf.formatting, silent = true } + nnoremap { '<c-p>', function () vim.lsp.buf.formatting_sync({}, 5000) end, silent = true } nnoremap { 'gp', require'lspsaga.provider'.preview_definition, silent = true } inoremap { '<c-l>', vim.lsp.buf.signature_help, silent = true }