format options file
This commit is contained in:
parent
028ca26b08
commit
a1b2f4da15
@ -3,24 +3,24 @@ vim.cmd('language en_US.utf-8')
|
|||||||
|
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
local indent = 2
|
local indent = 2
|
||||||
opt.termguicolors = true -- Enable colors in terminal
|
opt.termguicolors = true -- Enable colors in terminal
|
||||||
opt.hlsearch = true --Set highlight on search
|
opt.hlsearch = true --Set highlight on search
|
||||||
opt.number = true --Make line numbers default
|
opt.number = true --Make line numbers default
|
||||||
opt.relativenumber = false --Make relative number default
|
opt.relativenumber = false --Make relative number default
|
||||||
opt.mouse = 'a' --Enable mouse mode
|
opt.mouse = 'a' --Enable mouse mode
|
||||||
opt.breakindent = true --Enable break indent
|
opt.breakindent = true --Enable break indent
|
||||||
opt.undofile = true --Save undo history
|
opt.undofile = true --Save undo history
|
||||||
opt.ignorecase = true --Case insensitive searching unless /C or capital in search
|
opt.ignorecase = true --Case insensitive searching unless /C or capital in search
|
||||||
opt.smartcase = true -- Smart case
|
opt.smartcase = true -- Smart case
|
||||||
opt.updatetime = 300 --Decrease update time
|
opt.updatetime = 300 --Decrease update time
|
||||||
opt.signcolumn = 'yes' -- Always show sign column
|
opt.signcolumn = 'yes' -- Always show sign column
|
||||||
opt.timeoutlen = 300 -- Time in milliseconds to wait for a mapped sequence to complete.
|
opt.timeoutlen = 300 -- Time in milliseconds to wait for a mapped sequence to complete.
|
||||||
opt.ttimeoutlen = 10
|
opt.ttimeoutlen = 10
|
||||||
opt.showmode = false -- Do not need to show the mode. We use the statusline instead.
|
opt.showmode = false -- Do not need to show the mode. We use the statusline instead.
|
||||||
opt.scrolloff = 999 -- Lines of context
|
opt.scrolloff = 999 -- Lines of context
|
||||||
opt.joinspaces = false -- No double spaces with join after a dot
|
opt.joinspaces = false -- No double spaces with join after a dot
|
||||||
opt.showmatch = true -- Show matching braces
|
opt.showmatch = true -- Show matching braces
|
||||||
opt.wrap = true -- When on, lines longer than the width of the window will wrap and displaying continues on the next line
|
opt.wrap = true -- When on, lines longer than the width of the window will wrap and displaying continues on the next line
|
||||||
opt.list = true
|
opt.list = true
|
||||||
opt.hidden = true
|
opt.hidden = true
|
||||||
opt.winborder = 'rounded'
|
opt.winborder = 'rounded'
|
||||||
@ -135,10 +135,10 @@ vim.diagnostic.config({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- Other diagnostic configurations (optional examples)
|
-- Other diagnostic configurations (optional examples)
|
||||||
virtual_text = false, -- Disable virtual text (inline messages)
|
virtual_text = false, -- Disable virtual text (inline messages)
|
||||||
underline = true, -- Enable underlining diagnostics
|
underline = true, -- Enable underlining diagnostics
|
||||||
update_in_insert = false, -- Don't update diagnostics in insert mode
|
update_in_insert = false, -- Don't update diagnostics in insert mode
|
||||||
severity_sort = true, -- Sort diagnostics by severity
|
severity_sort = true, -- Sort diagnostics by severity
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Window border for floating windows
|
-- Window border for floating windows
|
||||||
|
Loading…
x
Reference in New Issue
Block a user