nvim: switch to cmp's signature plugin
This commit is contained in:
@ -35,6 +35,7 @@ require("packer").startup(function()
|
|||||||
use({ "hrsh7th/cmp-vsnip", after = "nvim-cmp" })
|
use({ "hrsh7th/cmp-vsnip", after = "nvim-cmp" })
|
||||||
use({ "hrsh7th/cmp-buffer", after = "nvim-cmp" })
|
use({ "hrsh7th/cmp-buffer", after = "nvim-cmp" })
|
||||||
use({ "hrsh7th/cmp-path", after = "nvim-cmp" })
|
use({ "hrsh7th/cmp-path", after = "nvim-cmp" })
|
||||||
|
use({ "hrsh7th/cmp-nvim-lsp-signature-help", after = "nvim-cmp" })
|
||||||
|
|
||||||
-- snippets
|
-- snippets
|
||||||
use({
|
use({
|
||||||
@ -50,14 +51,6 @@ require("packer").startup(function()
|
|||||||
after = "vim-vsnip",
|
after = "vim-vsnip",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- lsp signature
|
|
||||||
use({
|
|
||||||
"ray-x/lsp_signature.nvim",
|
|
||||||
config = function()
|
|
||||||
require("plugins.lspsignature")
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- autopairs
|
-- autopairs
|
||||||
use({
|
use({
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
|
|||||||
@ -22,6 +22,7 @@ cmp.setup({
|
|||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp" },
|
||||||
|
{ name = "nvim_lsp_signature_help" },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
{ name = "buffer", keyword_length = 5 },
|
{ name = "buffer", keyword_length = 5 },
|
||||||
{ name = "vsnip" },
|
{ name = "vsnip" },
|
||||||
|
|||||||
@ -1,8 +0,0 @@
|
|||||||
cfg = {
|
|
||||||
hint_prefix = " ",
|
|
||||||
handler_opts = {
|
|
||||||
border = "none",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
require("lsp_signature").setup(cfg)
|
|
||||||
@ -1,5 +1,7 @@
|
|||||||
-- ignore certain errors
|
-- 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
|
-- use zathura as the pdf viewer
|
||||||
vim.g.vimtex_view_general_viewer = "zathura"
|
vim.g.vimtex_view_general_viewer = "zathura"
|
||||||
|
|
||||||
|
vim.g.vimtex_compiler_latexmk_engines = { _ = "-lualatex" }
|
||||||
|
|||||||
Reference in New Issue
Block a user