Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark singleline functions/tables when expanding function calls #714

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JohnnyMorganz
Copy link
Owner

Improves on #606 (#276)

@codecov
Copy link

codecov bot commented Jun 14, 2023

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%) ⬆️

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

@github-actions
Copy link
Contributor

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

@JohnnyMorganz JohnnyMorganz marked this pull request as draft June 14, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant