aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-09-11 17:31:18 +0200
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-09-11 17:31:18 +0200
commit36b7f33743f4d9b0e648fd79ca5bafc2e4b451dc (patch)
tree58e770b921edde3961d6fa8a652737d02ba62cba /lua/alpha
parent7152b5c26fbbfc4e84d8ccfa6917ca71fab14cc5 (diff)
downloadnvim-conf-36b7f33743f4d9b0e648fd79ca5bafc2e4b451dc.tar.gz
nvim-conf-36b7f33743f4d9b0e648fd79ca5bafc2e4b451dc.zip
Small updates
Diffstat (limited to 'lua/alpha')
-rw-r--r--lua/alpha/completition/init.lua4
-rw-r--r--lua/alpha/lsp/servers.lua13
2 files changed, 3 insertions, 14 deletions
diff --git a/lua/alpha/completition/init.lua b/lua/alpha/completition/init.lua
index 35ba27e..92e1f91 100644
--- a/lua/alpha/completition/init.lua
+++ b/lua/alpha/completition/init.lua
@@ -40,7 +40,7 @@ cmp.setup {
{ name = "nvim_lsp" },
{ name = "path" },
{ name = "luasnip" },
- { name = "copilot", group_index = 2 },
+ { name = "copilot" },
{
name = "buffer",
keyword_length = 4,
@@ -95,7 +95,7 @@ cmp.setup {
},
}
-vim.api.nvim_set_hl(0, "CmpItemKindCopilot", {fg ="#6CC644"})
+vim.api.nvim_set_hl(0, "CmpItemKindCopilot", { fg = "#6CC644" })
-- Set configuration for specific filetype.
cmp.setup.filetype("gitcommit", {
diff --git a/lua/alpha/lsp/servers.lua b/lua/alpha/lsp/servers.lua
index c849c13..e9acc4b 100644
--- a/lua/alpha/lsp/servers.lua
+++ b/lua/alpha/lsp/servers.lua
@@ -12,18 +12,6 @@ local default = function()
end
return {
- -- ["cucumber_language_server"] = function()
- -- return {
- -- on_attach = lsp_attach,
- -- flags = lsp_flags,
- -- settings = {
- -- cucumber = {
- -- features = { "tests/Behat/features/*.feature" },
- -- glue = { "tests/Behat/*.php" },
- -- },
- -- },
- -- }
- -- end,
["emmet_ls"] = function()
local capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities())
@@ -108,6 +96,7 @@ return {
["language_server_configuration.auto_config"] = false,
["code_transform.import_globals"] = true,
["language_server_phpstan.enabled"] = true,
+ ["language_server_phpstan.level"] = 7,
["language_server_phpstan.bin"] = "phpstan",
},
handlers = {