/config-neovim-coc

My default neovim config with coc.

Primary LanguageVim ScriptMIT LicenseMIT

Description

  • This is my default neovim with config.

Screenshot from 2023-12-23 19-11-37



Local Setup

  • Setup the git remote repositories.
# Change mode permission and make it executable.
chmod +x git-push-all

# Push changes to all remote repository.
./git-push-all
  • Run the following commands below.
cd
cd .config/nvim
touch init.vim

  • Copy the init.vim content.

  • To locate the coc.nvim change directory to the following below.
cd ~/.local/share/nvim/plugged/coc.nvim
yarn install
yarn build


Basic Keyboard Commands

  • NerdTree basic commands.
m     : This bring up the NerdTree Filesystem menu.
a     : This allows to create a new file.
d     : This allows to delete a file.
mm    : This allows renaming a file.
t     : Open a new tab.
gt    : Switch to next tab.
gT    : Switch to previous tab.


  • COC key mappings.
gd          : Definition.
gr          : References.
Ctrl + o    : Go back to previous file.
\ff         : Open telescope and find files.
\fg         : Open telescope and find a files with a specific word.
Ctrl + t    : After opening the telescope, then open the file in new tab.