From 374ea7e3185a3a445a806fc2f502b5c2e014f8de Mon Sep 17 00:00:00 2001 From: QQ Date: Tue, 3 Oct 2023 01:12:10 +0800 Subject: [PATCH] update --- lua/neovim/plugsettings/lspconfig.lua | 34 +++++++++++++++++++++------ 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/lua/neovim/plugsettings/lspconfig.lua b/lua/neovim/plugsettings/lspconfig.lua index c0c8713..4f4f63d 100644 --- a/lua/neovim/plugsettings/lspconfig.lua +++ b/lua/neovim/plugsettings/lspconfig.lua @@ -3,7 +3,7 @@ return { 'neovim/nvim-lspconfig', config = function() local lsp = require('lspconfig') - require'lspconfig'.pyright.setup{} + lsp.pyright.setup({}) -- lsp.lua_ls.setup{} -- local opts = {buffer = ev.buf} G.map({ @@ -18,15 +18,35 @@ return { }, { 'hrsh7th/nvim-cmp', - dependencies = { - 'hrsh7th/cmp-cmdline', - 'hrsh7th/cmp-path', - 'hrsh7th/cmp-buffer', - 'hrsh7th/cmp-nvim-lsp', - }, + 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, }, { 'williamboman/mason.nvim', + config = function() + require("mason").setup({ + ui = { + icons = { + package_installed = "✓", + package_pending = "➜", + package_uninstalled = "✗" + } + } + }) + end, }, }