Add code actions.

main
Joshua Potter 2023-11-25 10:38:12 -07:00
parent f96f05c95f
commit fb5932254b
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ local function on_attach(client, bufnr)
end
set_nnoremap('[d', vim.diagnostic.goto_prev)
set_nnoremap(']d', vim.diagnostic.goto_next)
set_nnoremap('g"', vim.lsp.buf.code_action)
set_nnoremap('g?', vim.diagnostic.open_float)
set_nnoremap('gq', function() vim.lsp.buf.format { async = true } end)
set_nnoremap('gr', vim.lsp.buf.rename)