From 4152f871951afdede2db2a08acff85aea2999c06 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 26 Feb 2022 13:14:11 +0900 Subject: feat!: reduce bloatness --- fnl/nvrc/options.fnl | 51 +++++++++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 22 deletions(-) (limited to 'fnl/nvrc/options.fnl') 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)))) -- cgit 1.4.1