macboolk doesn't like lua :c

This commit is contained in:
Iwaniuk Krzysztof 2024-05-25 00:05:51 +02:00
parent f2ba1e8549
commit 5b483a9db7
34 changed files with 279 additions and 776 deletions

11
util.lua Normal file
View 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