2023-09-17 23:36:17 +02:00
|
|
|
-- Options are automatically loaded before lazy.nvim startup
|
|
|
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
|
|
|
-- Add any additional options here
|
2021-04-20 18:10:56 +02:00
|
|
|
|
2023-09-17 23:36:17 +02:00
|
|
|
local opt = vim.opt
|
2021-04-18 18:51:03 +02:00
|
|
|
|
2023-09-17 23:36:17 +02:00
|
|
|
opt.relativenumber = false
|
2024-03-03 22:20:57 +01:00
|
|
|
opt.clipboard = "unnamedplus"
|
2021-04-18 18:51:03 +02:00
|
|
|
|
2023-09-28 11:13:02 +02:00
|
|
|
vim.g.do_filetype_lua = 1
|
|
|
|
|
2023-10-29 09:48:27 +01:00
|
|
|
vim.g.root_spec = { { ".git", "lua" }, "lsp", "cwd" }
|
2023-09-20 12:25:15 +02:00
|
|
|
vim.o.autochdir = true
|
2023-09-28 11:13:02 +02:00
|
|
|
vim.o.fillchars = "stl: ,stlnc: ,eob:🮙"
|
|
|
|
vim.o.scrolloff = 7
|
2023-09-20 12:25:15 +02:00
|
|
|
vim.o.updatetime = 100
|
2023-12-27 12:37:56 +01:00
|
|
|
|
|
|
|
-- additional filetypes
|
|
|
|
vim.filetype.add({
|
|
|
|
extension = {
|
|
|
|
templ = "templ",
|
|
|
|
},
|
|
|
|
})
|
2024-02-08 10:23:55 +01:00
|
|
|
|
|
|
|
-- AutoCommand OSC7 workaround for tmux
|
|
|
|
-- see https://github.com/neovim/neovim/issues/21771
|
|
|
|
vim.api.nvim_create_autocmd("dirchanged", {
|
|
|
|
pattern = "*",
|
|
|
|
command = 'call chansend(v:stderr, printf("\\033]7;%s\\033", v:event.cwd))',
|
|
|
|
})
|