File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 164164local function set_window_options_and_buffer ()
165165 pcall (vim .api .nvim_command , " buffer " .. M .get_bufnr ())
166166
167+ M .View .winopts .cursorline = config .g .view .cursorline
168+ M .View .winopts .cursorlineopt = config .g .view .cursorlineopt
169+ M .View .winopts .number = config .g .view .number
170+ M .View .winopts .relativenumber = config .g .view .relativenumber
171+ M .View .winopts .signcolumn = config .g .view .signcolumn
172+
167173 if vim .fn .has (" nvim-0.10" ) == 1 then
168174 local eventignore = vim .api .nvim_get_option_value (" eventignore" , {})
169175 vim .api .nvim_set_option_value (" eventignore" , " all" , {})
627633--- @param opts nvim_tree.config
628634function M .setup (opts )
629635 local options = opts .view or {}
630- M .View .winopts .cursorline = options .cursorline
631- M .View .winopts .cursorlineopt = options .cursorlineopt
632- M .View .winopts .number = options .number
633- M .View .winopts .relativenumber = options .relativenumber
634- M .View .winopts .signcolumn = options .signcolumn
635-
636636 M .configure_width (options .width )
637637end
638638
You can’t perform that action at this time.
0 commit comments