aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/alpha/lsp/null-ls.lua6
-rw-r--r--lua/alpha/lsp/servers.lua7
2 files changed, 9 insertions, 4 deletions
diff --git a/lua/alpha/lsp/null-ls.lua b/lua/alpha/lsp/null-ls.lua
index 75d8293..3428ec6 100644
--- a/lua/alpha/lsp/null-ls.lua
+++ b/lua/alpha/lsp/null-ls.lua
@@ -26,9 +26,9 @@ null_ls.setup {
},
null_ls.builtins.diagnostics.phpcs.with {
method = null_ls.methods.DIAGNOSTICS_ON_SAVE,
- -- condition = function(utils)
- -- return utils.root_has_file "phpcs.xml"
- -- end,
+ condition = function(utils)
+ return utils.root_has_file "phpcs.xml"
+ end,
},
null_ls.builtins.formatting.pint,
},
diff --git a/lua/alpha/lsp/servers.lua b/lua/alpha/lsp/servers.lua
index fefdf28..926ed7e 100644
--- a/lua/alpha/lsp/servers.lua
+++ b/lua/alpha/lsp/servers.lua
@@ -51,7 +51,7 @@ return {
},
hint = {
enable = true,
- }
+ },
},
},
}
@@ -63,6 +63,11 @@ return {
on_attach = lsp_attach,
flags = lsp_flags,
filetypes = { "php", "cucumber" },
+ init_options = {
+ ["language_server_worse_reflection.inlay_hints.enable"] = true,
+ -- ["language_server_worse_reflection.inlay_hints.types"] = true,
+ -- ["language_server_worse_reflection.inlay_hints.params"] = true,
+ },
}
end,
["pyright"] = default,