1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-17 19:40:02 +02:00

touching the nvim.

This commit is contained in:
Henrik Hautakoski 2024-04-13 14:40:38 +02:00
parent 15e6408670
commit 71717129e1
40 changed files with 1045 additions and 921 deletions

View file

@ -1,26 +1,26 @@
return {
"adalessa/laravel.nvim",
dependencies = {
"nvim-telescope/telescope.nvim",
"tpope/vim-dotenv",
"MunifTanjim/nui.nvim",
"nvimtools/none-ls.nvim",
},
ft = "php",
cmd = { "Sail", "Artisan", "Composer", "Npm", "Yarn", "Laravel" },
config = function (_, _)
local opts = require('config.plugins.laravel')
"adalessa/laravel.nvim",
dependencies = {
"nvim-telescope/telescope.nvim",
"tpope/vim-dotenv",
"MunifTanjim/nui.nvim",
"nvimtools/none-ls.nvim",
},
ft = "php",
cmd = { "Sail", "Artisan", "Composer", "Npm", "Yarn", "Laravel" },
config = function(_, _)
local opts = require('config.plugins.laravel')
local haswk, wk = pcall(require, "which-key")
local haswk, wk = pcall(require, "which-key")
if haswk then
wk.register({l = {name = "laravel" }}, { prefix = "<leader>" })
end
if haswk then
wk.register({ l = { name = "laravel" } }, { prefix = "<leader>" })
end
for key, value in pairs(opts.keys) do
vim.keymap.set("n", key, value[1], { desc = value[2] or ''})
end
for key, value in pairs(opts.keys) do
vim.keymap.set("n", key, value[1], { desc = value[2] or '' })
end
require('laravel').setup(opts)
end
require('laravel').setup(opts)
end
}