From 565fa0640f819ba187ffadb14ebf55e26cc6e5f8 Mon Sep 17 00:00:00 2001 From: dover_shen Date: Sun, 1 Sep 2024 15:27:26 +0800 Subject: [PATCH] temp --- lua/kickstart/plugins/neo-tree.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lua/kickstart/plugins/neo-tree.lua b/lua/kickstart/plugins/neo-tree.lua index f126d68a..4d6c8800 100644 --- a/lua/kickstart/plugins/neo-tree.lua +++ b/lua/kickstart/plugins/neo-tree.lua @@ -8,6 +8,25 @@ return { 'nvim-lua/plenary.nvim', 'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended 'MunifTanjim/nui.nvim', + { + 's1n7ax/nvim-window-picker', + version = '2.*', + config = function() + require('window-picker').setup { + filter_rules = { + include_current_win = false, + autoselect_one = true, + -- filter using buffer options + bo = { + -- if the file type is one of following, the window will be ignored + filetype = { 'neo-tree', 'neo-tree-popup', 'notify' }, + -- if the buffer type is one of following, the window will be ignored + buftype = { 'terminal', 'quickfix' }, + }, + }, + } + end, + }, }, cmd = 'Neotree', keys = { @@ -20,6 +39,8 @@ return { ['\\'] = 'close_window', }, }, + find_command = 'which', -- 這邊可能根據使用系統更換 fd / find / which + check_gitignore_in_search = false, }, }, }