summaryrefslogtreecommitdiff
path: root/dot_config/nvim/fnl/plugins/init.fnl
blob: 876d47334b9b5412d27ac90d2d19be18c88545f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(import-macros {:mixed-table ·} :toast.macros)
(local conjureft [:clojure
                  :fennel
                  :hy
                  :janet
                  :julia
                  :lisp
                  :racket
                  :scheme])

; simple stuff that doesn't need any handling
; and doesn't fit in elsewhere
[(· :folke/lazy.nvim & :version false)
 (· :folke/snacks.nvim &
    :priority 1000 :lazy false
    :opts {:indent    {:enabled true
                       :scope   {:enabled false}}
           :input     {:enabled true}
           :quickfile {:enabled true}})
 (· :Olical/nfnl     & :ft :fennel)
 (· :Olical/conjure &
    :branch :main
    :config (fn [_ opts]
             (each [k v (pairs opts)]
              (tset vim.g (.. :conjure# k) v)))
    :opts {:mapping#prefix :<localleader>e
           :extract#tree_sitter#enabled true
           ; disabling lua, python, rust
           :filetypes conjureft
           :filetype#janet  :conjure.client.janet.stdio}
    :ft conjureft)
 [:tpope/vim-repeat]]