Skip to content

Commit

Permalink
fix working from sail
Browse files Browse the repository at this point in the history
  • Loading branch information
adalessa committed Apr 26, 2024
1 parent be1c095 commit 6d65063
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/laravel/extensions/null_ls/diagnostic/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ function M.setup()
end

resolvers.paths.resolve("views", function(views_directory)
-- FIX this is a fix to handle the docker case
views_directory = views_directory:gsub("/var/www/html", vim.fn.getcwd())
for id, node in query:iter_captures(tree:root(), params.bufnr, 0, -1) do
if query.captures[id] == "view" then
local view = vim.treesitter.get_node_text(node, params.bufnr):gsub("'", "")
Expand Down

0 comments on commit 6d65063

Please sign in to comment.