|
| 1 | + |
1 | 2 | -- .______ ______ _______. __ __ .__ __. __ ____ ____ __ .___ ___. |
2 | 3 | -- | _ \ / __ \ / || | | | | \ | | | | \ \ / / | | | \/ | |
3 | 4 | -- | |_) | | | | | | (----`| |__| | | \| | | | \ \/ / | | | \ / | |
|
19 | 20 | it's own config file. some settings are already default in neovim so you |
20 | 21 | don't need to define explicitly but it won't make any difference |
21 | 22 | :end of NOTE |
22 | | ---]] |
23 | | - |
24 | | - |
25 | | -local exec = vim.api.nvim_exec -- execute Vimscript |
26 | | -local set = vim.opt -- global options |
27 | | -local cmd = vim.cmd -- execute Vim commands |
| 23 | +--]] local exec = vim.api.nvim_exec -- execute Vimscript |
| 24 | +local set = vim.opt -- global options |
| 25 | +local cmd = vim.cmd -- execute Vim commands |
28 | 26 | -- local fn = vim.fn -- call Vim functions |
29 | 27 | -- local g = vim.g -- global variables |
30 | 28 | -- local b = vim.bo -- buffer-scoped options |
31 | 29 | -- local w = vim.wo -- windows-scoped options |
32 | 30 |
|
33 | 31 | cmd('colorscheme rvcs') |
34 | | -set.guifont = 'DroidSansMono Nerd Font 11' |
35 | | -set.termguicolors = true -- Enable GUI colors for the terminal to get truecolor |
36 | | -set.list = true -- show whitespace |
| 32 | +set.guifont = 'DroidSansMono Nerd Font 11' |
| 33 | +set.termguicolors = true -- Enable GUI colors for the terminal to get truecolor |
| 34 | +set.list = true -- show whitespace |
37 | 35 | set.listchars = { |
38 | | - nbsp = '⦸', -- CIRCLED REVERSE SOLIDUS (U+29B8, UTF-8: E2 A6 B8) |
39 | | - extends = '»', -- RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK (U+00BB, UTF-8: C2 BB) |
40 | | - precedes = '«', -- LEFT-POINTING DOUBLE ANGLE QUOTATION MARK (U+00AB, UTF-8: C2 AB) |
41 | | - tab = ' ', -- '▷─' WHITE RIGHT-POINTING TRIANGLE (U+25B7, UTF-8: E2 96 B7) + BOX DRAWINGS HEAVY TRIPLE DASH HORIZONTAL (U+2505, UTF-8: E2 94 85) |
42 | | - trail = '•', -- BULLET (U+2022, UTF-8: E2 80 A2) |
43 | | - space = ' ' |
| 36 | + nbsp = '⦸', -- CIRCLED REVERSE SOLIDUS (U+29B8, UTF-8: E2 A6 B8) |
| 37 | + extends = '»', -- RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK (U+00BB, UTF-8: C2 BB) |
| 38 | + precedes = '«', -- LEFT-POINTING DOUBLE ANGLE QUOTATION MARK (U+00AB, UTF-8: C2 AB) |
| 39 | + tab = ' ', -- '▷─' WHITE RIGHT-POINTING TRIANGLE (U+25B7, UTF-8: E2 96 B7) + BOX DRAWINGS HEAVY TRIPLE DASH HORIZONTAL (U+2505, UTF-8: E2 94 85) |
| 40 | + trail = '•', -- BULLET (U+2022, UTF-8: E2 80 A2) |
| 41 | + space = ' ', |
44 | 42 | } |
45 | 43 | set.fillchars = { |
46 | | - diff = '∙', -- BULLET OPERATOR (U+2219, UTF-8: E2 88 99) |
47 | | - eob = ' ', -- NO-BREAK SPACE (U+00A0, UTF-8: C2 A0) to suppress ~ at EndOfBuffer |
48 | | - fold = '·', -- MIDDLE DOT (U+00B7, UTF-8: C2 B7) |
49 | | - vert = ' ' -- remove ugly vertical lines on window division |
| 44 | + diff = '∙', -- BULLET OPERATOR (U+2219, UTF-8: E2 88 99) |
| 45 | + eob = ' ', -- NO-BREAK SPACE (U+00A0, UTF-8: C2 A0) to suppress ~ at EndOfBuffer |
| 46 | + fold = '·', -- MIDDLE DOT (U+00B7, UTF-8: C2 B7) |
| 47 | + vert = ' ', -- remove ugly vertical lines on window division |
50 | 48 | } |
51 | 49 |
|
52 | 50 | if root then |
53 | | - set.shada = '' -- Don't create root-owned files. |
54 | | - set.shadafile = 'NONE' |
| 51 | + set.shada = '' -- Don't create root-owned files. |
| 52 | + set.shadafile = 'NONE' |
55 | 53 | else |
56 | | - local backup_dir= vim.fn.expand('~/.cache/nvim') |
57 | | - set.backup = true -- make backups before writing |
58 | | - set.undofile = false -- persistent undos - undo after you re-open the file |
59 | | - set.writebackup = true -- Make backup before overwriting the current buffer |
60 | | - set.backupcopy = 'yes' -- Overwrite the original backup file |
61 | | - set.directory = backup_dir .. '/swap' -- directory to place swap files in |
62 | | - set.backupdir = backup_dir .. '/backedUP' -- where to put backup files |
63 | | - set.undodir = backup_dir .. '/undos' -- where to put undo files |
64 | | - set.viewdir = backup_dir .. '/view' -- where to store files for :mkview |
65 | | - set.shada = "'100,<50,f50,n~/.cache/nvim/shada/shada" |
| 54 | + local backup_dir = vim.fn.expand('~/.cache/nvim') |
| 55 | + set.backup = true -- make backups before writing |
| 56 | + set.undofile = false -- persistent undos - undo after you re-open the file |
| 57 | + set.writebackup = true -- Make backup before overwriting the current buffer |
| 58 | + set.backupcopy = 'yes' -- Overwrite the original backup file |
| 59 | + set.directory = backup_dir .. '/swap' -- directory to place swap files in |
| 60 | + set.backupdir = backup_dir .. '/backedUP' -- where to put backup files |
| 61 | + set.undodir = backup_dir .. '/undos' -- where to put undo files |
| 62 | + set.viewdir = backup_dir .. '/view' -- where to store files for :mkview |
| 63 | + set.shada = "'100,<50,f50,n~/.cache/nvim/shada/shada" |
66 | 64 | end |
67 | 65 |
|
68 | | -set.clipboard = set.clipboard + "unnamedplus" -- copy & paste |
69 | | -set.wrap = false -- don't automatically wrap on load |
70 | | -set.showmatch = true -- show the matching part of the pair for [] {} and () |
| 66 | +set.clipboard = set.clipboard + "unnamedplus" -- copy & paste |
| 67 | +set.wrap = false -- don't automatically wrap on load |
| 68 | +set.showmatch = true -- show the matching part of the pair for [] {} and () |
71 | 69 |
|
72 | | -set.cursorline = true -- highlight current line |
73 | | -set.number = true -- show line numbers |
74 | | -set.relativenumber = false -- show relative line number |
| 70 | +set.cursorline = true -- highlight current line |
| 71 | +set.number = true -- show line numbers |
| 72 | +set.relativenumber = false -- show relative line number |
75 | 73 |
|
76 | | -set.incsearch = true -- incremental search |
77 | | -set.hlsearch = true -- highlighted search results |
78 | | -set.ignorecase = true -- ignore case sensetive while searching |
79 | | -set.smartcase = true |
| 74 | +set.incsearch = true -- incremental search |
| 75 | +set.hlsearch = true -- highlighted search results |
| 76 | +set.ignorecase = true -- ignore case sensetive while searching |
| 77 | +set.smartcase = true |
80 | 78 |
|
81 | | -set.scrolloff = 1 -- when scrolling, keep cursor 1 lines away from screen border |
82 | | -set.sidescrolloff = 2 -- keep 30 columns visible left and right of the cursor at all times |
83 | | -set.backspace = 'indent,start,eol' -- make backspace behave like normal again |
| 79 | +set.scrolloff = 1 -- when scrolling, keep cursor 1 lines away from screen border |
| 80 | +set.sidescrolloff = 2 -- keep 30 columns visible left and right of the cursor at all times |
| 81 | +set.backspace = 'indent,start,eol' -- make backspace behave like normal again |
84 | 82 | -- set.mouse = "a" -- turn on mouse interaction |
85 | | -set.updatetime = 500 -- CursorHold interval |
86 | | - |
87 | | -set.softtabstop = 4 |
88 | | -set.shiftwidth = 4 -- spaces per tab (when shifting), when using the >> or << commands, shift lines by 4 spaces |
89 | | -set.tabstop = 4 -- spaces per tab |
90 | | -set.smarttab = true -- <tab>/<BS> indent/dedent in leading whitespace |
91 | | -set.autoindent = true -- maintain indent of current line |
92 | | -set.expandtab = false -- don't expand tabs into spaces |
93 | | -set.shiftround = true |
94 | | - |
95 | | -set.splitbelow = true -- open horizontal splits below current window |
96 | | -set.splitright = true -- open vertical splits to the right of the current window |
97 | | -set.laststatus = 2 -- always show status line |
| 83 | +set.updatetime = 500 -- CursorHold interval |
| 84 | + |
| 85 | +set.softtabstop = 4 |
| 86 | +set.shiftwidth = 4 -- spaces per tab (when shifting), when using the >> or << commands, shift lines by 4 spaces |
| 87 | +set.tabstop = 4 -- spaces per tab |
| 88 | +set.smarttab = true -- <tab>/<BS> indent/dedent in leading whitespace |
| 89 | +set.autoindent = true -- maintain indent of current line |
| 90 | +set.expandtab = false -- don't expand tabs into spaces |
| 91 | +set.shiftround = true |
| 92 | + |
| 93 | +set.splitbelow = true -- open horizontal splits below current window |
| 94 | +set.splitright = true -- open vertical splits to the right of the current window |
| 95 | +set.laststatus = 2 -- always show status line |
98 | 96 | -- set.colorcolumn = "79" -- vertical word limit line |
99 | 97 |
|
100 | | -set.hidden = true -- allows you to hide buffers with unsaved changes without being prompted |
101 | | -set.inccommand = 'split' -- live preview of :s results |
102 | | -set.shell = 'zsh' -- shell to use for `!`, `:!`, `system()` etc. |
103 | | -set.lazyredraw = true -- faster scrolling |
| 98 | +set.hidden = true -- allows you to hide buffers with unsaved changes without being prompted |
| 99 | +set.inccommand = 'split' -- live preview of :s results |
| 100 | +set.shell = 'zsh' -- shell to use for `!`, `:!`, `system()` etc. |
| 101 | +set.lazyredraw = true -- faster scrolling |
104 | 102 |
|
105 | | -set.wildignore = set.wildignore + '*.o,*.rej,*.so' -- patterns to ignore during file-navigation |
106 | | -set.completeopt = 'menuone,noselect,noinsert' -- completion options |
| 103 | +set.wildignore = set.wildignore + '*.o,*.rej,*.so' -- patterns to ignore during file-navigation |
| 104 | +set.completeopt = 'menuone,noselect,noinsert' -- completion options |
107 | 105 |
|
108 | 106 |
|
109 | 107 | -- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -- |
|
0 commit comments