keymap for range code action
This commit is contained in:
parent
7d22162f59
commit
6ef00998e2
@ -59,8 +59,8 @@ local on_attach = function(client, bufnr)
|
||||
buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
||||
buf_set_keymap('n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>rn', "<cmd>lua require('go.rename').run()<CR>", opts)
|
||||
buf_set_keymap('n', '<space>ca', "<cmd>lua require('go.codeaction').run_action()<CR>", opts)
|
||||
buf_set_keymap('v', '<space>ca', "<cmd>lua require('go.codeaction').run_action()<CR>", opts)
|
||||
buf_set_keymap('n', '<space>ca', "<cmd>lua require('go.codeaction').run_code_action()<CR>", opts)
|
||||
buf_set_keymap('v', '<space>ca', "<cmd>lua require('go.codeaction').run_range_code_action()<CR>", opts)
|
||||
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
|
||||
buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
|
||||
|
Loading…
Reference in New Issue
Block a user