Skip to content

Commit

Permalink
Fix linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
undyamon committed Dec 30, 2023
1 parent 0970772 commit 3965a5b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/tasks/utils.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
local scandir = require('plenary.scandir')
local Path = require('plenary.path')
local utils = {}

local args_regex = vim.regex([[\s\%(\%([^'"]*\(['"]\)[^'"]*\1\)*[^'"]*$\)\@=]])
Expand Down Expand Up @@ -62,9 +60,9 @@ end
function utils.get_module_names()
local modules = {}

local runtime_files = vim.api.nvim_get_runtime_file("lua/tasks/module/*.lua", true)
local runtime_files = vim.api.nvim_get_runtime_file('lua/tasks/module/*.lua', true)
for _, file in ipairs(runtime_files) do
table.insert(modules, vim.fn.fnamemodify(file, ":t:r"))
table.insert(modules, vim.fn.fnamemodify(file, ':t:r'))
end

return modules
Expand Down

0 comments on commit 3965a5b

Please sign in to comment.