From e005338d6872489ff49b7f29107f8e30edffa8b1 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Fri, 24 Nov 2023 17:36:56 +0100 Subject: [PATCH] document more about buffer handling --- README.md | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 0e2704e..f7568bd 100644 --- a/README.md +++ b/README.md @@ -37,20 +37,21 @@ This is more accurate than `nvim --startuptime`. ## Plugins -| Name | Purpose | URL | -| --- | --- | --- | -| **lazy.nvim** | Package manager | | -| **telescope.nvim** | Find, Filter, Preview, Pick | | -| **telescope-fzf-native.nvim** | Fuzzy finder for Telescope | | -| **nvim-treesitter** | Parser/syntax highlighting | | -| **nvim-treesitter-context** | Shows current line context | | -| **nvim-treesitter-textobjects** | ? | | -| **vim-sleuth** | Heuristically set tab/shift mode | | -| **nightfox.nvim** | Theme with treesitter/lsp support | | -| **lualine.nvim** | Status line | | -| **nvim-web-devicons** | filetype glyphs (icons) for plugins | | -| **gitsigns.nvim** | Git change indicator | | -| **which-key.nvim** | Shows contextual key bindings | | +| Name | Purpose | URL | +| --- | --- | --- | +| **lazy.nvim** | Package manager | | +| **telescope.nvim** | Find, Filter, Preview, Pick | | +| **telescope-fzf-native.nvim** | Fuzzy finder for Telescope | | +| **nvim-treesitter** | Parser/syntax highlighting | | +| **nvim-treesitter-context** | Shows current line context | | +| **nvim-treesitter-textobjects** | ? | | +| **vim-sleuth** | Heuristically set tab/shift mode | | +| **lsp-zero.nvim** | Accessible Language Server Protocol (LSP) | | +| **nightfox.nvim** | Theme with treesitter/lsp support | | +| **lualine.nvim** | Status line | | +| **nvim-web-devicons** | filetype glyphs (icons) for plugins | | +| **gitsigns.nvim** | Git change indicator | | +| **which-key.nvim** | Shows contextual key bindings | | ## 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 ` 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 - ollama integration - 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