vim/lsp: formatting
This commit is contained in:
parent
b9402d9f84
commit
ae4f6217c8
1 changed files with 7 additions and 7 deletions
|
@ -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]]_)
|
||||
|
|
Loading…
Add table
Reference in a new issue