some buffer options
This commit is contained in:
parent
1d788f91e2
commit
7483abcf40
@ -19,11 +19,10 @@ local Tree = {}
|
|||||||
|
|
||||||
local IGNORE_LIST = ""
|
local IGNORE_LIST = ""
|
||||||
|
|
||||||
local UNIX = api.nvim_call_function('has', { 'unix' }) == 1
|
|
||||||
local MACOS = api.nvim_call_function('has', { 'macunix' }) == 1
|
local MACOS = api.nvim_call_function('has', { 'macunix' }) == 1
|
||||||
|
|
||||||
-- --ignore does not work with mac ls
|
-- --ignore does not work with mac ls
|
||||||
if UNIX and not MACOS and api.nvim_call_function('exists', { 'g:lua_tree_ignore' }) == 1 then
|
if not MACOS and api.nvim_call_function('exists', { 'g:lua_tree_ignore' }) == 1 then
|
||||||
local ignore_patterns = api.nvim_get_var('lua_tree_ignore')
|
local ignore_patterns = api.nvim_get_var('lua_tree_ignore')
|
||||||
if type(ignore_patterns) == 'table' then
|
if type(ignore_patterns) == 'table' then
|
||||||
for _, pattern in pairs(ignore_patterns) do
|
for _, pattern in pairs(ignore_patterns) do
|
||||||
|
|||||||
@ -33,10 +33,11 @@ local function get_win()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local BUF_OPTIONS = {
|
local BUF_OPTIONS = {
|
||||||
'nowrap', 'nospell', 'nolist', 'nofoldenable', 'foldmethod=manual',
|
'nowrap', 'sidescroll=5', 'nospell', 'nolist', 'nofoldenable',
|
||||||
'foldcolumn=0', 'nonumber', 'norelativenumber', 'winfixwidth',
|
'foldmethod=manual', 'foldcolumn=0', 'nonumber', 'norelativenumber',
|
||||||
'noswapfile', 'winfixheight', 'bufhidden=wipe', 'splitbelow',
|
'winfixwidth', 'winfixheight', 'noswapfile', 'bufhidden=wipe',
|
||||||
'winhighlight=EndOfBuffer:LuaTreeEndOfBuffer'
|
'splitbelow', 'splitright', 'winhighlight=EndOfBuffer:LuaTreeEndOfBuffer',
|
||||||
|
'noshowmode', 'noruler', 'noshowcmd',
|
||||||
}
|
}
|
||||||
|
|
||||||
local WIN_WIDTH = 30
|
local WIN_WIDTH = 30
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user