Public Access
23 lines
507 B
Lua
23 lines
507 B
Lua
vim.g.mapleader = " "
|
|
|
|
local o = vim.o
|
|
o.number = true
|
|
o.relativenumber = true
|
|
o.tabstop = 4
|
|
o.shiftwidth = 4
|
|
o.expandtab = true
|
|
o.signcolumn = "yes"
|
|
o.swapfile = false
|
|
o.winborder = "single"
|
|
o.termguicolors = true
|
|
o.autoread = true
|
|
|
|
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHoldI" }, {
|
|
command = "if mode() != 'c' | checktime | endif",
|
|
})
|
|
|
|
vim.diagnostic.config({
|
|
virtual_text = { prefix = "●", spacing = 2, source = "if_many" },
|
|
severity_sort = true,
|
|
})
|