|
| 1 | +================================================================================ |
| 2 | +Introduction *lsp-preview.nvim* |
| 3 | + |
| 4 | +lsp-preview.nvim is a plugin to visualize, select and apply workspace changes |
| 5 | +from a language-server. |
| 6 | + |
| 7 | +-------------------------------------------------------------------------------- |
| 8 | +lsp-preview.setup({opts}) *lsp-preview.setup()* |
| 9 | + |
| 10 | +change the default options. |
| 11 | + |
| 12 | +Parameters ~ |
| 13 | +{opts} `(table|nil)` Module config table. See |lsp-preview.config|. |
| 14 | + |
| 15 | +lsp-preview.code_action({opts}) *lsp-preview.code_action()* |
| 16 | + |
| 17 | +drop-in replacement for `vim.lsp.buf.code_action` which can previews the changes |
| 18 | +and allows for pre-selection before applying it. |
| 19 | + |
| 20 | +Parameters ~ |
| 21 | +{opts} `(table|nil)` Module config table. See |lsp-preview.config|. |
| 22 | + - <preview> `(boolean)` - setting to activate the preview mode. |
| 23 | + |
| 24 | +lsp-preview.code_action_preview({opts}) *lsp-preview.code_action_preview()* |
| 25 | + |
| 26 | +drop-in replacement for `vim.lsp.buf.code_action` which previews the changes |
| 27 | +and allows for pre-selection before applying it. It is a wrapper for |
| 28 | +|lsp-preview.code_action| with `preview = true`. |
| 29 | + |
| 30 | +Parameters ~ |
| 31 | +{opts} `(table|nil)` tbd |
| 32 | + |
| 33 | +lsp-preview.rename({opts}) *lsp-preview.rename()* |
| 34 | + |
| 35 | +drop-in replacement for `vim.lsp.buf.rename` which can previews the changes |
| 36 | +and allows for pre-selection before applying it. |
| 37 | + |
| 38 | +Parameters ~ |
| 39 | +{opts} `(table|nil)` Module config table. See |lsp-preview.config|. |
| 40 | + - <preview> `(boolean)` - setting to activate the preview mode. |
| 41 | + |
| 42 | +lsp-preview.rename_preview({opts}) *lsp-preview.rename_preview()* |
| 43 | + |
| 44 | +drop-in replacement for `vim.lsp.buf.rename` which previews the changes |
| 45 | +and allows for pre-selection before applying it. It is a wrapper for |
| 46 | +|lsp-preview.rename| with `preview = true`. |
| 47 | + |
| 48 | +Parameters ~ |
| 49 | +{opts} `(table|nil)` tbd |
0 commit comments