diff options
| author | abdellatif Temsamani <contact@abdellatif.dev> | 2026-09-09 14:48:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-09 09:48:13 -0400 |
| commit | 1d9f94f57986294af4babaa1e8d9102817675999 (patch) | |
| tree | f2a551804224aa4b031f80ddacde2e0b94352147 | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-1d9f94f57986294af4babaa1e8d9102817675999.tar nvim-lspconfig-1d9f94f57986294af4babaa1e8d9102817675999.tar.gz nvim-lspconfig-1d9f94f57986294af4babaa1e8d9102817675999.tar.bz2 nvim-lspconfig-1d9f94f57986294af4babaa1e8d9102817675999.tar.lz nvim-lspconfig-1d9f94f57986294af4babaa1e8d9102817675999.tar.xz nvim-lspconfig-1d9f94f57986294af4babaa1e8d9102817675999.tar.zst nvim-lspconfig-1d9f94f57986294af4babaa1e8d9102817675999.zip | |
feat: laravel_lsp #4496
| -rw-r--r-- | lsp/laravel_lsp.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lsp/laravel_lsp.lua b/lsp/laravel_lsp.lua new file mode 100644 index 00000000..7fa715e0 --- /dev/null +++ b/lsp/laravel_lsp.lua @@ -0,0 +1,25 @@ +---@brief +--- +--- https://github.com/laravel/lsp +--- +--- Laravel LSP provides framework-aware editor features for Laravel applications. +--- +--- Install Laravel LSP globally with Composer: +--- +--- ```sh +--- composer global require laravel/lsp +--- ``` +--- +--- Ensure Composer's global bin directory is on `$PATH`. + +---@type vim.lsp.Config +return { + cmd = { 'laravel-lsp' }, + filetypes = { 'php', 'blade' }, + root_dir = function(bufnr, on_dir) + local root = vim.fs.root(bufnr, 'artisan') + if root then + on_dir(root) + end + end, +} |
