Skip to content

Latest commit

 

History

History
234 lines (130 loc) · 4.11 KB

neovim.md

File metadata and controls

234 lines (130 loc) · 4.11 KB

Nvim Topics

Remote Plugins

https://neovim.io/doc/user/remote_plugin.html#remote-plugin


Troubleshooting

nvim -V1 -v


Understanding nvim ecosystem

https://roobert.github.io/2022/12/03/Extending-Neovim/


Buffers / Windows / Tabs

https://neovim.io/doc/user/windows.html

Moving

https://neovim.io/doc/user/usr_29.html#29.3

Scrolling

https://neovim.io/doc/user/scroll.html

Folding

zM: fold all in file
zO: unfold all in cursor
zR unfold all in file

Tags

https://neovim.io/doc/user/usr_29.html#29.1

https://neovim.io/doc/user/tagsrch.html


Text Objects

https://neovim.io/doc/user/motion.html#text-objects

https://jdhao.github.io/2020/11/15/nvim_text_objects/

https://github.com/nvim-treesitter/nvim-treesitter-textobjects


:options


By default your is , backslash. You can check it with:

:echo mapleader

Treesitter

https://blog.pabuisson.com/2022/08/neovim-modern-features-treesitter-and-lsp/

Lua under vimscript

Put things after the package manager, example call plug#end()

nvim-treesitter/nvim-treesitter#270 (comment)


Providers

:h windows
:h diff-mode

:h jumpto-diffs
:h jumpto-diffs


 First delete the blank lines:
:g/^\s*$/d

Then use a substitution (:s///) over each line (%) to replace all (g) continuous whitespace (\s\+) with a comma (,).

 :%s/\s\+/,/g


Neovim setup

nvim plug https://github.com/junegunn/vim-plug

Configs and plugings at

LUA

https://github.com/williamboman/mason.nvim

:checkhealth mason

https://github.com/nvim-lua/plenary.nvim

https://github.com/nanotee/nvim-lua-guide

https://neovim.io/doc/lua-resources/

LSP

https://microsoft.github.io/language-server-protocol/

https://neovim.io/doc/lsp/

:LspInfo

https://github.com/neoclide/coc.nvim/wiki/Install-coc.nvim#install-extensions-for-programming-languages-you-use-daily

DAP

https://microsoft.github.io/debug-adapter-protocol/implementors/adapters/

https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation


Paths for configuration

/.local/state/nvim


Coc & Marketplace

https://github.com/neoclide

coc.nvim

Paths for configuration

~/.local/share/nvim/plugged
───────────────────────────
~/.cache/nvim
───────────────────────────
~/.config/coc/extensions


 ~/.config/coc/extensions  la
total 0
lrwxrwxrwx. 1 adapa adapa 54 Jan 23 01:12 package.json -> /home/user/repos/super-machine-setup/vim/package.json

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────

 ~/.config/nvim  la
total 0
lrwxrwxrwx. 1 adapa adapa 50 Jan 23 01:12 init.vim -> /home/user/repos/super-machine-setup/vim/init.vim
lrwxrwxrwx. 1 adapa adapa 54 Jan 23 01:12 package.json -> /home/user/repos/super-machine-setup/vim/package.json


https://github.com/neoclide/coc.nvim

https://github.com/neoclide/coc.nvim/wiki/Statusline-integration


coc extensions

https://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions#manage-extensions-with-coclist

https://github.com/fannheyward/coc-marketplace

https://github.com/fannheyward/coc-sql

https://github.com/fannheyward/coc-pyright

https://github.com/yaegassy/coc-tailwindcss3

:CocInstall coc-sql

AUTO FORMAT

https://github.com/sbdchd/neoformat

https://github.com/dense-analysis/ale

Snippets

https://github.com/ults-io/vscode-react-javascript-snippets

TUTORIALS ARTICLES

https://nathan-long.com/blog/modern-javascript-tooling-in-neovim/

https://harrisoncramer.me/debugging-in-neovim/

https://davelage.com/posts/nvim-dap-getting-started/