Browse Source

👌 IMPROVE: code action

pull/93/head
Xin.Chen 3 years ago
parent
commit
c56ec82bd9
  1. 1
      lua/nvim-cmp-config.lua

1
lua/nvim-cmp-config.lua

@ -67,6 +67,7 @@ cmp.setup.cmdline(':', {
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
buf_set_keymap('n', '<F2>', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
buf_set_keymap('n', '<leader>f', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
buf_set_keymap('n', '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
end

Loading…
Cancel
Save