From f9311db805dc29ed96b009c836231cd87b43b861 Mon Sep 17 00:00:00 2001 From: Squibid Date: Sun, 18 May 2025 22:32:28 -0400 Subject: try and make everything confined to 80chars --- lua/conf/binds.lua | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'lua/conf/binds.lua') diff --git a/lua/conf/binds.lua b/lua/conf/binds.lua index 9a9a7d6..6eb3519 100644 --- a/lua/conf/binds.lua +++ b/lua/conf/binds.lua @@ -24,14 +24,22 @@ map("n", "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 = misc.appid }) - vim.fn.setfperm(fn, string.sub(fn, 1, 2).."-"..string.sub(fn, 4, 5).."-"..string.sub(fn, 7, 8).."-") + vim.notify("Removed executable flags", vim.log.levels.INFO, { + title = misc.appid + }) + 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 = misc.appid }) - vim.fn.setfperm(fn, string.sub(fn, 1, 2).."x"..string.sub(fn, 4, 5).."x"..string.sub(fn, 7, 8).."x") + vim.notify("Add executable flags", vim.log.levels.INFO, { + title = misc.appid + }) + 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 = misc.appid }) + vim.notify("File doesn't exist", vim.log.levels.INFO, { + title = misc.appid + }) end end, { desc = "toggle executable flag of the file" }) @@ -50,7 +58,8 @@ vim.keymap.set("n", "z=", function() end local cword = vim.fn.expand("") local prompt = "Change "..vim.inspect(cword).." to:" - vim.ui.select(vim.fn.spellsuggest(cword, vim.o.lines), { prompt = prompt }, spell_on_choice) + vim.ui.select(vim.fn.spellsuggest(cword, vim.o.lines), { prompt = prompt }, + spell_on_choice) end, { desc = "Shows spelling suggestions" }) -- quickfix -- cgit v1.2.1