Skip to content

Commit

Permalink
add files for style, and fix views for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
adalessa committed Apr 26, 2024
1 parent 6de6f2a commit be1c095
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/laravel/resolvers/views_resolver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ local views_resolver = {}
---@param onFailure fun(errorMessage: string)|nil
function views_resolver.resolve(onSuccess, onFailure)
resource_path_resolve.resolve("views", function(view_path)
-- FIX this is a fix to handle the docker case
view_path = view_path:gsub("/var/www/html", vim.fn.getcwd())
local rule = string.format("^%s/(.*).blade.php$", view_path:gsub("-", "%%-"))
local finds = scan.scan_dir(view_path, { hidden = false, depth = 4 })

Expand Down
1 change: 1 addition & 0 deletions selene.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
std="vim"
3 changes: 3 additions & 0 deletions stylua.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
indent_type = "Spaces"
indent_width = 2
column_width = 120
46 changes: 46 additions & 0 deletions vim.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[selene]
base = "lua51"
name = "vim"

[vim]
any = true

[[describe.args]]
type = "string"
[[describe.args]]
type = "function"

[[it.args]]
type = "string"
[[it.args]]
type = "function"

[[before_each.args]]
type = "function"
[[after_each.args]]
type = "function"

[assert.is_not]
any = true

[[assert.equals.args]]
type = "any"
[[assert.equals.args]]
type = "any"
[[assert.equals.args]]
type = "any"
required = false

[[assert.same.args]]
type = "any"
[[assert.same.args]]
type = "any"

[[assert.truthy.args]]
type = "any"

[[assert.spy.args]]
type = "any"

[[assert.stub.args]]
type = "any"

0 comments on commit be1c095

Please sign in to comment.