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