Manually install stuff (like a chad)

This commit is contained in:
Michael Peters 2022-09-22 12:13:23 -07:00
parent c3d4292dd2
commit 0c2c81dcea
6 changed files with 47 additions and 43 deletions

6
.luarc.json Normal file
View File

@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"Lua.workspace.library": [
"${3rd}/luassert/library"
]
}

View File

@ -85,7 +85,10 @@ function M.config()
lsp_highlight_document(client)
end
local sumneko_root_path = '/home/peters/builds/lua-language-server'
local sumneko_binary = sumneko_root_path.."/bin/lua-language-server"
lspconfig.sumneko_lua.setup {
cmd = { sumneko_binary, "-E", sumneko_root_path .. "/main.lua" },
on_attach = on_attach,
settings = {
Lua = {
@ -95,10 +98,40 @@ function M.config()
diagnostics = {
globals = { 'vim' },
},
}
}
workspace = {
library = {
-- include neovim runtime files
[vim.fn.expand('$VIMRUNTIME/lua')] = true,
[vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true,
},
checkThirdParty = false, -- disable "do you want to set up the workspace"
},
telemetry = {
enable = false,
}
},
},
}
lspconfig.pyright.setup {
on_attach = on_attach,
}
-- TODO: python-language-server (pip install pylsp)
-- lspconfig.pylsp.setup {
-- -- cmd = { '/home/peters/.env38/bin/pylsp' },
-- on_attach = on_attach,
-- settings = {
-- pylsp = {
-- plugins = {
-- -- pylint = {
-- -- enabled = false,
-- -- },
-- }
-- }
-- }
-- }
end
return M

View File

@ -1,16 +0,0 @@
local M = {}
function M.config()
local status_ok, mason_lspconfig = pcall(require, "mason-lspconfig")
if not status_ok then
return
end
mason_lspconfig.setup({
ensure_installed = {
},
automatic_installation = false,
})
end
return M

View File

@ -1,13 +0,0 @@
local M = {}
function M.config()
local status_ok, mason = pcall(require, "mason")
if not status_ok then
return
end
mason.setup {}
end
return M

View File

@ -95,21 +95,10 @@ packer.startup {
config = function() vim.g.cursorhold_updatetime = 300 end,
}
-- LSP EZ Installer
-- :LspInstall
use {
'williamboman/mason.nvim',
config = function() require'configs.mason'.config() end
}
use {
'williamboman/mason-lspconfig',
config = function() require'configs.mason-lspconfig'.config() end
}
-- Built-In LSP Config
use {
'neovim/nvim-lspconfig',
event = 'BufRead',
-- event = 'BufRead',
config = function() require'configs.lspconfig'.config() end
}

View File

@ -0,0 +1,5 @@
python-lsp-server
pylsp-mypy
pyls-isort
python-lsp-black