lots of macbook vim stuff

This commit is contained in:
Iwaniuk Krzysztof 2024-06-07 03:14:27 +02:00
parent 5b483a9db7
commit feb59d91c5
20 changed files with 267 additions and 226 deletions

19
lua/fancyutil.lua Normal file
View file

@ -0,0 +1,19 @@
-- init module
local _M = {}
--- @param bufnr integer | nil
--- @return true | false | nil
function _M.get_oil_nnn(bufnr)
bufnr = bufnr or 0
local ok, value = pcall(vim.api.nvim_buf_get_var, bufnr, 'nnn')
if not ok then
return nil
end
if value then
return true
end
return false
end
vim.fn.get_oil_nnn = _M.get_oil_nnn
return _M