macboolk doesn't like lua :c
This commit is contained in:
parent
f2ba1e8549
commit
5b483a9db7
34 changed files with 279 additions and 776 deletions
11
util.lua
Normal file
11
util.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-- @return true | false | nil
|
||||
function get_oil_nnn(winnr)
|
||||
local ok, value = pcall(vim.api.nvim_win_get_var, winnr, 'nnn')
|
||||
if not ok then
|
||||
return nil
|
||||
end
|
||||
if value then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue