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:
@ -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" })
|
||||
|
||||
|
Reference in New Issue
Block a user