FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nvim-setup/lua/coderxin/core/options.lua at main · coderxin/nvim-setup · GitHub
coderxin
/
nvim-setup
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nvim-setup
/
lua
/
coderxin
/
core
/
options.lua
Copy path
More file actions
More file actions
Latest commit
History
History
History
57 lines (47 loc) · 1.7 KB
Breadcrumbs
nvim-setup
/
lua
/
coderxin
/
core
/
options.lua
Copy path
File metadata and controls
57 lines (47 loc) · 1.7 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
local
opt
=
vim
.
opt
--
Line numbers
opt
.
relativenumber
=
true
--
Show relative line numbers
opt
.
nu
=
true
--
Show absolute line number (when relative number is on)
--
Tabs
opt
.
tabstop
=
2
--
Spaces for tabs
opt
.
softtabstop
=
2
--
How many columns (=spaces) the cursor moves right when you press <Tab>
opt
.
shiftwidth
=
2
--
Space for ident width
opt
.
expandtab
=
true
--
Expand tab to spaces
--
Identation
opt
.
autoindent
=
true
--
Copy ident from current line when starting a new one
opt
.
smartindent
=
true
--
Reacts to the syntax/style of the code you are editing
--
Line wrapping
opt
.
wrap
=
false
--
Disable line wrapping
--
Columns
opt
.
colorcolumn
=
"
80
"
--
Highlighted screen column
--
Search settings
opt
.
ignorecase
=
true
--
Ignore case when searching
opt
.
smartcase
=
true
--
Case-insentitive if the search contains upper case chars
opt
.
hlsearch
=
false
--
Do not highlight previous search matches
opt
.
incsearch
=
true
--
Show where the pattern, as it was typed so far, matches
--
Appearance
opt
.
termguicolors
=
true
opt
.
signcolumn
=
"
yes
"
opt
.
scrolloff
=
8
--
Clipboard
opt
.
clipboard
:
append
(
"
unnamedplus
"
)
--
Use system clipboard as default register
--
Misc
opt
.
updatetime
=
350
opt
.
swapfile
=
false
opt
.
backup
=
false
opt
.
undodir
=
os.getenv
(
"
HOME
"
)
..
"
/.vim/undodir
"
opt
.
undofile
=
true
--
Format on Save
vim
.
api
.
nvim_create_autocmd
(
"
BufWritePre
"
, {
pattern
=
"
*
"
,
callback
=
function
()
--
Only format if LSP is attached and supports formatting
local
clients
=
vim
.
lsp
.
get_clients
({
bufnr
=
0
})
for
_
,
client
in
ipairs
(
clients
)
do
if
client
.
supports_method
(
"
textDocument/formatting
"
)
then
vim
.
lsp
.
buf
.
format
({
async
=
false
})
return
end
end
end
,
})
Back
|
FazBrowse Home
|
New Git URL