diff options
author | Squibid <me@zacharyscheiman.com> | 2025-05-18 22:32:28 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2025-05-18 22:33:36 -0400 |
commit | f9311db805dc29ed96b009c836231cd87b43b861 (patch) | |
tree | 1f84fe270ac110b0122ce1fb6ea39bc67c4957c2 /lua/conf/binds.lua | |
parent | d0155fcc7c734c1e3506e59cbb17ec3fb2a4b541 (diff) | |
download | nvim-f9311db805dc29ed96b009c836231cd87b43b861.tar.gz nvim-f9311db805dc29ed96b009c836231cd87b43b861.tar.bz2 nvim-f9311db805dc29ed96b009c836231cd87b43b861.zip |
try and make everything confined to 80chars
Diffstat (limited to 'lua/conf/binds.lua')
-rw-r--r-- | lua/conf/binds.lua | 21 |
1 files changed, 15 insertions, 6 deletions
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", "<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 = 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("<cword>") 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 |