about summary refs log tree commit diff
path: root/fnl/nvrc/packs
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-27 16:02:14 +0900
committersefidel <contact@sefidel.net>2022-02-27 16:02:14 +0900
commit003b21050c16a441d5322bfeaedf3c4bb73050dd (patch)
tree95347ac17e9363af30f4ca33cd4833b8a7d0d038 /fnl/nvrc/packs
parentd91ebf6ec4da60143685ba01f0f25bd9d0bafc2c (diff)
downloadnvimrc-003b21050c16a441d5322bfeaedf3c4bb73050dd.tar.gz
nvimrc-003b21050c16a441d5322bfeaedf3c4bb73050dd.zip
feat(pack): add cmp-buffer, cmp-rg
Diffstat (limited to 'fnl/nvrc/packs')
-rw-r--r--fnl/nvrc/packs/cmp.fnl8
1 files changed, 6 insertions, 2 deletions
diff --git a/fnl/nvrc/packs/cmp.fnl b/fnl/nvrc/packs/cmp.fnl
index 616a39d..06c3ea4 100644
--- a/fnl/nvrc/packs/cmp.fnl
+++ b/fnl/nvrc/packs/cmp.fnl
@@ -38,7 +38,9 @@
                                                        (. icons vim-item.kind)
                                                        vim-item.kind))
                                    (set vim-item.menu
-                                        (. {:nvim_lsp "[LSP]"}
+                                        (. {:nvim_lsp "[LSP]"
+                                            :buffer "[BUF]"
+                                            :rg "[RG]"}
                                            entry.source.name))
                                    vim-item)}
             :mapping {:<C-p> (cmp.mapping.select_prev_item)
@@ -60,4 +62,6 @@
                                                   (fallback)))
                                              :c (cmp.mapping.select_prev_item {:select true})})}
             :sources [{:name :nvim_lsp}
-                      {:name :nvim_lsp_signature_help}]})
+                      {:name :nvim_lsp_signature_help}
+                      {:name :buffer}
+                      {:name :rg}]})