Affected files: .obsidian/bookmarks.json .obsidian/core-plugins-migration.json .obsidian/core-plugins.json notes/daily/2023-10-26.md notes/utils/Neovim.md projects/quests.md projects/todos-notes/Rewrite neovim config.md projects/todos-notes/Update dots.md
46 lines
No EOL
2.1 KiB
Markdown
46 lines
No EOL
2.1 KiB
Markdown
## Formatters
|
|
|
|
Hay que añadirlos en `plugins/formatters.lua`, pueden ser instalados con mason.
|
|
|
|
## Linters
|
|
|
|
Hay que añadirlos en `plugins/linters.lua`, pueden ser instalados con mason.
|
|
|
|
## LSP
|
|
|
|
Hay que añadirlos en `plugins/lsp.lua`, son instalados automáticamente al ser agregados aquí con mason.
|
|
## Remember to use:
|
|
|
|
### Harpoon
|
|
|
|
Fast navigation with `<Leader><Leader>[hjkl]`
|
|
|
|
### Treesitter
|
|
|
|
#### Text objects
|
|
|
|
### Surround plugin
|
|
|
|
- Actions (all of them are dot-repeatable out of the box and respect `v:count` for searching surrounding) with configurable keymappings:
|
|
- Add surrounding with `sa` (in visual mode or on motion).
|
|
- Delete surrounding with `sd`.
|
|
- Replace surrounding with `sr`.
|
|
- Find surrounding with `sf` or `sF` (move cursor right or left).
|
|
- Highlight surrounding with `sh`.
|
|
- Change number of neighbor lines with `sn` (see |MiniSurround-algorithm|).
|
|
- Surrounding is identified by a single character as both "input" (in `delete` and `replace` start, `find`, and `highlight`) and "output" (in `add` and `replace` end):
|
|
- 'f' - function call (string of alphanumeric symbols or '_' or '.' followed by balanced '()'). In "input" finds function call, in "output" prompts user to enter function name.
|
|
- 't' - tag. In "input" finds tag with same identifier, in "output" prompts user to enter tag name.
|
|
- All symbols in brackets '()', '[]', '{}', '<>". In "input' represents balanced brackets (open - with whitespace pad, close - without), in "output" - left and right parts of brackets.
|
|
- '?' - interactive. Prompts user to enter left and right parts.
|
|
- All other alphanumeric, punctuation, or space characters represent surrounding with identical left and right parts.
|
|
|
|
### Text Object
|
|
|
|
works for:
|
|
- Comments (`gc`)
|
|
- Visual selection
|
|
|
|
## Plugins compatibility errors
|
|
|
|
Lazy.nvim tiene un `lazy-lock.json`, por lo que ante cualquier problema de compatibilidad, podemos volver a versión especificada aqui con `Lazy restore`. Es importante mantener este archivo en git y solo modificarlo cuando se esté seguro que no hay problemas de compatibilidad. |