Skip to content

nhktmdzhg/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains my configuration files for Neovim.

Installation

Step 1: Install Neovim

Ensure that you have Neovim installed on your system.

  • On Windows:
    Download and install the latest release from the official website
  • On Linux:
    You can typically install Neovim using your package manager. For example, on Debian-based systems:
    sudo apt-get install neovim neovim-qt
    Or in Arch-based (btw) systems:
    sudo pacman -S neovim neovide

Step 2: Clone this repository

Clone this repository to the appropriate configuration directory for Neovim:

  • On Windows:
    git clone https://github.com/nhktmdzhg/nvim.git .\AppData\Local\nvim
  • On Linux:
    git clone https://github.com/nhktmdzhg/nvim.git ~/.config/nvim

Step 3: Install dependencies

Ensure that you have node.js and python installed on your system. These are necessary for some of the Neovim plugins to function correctly.

Node.js

  • On Windows: Download and install the latest release from the official website
  • On Linux: You can typically install Node.js using your package manager. For example, on Debian-based systems:
    sudo apt-get install nodejs npm
    Or in Arch-based (btw) systems:
    sudo pacman -S nodejs npm

Python

  • On Windows: Download and install the latest release from the official website
  • On Linux: You can typically install Python using your package manager. For example, on Debian-based systems:
    sudo apt-get install python3
    Or in Arch-based (btw) systems:
    sudo pacman -S python

Install Node.js and Python Providers for Neovim

After installing node.js and python, you need to install the providers:

  • For node.js:
    • On Windows:
    npm install -g neovim
    • On Linux:
    sudo npm install -g neovim
  • For python:
    • On Windows:
    pip install pynvim
    • On Linux: You can typically install the pynvim package using your package manager. For example, on Debian-based systems:
    sudo apt-get install python3-pynvim
    Or in Arch-based (btw) systems:
    sudo pacman -S python-pynvim

    Install vim-plug (package manager for vim)

  • On Windows:
    iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
    ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force
  • On Linux:
    sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

Step 4: Start Neovim and Install Plugins

Start Neovim by running the following command:

nvim

Then run the following command to install the plugins:

:PlugInstall

Step 5: Install Language Extensions for CoC

To enable autocompletion and other language features, you need to install the language extensions for CoC. For example, to install an extension for C/C++ (you need to have clangd installed on your system):

:CocInstall coc-clangd

You can find list of available extensions on the CoC Extensions Wiki.

Usage

After completing the above steps, your Neovim setup should be ready to use. You can customize further according to your needs.

References

The following are some useful resources for learning more about Neovim and the plugins used in this configuration. You can refer to these resources for more information on how to customize your Neovim setup.

About

my configuration of neovim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published