Corrected a bug that didn't allow selection of OS

This commit is contained in:
Eduardo Cueto-Mendoza 2023-08-10 13:46:53 +01:00
parent d058cadf33
commit 61f874fcaf
3 changed files with 12 additions and 7 deletions

View File

@ -3,8 +3,8 @@ function ColorMyPencils(color)
color = color or "rose-pine"
vim.cmd.colorscheme(color)
--vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
--vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end

View File

@ -5,7 +5,8 @@ lsp.on_attach(function(client, bufnr)
end)
-- Language servers
if (MY_OS == 'Linux') then
if (MY_OS == 'Linux')
then
lsp.ensure_installed({
-- Replace these with whatever servers you want to install
'bashls',
@ -15,15 +16,18 @@ if (MY_OS == 'Linux') then
'ltex',
'pylsp',
'texlab',
'zls'
--'zls'
})
elseif (MY_OS == 'FreeBSD') then
elseif (MY_OS == 'FreeBSD')
then
lsp.ensure_installed({
-- Replace these with whatever servers you want to install
'bashls',
'julials',
'pylsp',
})
else
print('Should never be here')
end
--[[

View File

@ -3,5 +3,6 @@ require("eddie")
local f = io.popen("uname -s")
if (f ~= nil) then
MY_OS = f:read("*a")
MY_OS = string.gsub(MY_OS, "%s+", "")
f:close()
end