nvim: switch to cmp's signature plugin

This commit is contained in:
2023-07-08 15:20:42 +03:00
parent 8feb9f955d
commit bb9ba38452
4 changed files with 5 additions and 17 deletions

View File

@ -35,6 +35,7 @@ require("packer").startup(function()
use({ "hrsh7th/cmp-vsnip", after = "nvim-cmp" })
use({ "hrsh7th/cmp-buffer", after = "nvim-cmp" })
use({ "hrsh7th/cmp-path", after = "nvim-cmp" })
use({ "hrsh7th/cmp-nvim-lsp-signature-help", after = "nvim-cmp" })
-- snippets
use({
@ -50,14 +51,6 @@ require("packer").startup(function()
after = "vim-vsnip",
})
-- lsp signature
use({
"ray-x/lsp_signature.nvim",
config = function()
require("plugins.lspsignature")
end,
})
-- autopairs
use({
"windwp/nvim-autopairs",

View File

@ -22,6 +22,7 @@ cmp.setup({
},
sources = {
{ name = "nvim_lsp" },
{ name = "nvim_lsp_signature_help" },
{ name = "path" },
{ name = "buffer", keyword_length = 5 },
{ name = "vsnip" },

View File

@ -1,8 +0,0 @@
cfg = {
hint_prefix = " ",
handler_opts = {
border = "none",
},
}
require("lsp_signature").setup(cfg)

View File

@ -1,5 +1,7 @@
-- ignore certain errors
vim.g.vimtex_quickfix_ignore_filters = { "Underfull", "Overfull", "babel" }
-- vim.g.vimtex_quickfix_ignore_filters = { "Underfull", "Overfull", "babel" }
-- use zathura as the pdf viewer
vim.g.vimtex_view_general_viewer = "zathura"
vim.g.vimtex_compiler_latexmk_engines = { _ = "-lualatex" }