mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-13 18:42:59 +01:00
add trouble and update cmp config
This commit is contained in:
parent
133f17c2cf
commit
aa647c8255
2 changed files with 21 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue