Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My neovim config for linux

  • this is my first neovim setup base on videos and other repositories.
  • I'm currently using this setup to work on coding wile learning about vim motions.
  • Currently using this only for JAVA and C delepment.

Dependencies


Other dependencies

  • neovim: sudo apt-get install neovim
  • ripgrep: sudo apt-get install ripgrep
  • clang: sudo apt-get clang-18
  • gcc: sudo apt-get install gcc

Installation

  • clone the repository inside "~/.config/" folder.
  • a new folder is created called "nvim".
  • enter the folder using: cd .\nvim
  • inside of "nvim" folder create another folder called: mkdir plugged
  • inside of "nvim" folder open with nvim the file init.vim or nvim -p init.vim
  • when inside of neovim use the command ": PlugInstall" in order to install the plugins.
  • reload the editor and explore the config

Configuration of coc completion for neovim

  • install coc packages for a variety of languages
  • in the command line use the following list of languages to install for code completion:
CocInstall coc-java coc-pyright coc-json coc-tsserver coc-html coc-eslint coc-sql coc-git coc-css coc-vimlsp coc-lua coc-sh coc-go coc-restclient coc-clangd

Change coc configuration

  • Java: set up the java path environment variable.
  • open coc configuration using: nvim ~/.config/nvim/coc-settings.json
  • set up the java run time for code completion: java.configuration.runtimes
  • Change the Java Path variable to: /usr/lib/jvm/java-path or use the path to the jdk installation.
  • Python: set up the python path environment variable.
  • open coc configuration using: nvim ~/.config/nvim/coc-settings.json
  • change the python path to the environment variable: /usr/bin/python3 or use the path to the python installation.
  • clangd: set up the clang lenguage server: use CocCommand clangd.install

Discalimer

  • This is my own setup and may have some errors, which is totally fine.
  • It is not intended to make it like an IDE. I just want to try some stuff before migrating to neovim.

About

this is my configuration for nvim on linux

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages