mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-12-07 09:35:37 -08:00
lots of macbook vim stuff
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user