dotfiles/home/private_dot_config/nvim/lua/config/options.lua
2025-01-06 14:37:22 -06:00

27 lines
629 B
Lua

vim.opt.listchars = {
tab = "│→",
extends = "",
precedes = "",
-- trail = "·",
trail = "",
nbsp = "",
}
vim.opt.foldenable = false
vim.opt.timeoutlen = 200
vim.g.autoformat = false
-- make .roc files have the correct filetype
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.roc" },
command = "set filetype=roc",
})
-- https://github.com/ziglang/zig.vim/issues/51#issuecomment-1637180522
vim.g.zig_fmt_autosave = 0
vim.lsp.set_log_level("off")
vim.api.nvim_create_user_command("Shrug", function()
vim.api.nvim_put({ "¯\\_(ツ)_/¯" }, "", false, true)
end, {})