(import-macros {: set!} :nvrc.macro.set) (set! clipboard :unnamedplus) ; Interface (set! cul) (set! cmdheight 1) (set! noruler) (set! nonumber) (set! norelativenumber) (set! shortmess+ :sI) (set! signcolumn "auto:3") (set! scrolloff 3) (set! splitbelow) (set! splitright) (set! termguicolors) (set! lazyredraw) ; Style (set! expandtab) (set! tabstop 2) (set! shiftwidth 0) (set! smartindent) (set! list) (set! listchars {:tab ">-" :extends ">" :precedes "<" :trail "-" :nbsp "+"}) ; Miscellaneous (set! ignorecase) (set! smartcase) (set! mouse :a) (set! timeoutlen 400) (set! updatetime 250) (set! undofile) (set! whichwrap+ "<>[]hl") (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))))