more!!! add python support and formatters and null ls to manage all...

that automatically also change my stylua.toml to ignore everything
cause I don't like the way it formats stuff
This commit is contained in:
2025-06-11 03:21:25 -04:00
parent e830931ff4
commit 9ea9d9f516
14 changed files with 352 additions and 43 deletions

View File

@ -23,22 +23,16 @@ map("n", "<leader>x", function() -- execute order 111
if vim.fn.getftype(fn) == "file" then
local perm = vim.fn.getfperm(fn)
if string.match(perm, "x", 3) then
vim.notify("Removed executable flags", vim.log.levels.INFO, {
title = core.misc.appid
})
vim.notify("Removed executable flags")
vim.fn.setfperm(fn, string.sub(fn, 1, 2).."-"..string.sub(fn, 4, 5).."-"
..string.sub(fn, 7, 8).."-")
else
vim.notify("Add executable flags", vim.log.levels.INFO, {
title = core.misc.appid
})
vim.notify("Add executable flags")
vim.fn.setfperm(fn, string.sub(fn, 1, 2).."x"..string.sub(fn, 4, 5).."x"
..string.sub(fn, 7, 8).."x")
end
else
vim.notify("File doesn't exist", vim.log.levels.INFO, {
title = core.misc.appid
})
vim.notify("File doesn't exist")
end
end, { desc = "toggle executable flag of the file" })