yippsieees
This commit is contained in:
@@ -45,6 +45,7 @@ return {
|
|||||||
css = { 'prettier' },
|
css = { 'prettier' },
|
||||||
graphql = { 'prettier' },
|
graphql = { 'prettier' },
|
||||||
yaml = { 'yamlfmt' },
|
yaml = { 'yamlfmt' },
|
||||||
|
blade = { 'blade-formatter' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
114
lua/plugins/laravel.lua
Normal file
114
lua/plugins/laravel.lua
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
return {
|
||||||
|
'adalessa/laravel.nvim',
|
||||||
|
dependencies = {
|
||||||
|
'MunifTanjim/nui.nvim',
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
'nvim-neotest/nvim-nio',
|
||||||
|
},
|
||||||
|
ft = { 'php', 'blade' },
|
||||||
|
event = {
|
||||||
|
'BufEnter composer.json',
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
'<leader>ll',
|
||||||
|
function()
|
||||||
|
Laravel.pickers.laravel()
|
||||||
|
end,
|
||||||
|
desc = 'Laravel: Open Laravel Picker',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<c-g>',
|
||||||
|
function()
|
||||||
|
Laravel.commands.run 'view:finder'
|
||||||
|
end,
|
||||||
|
desc = 'Laravel: Open View Finder',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>la',
|
||||||
|
function()
|
||||||
|
Laravel.pickers.artisan()
|
||||||
|
end,
|
||||||
|
desc = 'Laravel: Open Artisan Picker',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>lt',
|
||||||
|
function()
|
||||||
|
Laravel.commands.run 'actions'
|
||||||
|
end,
|
||||||
|
desc = 'Laravel: Open Actions Picker',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>lr',
|
||||||
|
function()
|
||||||
|
Laravel.pickers.routes()
|
||||||
|
end,
|
||||||
|
desc = 'Laravel: Open Routes Picker',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>lh',
|
||||||
|
function()
|
||||||
|
Laravel.run 'artisan docs'
|
||||||
|
end,
|
||||||
|
desc = 'Laravel: Open Documentation',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>lm',
|
||||||
|
function()
|
||||||
|
Laravel.pickers.make()
|
||||||
|
end,
|
||||||
|
desc = 'Laravel: Open Make Picker',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>lc',
|
||||||
|
function()
|
||||||
|
Laravel.pickers.commands()
|
||||||
|
end,
|
||||||
|
desc = 'Laravel: Open Commands Picker',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>lo',
|
||||||
|
function()
|
||||||
|
Laravel.pickers.resources()
|
||||||
|
end,
|
||||||
|
desc = 'Laravel: Open Resources Picker',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>lp',
|
||||||
|
function()
|
||||||
|
Laravel.commands.run 'command_center'
|
||||||
|
end,
|
||||||
|
desc = 'Laravel: Open Command Center',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>lu',
|
||||||
|
function()
|
||||||
|
Laravel.commands.run 'hub'
|
||||||
|
end,
|
||||||
|
desc = 'Laravel Artisan hub',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'gf',
|
||||||
|
function()
|
||||||
|
local ok, res = pcall(function()
|
||||||
|
if Laravel.app('gf').cursorOnResource() then
|
||||||
|
return "<cmd>lua Laravel.commands.run('gf')<cr>"
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
if not ok or not res then
|
||||||
|
return 'gf'
|
||||||
|
end
|
||||||
|
return res
|
||||||
|
end,
|
||||||
|
expr = true,
|
||||||
|
noremap = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
features = {
|
||||||
|
pickers = {
|
||||||
|
provider = 'telescope', -- "snacks | telescope | fzf-lua | ui-select"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -26,6 +26,7 @@ return {
|
|||||||
'css',
|
'css',
|
||||||
-- go / php
|
-- go / php
|
||||||
'go',
|
'go',
|
||||||
|
'blade',
|
||||||
'php',
|
'php',
|
||||||
},
|
},
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user