summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Segundo2024-12-08 12:58:53 +0100
committerChristian Segundo2024-12-08 12:58:53 +0100
commit76fe939843c98575a44a637725c630c2bc264162 (patch)
treee42320d817a416efe03bb225cb1a38c7b93e6aeb
parent2629238d08a0d2d5ac074eb9eff62e7f7985de31 (diff)
downloadconfig-76fe939843c98575a44a637725c630c2bc264162.tar.gz
add abook to cmp
-rw-r--r--lua/plugins/lsp/cmp.lua9
1 files changed, 7 insertions, 2 deletions
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",
+ },
}