Corrections suite MAJ plugins

This commit is contained in:
Gabriel
2025-08-07 12:29:39 +02:00
parent e730767aa2
commit 4381bcd06e
4 changed files with 76 additions and 102 deletions

View File

@@ -1,16 +1,25 @@
require('mason').setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = ""
}
require('mason').setup()
-- Charger nvim-cmp en premier
require('config.nvim-cmp')
local lspconfig = require('lspconfig')
local capabilities = require('cmp_nvim_lsp').default_capabilities()
-- Configuration LSP
lspconfig.lua_ls.setup({
capabilities = capabilities,
settings = {
Lua = {
runtime = { version = 'LuaJIT' },
diagnostics = { globals = { 'vim' } },
workspace = {
library = vim.api.nvim_get_runtime_file("", true),
checkThirdParty = false,
},
telemetry = { enable = false },
},
}
})
require('mason-lspconfig').setup({
-- A list of servers to automatically install if they're not already installed
ensure_installed = { 'pylsp', 'gopls', 'lua_ls', 'rust_analyzer', 'clangd' },
})
print("LSP with nvim-cmp loaded successfully")