diff --git a/README.md b/README.md index 78ddc44..d4ec3db 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [Insipiration](https://github.com/Racle/dotfiles/tree/master) - # Usage Run `make stow` diff --git a/nvim/.config/nvim/README.md b/nvim/.config/nvim/README.md index 008b291..ee26c96 100644 --- a/nvim/.config/nvim/README.md +++ b/nvim/.config/nvim/README.md @@ -6,32 +6,6 @@ Inspirations: # Neovim Notes -## Splits - -Horizontal split: - -```vim -:sp -``` - -Vertical split: - -```vim -:vs -``` - -Open a file in a horizontal split: - -```vim -:sp path/to/file -``` - -Open a file in a vertical split: - -```vim -:vs path/to/file -``` - Split shortcuts: - `sv` open a vertical split @@ -53,12 +27,6 @@ Buffer shortcuts: - `bn` next buffer - `bd` delete the current buffer -Browse files with: - -```vim -dl -``` - Telescope shortcuts: - `ff` find files @@ -68,22 +36,13 @@ Telescope shortcuts: Oil usage: -- `dl` opens the parent directory of the current file +- `dl` opens the file browser - `` opens a file or enters a directory - `-` goes to the parent directory - `` also goes to the parent directory - `` also goes to the parent directory - `` opens the selected file or enters the selected directory -- `` previews the selected entry in a right-hand vertical split -- edit the Oil buffer, then `:w` to apply file operations -- hidden files are shown, but `.git` stays hidden - -Open `netrw` explicitly with: - -```vim -nl -:Ex -``` +- `` previews the selected entry ## Window Navigation @@ -104,31 +63,12 @@ Cycle through windows: ## Terminal -Open a terminal in the current window: - -```vim -:term -``` - -Open a terminal in a horizontal split: - -```vim -:sp | term -``` - -Open a terminal in a vertical split: - -```vim -:vs | term -``` - Leave terminal mode and return to normal mode: ```vim ``` - ## LSP When an LSP server is attached to the current buffer: @@ -143,22 +83,15 @@ Diagnostics: - `g.` open diagnostic float - `gl` send diagnostics to the location list +- `gle` display error information +- `gie` toggle inline errors +- `gve` toggle virtual line errors - `g]` jump to next error - `g[` jump to previous error - ## Tree-sitter -Tree-sitter is managed with `nvim-treesitter` via `vim.pack`. - -Installing missing parsers requires the external tools from the upstream README: - -- `tar` -- `curl` -- `tree-sitter-cli` -- a C compiler - -If `tree-sitter` is on your `PATH`, startup will try to install the configured parsers if they are missing. +Tree-sitter is managed with `nvim-treesitter` via `vim.pack`. `tree-sitter-cli` and a C compiler is required to be installed. Useful commands: