2023-10-01 17:18:36 +08:00
|
|
|
return {
|
2023-10-02 22:05:38 +08:00
|
|
|
{
|
|
|
|
'neovim/nvim-lspconfig',
|
|
|
|
config = function()
|
|
|
|
local lsp = require('lspconfig')
|
2023-10-03 01:12:10 +08:00
|
|
|
lsp.pyright.setup({})
|
2023-10-02 22:05:38 +08:00
|
|
|
-- lsp.lua_ls.setup{}
|
|
|
|
-- local opts = {buffer = ev.buf}
|
|
|
|
G.map({
|
|
|
|
|
|
|
|
-- G.lb = vim.lsp.buf
|
|
|
|
-- { 'n', 'gD', G.lb.declaration, opts},
|
|
|
|
-- { 'n', 'gd', G.lb.definition, opts},
|
|
|
|
-- { 'n', 'gi', G.lb.implementation, opts},
|
|
|
|
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'hrsh7th/nvim-cmp',
|
2023-10-03 01:12:10 +08:00
|
|
|
dependencies = {
|
|
|
|
'hrsh7th/cmp-cmdline',
|
|
|
|
'hrsh7th/cmp-path',
|
|
|
|
'hrsh7th/cmp-buffer',
|
|
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
require('cmp').setup{
|
|
|
|
sources = require('cmp').config.sources({
|
|
|
|
{ name = 'nvim_lsp' },
|
|
|
|
{ name = 'buffer' },
|
|
|
|
{ name = 'path' }
|
|
|
|
}),
|
|
|
|
}
|
|
|
|
end,
|
2023-10-02 22:05:38 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'williamboman/mason.nvim',
|
2023-10-03 01:12:10 +08:00
|
|
|
config = function()
|
|
|
|
require("mason").setup({
|
|
|
|
ui = {
|
|
|
|
icons = {
|
|
|
|
package_installed = "✓",
|
|
|
|
package_pending = "➜",
|
|
|
|
package_uninstalled = "✗"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end,
|
2023-10-02 22:05:38 +08:00
|
|
|
},
|
|
|
|
|
2023-10-01 17:18:36 +08:00
|
|
|
}
|