From 8ad2f8c9afb308e7a8a1133f578e3352442f770a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 24 Sep 2023 01:12:42 +0200 Subject: Restructure plugin configs --- fnl/plugins/editor/cmp.fnl | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'fnl/plugins/editor/cmp.fnl') diff --git a/fnl/plugins/editor/cmp.fnl b/fnl/plugins/editor/cmp.fnl index c0ad52a..f3d2906 100644 --- a/fnl/plugins/editor/cmp.fnl +++ b/fnl/plugins/editor/cmp.fnl @@ -1,5 +1,16 @@ ;; Configuration for completion plugin. +(local dependencies [:hrsh7th/cmp-buffer + :onsails/lspkind-nvim + :hrsh7th/cmp-nvim-lsp + :hrsh7th/cmp-cmdline + :petertriho/cmp-git + :L3MON4D3/LuaSnip + :rafamadriz/friendly-snippets + :hrsh7th/cmp-path + :saadparwaiz1/cmp_luasnip + :f3fora/cmp-spell]) + (fn config [] (let [cmp (require :cmp) lspkind (require :lspkind) @@ -52,16 +63,4 @@ :select false} :experimental {:ghost_text false :native_menu false}}))) -{1 :hrsh7th/nvim-cmp - :dependencies [:hrsh7th/cmp-buffer - :onsails/lspkind-nvim - :hrsh7th/cmp-nvim-lsp - :hrsh7th/cmp-cmdline - :petertriho/cmp-git - :L3MON4D3/LuaSnip - :rafamadriz/friendly-snippets - :hrsh7th/cmp-path - :saadparwaiz1/cmp_luasnip - :f3fora/cmp-spell] - :event :InsertEnter - : config} +{1 :hrsh7th/nvim-cmp : dependencies :event :InsertEnter : config} -- cgit v1.2.3-70-g09d2