From 76fe939843c98575a44a637725c630c2bc264162 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sun, 8 Dec 2024 12:58:53 +0100 Subject: add abook to cmp --- lua/plugins/lsp/cmp.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/plugins/lsp/cmp.lua b/lua/plugins/lsp/cmp.lua index 004c265..4b93ccf 100644 --- a/lua/plugins/lsp/cmp.lua +++ b/lua/plugins/lsp/cmp.lua @@ -16,7 +16,7 @@ return { { name = "path" }, { name = "emoji" }, }, - formatting = { + { name = "abook" }, format = { mode = "symbol_text", maxwidth = 50, @@ -31,7 +31,7 @@ return { latex_symbols = "[Latex]", }, }, - }, + abook = "[Abook]", }, config = function(_, opts) local cmp = require("cmp") @@ -94,4 +94,9 @@ return { { "saadparwaiz1/cmp_luasnip" }, { "someone-stole-my-name/cmp-ledger" }, }, + { + -- Not sure how stable is this, but it works for now. The first element + -- always points to $HOME/.config/nvim + dir = vim.api.nvim_list_runtime_paths()[1] .. "/lua/plugins/dev/cmp-abook", + }, } -- cgit v1.2.3