about summary refs log tree commit diff
path: root/fnl/nvrc/options.fnl
blob: 347b5a919604b95ea8c6343b3993f97ac6e5372d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
(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")
(set! scrolloff 3)
(set! splitbelow)
(set! splitright)
(set! splitkeep :screen)
(set! termguicolors)
(set! lazyredraw)

; Style
(set! expandtab)
(set! tabstop 4)
(set! shiftwidth 4)
(set! smartindent)
(set! list)
(set! listchars {:tab ">-" :extends ">" :precedes "<" :trail "-" :nbsp "+"})
(set! fillchars "eob: ")

; 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 :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))))