update configuration
This commit is contained in:
@@ -29,10 +29,13 @@
|
||||
(c) Frank Zechert 2026
|
||||
]]
|
||||
|
||||
-- enable loading of precompiled lua modules to improve startup time
|
||||
vim.loader.enable()
|
||||
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
-- load configuration
|
||||
require("config.options")
|
||||
require("config.treesitter")
|
||||
require("config.autocommands")
|
||||
|
||||
+57
-60
@@ -29,18 +29,16 @@
|
||||
(c) Frank Zechert 2026
|
||||
]]
|
||||
|
||||
local opt = vim.opt
|
||||
|
||||
-- UI
|
||||
opt.background = "dark"
|
||||
opt.breakindentopt = "min:20,shift:2,sbr,list:-1"
|
||||
opt.colorcolumn = "+1,+2,+3"
|
||||
opt.cursorcolumn = true
|
||||
opt.cursorline = true
|
||||
opt.cursorlineopt = "both"
|
||||
opt.linebreak = true
|
||||
opt.list = true
|
||||
opt.listchars = {
|
||||
vim.opt.background = "dark"
|
||||
vim.opt.breakindentopt:append({ min = 20, shift = -2, sbr = true, list = -1 })
|
||||
vim.opt.colorcolumn = "+1,+2,+3"
|
||||
vim.opt.cursorcolumn = true
|
||||
vim.opt.cursorline = true
|
||||
vim.opt.cursorlineopt = "both"
|
||||
vim.opt.linebreak = true
|
||||
vim.opt.list = true
|
||||
vim.opt.listchars = {
|
||||
tab = "» ",
|
||||
space = " ",
|
||||
multispace = "·",
|
||||
@@ -53,68 +51,67 @@ opt.listchars = {
|
||||
conceal = "☐",
|
||||
nbsp = "␣",
|
||||
}
|
||||
opt.number = true
|
||||
opt.relativenumber = false
|
||||
opt.winborder = "single"
|
||||
opt.pumborder = "single"
|
||||
opt.scrolloff = 5
|
||||
opt.sidescrolloff = 3
|
||||
opt.showbreak = "%"
|
||||
opt.signcolumn = "yes"
|
||||
opt.splitbelow = true
|
||||
opt.splitright = true
|
||||
opt.termguicolors = true
|
||||
opt.textwidth = 120
|
||||
opt.wrap = true
|
||||
opt.wrapmargin = 3
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = false
|
||||
vim.opt.winborder = "single"
|
||||
vim.opt.pumborder = "single"
|
||||
vim.opt.scrolloff = 5
|
||||
vim.opt.sidescrolloff = 3
|
||||
vim.opt.showbreak = "%"
|
||||
vim.opt.signcolumn = "yes"
|
||||
vim.opt.splitbelow = true
|
||||
vim.opt.splitright = true
|
||||
vim.opt.termguicolors = true
|
||||
vim.opt.textwidth = 120
|
||||
vim.opt.wrap = true
|
||||
vim.opt.wrapmargin = 3
|
||||
|
||||
-- Editing
|
||||
opt.autoindent = true
|
||||
opt.backspace = "indent,eol,start"
|
||||
opt.expandtab = false
|
||||
vim.opt.autoindent = true
|
||||
vim.opt.backspace = "indent,eol,start"
|
||||
vim.opt.expandtab = false
|
||||
|
||||
opt.preserveindent = true
|
||||
opt.shiftround = true
|
||||
opt.shiftwidth = 0
|
||||
opt.tabstop = 4
|
||||
opt.smarttab = true
|
||||
opt.smartindent = true
|
||||
opt.breakindent = true
|
||||
vim.opt.preserveindent = true
|
||||
vim.opt.shiftround = true
|
||||
vim.opt.shiftwidth = 0
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.smarttab = true
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.breakindent = true
|
||||
|
||||
-- Search
|
||||
opt.hlsearch = true
|
||||
opt.ignorecase = true
|
||||
opt.inccommand = "nosplit"
|
||||
opt.incsearch = true
|
||||
opt.smartcase = true
|
||||
vim.opt.hlsearch = true
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.inccommand = "nosplit"
|
||||
vim.opt.incsearch = true
|
||||
vim.opt.smartcase = true
|
||||
|
||||
-- Files
|
||||
opt.backup = false
|
||||
opt.writebackup = false
|
||||
opt.fileformat = "unix"
|
||||
opt.fileencoding = "utf-8"
|
||||
opt.undofile = true
|
||||
opt.swapfile = true
|
||||
|
||||
vim.opt.backup = false
|
||||
vim.opt.writebackup = false
|
||||
vim.opt.fileformat = "unix"
|
||||
vim.opt.fileencoding = "utf-8"
|
||||
vim.opt.undofile = true
|
||||
vim.opt.swapfile = true
|
||||
|
||||
-- Performance
|
||||
opt.updatetime = 1000
|
||||
opt.timeoutlen = 600
|
||||
vim.opt.updatetime = 1000
|
||||
vim.opt.timeoutlen = 600
|
||||
|
||||
-- Mouse & Clipboard
|
||||
opt.mouse = "a"
|
||||
vim.schedule(function() opt.clipboard = "unnamedplus" end)
|
||||
vim.opt.mouse = "a"
|
||||
vim.schedule(function() vim.opt.clipboard = "unnamedplus" end)
|
||||
|
||||
-- Folding
|
||||
opt.foldenable = true
|
||||
opt.foldmethod = "expr"
|
||||
opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||
opt.foldlevel = 99
|
||||
vim.opt.foldenable = true
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||
vim.opt.foldlevel = 99
|
||||
|
||||
-- Autocompletion
|
||||
opt.autocomplete = false
|
||||
opt.autocompletedelay = 0
|
||||
opt.autocompletetimeout = 0
|
||||
opt.completeopt = "menu,menuone,noselect"
|
||||
opt.completetimeout = 0
|
||||
vim.opt.autocomplete = false
|
||||
vim.opt.autocompletedelay = 0
|
||||
vim.opt.autocompletetimeout = 0
|
||||
vim.opt.completeopt = "menu,menuone,noselect"
|
||||
vim.opt.completetimeout = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user