Skip to content

Commit f71df9f

Browse files
authored
docs: update nvim-window-picker in README.md (#1161)
1 parent 71f1841 commit f71df9f

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

README.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -103,27 +103,24 @@ use {
103103
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
104104
"MunifTanjim/nui.nvim",
105105
{
106-
-- only needed if you want to use the commands with "_with_window_picker" suffix
107106
's1n7ax/nvim-window-picker',
108-
tag = "v1.*",
107+
version = '2.*',
109108
config = function()
110-
require'window-picker'.setup({
111-
autoselect_one = true,
112-
include_current = false,
113-
filter_rules = {
114-
-- filter using buffer options
115-
bo = {
116-
-- if the file type is one of following, the window will be ignored
117-
filetype = { 'neo-tree', "neo-tree-popup", "notify" },
118-
119-
-- if the buffer type is one of following, the window will be ignored
120-
buftype = { 'terminal', "quickfix" },
121-
},
109+
require 'window-picker'.setup({
110+
filter_rules = {
111+
include_current_win = false,
112+
autoselect_one = true,
113+
-- filter using buffer options
114+
bo = {
115+
-- if the file type is one of following, the window will be ignored
116+
filetype = { 'neo-tree', "neo-tree-popup", "notify" },
117+
-- if the buffer type is one of following, the window will be ignored
118+
buftype = { 'terminal', "quickfix" },
119+
},
122120
},
123-
other_win_hl_color = '#e35e4f',
124-
})
121+
})
125122
end,
126-
}
123+
},
127124
},
128125
config = function ()
129126
-- If you want icons for diagnostic errors, you'll need to define them somewhere:

0 commit comments

Comments
 (0)