Skip to content

Commit 3494517

Browse files
author
Jan Steinke
authored
Merge pull request #8 from jan-xyz/add_docs
only depend on mini.diff
2 parents 6e2a16e + 832d815 commit 3494517

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ lazy.nvim:
2424
"nvim-telescope/telescope.nvim",
2525
"nvim-lua/plenary.nvim",
2626
{
27-
"echasnovski/mini.nvim",
27+
"echasnovski/mini.diff",
2828
config = function()
2929
require("mini.diff").setup({})
3030
end,

doc/lsp-preview.txt

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

Comments
 (0)