summaryrefslogtreecommitdiff
path: root/fnl/config/cmp.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 18:52:34 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 18:52:34 +0200
commitb74c9dd22e632bbe720587db92966c4d6811b766 (patch)
treef68e5bb862fd5a800f86852e535d29984f461cb3 /fnl/config/cmp.fnl
parent274648011686b1c822e63b03bdcc6f2ce8e9b41e (diff)
style: format with fnlfmt
Diffstat (limited to 'fnl/config/cmp.fnl')
-rw-r--r--fnl/config/cmp.fnl60
1 files changed, 27 insertions, 33 deletions
diff --git a/fnl/config/cmp.fnl b/fnl/config/cmp.fnl
index 34cc026..e4e16da 100644
--- a/fnl/config/cmp.fnl
+++ b/fnl/config/cmp.fnl
@@ -1,38 +1,32 @@
;; Configuration for completion plugin.
-(module config.cmp
- {autoload {nvim aniseed.nvim
- util util}})
-
+(module config.cmp {autoload {nvim aniseed.nvim util util}})
(let [cmp (util.load-plugin :cmp)
lspkind (util.load-plugin :lspkind)
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 {
- "<C-k>" (cmp.mapping.select_prev_item)
- "<C-j>" (cmp.mapping.select_next_item)}
- :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]"
- }})}
- :documentation {
- :border [ "╭" "─" "╮" "│" "╯" "─" "╰" "│" ]}
- :experimental {
- :ghost_text false
- :native_menu false}}))
+ ;;((require :luasnip/loaders/from_vscode).lazy_load)
+ (lspkind.init)
+ (cmp.setup {:snippet {:expand (fn [args]
+ (luasnip.lsp_expand args.body))}
+ :mapping {:<C-k> (cmp.mapping.select_prev_item)
+ :<C-j> (cmp.mapping.select_next_item)}
+ :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]"}})}
+ :documentation {:border ["╭"
+ "─"
+ "╮"
+ "│"
+ "╯"
+ "─"
+ "╰"
+ "│"]}
+ :experimental {:ghost_text false :native_menu false}}))