Reconfigure lsp

This commit is contained in:
Marcelo Canaparro 2024-01-06 14:58:15 +00:00
parent 84bd738041
commit 0ebf26b49c
6 changed files with 204 additions and 168 deletions

View file

@ -0,0 +1,23 @@
return {
{
"williamboman/mason.nvim",
config = function ()
require('mason').setup()
end
},
{
'williamboman/mason-lspconfig.nvim',
config = function()
require("mason-lspconfig").setup {
ensure_installed = { "lua_ls", "pyright" },
}
end
},
{
"neovim/nvim-lspconfig",
config = function()
local lspconfig = require('lspconfig')
lspconfig.lua_ls.setup({})
end
}
}

View file

@ -3,7 +3,6 @@
--
-- See the kickstart.nvim README for more information
return {
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",

View file

@ -11,38 +11,38 @@ return { -- NOTE: First, some plugins that don't require any configuration
-- NOTE: This is where your plugins related to LSP can be installed.
-- The configuration is done below. Search for lspconfig to find it below.
{
-- LSP Configuration & Plugins
'neovim/nvim-lspconfig',
dependencies = {
-- Automatically install LSPs to stdpath for neovim
{ 'williamboman/mason.nvim', config = true },
'williamboman/mason-lspconfig.nvim',
-- {
-- -- LSP Configuration & Plugins
-- 'neovim/nvim-lspconfig',
-- dependencies = {
-- -- Automatically install LSPs to stdpath for neovim
-- { 'williamboman/mason.nvim', config = true },
-- 'williamboman/mason-lspconfig.nvim',
--
-- -- Useful status updates for LSP
-- -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
-- { 'j-hui/fidget.nvim', tag = 'legacy', opts = {} },
--
-- -- Additional lua configuration, makes nvim stuff amazing!
-- 'folke/neodev.nvim',
-- },
-- },
-- Useful status updates for LSP
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
{ 'j-hui/fidget.nvim', tag = 'legacy', opts = {} },
-- Additional lua configuration, makes nvim stuff amazing!
'folke/neodev.nvim',
},
},
{
-- Autocompletion
'hrsh7th/nvim-cmp',
dependencies = {
-- Snippet Engine & its associated nvim-cmp source
'L3MON4D3/LuaSnip',
'saadparwaiz1/cmp_luasnip',
-- Adds LSP completion capabilities
'hrsh7th/cmp-nvim-lsp',
-- Adds a number of user-friendly snippets
'rafamadriz/friendly-snippets',
},
},
-- {
-- -- Autocompletion
-- 'hrsh7th/nvim-cmp',
-- dependencies = {
-- -- Snippet Engine & its associated nvim-cmp source
-- 'L3MON4D3/LuaSnip',
-- 'saadparwaiz1/cmp_luasnip',
--
-- -- Adds LSP completion capabilities
-- 'hrsh7th/cmp-nvim-lsp',
--
-- -- Adds a number of user-friendly snippets
-- 'rafamadriz/friendly-snippets',
-- },
-- },
-- Useful plugin to show you pending keybinds.
{ 'folke/which-key.nvim', opts = {} },