summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor/cmp.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-24 01:12:42 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-24 01:12:42 +0200
commit8ad2f8c9afb308e7a8a1133f578e3352442f770a (patch)
treea7a05ed7c472f186d6380dd918e2318d6d951330 /fnl/plugins/editor/cmp.fnl
parentfd69ec549594d53b9503212d93a9a44f10eef478 (diff)
Restructure plugin configs
Diffstat (limited to 'fnl/plugins/editor/cmp.fnl')
-rw-r--r--fnl/plugins/editor/cmp.fnl25
1 files changed, 12 insertions, 13 deletions
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}