nvim: wip
This commit is contained in:
parent
ed0f598e7b
commit
11ee876f31
2 changed files with 28 additions and 0 deletions
|
@ -159,4 +159,25 @@ function M.setup()
|
||||||
end -- }}}
|
end -- }}}
|
||||||
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
|
return M
|
||||||
|
|
|
@ -55,6 +55,13 @@ function M.config()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
live_grep = {
|
||||||
|
mappings = {
|
||||||
|
i = {
|
||||||
|
['<C-Space>'] = actions.to_fuzzy_refine,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
extensions = {
|
extensions = {
|
||||||
fzf = {},
|
fzf = {},
|
||||||
|
|
Loading…
Add table
Reference in a new issue