Skip to content

lepisseurdecode/neovim_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Installation

install ripgrep need cmake for telescop optimization install fd make sure a c/c++ compilater is available on path downlaod a font like the [JetBrainsMono]{https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/JetBrainsMono.zip}

Cheat sheet

Basic

Classic shortcut

Vim Cheat sheet

Custom shortcut

jk: return to normal mode

Plugin

Packer.nvim

Packer.nvim is the plugin manager

page github

configuration file

ChadTree

ChadTree is a file explorer.

page github

configuration file

Shortcut

F2: Toggle the file explorer

Vim-surround

Surround words

page github

Shortcut

  • cs: Change surrounding of to
  • ds: Delete surrounding
  • ys[word object]: Add surrounding to the [word object]
  • yss: Add surrounding to the line

Nvim-lspconfig

Configuration for the built-in language server protocole

page github

configuration file

Shortcut

  • K: Open hover window
  • Ctrl-k: Display signature help
  • \r: Rename the symbole
  • \c: Open action menu
  • gel: Go to the next error in the file
  • geh: Go to the previous error in the file

Mason

Install automatically lsp server on neovim startup

page github

page github

configuration file

Current lsp server

  • clangd: Lsp server for C and C++. Web site
  • pyright: Lsp server for Python. Web site
  • cmake-language-server: Lsp server for cmake. Web site
  • quick_lint_js: Lsp server for javascript. Web site
  • jsonls: Lsp server for json. Web site
  • cmake_language_server: Lsp server for cmake Web site
  • sumneko_lua: Lsp server for lua Web site

Hop.nvim

Hop.nvim allow to move easely through the buffer

Shortcut

Nvim-cmp

Nvim-cmp is a completion engine page github configuration file

Completion source installed

  • nvim-cmp-lsp: Use lsp at an autocompletion source. page github
  • cmp-path: Use path at an autocompletion source. page github
  • cmp-buffer: Use the current at an autocompletion source. page github
  • cmp-cmdline: Use autocompletion for vim command line. page github
  • cmp_luasnip: Use LuaSnip as autocompletion source page github

Other Extensions

  • nvim-cmp-lsp: Add icons to completion menu. page github

Shortcut

  • Ctrl-y : Accept the suggestion
  • Ctrl-n: Go domn in suggestion list
  • Ctrl-p: Go up in the suggestion list
  • Ctrl-j: Scroll down the documention
  • Ctrl-k: Scroll up the documetation
  • Ctrl-space: Start suggestion

LuaSnip

Snippet manager

Link

page github

Configuration file

configuration file snippet files

Shortcut

  • Ctrl-l: Expand or jumb
  • Ctrl-h: Jumb back

Telescope

Fuzzy seacher

Link

page github

Configuration file

configuration file

Extensions

  • nvim-web-devicons: Add icons to telescope. page github
  • telescope-fzf-native: Use fzf algorithme to improve performence page github
  • telescope-tabs: Use telescope to navigate throught tab page github
  • telescope-frecency.nvim: Work in progress

Shortcut

  • \ff: Shearch file
  • \fg: Live grep
  • \fb: Search in buffers
  • \fh: Search in documentation
  • \fr: Find references of the symbole under the curser
  • \fe: Find error
  • \fi: Find implementation of the symbole under the cursor
  • \fd: Find declaration of the symbole under the cursor
  • \ftr: Open reference on a new tab
  • \fti: Open implementation on a new tab
  • \ftd: Open declaration on a new tab
  • \ftt: Find tab

Formatter.nvim

Fomatter runner for neovim

page github

configuration file

DAP

In progress...

tokyonight

Neovim themes

page github

configuration file

Lualine

Add a status line to buffers

page github

configuration file

Extensions

nvim-web-devicons: Add Icons to status line page github

nvim-treesitter

Plugin neovim for treesitter. Used for better syntax highlight. Its not necessari to install treesitter.

page github

configuration file

Shortcut

  • gnn: init selection
  • grn: incremental node
  • grc: incremental scope
  • grm: decremental node

Comment.nvim

Comment code

page github

configuration file

Shortcut

  • gcc: Toggle comment on the current line using line wise comment
  • gbc: Toggle comment on the current line using block wise comment
  • gc: Toggle comment on the visual selection using line wise comment
  • gb: Toggle comment on the visual selection using block wise comment
  • gco: Add next line in comment
  • gcO: Add previous line in comment
  • gcA: Add comment at the end of the line
  • gcw: Toggle comment from the cursor to the end of the world
  • gc$: Toggle comment from the cursor to the end of the line
  • gca{: Toggle comment around {
  • gca(: Toggle comment around (
  • gcip: Toggle comment of paragraph
  • gbaf: In Progess...
  • gbac: In Progess...

About

Configurations file for neovim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages