B:BD[
9.8481] → [
9.8481:8512]
B:BD[
9.8512] → [
3.59:139]
∅:D[
3.139] → [
9.8592:9281]
B:BD[
9.8592] → [
9.8592:9281]
function()
local lines = vim.api.nvim_buf_get_lines(0, 0, 40, false)
local content = table.concat(lines, "\n")
if content:match("format ELF64 executable 3") then
vim.bo.filetype = "fasm"
vim.o.shiftwidth = 4
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.expandtab = true -- for nicer indentation
else
vim.bo.filetype = "nasm"
vim.o.shiftwidth = 4
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.expandtab = true -- for nicer indentation
end
end
function()
local lines = vim.api.nvim_buf_get_lines(0, 0, 40, false)
local content = table.concat(lines, "\n")
if content:match("format ELF64 executable 3") then
vim.bo.filetype = "fasm"
vim.o.shiftwidth = 4
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.expandtab = true -- for nicer indentation
else
vim.bo.filetype = "nasm"
vim.o.shiftwidth = 4
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.expandtab = true -- for nicer indentation
end
end