-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathinit.fnl
More file actions
35 lines (31 loc) · 920 Bytes
/
init.fnl
File metadata and controls
35 lines (31 loc) · 920 Bytes
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
(local {: autoload} (require :nfnl.module))
(local core (autoload :nfnl.core))
;don't wrap lines
(set vim.wo.wrap false)
;space is reserved to be lead
(vim.keymap.set :n :<space> :<nop> {:noremap true})
;sets a nvim global options
(let [options
{;tabs is space
:expandtab true
;tab/indent size
:tabstop 2
:shiftwidth 2
:softtabstop 2
;settings needed for compe autocompletion
:completeopt "menuone,noselect"
;case insensitive search
:ignorecase true
;smart search case
:smartcase true
;shared clipboard with linux
:clipboard "unnamedplus"
;show line numbers
:number true
;show line and column number
:ruler true
;makes signcolumn always one column with signs and linenumber
:signcolumn "number"}]
(each [option value (pairs options)]
(core.assoc vim.o option value)))
{}