aboutsummaryrefslogtreecommitdiff
path: root/fnl/nvrc/options.fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-26 13:14:11 +0900
committersefidel <contact@sefidel.net>2022-02-26 14:17:47 +0900
commit4152f871951afdede2db2a08acff85aea2999c06 (patch)
tree12a799645030fd38b5af7a42863127f4647724db /fnl/nvrc/options.fnl
parentee0fbc01827d8136fd8499772c1e1038b309609e (diff)
downloadnvimrc-4152f871951afdede2db2a08acff85aea2999c06.zip
feat!: reduce bloatness
Diffstat (limited to 'fnl/nvrc/options.fnl')
-rw-r--r--fnl/nvrc/options.fnl51
1 files changed, 29 insertions, 22 deletions
diff --git a/fnl/nvrc/options.fnl b/fnl/nvrc/options.fnl
index abd0a7b..d7ee172 100644
--- a/fnl/nvrc/options.fnl
+++ b/fnl/nvrc/options.fnl
@@ -1,5 +1,4 @@
(import-macros {: set! : setv!} :nvrc.macro.set)
-(local {: disable-builtins!} (require :nvrc.macro.misc))
(set! clipboard :unnamedplus)
@@ -8,7 +7,8 @@
(set! cmdheight 1)
(set! number)
(set! shortmess+ :sI)
-(set! signcolumn :yes)
+(set! signcolumn "auto:1-9")
+(set! scrolloff 3)
(set! splitbelow)
(set! splitright)
(set! termguicolors)
@@ -16,8 +16,8 @@
; Style
(set! expandtab)
-(set! tabstop 8)
-(set! shiftwidth 2)
+(set! tabstop 2)
+(set! shiftwidth 0)
(set! smartindent)
(set! list)
(set! listchars {:tab ">-" :extends ">" :precedes "<" :trail "*" :nbsp "+"})
@@ -31,21 +31,28 @@
(set! undofile)
(set! whichwrap+ "<>[]hl")
-(disable-builtins! [:2html_plugin
- :getscript
- :getscriptPlugin
- :gzip
- :logipat
- :netrw
- :netrwPlugin
- :netrwSettings
- :netrwFileHandlers
- :matchit
- :tar
- :tarPlugin
- :rrhelper
- :spellfile_plugin
- :vimball
- :vimballPlugin
- :zip
- :zipPlugin])
+(let [built-ins [:netrw
+ :netrwPlugin
+ :netrwSettings
+ :netrwFileHandlers
+ :gzip
+ :zip
+ :zipPlugin
+ :tar
+ :tarPlugin
+ :getscript
+ :getscriptPlugin
+ :vimball
+ :vimballPlugin
+ :2html_plugin
+ :logipat
+ :rrhelper
+ :spellfile_plugin
+ :matchit]
+ providers [:perl :python :python3 :node :ruby]]
+ (each [_ v (ipairs built-ins)]
+ (let [b (.. :loaded_ v)]
+ (tset vim.g b 1)))
+ (each [_ v (ipairs providers)]
+ (let [p (.. :loaded_ v :_provider)]
+ (tset vim.g p 0))))