about summary refs log tree commit diff
path: root/fnl/nvrc
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-27 16:03:49 +0900
committersefidel <contact@sefidel.net>2022-02-27 16:03:49 +0900
commit4881bb0aa5736be203db26aa9e3fcc7bdae8e2fb (patch)
treee8c82215d4de1818663f30e23cfe999627965f77 /fnl/nvrc
parent003b21050c16a441d5322bfeaedf3c4bb73050dd (diff)
downloadnvimrc-4881bb0aa5736be203db26aa9e3fcc7bdae8e2fb.tar.gz
nvimrc-4881bb0aa5736be203db26aa9e3fcc7bdae8e2fb.zip
Revert "feat(pack): add cmp-buffer, cmp-rg"
This reverts commit 414c82ba6d04a37fa2c2b00668d746ece3b68908.
Diffstat (limited to 'fnl/nvrc')
-rw-r--r--fnl/nvrc/pack.fnl5
-rw-r--r--fnl/nvrc/packs/cmp.fnl8
2 files changed, 3 insertions, 10 deletions
diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl
index 04771ff..fd13659 100644
--- a/fnl/nvrc/pack.fnl
+++ b/fnl/nvrc/pack.fnl
@@ -28,12 +28,9 @@
 (pack! :stefandtw/quickfix-reflector.vim {:ft :qf})
 
 (pack! :L3MON4D3/LuaSnip {:module :luasnip})
-(pack! :hrsh7th/nvim-cmp {:req :cmp :event :InsertEnter
-                          :requires [(pack :hrsh7th/cmp-buffer {:after :nvim-cmp})
-                                     (pack :lukas-reineke/cmp-rg {:after :nvim-cmp})]})
+(pack! :hrsh7th/nvim-cmp {:req :cmp :event :InsertEnter})
 (pack! :numToStr/Comment.nvim {:module :Comment :init :Comment})
 (pack! :ibhagwan/fzf-lua {:req :fzf :module :fzf-lua})
 (pack! :ggandor/lightspeed.nvim)
 
 (unpack!)
-
diff --git a/fnl/nvrc/packs/cmp.fnl b/fnl/nvrc/packs/cmp.fnl
index 06c3ea4..616a39d 100644
--- a/fnl/nvrc/packs/cmp.fnl
+++ b/fnl/nvrc/packs/cmp.fnl
@@ -38,9 +38,7 @@
                                                        (. icons vim-item.kind)
                                                        vim-item.kind))
                                    (set vim-item.menu
-                                        (. {:nvim_lsp "[LSP]"
-                                            :buffer "[BUF]"
-                                            :rg "[RG]"}
+                                        (. {:nvim_lsp "[LSP]"}
                                            entry.source.name))
                                    vim-item)}
             :mapping {:<C-p> (cmp.mapping.select_prev_item)
@@ -62,6 +60,4 @@
                                                   (fallback)))
                                              :c (cmp.mapping.select_prev_item {:select true})})}
             :sources [{:name :nvim_lsp}
-                      {:name :nvim_lsp_signature_help}
-                      {:name :buffer}
-                      {:name :rg}]})
+                      {:name :nvim_lsp_signature_help}]})