document more about buffer handling

This commit is contained in:
Oliver Ladner 2023-11-24 17:36:56 +01:00
commit e005338d68

View file

@ -37,20 +37,21 @@ This is more accurate than `nvim --startuptime`.
## Plugins
| Name | Purpose | URL |
| --- | --- | --- |
| **lazy.nvim** | Package manager | <https://github.com/folke/lazy.nvim> |
| **telescope.nvim** | Find, Filter, Preview, Pick | <https://github.com/nvim-telescope/telescope.nvim> |
| **telescope-fzf-native.nvim** | Fuzzy finder for Telescope | <https://github.com/nvim-telescope/telescope-fzf-native.nvim> |
| **nvim-treesitter** | Parser/syntax highlighting | <https://github.com/nvim-treesitter/nvim-treesitter> |
| **nvim-treesitter-context** | Shows current line context | <https://github.com/nvim-treesitter/nvim-treesitter-context> |
| **nvim-treesitter-textobjects** | ? | <https://github.com/nvim-treesitter/nvim-treesitter-textobjects> |
| **vim-sleuth** | Heuristically set tab/shift mode | <https://github.com/tpope/vim-sleuth> |
| **nightfox.nvim** | Theme with treesitter/lsp support | <https://github.com/EdenEast/nightfox.nvim> |
| **lualine.nvim** | Status line | <https://github.com/nvim-lualine/lualine.nvim> |
| **nvim-web-devicons** | filetype glyphs (icons) for plugins | <https://github.com/nvim-tree/nvim-web-devicons> |
| **gitsigns.nvim** | Git change indicator | <https://github.com/lewis6991/gitsigns.nvim> |
| **which-key.nvim** | Shows contextual key bindings | <https://github.com/folke/which-key.nvim> |
| Name | Purpose | URL |
| --- | --- | --- |
| **lazy.nvim** | Package manager | <https://github.com/folke/lazy.nvim> |
| **telescope.nvim** | Find, Filter, Preview, Pick | <https://github.com/nvim-telescope/telescope.nvim> |
| **telescope-fzf-native.nvim** | Fuzzy finder for Telescope | <https://github.com/nvim-telescope/telescope-fzf-native.nvim> |
| **nvim-treesitter** | Parser/syntax highlighting | <https://github.com/nvim-treesitter/nvim-treesitter> |
| **nvim-treesitter-context** | Shows current line context | <https://github.com/nvim-treesitter/nvim-treesitter-context> |
| **nvim-treesitter-textobjects** | ? | <https://github.com/nvim-treesitter/nvim-treesitter-textobjects> |
| **vim-sleuth** | Heuristically set tab/shift mode | <https://github.com/tpope/vim-sleuth> |
| **lsp-zero.nvim** | Accessible Language Server Protocol (LSP) | <https://github.com/VonHeikemen/lsp-zero.nvim> |
| **nightfox.nvim** | Theme with treesitter/lsp support | <https://github.com/EdenEast/nightfox.nvim> |
| **lualine.nvim** | Status line | <https://github.com/nvim-lualine/lualine.nvim> |
| **nvim-web-devicons** | filetype glyphs (icons) for plugins | <https://github.com/nvim-tree/nvim-web-devicons> |
| **gitsigns.nvim** | Git change indicator | <https://github.com/lewis6991/gitsigns.nvim> |
| **which-key.nvim** | Shows contextual key bindings | <https://github.com/folke/which-key.nvim> |
## Command cheat sheet
@ -60,20 +61,21 @@ This is more accurate than `nvim --startuptime`.
- `Space` is set as the leader key
#### Plugin things
#### Plugin things and debugging
- `:so` Source file
- `:checkhealth <pluginname>` check for problems of a plugin. Use `:checkhealth`
to check base and all plugins
- `:Lazy` to bring up package manager UI
- `:verbose set expandtab?` check where `expandtab` has been set last
#### Navigation
##### Code navigation
- `w` move to start of next word (ignores punctuation due to remap)
- `e` move to end of next word (ignores punctuation due to remap)
- `b` move to start of previous word (ignores punctuation due to remap)
- `w` move to **start of next word** (ignores punctuation due to remap)
- `e` move to **end of next word** (ignores punctuation due to remap)
- `b` move to **start of previous word** (ignores punctuation due to remap)
##### Code editing
@ -108,6 +110,7 @@ This is more accurate than `nvim --startuptime`.
##### Buffer navigation
- `Space+Space` shows open buffers (via `Telescope buffers`)
- `:bd` close current buffer
### Telescope
@ -130,3 +133,5 @@ This is more accurate than `nvim --startuptime`.
- LSP setup/config (mason?), consume <https://blog.pabuisson.com/2022/08/neovim-modern-features-treesitter-and-lsp/>
- ollama integration <https://github.com/nomnivore/ollama.nvim>
- Solution to run file_browser when doing a vertical/horizontal split?
- https://github.com/folke/trouble.nvim
- vim-sleuth justification, it interferes with at least some Lua things