File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,16 +21,23 @@ local config = {
2121 -- add sum stuff here
2222}
2323
24+ function M .setup (opts )
25+ if opts then
26+ config = vim .tbl_deep_extend (" force" , config , opts )
27+ end
2428
25- vim .o .tabstop = config .options .tabstop
26- vim .o .shiftwidth = config .options .shiftwidth
27- vim .o .nu = config .options .nu
28- vim .o .relativenumber = config .options .relativenumber
29- vim .o .clipboard = config .options .clipboard
30- vim .o .inccommand = config .options .inccommand
31- vim .o .laststatus = config .options .laststatus
32- vim .o .wrap = config .options .wrap
33- vim .o .undofile = config .options .undofile
34- vim .o .whichwrap = config .options .undofile
29+ if config .enabled then
30+ vim .o .tabstop = config .options .tabstop
31+ vim .o .shiftwidth = config .options .shiftwidth
32+ vim .o .nu = config .options .nu
33+ vim .o .relativenumber = config .options .relativenumber
34+ vim .o .clipboard = config .options .clipboard
35+ vim .o .inccommand = config .options .inccommand
36+ vim .o .laststatus = config .options .laststatus
37+ vim .o .wrap = config .options .wrap
38+ vim .o .undofile = config .options .undofile
39+ vim .o .whichwrap = config .options .undofile
40+ end
41+ end
3542
3643return M
You can’t perform that action at this time.
0 commit comments