add trouble and update cmp config

This commit is contained in:
LordMZTE 2022-01-23 13:49:56 +01:00
parent 133f17c2cf
commit aa647c8255
2 changed files with 21 additions and 5 deletions

View file

@ -56,3 +56,16 @@ cmp.setup.cmdline(":", {
{ name = "cmdline" },
}),
})
-- define signs
local signs = {
Error = "",
Warn = "",
Hint = "",
Info = "",
}
for k, v in pairs(signs) do
local hl = "DiagnosticSign" .. k
vim.fn.sign_define(hl, { text = v, texthl = hl, numhl = hl })
end

View file

@ -13,10 +13,7 @@ local function cmp_plugins(use)
use "hrsh7th/cmp-buffer"
use "hrsh7th/cmp-path"
use "hrsh7th/cmp-cmdline"
use {
"hrsh7th/nvim-cmp",
config = pconf "nvim_cmp",
}
use { "hrsh7th/nvim-cmp", config = pconf "nvim_cmp" }
use "saadparwaiz1/cmp_luasnip"
use {
@ -47,7 +44,6 @@ end
return require("packer").startup(function(use)
use "wbthomason/packer.nvim"
use "ryanoasis/vim-devicons"
use {
"dracula/vim",
as = "dracula",
@ -115,5 +111,12 @@ return require("packer").startup(function(use)
use "nvim-telescope/telescope-ui-select.nvim"
use {
"folke/trouble.nvim",
config = function()
require("trouble").setup {}
end,
}
cmp_plugins(use)
end)