Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed default value for default_schemas. #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions lua/user/lsp/mason.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ local settings = {
}

require("mason").setup(settings)
require("mason-lspconfig").setup({
local status_malsp_ok, malsp = pcall(require, "mason-lspconfig")
if not status_malsp_ok then
vim.notify("mason-lspconfig not found")
return
end

malsp.setup({
ensure_installed = servers,
automatic_installation = true,
})
Expand All @@ -35,7 +41,7 @@ end

local opts = {}

for _, server in pairs(servers) do
for _, server in pairs(malsp.get_installed_servers()) do
opts = {
on_attach = require("user.lsp.handlers").on_attach,
capabilities = require("user.lsp.handlers").capabilities,
Expand Down