You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
o.wildmenu=true-- make tab completion for files/buffers act like bash
64
+
o.inccommand='split' -- review substitutions live, as you type
50
65
51
66
-- ui
52
-
opt.cursorline=true-- highlight the current line
53
-
opt.laststatus=2-- only the last window will always have a status line
54
-
opt.lazyredraw=true-- don"t update the display while executing macros
55
-
opt.list=true
67
+
o.cursorline=true-- highlight the current line
68
+
o.laststatus=2-- only the last window will always have a status line
69
+
o.lazyredraw=true-- don"t update the display while executing macros
70
+
-- Sets how neovim will display certain whitespace characters in the editor.
71
+
-- See `:help 'list'`
72
+
-- and `:help 'listchars'`
73
+
--
74
+
-- Notice listchars is set using `vim.opt` instead of `vim.o`.
75
+
-- It is very similar to `vim.o` but offers an interface for conveniently interacting with tables.
76
+
-- See `:help lua-options`
77
+
-- and `:help lua-options-guide`
78
+
o.list=true
56
79
-- You can also add "space" or "eol", but I feel it"s quite annoying
57
-
opt.listchars= {
80
+
o.listchars= {
58
81
tab="┊ ",
59
82
trail="·",
60
83
extends="»",
@@ -63,53 +86,59 @@ opt.listchars = {
63
86
}
64
87
65
88
-- Hide cmd line
66
-
opt.cmdheight=0-- more space in the neovim command line for displaying messages
67
-
68
-
opt.mouse="a" -- allow the mouse to be used in neovim
69
-
opt.number=true-- set numbered lines
70
-
opt.scrolloff=18-- minimal number of screen lines to keep above and below the cursor
71
-
opt.sidescrolloff=3-- minimal number of screen columns to keep to the left and right (horizontal) of the cursor if wrap is `false`
72
-
opt.signcolumn="yes" -- always show the sign column, otherwise it would shift the text each time
73
-
opt.splitbelow=true-- open new split below
74
-
opt.splitright=true-- open new split to the right
75
-
opt.wrap=true-- display a wrapped line
89
+
o.cmdheight=0-- more space in the neovim command line for displaying messages
90
+
91
+
o.mouse="a" -- allow the mouse to be used in neovim
92
+
o.number=true-- set numbered lines
93
+
-- opt.relativenumber = true -- set relative numbered lines, to help with jumping.
94
+
o.scrolloff=18-- minimal number of screen lines to keep above and below the cursor
95
+
o.sidescrolloff=3-- minimal number of screen columns to keep to the left and right (horizontal) of the cursor if wrap is `false`
96
+
o.signcolumn="yes" -- always show the sign column, otherwise it would shift the text each time
97
+
o.splitbelow=true-- open new split below
98
+
o.splitright=true-- open new split to the right
99
+
o.wrap=true-- display a wrapped line
100
+
101
+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
102
+
-- instead raise a dialog asking if you wish to save the current file(s)
103
+
-- See `:help 'confirm'`
104
+
o.confirm=true
76
105
77
106
-- backups
78
-
opt.backup=false-- create a backup file
79
-
opt.swapfile=false-- creates a swapfile
80
-
opt.writebackup=false-- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited
107
+
o.backup=false-- create a backup file
108
+
o.swapfile=false-- creates a swapfile
109
+
o.writebackup=false-- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited
81
110
82
111
-- autocomplete
83
-
opt.completeopt= { "menu", "menuone", "noselect" } -- mostly just for cmp
84
-
opt.shortmess=opt.shortmess+ {
112
+
o.completeopt= { "menu", "menuone", "noselect" } -- mostly just for cmp
113
+
o.shortmess=o.shortmess+ {
85
114
c=true,
86
115
} -- hide all the completion messages, e.g. "-- XXX completion (YYY)", "match 1 of 2", "The only match", "Pattern not found"
87
116
88
117
-- By the way, -- INSERT -- is unnecessary anymore because the mode information is displayed in the statusline.
89
-
opt.showmode=false
118
+
o.showmode=false
90
119
91
120
-- perfomance
92
121
-- remember N lines in history
93
-
opt.history=100-- keep 100 lines of history
94
-
opt.redrawtime=1500
95
-
opt.timeoutlen=250-- time to wait for a mapped sequence to complete (in milliseconds)
96
-
opt.ttimeoutlen=10
97
-
opt.updatetime=100-- signify default updatetime 4000ms is not good for async update
122
+
o.history=100-- keep 100 lines of history
123
+
o.redrawtime=1500
124
+
o.timeoutlen=250-- time to wait for a mapped sequence to complete (in milliseconds)
125
+
o.ttimeoutlen=10
126
+
o.updatetime=100-- signify default updatetime 4000ms is not good for async update
98
127
99
128
-- theme
100
-
opt.termguicolors=true-- enable 24-bit RGB colors
129
+
o.termguicolors=true-- enable 24-bit RGB colors
101
130
102
131
-- persistent undo
103
132
-- Don"t forget to create folder $HOME/.local/share/nvim/undo
0 commit comments