Updated config

This commit is contained in:
2024-03-02 17:06:30 +01:00
parent d6871eb3b9
commit 30c02876e8
15 changed files with 193 additions and 155 deletions

View File

@ -8,50 +8,46 @@ end
-- Options
local opt = vim.opt
opt.autoindent = true
opt.autowrite = false
opt.clipboard = "unnamedplus"
opt.completeopt = "menu,menuone,noinsert"
opt.conceallevel = 0
opt.cursorline = true
opt.cursorlineopt = "number"
opt.expandtab = false
opt.grepformat = "%f:%l:%c:%m"
opt.grepprg = "rg --grep"
opt.ignorecase = false
opt.mouse = "a"
opt.ruler = false
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" }
opt.shiftwidth = 4
opt.shortmess:append "scCFI"
opt.showmode = false
opt.showtabline = 0
opt.smartindent = true
opt.softtabstop = 4
opt.spell = false
opt.splitbelow = true
opt.splitright = true
opt.tabstop = 4
opt.termguicolors = true
opt.undofile = true
opt.undolevels = 10000
opt.updatetime = 250
opt.virtualedit = "onemore"
opt.wildmode = "longest:full,full"
opt.wrap = false
-- Indentation
opt.autoindent = true
opt.expandtab = false
opt.shiftwidth = 4
opt.smartindent = true
opt.softtabstop = 4
opt.tabstop = 4
-- UI
opt.fillchars = { eob = " ", vert = " " }
opt.laststatus = 0
opt.number = true
opt.relativenumber = false
opt.showtabline = 0
opt.signcolumn = "yes"
opt.statusline = "%{repeat('─',winwidth('.'))}"
-- Neovide
if g.neovide then
opt.linespace = 3
g.neovide_fullscreen = true
g.neovide_transparency = 0.92
vim.o.guifont = "UbuntuMono Nerd Font:h20:#h-none"
end
-- Undo
opt.undofile = true
opt.undolevels = 10000