Skip to content

slerer/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Neovim Config

Prerequisites

  • Nvimpager
brew install scdoc

Clone the repo:

git clone https://github.com/lucc/nvimpager.git
cd nvimpager
make PREFIX=$HOME/.local install

Then add to your ~/.zshrc:

if [[ "$(command -v nvim)" ]]; then
    export EDITOR='nvim'
    export SUDO_EDITOR=nvim
    export MANPAGER='nvim +Man!'
    # export PAGER=nvimpager
    # export MANPAGER=nvimpager
    export MANWIDTH=999
fi
  • Misc CLI Tools arch -arm64 brew install gnu-sed

Try out this config

Make sure to remove or move your current nvim directory

Run nvim and wait for the plugins to be installed

NOTE (You will notice treesitter pulling in a bunch of parsers the next time you open Neovim)

each video will be associated with a branch so checkout the one you are interested in

Get healthy

Open nvim and enter the following:

:checkhealth

You'll probably notice you don't have support for copy/paste also that python and node haven't been setup

So let's fix that

First we'll fix copy/paste

  • On mac pbcopy should be builtin

  • On Ubuntu

    sudo apt install xsel
    
  • On Arch Linux

    sudo pacman -S xsel
    

Next we need to install python support (node is optional)

  • Neovim python support

    Create a venv named neovim

    conda create -n neovim python=3
    conda activate neovim
    pip install pynvim
    

    Then update the value of vim.g.python3_host_prog in ~/.config/nvim/lua/user/options.lua+.

  • Neovim node support

    npm i -g neovim
    
  • LSP and Linters Run the following:

    brew install go zoxide rg fd fzf wget yarn
    brew install vint shellcheck jsonlint yamllint
    brew install tflint ansible-lint tidy-html5 proselint write-good
    
    Lorem ipsum dolor
    

Fonts

Run: $ fc-cache -f -v

cargo install stylua prettier black python -m pip install pycodestyle pyflakes flake8 mypy pip install -U prettier black flake8 mypy jedi

-- git clone alacritty-themes !!!