updated lsp config

This commit is contained in:
Saeed Afzal
2023-04-29 16:17:55 +01:00
parent 86cc9b52ec
commit 1d3df81f8f
6 changed files with 196 additions and 6 deletions

View File

@@ -6,7 +6,6 @@ return {
{
"numToStr/Comment.nvim",
event = "BufEnter",
config = true
},
@@ -20,8 +19,7 @@ return {
{
"andymass/vim-matchup",
dependencies = "nvim-treesitter/nvim-treesitter",
event = "BufEnter"
dependencies = "nvim-treesitter/nvim-treesitter"
},
{
@@ -51,5 +49,107 @@ return {
dependencies = "nvim-lua/plenary.nvim",
cmd = "DiffviewOpen",
config = true
},
-- NOTE: LSP
{
"neovim/nvim-lspconfig",
lazy = true,
dependencies = {
{ "folke/neodev.nvim", opts = { experimental = { pathStrict = true } } },
"williamboman/mason-lspconfig.nvim"
}
},
{
"williamboman/mason-lspconfig.nvim",
dependencies = "williamboman/mason.nvim",
config = function()
local capabilities = require("cmp_nvim_lsp").default_capabilities()
local handlers = {
function (server_name)
require("lspconfig")[server_name].setup {
capabilities = capabilities
}
end
}
require("mason-lspconfig").setup { handlers = handlers }
end
},
{
"williamboman/mason.nvim",
build = ":MasonUpdate",
config = true
},
{
"L3MON4D3/LuaSnip",
dependencies = {
"rafamadriz/friendly-snippets",
config = function()
require("luasnip.loaders.from_vscode").lazy_load()
end
}
},
{
"windwp/nvim-autopairs",
event = "InsertEnter",
config = true
},
"RRethy/vim-illuminate",
{
"ray-x/lsp_signature.nvim",
dependencies = "neovim/nvim-lspconfig",
config = true
},
{
"simrat39/symbols-outline.nvim",
cmd = "SymbolsOutline",
config = true
},
{
"folke/trouble.nvim",
dependencies = "nvim-tree/nvim-web-devicons",
cmd = "TroubleToggle",
config = true
},
{
"weilbith/nvim-code-action-menu",
dependencies = "neovim/nvim-lspconfig",
cmd = "CodeActionMenu"
},
{
"CosmicNvim/cosmic-ui",
lazy = true,
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim"
},
config = true
},
{
"rcarriga/nvim-dap-ui",
lazy = true,
dependencies = "mfussenegger/nvim-dap",
config = true
},
{
"leoluz/nvim-dap-go",
lazy = true,
dependencies = "mfussenegger/nvim-dap",
config = true
}
}