better code actions
This commit is contained in:
@@ -125,6 +125,8 @@ A feature-rich Neovim setup optimized for Python, JSON, and CSV development.
|
||||
| `K` | Show hover documentation |
|
||||
| `<leader>rn` | Rename symbol |
|
||||
| `<leader>ca` | Code actions / quick fixes |
|
||||
| `<leader>fx` | Fix diagnostic under cursor |
|
||||
| `<leader>fA` | Fix all source-level diagnostics |
|
||||
| `<leader>e` | Show diagnostic error |
|
||||
| `[d / ]d` | Previous/next diagnostic |
|
||||
|
||||
@@ -132,7 +134,7 @@ A feature-rich Neovim setup optimized for Python, JSON, and CSV development.
|
||||
|
||||
| Keymap | Action |
|
||||
|--------|--------|
|
||||
| `<leader>f` | Format file |
|
||||
| `<leader>lf` | Format file |
|
||||
|
||||
### Git (Gitsigns)
|
||||
|
||||
@@ -181,7 +183,8 @@ A feature-rich Neovim setup optimized for Python, JSON, and CSV development.
|
||||
## File Type Specifics
|
||||
|
||||
### Python (.py)
|
||||
- **LSP**: Full autocompletion, type checking, goto definition
|
||||
- **LSP**: Full autocompletion, type checking, goto definition, Ruff diagnostics and quick fixes
|
||||
- **Linting**: Ruff LSP (fix with `<leader>fx`, or use `<leader>fA` for fix-all actions)
|
||||
- **Formatting**: ruff format (fast), black (backup)
|
||||
- **Debugging**: Set breakpoints with `F9`, run with `F5`
|
||||
- **Indentation**: 4 spaces (Python convention)
|
||||
@@ -192,6 +195,18 @@ A feature-rich Neovim setup optimized for Python, JSON, and CSV development.
|
||||
- **Indentation**: 2 spaces
|
||||
- **Folding**: JSON objects/arrays are foldable (`za` to toggle, `zM` to close all)
|
||||
|
||||
### Markdown (.md)
|
||||
- **LSP**: Marksman for Markdown navigation and document features
|
||||
- **Linting**: markdownlint diagnostics
|
||||
- **Fixes**: `<leader>fx` or `<leader>ca` runs `markdownlint --fix` on the saved file
|
||||
- **Formatting**: Prettier via `<leader>lf`
|
||||
- **Note**: Only markdownlint rules that support automatic fixes can be changed automatically
|
||||
|
||||
### JavaScript/TypeScript/Vue
|
||||
- **LSP**: TypeScript language features and ESLint diagnostics with quick fixes
|
||||
- **Linting**: ESLint LSP (fix with `<leader>fx`, or use `<leader>fA` for fix-all actions)
|
||||
- **Formatting**: Prettier via `<leader>lf`
|
||||
|
||||
### CSV (.csv)
|
||||
- **Treesitter**: Syntax highlighting
|
||||
- **No wrap**: Full row visibility
|
||||
|
||||
Reference in New Issue
Block a user