2023-07-10 13:46:48 +02:00
|
|
|
local g = vim.g
|
|
|
|
local o = vim.o
|
|
|
|
local opt = vim.opt
|
|
|
|
|
|
|
|
-- Indentation
|
|
|
|
opt.tabstop = 2
|
|
|
|
opt.smartindent = true
|
|
|
|
opt.shiftwidth = 2
|
|
|
|
opt.expandtab = true
|
|
|
|
|
|
|
|
-- Line numbers
|
|
|
|
opt.number = true
|
|
|
|
|
|
|
|
vim.filetype.add({
|
|
|
|
extension = {
|
2023-07-12 00:34:27 +02:00
|
|
|
mdx = "mdx",
|
|
|
|
typ = "typst",
|
2023-07-10 13:46:48 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2023-07-10 14:30:11 +02:00
|
|
|
-- Workaround: https://github.com/neovim/neovim/issues/21856
|
|
|
|
vim.api.nvim_create_autocmd({ "VimLeave" }, {
|
|
|
|
callback = function()
|
|
|
|
vim.fn.jobstart('notify-send "hello"', {detach=true})
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|