Code Monkey home page Code Monkey logo

dot-nvim's Introduction

dot-neovim

neovim configuration

neovim configuration file: ~/.config/nvim/init.vim

neovim dir setup: mkdir -vp lua pack plugged

lua code in vimscript: lua-guide

plugin manager - vim-plug

installation:

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'

:PlugInstall, install plugin (reload configuration file before).

:PlugUpdate, update plugins.

  • After the update is finished, review the changes by pressing D in the window. Or, you can do it later by running :PlugDiff.

:PlugClean, delete dangling plugins.

plugin - nvim-lspconfig

installation:

install language server:

$ npm -i -g pyright
$ require'lspconfig'.pyright.setup{}

:LspInfo, display status or to troubleshoot.

plugin - nvim-telescope

<leader>ff, find files

<leader>fg, live grep

<leader>fb, buffers

<leader>fh, help tags

plugin - nvim-treesitter

:TSInstall <language_to_install>, install (already supported) lanuage parser.

  • plugged/nvim-treesitter/parser/{language}.so, parser installation path.

:TSUpdate <language_to_update>, update parser.

plugin - vim-gitgutter

installation:

mkdir -p ~/.config/nvim/pack/airblade/start
cd ~/.config/nvim/pack/airblade/start
git clone https://github.com/airblade/vim-gitgutter.git
nvim -u NONE -c "helptags vim-gitgutter/doc" -c q

]c, jump to next hunk. (default)

  • remap: nmap ]h <plug>(GitGutterNextHunk)

[c, jump to previous hunk.

  • remap: nmap [h <plug>(GitGutterPrevHunk)

<leader>hp, preview the hunk.

<leader>hs, visually select then stage hunk.

:43,50GitGutterStageHunk, using range stage hunk.

<leader>hu, undo hunk.

plugin - epwalsh/obsidian.nvim

installation:

Plug 'epwalsh/obsidian.nvim'

additionally,

" obsidian.nvim https://github.com/epwalsh/obsidian.nvim/issues/286
set conceallevel=1

plugin - vim-surround

mkdir -p ~/.config/nvim/pack/tpope/start
cd ~/.config/nvim/pack/tpope/start
git clone https://tpope.io/vim/surround.git
nvim -u NONE -c "helptags surround/doc" -c q

plugin - vim-fugitive

mkdir -p ~/.config/nvim/pack/tpope/start
cd ~/.config/nvim/pack/tpope/start
git clone https://tpope.io/vim/fugitive.git
vim -u NONE -c "helptags fugitive/doc" -c q

dot-nvim's People

Contributors

fntyler avatar

Watchers

 avatar

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.