This is A simple lua-based configuration for nvim[>= 0.5.0]. Testing env is WSL2[Ubuntu 20.04]. Will update detail later.
nvim
├── README.md
├── coc-settings.json
├── init.vim # entrance, load lua config files
├── lua
│ ├── basic.lua # neovim basic config
│ ├── keybindings.lua # key binding
│ ├── lsp # language server protocol
│ ├── plugin-config # plugin configs
│ │ └── ......
│ └── plugins.lua # plugin manage
└── plugin
└── packer_compiled.lua
Editor:
Plugin Manager:
Plugins:
- nvim-treesitter
- nvim-tree
- bufferline
- markdown-preview.nvim
- fzf-lua: a nvim-lua-plugin for terminal tool fzf.
LSP:
Theme:
- 关掉当前窗口(bufferline-':bdelete %d')
- (done)auto-fix: based on coc.nvim, map to f.
- (done)jj映射到esc
- (done)fzf当前文件夹查找class: fzf-lua, find file map to .
- rewrite coc.nvim config to lua
- vim tutuor过一遍
- (done)快速注释: 解决windows粘贴键冲突,C-v进入visual mode,选择+I+comment+esc*2
- (done)剪切多行: number + dd
- (done)快捷键保存/自动保存: map to :w!
- markdown自动生成表格
- fzf-lua全局搜索类名
- An all-side guide to nvim-lua: nvim-lua-guide
- Thanks to this detailed and hand-by-hand guide to nvim-lua(continuous updating): learn-neovim-lua