From 4ca15d0aa017119670ae454d69911e1ee0e55131 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Sat, 23 Apr 2022 21:22:44 +0200 Subject: style: format --- fnl/config/cmp.fnl | 71 +++++++++++++++++++++++++++--------------------------- 1 file changed, 36 insertions(+), 35 deletions(-) (limited to 'fnl/config/cmp.fnl') diff --git a/fnl/config/cmp.fnl b/fnl/config/cmp.fnl index 95e5baa..25f19f8 100644 --- a/fnl/config/cmp.fnl +++ b/fnl/config/cmp.fnl @@ -6,38 +6,39 @@ luasnip (util.load-plugin :luasnip)] ;;((require :luasnip/loaders/from_vscode).lazy_load) (lspkind.init) - (cmp.setup {:snippet {:expand (fn [args] - (luasnip.lsp_expand args.body))} - :mapping {: (cmp.mapping.select_prev_item) - : (cmp.mapping.select_next_item) - : (cmp.mapping (cmp.mapping.scroll_docs -1) - [:i :c]) - : (cmp.mapping (cmp.mapping.scroll_docs 1) [:i :c]) - : (cmp.mapping (cmp.mapping.complete) [:i :c]) - : (cmp.mapping {:i (cmp.mapping.abort) - :c (cmp.mapping.close)}) - : (cmp.mapping.confirm {:select true}) - : (cmp.mapping.confirm {:select true})} - :sources [{:name :nvim_lsp} - {:name :nvim_lua} - {:name :luasnip} - {:name :buffer :keyword_length 4} - {:name :path :keyword_length 6}] - :formatting {:format (lspkind.cmp_format {:with_text true - :menu {:buffer "[Buf]" - :nvim_lsp "[LSP]" - :nvim_lua "[api]" - :path "[path]" - :luasnip "[Snip]"}})} - :window { - :documentation {:border ["╭" - "─" - "╮" - "│" - "╯" - "─" - "╰" - "│"]}} - :confirm_opts {:behavior cmp.ConfirmBehavior.Replace - :select false} - :experimental {:ghost_text false :native_menu false}})) + (cmp.setup { + :snippet {:expand (fn [args] + (luasnip.lsp_expand args.body))} + :mapping {: (cmp.mapping.select_prev_item) + : (cmp.mapping.select_next_item) + : (cmp.mapping (cmp.mapping.scroll_docs -1) + [:i :c]) + : (cmp.mapping (cmp.mapping.scroll_docs 1) [:i :c]) + : (cmp.mapping (cmp.mapping.complete) [:i :c]) + : (cmp.mapping {:i (cmp.mapping.abort) + :c (cmp.mapping.close)}) + : (cmp.mapping.confirm {:select true}) + : (cmp.mapping.confirm {:select true})} + :sources [{:name :nvim_lsp} + {:name :nvim_lua} + {:name :luasnip} + {:name :buffer :keyword_length 4} + {:name :path :keyword_length 6}] + :formatting {:format (lspkind.cmp_format {:with_text true + :menu {:buffer "[Buf]" + :nvim_lsp "[LSP]" + :nvim_lua "[api]" + :path "[path]" + :luasnip "[Snip]"}})} + :window { + :documentation {:border ["╭" + "─" + "╮" + "│" + "╯" + "─" + "╰" + "│"]}} + :confirm_opts {:behavior cmp.ConfirmBehavior.Replace + :select false} + :experimental {:ghost_text false :native_menu false}})) -- cgit v1.2.3-70-g09d2