Skip to content

Commit

Permalink
fix(completion): show top mods when no module typed yet
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 1, 2024
1 parent ee21a19 commit 7008928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lazydev/pkg.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---@class lazydev.Pkg
local M = {}

M.PAT_MODULE_BASE = "%-%-%-%s*@module%s*[\"']([%w%.%-_/]+)"
M.PAT_REQUIRE_BASE = "require%s*,?%s*%(?%s*['\"]([%w%.%-_/]+)"
M.PAT_MODULE_BASE = "%-%-%-%s*@module%s*[\"']([%w%.%-_/]*)"
M.PAT_REQUIRE_BASE = "require%s*,?%s*%(?%s*['\"]([%w%.%-_/]*)"
M.PAT_MODULE_BEFORE = M.PAT_MODULE_BASE .. "$"
M.PAT_REQUIRE_BEFORE = M.PAT_REQUIRE_BASE .. "$"
M.PAT_MODULE = M.PAT_MODULE_BASE .. "[\"']"
Expand Down

0 comments on commit 7008928

Please sign in to comment.