StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

Mark singleline functions/tables when expanding function calls

Open JohnnyMorganz opened this issue 2 years ago • 2 comments

Improves on #606 (#276)

JohnnyMorganz avatar Jun 14 '23 14:06 JohnnyMorganz

Codecov Report

Patch coverage: 95.83% and no project coverage change.

Comparison is base (5c6d591) 97.56% compared to head (8b986f1) 97.56%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #714   +/-   ##
=======================================
  Coverage   97.56%   97.56%           
=======================================
  Files          16       16           
  Lines        6118     6128   +10     
=======================================
+ Hits         5969     5979   +10     
  Misses        149      149           
Impacted Files Coverage Δ
src/lib.rs 97.28% <ø> (ø)
src/formatters/functions.rs 98.65% <95.83%> (+0.01%) :arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Jun 14 '23 14:06 codecov[bot]

Repo Comparison Test

diff --git ORI/neovim/runtime/lua/vim/filetype/options.lua ALT/neovim/runtime/lua/vim/filetype/options.lua
index 2a28b5a..4f473ae 100644
--- ORI/neovim/runtime/lua/vim/filetype/options.lua
+++ ALT/neovim/runtime/lua/vim/filetype/options.lua
@@ -3,14 +3,18 @@ local api = vim.api
 local M = {}
 
 local function get_ftplugin_runtime(filetype)
-  local files = api.nvim__get_runtime({
-    string.format('ftplugin/%s.vim', filetype),
-    string.format('ftplugin/%s_*.vim', filetype),
-    string.format('ftplugin/%s/*.vim', filetype),
-    string.format('ftplugin/%s.lua', filetype),
-    string.format('ftplugin/%s_*.lua', filetype),
-    string.format('ftplugin/%s/*.lua', filetype),
-  }, true, {}) --[[@as string[] ]]
+  local files = api.nvim__get_runtime(
+    {
+      string.format('ftplugin/%s.vim', filetype),
+      string.format('ftplugin/%s_*.vim', filetype),
+      string.format('ftplugin/%s/*.vim', filetype),
+      string.format('ftplugin/%s.lua', filetype),
+      string.format('ftplugin/%s_*.lua', filetype),
+      string.format('ftplugin/%s/*.lua', filetype),
+    },
+    true,
+    {}
+  ) --[[@as string[] ]]
 
   local r = {} ---@type string[]
   for _, f in ipairs(files) do

github-actions[bot] avatar Jun 14 '23 14:06 github-actions[bot]