summaryrefslogtreecommitdiff
path: root/lua/plugins/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/lsp')
-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",
+ },
}