feat(view): add view.cursorline (#1859)
* feat(#1814): added cursorline config to DEFAULT_OPTS Extends #1814 Currently, the config cursorline is set to `true` by default. This behaviour can only be changed by a hacky way of listening to an event, as @alex-courtis mentioned that: "The user can change this default if they want via event". This PR generalizes the configuration to be easier to config via the function `setup()`. * doc: add cursorline Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
@@ -490,6 +490,7 @@ function M.setup(opts)
|
||||
M.View.hide_root_folder = options.hide_root_folder
|
||||
M.View.tab = opts.tab
|
||||
M.View.preserve_window_proportions = options.preserve_window_proportions
|
||||
M.View.winopts.cursorline = options.cursorline
|
||||
M.View.winopts.number = options.number
|
||||
M.View.winopts.relativenumber = options.relativenumber
|
||||
M.View.winopts.signcolumn = options.signcolumn
|
||||
|
||||
Reference in New Issue
Block a user