1
0
Fork 0

nvim: wip

This commit is contained in:
Vladimír Dudr 2023-06-23 08:46:43 +02:00
parent ed0f598e7b
commit 11ee876f31
2 changed files with 28 additions and 0 deletions

View file

@ -159,4 +159,25 @@ function M.setup()
end -- }}}
end
function M.reset(winids)
local api = vim.api
if winids == nil then
winids = api.nvim_tabpage_list_wins(0)
end
if type(winids) == number then
winids = { winids }
end
if type(winids) ~= 'table' then
vim.notify('reset winopts has to be called with wither nil, table or number', vim.log.levels.WARN)
return
end
for _, win in pairs(winids) do
local buf = api.nvim_win_get_buf(win)
local ft = api.nvim_get_option_value('filetype', { buf = buf})
end
end
return M

View file

@ -55,6 +55,13 @@ function M.config()
},
},
},
live_grep = {
mappings = {
i = {
['<C-Space>'] = actions.to_fuzzy_refine,
},
},
},
},
extensions = {
fzf = {},