Giter VIP home page Giter VIP logo

config's Introduction

Installation

The initial installation of neovim with lsp support might look very complicated at first but when it works it is amazing! Let me know if you have any questions.

1. Install Neovim and create a symbolic link

1.1 Install Neovim

  1. Go to https://github.com/neovim/neovim/releases
  2. Download nvim-linux64.tar.gz
  3. Extract: tar xzvf nvim-linux64.tar.gz
  4. Run ./nvim-linux64/bin/nvim

1.2 Create a link to nvim (change Packages to directory where it is installed in step 1.1):

ln -s ~/Packages/nvim-linux64/bin/nvim ~/.local/bin/nvim

2. Clone the nvim config of Max:

git clone [email protected]:maxspahn/config.git

3. Change the Python version in config/nvim/init.lua to your version (mine is python3.8):

vim.cmd([[let g:python3_host_prog='$HOME/bin/python3.8']])

4. Install npm in order to install pyright

sudo apt install npm

5. Update or install a version of node >= 12.0.0 for pyright:

5.1 Install nvm to update node

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

5.2 Update node: (v16.15.0 is the latest LTS as of writing (16-05-2022), check nvm ls-remote for newer versions optionally)

nvm install v16.15.0
nvm use v16.15.0

6. Install pyright:

Lsp requires to install servers for the language checkers you want to use.

sudo npm install -g pyright

7. Install neovim module for Python

pip3 install neovim

8. Run the config install file from step 2.

./install

9. PackerInstall the nvim packages

nvim
:PackerInstall
<enter>

Launching nvim should now show no errors, use :checkhealth inside nvim if there are still any errors.

config's People

Contributors

maxspahn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

config's Issues

Installation of nvim + config requirements

Neovim installation including Max's config files on Pop!_OS 20.04 LTS.

There were some requirements and some changes needed to install the config files and nvim on a fresh system, these were the steps I followed for it to work.

1. Install Neovim and create a symbolic link

1.1 Install Neovim

  1. Go to https://github.com/neovim/neovim/releases
  2. Download nvim-linux64.tar.gz
  3. Extract: tar xzvf nvim-linux64.tar.gz
  4. Run ./nvim-linux64/bin/nvim

1.2 Create a link to nvim (change Packages to directory where it is installed in step 1.1):

ln -s ~/Packages/nvim-linux64/bin/nvim ~/.local/bin/nvim

2. Clone the nvim config of Max:

git clone [email protected]:maxspahn/config.git

3. (Un)comment the install file for nvim and add packer installation line:

#! /bin/bash

tmuxpath=$(realpath tmux/tmux.conf)
#ln -fs $tmuxpath ~/.tmux.conf

zshpath=$(realpath zsh)
#ln -fs $zshpath ~/.config

nvimpath=$(realpath nvim)
ln -fs $nvimpath ~/.config

git clone --depth 1 https://github.com/wbthomason/packer.nvim
 ~/.local/share/nvim/site/pack/packer/start/packer.nvim

4. Change the Python version in config/nvim/init.lua to your version (mine is python3.8):

vim.cmd([[let g:python3_host_prog='$HOME/bin/python3.8']])

5. Install npm in order to install pyright

sudo apt install npm

6. Update or install a version of node >= 12.0.0 for pyright:

6.1 Install nvm to update node

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

6.2 Update node: (v16.15.0 is the latest LTS as of writing (16-05-2022), check nvm ls-remote for newer versions optionally)

nvm install v16.15.0
nvm use v16.15.0

7. Install pyright:

sudo npm install -g pyright

8. Install neovim module for Python

pip3 install neovim

9. Run the config install file from step 2.

./install

10. PackerInstall the nvim packages

nvim
:PackerInstall
<enter>

Launching nvim should now show no errors, use :checkhealth inside nvim if there are still any errors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.