Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.

Commit 8c9033f

Browse files
committed
Add buffer change version to readme for inlay-hints
1 parent 7565d84 commit 8c9033f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ Only current line:
2727
nnoremap <Leader>t :lua require'lsp_extensions'.inlay_hints{ only_current_line = true }
2828
```
2929

30+
Run on showing file or new file in buffer:
31+
32+
```vimscript
33+
autocmd! * <buffer>
34+
autocmd BufEnter,BufWinEnter,TabEnter <buffer> :lua require'lsp_extensions'.inlay_hints{}
35+
```
36+
3037
Available Options (Showing defaults):
3138

3239
```lua

plugin/lsp_extensions.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
21
nnoremap ,asdf :lua require('plenary.reload').reload_module('lsp_extensions'); require('lsp_extensions').test()<CR>

0 commit comments

Comments
 (0)