diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-12 17:02:54 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-12 22:57:34 +0200 |
| commit | 1734929edd6ceb47fcee53cb9d0a408b41dea14a (patch) | |
| tree | 2bd06885ddd5f91656dfb7851ddb3446e6a2ca74 /.config/nvim/lua | |
| parent | c3c0fe51524d0e7bbc2d93fb9ee0127db691287a (diff) | |
| download | dotfiles-1734929edd6ceb47fcee53cb9d0a408b41dea14a.tar.gz dotfiles-1734929edd6ceb47fcee53cb9d0a408b41dea14a.zip | |
misc(nvim): reformat lua files to 100 char line width
Diffstat (limited to '.config/nvim/lua')
| -rw-r--r-- | .config/nvim/lua/dotfiles/follow.lua | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/.config/nvim/lua/dotfiles/follow.lua b/.config/nvim/lua/dotfiles/follow.lua index 51c9972..e1cf109 100644 --- a/.config/nvim/lua/dotfiles/follow.lua +++ b/.config/nvim/lua/dotfiles/follow.lua @@ -24,7 +24,10 @@ function M.register_handler(fn) end local function get_visual_selection() - return table.concat(vim.fn.getregion(vim.fn.getpos("v"), vim.fn.getpos("."), { type = vim.fn.mode() }), "\n") + return table.concat( + vim.fn.getregion(vim.fn.getpos("v"), vim.fn.getpos("."), { type = vim.fn.mode() }), + "\n" + ) end -- Returns a suitable target for `vim.cmd.edit()` by looking for a Markdown link under the cursor. @@ -56,7 +59,10 @@ local function get_markdown_link_target() return match end end - vim.notify("No link destination found for link label [" .. label .. "]", vim.log.levels.ERROR) + vim.notify( + "No link destination found for link label [" .. label .. "]", + vim.log.levels.ERROR + ) return nil end @@ -76,7 +82,8 @@ local function get_markdown_link_target() if child:type() == "link_destination" then return text elseif - child:type() == "link_label" or (link_node:type() == "shortcut_link" and child:type() == "link_text") + child:type() == "link_label" + or (link_node:type() == "shortcut_link" and child:type() == "link_text") then -- shortcut_link text don't include the `[]` unlike link_label if link_node:type() ~= "shortcut_link" then |
