Browse Source

can't install lua on musl

imac
Juni Kim 2 years ago
parent
commit
2224c61a20
  1. 17
      after/plugin/lsp.lua

17
after/plugin/lsp.lua

@ -12,6 +12,23 @@ lsp.setup_nvim_cmp({
-- (Optional) Configure lua language server for neovim -- (Optional) Configure lua language server for neovim
lsp.nvim_workspace() lsp.nvim_workspace()
local platform = require("mason-core.platform");
local servers = {
'tailwindcss',
'tsserver',
'texlab',
'pyright',
'efm',
'ltex',
'jsonls'
}
if not (platform.is.linux_x64_musl or
platform.is.linux_arm64_musl)
then
table.insert(servers, "sumneko_lua");
end
lsp.ensure_installed({ lsp.ensure_installed({
'tailwindcss', 'tailwindcss',
'tsserver', 'tsserver',

Loading…
Cancel
Save