This repository has no description
1.7 kB
38 lines
1-- set vim options here (vim.<first_key>.<second_key> = value)
2return {
3 opt = {
4 -- set to true or false etc.
5 relativenumber = true, -- sets vim.opt.relativenumber
6 number = true, -- sets vim.opt.number
7 spell = false, -- sets vim.opt.spell
8 signcolumn = "auto", -- sets vim.opt.signcolumn to auto
9 wrap = false, -- sets vim.opt.wrap
10 list = true, -- show tabs etc
11 listchars = {
12 tab = '⇥ ',
13 extends = '❯',
14 precedes = '❮',
15 nbsp = '␣',
16 trail = '·',
17 },
18 },
19 g = {
20 mapleader = " ", -- sets vim.g.mapleader
21 autoformat_enabled = true, -- enable or disable auto formatting at start (lsp.formatting.format_on_save must be enabled)
22 cmp_enabled = true, -- enable completion at start
23 autopairs_enabled = true, -- enable autopairs at start
24 diagnostics_mode = 3, -- set the visibility of diagnostics in the UI (0=off, 1=only show in status line, 2=virtual text off, 3=all on)
25 icons_enabled = true, -- disable icons in the UI (disable if no nerd font is available, requires :PackerSync after changing)
26 ui_notifications_enabled = true, -- disable notifications when toggling UI elements
27 resession_enabled = false, -- enable experimental resession.nvim session management (will be default in AstroNvim v4)
28 },
29}
30-- If you need more control, you can use the function()...end notation
31-- return function(local_vim)
32-- local_vim.opt.relativenumber = true
33-- local_vim.g.mapleader = " "
34-- local_vim.opt.whichwrap = vim.opt.whichwrap - { 'b', 's' } -- removing option from list
35-- local_vim.opt.shortmess = vim.opt.shortmess + { I = true } -- add to option list
36--
37-- return local_vim
38-- end