vim/lsp: formatting

This commit is contained in:
Fernando Schauenburg 2023-08-07 22:50:48 +02:00
parent b9402d9f84
commit ae4f6217c8

View file

@ -17,13 +17,13 @@ local config = function()
local map, opts = vim.keymap.set, { buffer = bufnr }
map('n', '<localleader>c', vim.lsp.buf.code_action, opts)
map('n', '<localleader>f', vim.lsp.buf.format, opts)
map('n', 'gd', vim.lsp.buf.definition, opts)
map('n', 'gD', vim.lsp.buf.declaration, opts)
map('n', 'gi', vim.lsp.buf.implementation, opts)
map('n', 'grr', vim.lsp.buf.rename, opts)
map('n', 'gt', vim.lsp.buf.type_definition, opts)
map('n', 'K', vim.lsp.buf.hover, opts)
map('i', '<c-l>', vim.lsp.buf.signature_help, opts)
map('n', 'gd', vim.lsp.buf.definition, opts)
map('n', 'gD', vim.lsp.buf.declaration, opts)
map('n', 'gi', vim.lsp.buf.implementation, opts)
map('n', 'grr', vim.lsp.buf.rename, opts)
map('n', 'gt', vim.lsp.buf.type_definition, opts)
map('n', 'K', vim.lsp.buf.hover, opts)
map('i', '<c-l>', vim.lsp.buf.signature_help, opts)
end,
on_init = function(client, --[[init_result]]_)