added tabs for assembly files

This commit is contained in:
2026-06-03 13:09:49 +02:00
parent 61cf62ff0d
commit 6e8b327320
2 changed files with 15 additions and 1 deletions
+11
View File
@@ -16,6 +16,17 @@ vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHo
command = "if mode() != 'c' | checktime | endif", 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({ vim.diagnostic.config({
virtual_text = { prefix = "", spacing = 2, source = "if_many" }, virtual_text = { prefix = "", spacing = 2, source = "if_many" },
severity_sort = true, severity_sort = true,
+4 -1
View File
@@ -76,7 +76,10 @@ require("mdmath").setup({
}) })
require("snacks").setup({ require("snacks").setup({
image = { enabled = true }, image = {
enabled = true,
doc = { inline = false },
},
}) })
-- Rebuild mdmath JS deps on plugin update -- Rebuild mdmath JS deps on plugin update