aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha/lsp')
-rw-r--r--lua/alpha/lsp/attach.lua2
-rw-r--r--lua/alpha/lsp/mason.lua12
-rw-r--r--lua/alpha/lsp/servers.lua8
3 files changed, 14 insertions, 8 deletions
diff --git a/lua/alpha/lsp/attach.lua b/lua/alpha/lsp/attach.lua
index 84212a6..e15ad92 100644
--- a/lua/alpha/lsp/attach.lua
+++ b/lua/alpha/lsp/attach.lua
@@ -1,7 +1,7 @@
local telescope_mapper = require "alpha.telescope.mappings"
local filetype_attach = setmetatable({
- php = function(client, bufnr)
+ php = function(_, bufnr)
vim.api.nvim_buf_create_user_command(bufnr, "LspPhpactorReindex", function()
vim.lsp.buf_notify(bufnr, "phpactor/index/reindex", {})
end, {})
diff --git a/lua/alpha/lsp/mason.lua b/lua/alpha/lsp/mason.lua
index 752f6ac..a8c6ce7 100644
--- a/lua/alpha/lsp/mason.lua
+++ b/lua/alpha/lsp/mason.lua
@@ -12,12 +12,12 @@ for server, _ in pairs(servers) do
end
mason_lspconfig.setup {
- ensure_installed = mason_servers,
+ -- ensure_installed = mason_servers,
}
-- filter the list for the ones not globally installed
-require("mason-tool-installer").setup {
- ensure_installed = vim.tbl_filter(function (tool)
- return vim.fn.executable(tool) == 0
- end, require "alpha.lsp.tools"),
-}
+-- require("mason-tool-installer").setup {
+-- ensure_installed = vim.tbl_filter(function (tool)
+-- return vim.fn.executable(tool) == 0
+-- end, require "alpha.lsp.tools"),
+-- }
diff --git a/lua/alpha/lsp/servers.lua b/lua/alpha/lsp/servers.lua
index ab70468..14ec9d3 100644
--- a/lua/alpha/lsp/servers.lua
+++ b/lua/alpha/lsp/servers.lua
@@ -76,7 +76,13 @@ return {
},
}
end,
- ["marksman"] = default,
+ ["omnisharp"] = function()
+ return {
+ cmd = {"OmniSharp"},
+ on_attach = lsp_attach,
+ flags = lsp_flags,
+ }
+ end,
["nil_ls"] = default,
["phpactor"] = function()
return {