diff --git a/lua/options.lua b/lua/options.lua index 6700ca3..92b5675 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -16,6 +16,17 @@ vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHo command = "if mode() != 'c' | checktime | endif", }) +vim.filetype.add({ extension = { asm = "asm", s = "asm", S = "asm" } }) +vim.api.nvim_create_autocmd("FileType", { + pattern = "asm", + callback = function() + vim.bo.tabstop = 8 + vim.bo.shiftwidth = 8 + vim.bo.softtabstop = 8 + vim.bo.expandtab = false + end, +}) + vim.diagnostic.config({ virtual_text = { prefix = "●", spacing = 2, source = "if_many" }, severity_sort = true, diff --git a/lua/plugins.lua b/lua/plugins.lua index d45d7b2..6ba2ea9 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -76,7 +76,10 @@ require("mdmath").setup({ }) require("snacks").setup({ - image = { enabled = true }, + image = { + enabled = true, + doc = { inline = false }, + }, }) -- Rebuild mdmath JS deps on plugin update