-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.lua
31 lines (31 loc) · 1.24 KB
/
options.lua
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
-- set vim options here (vim.<first_key>.<second_key> = value)
return {
opt = {
guicursor = "i:block-blinkon0", -- Use fat cursor in insert mode
relativenumber = false,
conceallevel = 2, -- enable conceal
foldenable = false,
foldexpr = "nvim_treesitter#foldexpr()", -- set Treesitter based folding
foldmethod = "expr",
linebreak = true, -- linebreak soft wrap at words
list = true, -- show whitespace characters
listchars = { tab = "│→", extends = "⟩", precedes = "⟨", trail = "·", nbsp = "␣" },
showbreak = "↪ ",
swapfile = false,
spellfile = vim.fn.expand "~/.config/nvim/lua/user/spell/en.utf-8.add",
thesaurus = vim.fn.expand "~/.config/nvim/lua/user/spell/mthesaur.txt",
wrap = true, -- soft wrap lines
},
g = {
ui_notifications_enabled = false, -- disable notifications when toggling UI elements
},
}
-- If you need more control, you can use the function()...end notation
-- return function(local_vim)
-- local_vim.opt.relativenumber = true
-- local_vim.g.mapleader = " "
-- local_vim.opt.whichwrap = vim.opt.whichwrap - { 'b', 's' } -- removing option from list
-- local_vim.opt.shortmess = vim.opt.shortmess + { I = true } -- add to option list
--
-- return local_vim
-- end