/nvim-tmux-configuration

Primary LanguageVim ScriptGNU General Public License v3.0GPL-3.0

nvim-tmux-configuration

Installation

Prerequest

  • vim: 8.2.3458

  • nvim: 0.4.4

  • ccls

build, then install

Install

  • tmux
$ sudo apt install tmux
  • jq
$ sudo apt install jq
  • nodejs
$ sudo apt install nodejs
  • openjdk
$ sudo apt install openjdk-17-jdk openjdk-17-jre

Plugin Install

  1. vim plug

For Vim

$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

For Nvim

$ curl -fLo ~/.var/app/io.neovim.nvim/data/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  1. coc

Install esstential language server

:CocInstall coc-json coc-tsserver coc-ccls

My language server also contains:

  • coc-python
  • coc-pyright
  • coc-java
  • coc-xml

Simple Setup

$ cp coc-settings.json init.vim ~/.vim 
$ cp .vimrc .tmux.conf ~

Usage

Detailed operation is listed in .vimrc and .tmux.conf

For ROS dev

$ catkin build -DCMAKE_EXPORT_COMPILE_COMMANDS=1

Here you can find isolated compile_commands.json files under the directory of each ros package, then

$ jqros  # in the root of ros workspace

Then a compile_commands.json file concatenating json files from all ros packages is built.