2023-09-11 12:32:48 +02:00
|
|
|
local opt = vim.opt
|
|
|
|
|
|
|
|
vim.g.loaded_perl_provider = 0
|
|
|
|
vim.g.loaded_python3_provider = 0
|
|
|
|
vim.g.loaded_node_provider = 0
|
|
|
|
vim.g.loaded_ruby_provider = 0
|
|
|
|
|
2024-06-29 12:22:29 +02:00
|
|
|
vim.g.lazygit_config = false
|
|
|
|
|
2025-01-15 13:02:34 +01:00
|
|
|
vim.g.snacks_animate = true
|
2023-09-11 12:32:48 +02:00
|
|
|
|
|
|
|
opt.hlsearch = false
|
|
|
|
opt.incsearch = true
|
|
|
|
|
2025-01-15 13:02:34 +01:00
|
|
|
opt.clipboard = ""
|
|
|
|
opt.cursorline = true
|
|
|
|
opt.list = true
|
|
|
|
opt.number = true
|
|
|
|
opt.relativenumber = true
|
2023-09-11 12:32:48 +02:00
|
|
|
opt.scrolloff = 8
|
2025-01-15 13:02:34 +01:00
|
|
|
opt.showmode = false
|
|
|
|
opt.signcolumn = "yes"
|
|
|
|
opt.smartcase = true
|
|
|
|
opt.smartindent = true
|
|
|
|
opt.spelllang = { "en" } -- "de"??
|
|
|
|
opt.splitbelow = true
|
|
|
|
opt.splitright = true
|
|
|
|
opt.statuscolumn = [[%!v:lua.require'snacks.statuscolumn'.get()]]
|
|
|
|
opt.termguicolors = true
|
|
|
|
opt.virtualedit = "block"
|
|
|
|
opt.wildmode = "longest:full,full"
|
2023-09-11 12:32:48 +02:00
|
|
|
|
|
|
|
-- I like 4 space indents
|
|
|
|
opt.tabstop = 4
|
|
|
|
opt.softtabstop = 4
|
|
|
|
opt.shiftwidth = 4
|
|
|
|
opt.expandtab = true
|
|
|
|
|
|
|
|
opt.swapfile = false
|
|
|
|
opt.backup = false
|
|
|
|
opt.undodir = os.getenv("HOME") .. "/.local/state/nvim/undodir"
|
|
|
|
opt.undofile = true
|
2025-01-15 13:02:34 +01:00
|
|
|
opt.undolevels = 10000
|
|
|
|
opt.updatetime = 200
|
2023-09-11 12:32:48 +02:00
|
|
|
|
|
|
|
-- In my current setup 100 characters line length means that i can have 2 windows side-by-side with
|
|
|
|
-- sway and still see all characters of that line. (110 would be the absolute maximum)
|
|
|
|
-- I want to rely on textwrap as few as possible
|
|
|
|
opt.colorcolumn = "100"
|
2023-12-09 13:47:15 +01:00
|
|
|
opt.wrap = false
|
2023-09-11 12:32:48 +02:00
|
|
|
|
|
|
|
-- This allows '@' in filenames
|
|
|
|
opt.isfname:append("@-@")
|
2024-03-15 17:42:23 +01:00
|
|
|
|
|
|
|
-- Better completopt experience
|
2024-05-26 12:08:35 +02:00
|
|
|
opt.completeopt = { "menu", "menuone", "noselect" }
|
2024-04-29 14:38:15 +02:00
|
|
|
|
|
|
|
vim.filetype.add({
|
2024-05-26 12:08:35 +02:00
|
|
|
extension = {
|
2025-01-15 13:02:34 +01:00
|
|
|
alloy = "alloy",
|
|
|
|
caddy = "caddyfile",
|
2024-05-26 12:08:35 +02:00
|
|
|
container = "systemd",
|
|
|
|
image = "systemd",
|
|
|
|
network = "systemd",
|
2025-01-15 13:02:34 +01:00
|
|
|
service = "systemd",
|
|
|
|
socket = "systemd",
|
2024-05-26 12:08:35 +02:00
|
|
|
},
|
|
|
|
pattern = {
|
|
|
|
[".*/sway/conf%.d/.*"] = "swayconfig",
|
|
|
|
},
|
2024-04-29 14:38:15 +02:00
|
|
|
})
|