aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/laravel_ls.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/laravel_ls.lua b/lua/lspconfig/configs/laravel_ls.lua
new file mode 100644
index 00000000..caaa8a97
--- /dev/null
+++ b/lua/lspconfig/configs/laravel_ls.lua
@@ -0,0 +1,18 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'laravel-ls' },
+ filetypes = { 'php', 'blade' },
+ root_dir = util.root_pattern({ 'artisan' }),
+ },
+ docs = {
+ description = [[
+https://github.com/laravel-ls/laravel-ls
+
+`laravel-ls`, language server for laravel
+
+The default `cmd` assumes that the `laravel-ls` binary can be found in `$PATH`.
+ ]],
+ },
+}