diff options
author | Christian Segundo | 2024-12-08 12:58:53 +0100 |
---|---|---|
committer | Christian Segundo | 2024-12-08 12:58:53 +0100 |
commit | 76fe939843c98575a44a637725c630c2bc264162 (patch) | |
tree | e42320d817a416efe03bb225cb1a38c7b93e6aeb /lua/plugins | |
parent | 2629238d08a0d2d5ac074eb9eff62e7f7985de31 (diff) | |
download | config-76fe939843c98575a44a637725c630c2bc264162.tar.gz |
add abook to cmp
Diffstat (limited to 'lua/plugins')
-rw-r--r-- | lua/plugins/lsp/cmp.lua | 9 |
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", + }, } |