mirror of
https://github.com/kossLAN/nvim-flake.git
synced 2025-11-05 02:09:49 -05:00
qol changes to formatters/keymaps
This commit is contained in:
parent
e54bd1fe69
commit
f0b0787c91
7 changed files with 24 additions and 21 deletions
|
|
@ -89,9 +89,6 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
|||
keymap.set('n', '<M-l>', vim.lsp.codelens.run, desc('[lsp] run code lens'))
|
||||
keymap.set('n', '<space>cr', vim.lsp.codelens.refresh, desc('lsp [c]ode lenses [r]efresh'))
|
||||
keymap.set('n', 'gr', vim.lsp.buf.references, desc('lsp [g]et [r]eferences'))
|
||||
keymap.set('n', '<space>f', function()
|
||||
vim.lsp.buf.format { async = true }
|
||||
end, desc('[lsp] [f]ormat buffer'))
|
||||
if client and client.server_capabilities.inlayHintProvider then
|
||||
keymap.set('n', '<space>h', function()
|
||||
local current_setting = vim.lsp.inlay_hint.is_enabled { bufnr = bufnr }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue