This commit is contained in:
QQ 2023-10-03 01:12:10 +08:00
parent e084437b4d
commit 374ea7e318

View File

@ -3,7 +3,7 @@ return {
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
config = function() config = function()
local lsp = require('lspconfig') local lsp = require('lspconfig')
require'lspconfig'.pyright.setup{} lsp.pyright.setup({})
-- lsp.lua_ls.setup{} -- lsp.lua_ls.setup{}
-- local opts = {buffer = ev.buf} -- local opts = {buffer = ev.buf}
G.map({ G.map({
@ -18,15 +18,35 @@ return {
}, },
{ {
'hrsh7th/nvim-cmp', 'hrsh7th/nvim-cmp',
dependencies = { dependencies = {
'hrsh7th/cmp-cmdline', 'hrsh7th/cmp-cmdline',
'hrsh7th/cmp-path', 'hrsh7th/cmp-path',
'hrsh7th/cmp-buffer', 'hrsh7th/cmp-buffer',
'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-nvim-lsp',
}, },
config = function()
require('cmp').setup{
sources = require('cmp').config.sources({
{ name = 'nvim_lsp' },
{ name = 'buffer' },
{ name = 'path' }
}),
}
end,
}, },
{ {
'williamboman/mason.nvim', 'williamboman/mason.nvim',
config = function()
require("mason").setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = ""
}
}
})
end,
}, },
} }