Skip to content

Commit 7483abc

Browse files
committed
some buffer options
1 parent 1d788f9 commit 7483abc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lua/lib/state.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ local Tree = {}
1919

2020
local IGNORE_LIST = ""
2121

22-
local UNIX = api.nvim_call_function('has', { 'unix' }) == 1
2322
local MACOS = api.nvim_call_function('has', { 'macunix' }) == 1
2423

2524
-- --ignore does not work with mac ls
26-
if UNIX and not MACOS and api.nvim_call_function('exists', { 'g:lua_tree_ignore' }) == 1 then
25+
if not MACOS and api.nvim_call_function('exists', { 'g:lua_tree_ignore' }) == 1 then
2726
local ignore_patterns = api.nvim_get_var('lua_tree_ignore')
2827
if type(ignore_patterns) == 'table' then
2928
for _, pattern in pairs(ignore_patterns) do

lua/lib/winutils.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ local function get_win()
3333
end
3434

3535
local BUF_OPTIONS = {
36-
'nowrap', 'nospell', 'nolist', 'nofoldenable', 'foldmethod=manual',
37-
'foldcolumn=0', 'nonumber', 'norelativenumber', 'winfixwidth',
38-
'noswapfile', 'winfixheight', 'bufhidden=wipe', 'splitbelow',
39-
'winhighlight=EndOfBuffer:LuaTreeEndOfBuffer'
36+
'nowrap', 'sidescroll=5', 'nospell', 'nolist', 'nofoldenable',
37+
'foldmethod=manual', 'foldcolumn=0', 'nonumber', 'norelativenumber',
38+
'winfixwidth', 'winfixheight', 'noswapfile', 'bufhidden=wipe',
39+
'splitbelow', 'splitright', 'winhighlight=EndOfBuffer:LuaTreeEndOfBuffer',
40+
'noshowmode', 'noruler', 'noshowcmd',
4041
}
4142

4243
local WIN_WIDTH = 30

0 commit comments

Comments
 (0)