mirror of
https://github.com/mqttr/dotfiles.git
synced 2025-12-16 12:45:52 -06:00
NVIM: Refactored & Cleaned
Removed some files, added some keybinds & descriptions, added autoinstall lsps, refactored config portion
This commit is contained in:
@@ -1,20 +1,40 @@
|
||||
local servers = {
|
||||
"rust_analyzer",
|
||||
"clangd",
|
||||
"basedpyright",
|
||||
"lua_ls",
|
||||
'bashls',
|
||||
'yamlls',
|
||||
}
|
||||
|
||||
|
||||
-- local capabilities = base.capabilities
|
||||
-- local on_attach = base.on_attach
|
||||
|
||||
return {
|
||||
{ "williamboman/mason.nvim" },
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = {
|
||||
ensured_installed = {
|
||||
"rust_analyzer",
|
||||
"clangd",
|
||||
"basedpyright",
|
||||
"lua_ls"
|
||||
}
|
||||
}
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
|
||||
config = function ()
|
||||
require('mason-lspconfig').setup({
|
||||
ensure_installed = servers
|
||||
})
|
||||
|
||||
for _, lsp in pairs(servers) do
|
||||
require('lspconfig')[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities
|
||||
}
|
||||
end
|
||||
end,
|
||||
|
||||
automatic_installation = true,
|
||||
},
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
{ 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants
|
||||
{ 'williamboman/mason.nvim', config = true },
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user