lots of macbook vim stuff
This commit is contained in:
parent
5b483a9db7
commit
feb59d91c5
20 changed files with 267 additions and 226 deletions
19
lua/fancyutil.lua
Normal file
19
lua/fancyutil.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue