no magic numbers
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
;; Plugin specs in Fennel
|
||||
;; This file is compiled to lua/plugins/init.lua by nfnl
|
||||
|
||||
(local repo 1) ;; lazy.nvim spec index for the git repo (e.g., "folke/plugin")
|
||||
(local lhs 1) ;; which-key spec index for the key sequence (see which-key below)
|
||||
|
||||
[;; Tokyonight - Colorscheme
|
||||
{1 "folke/tokyonight.nvim"
|
||||
{repo "folke/tokyonight.nvim"
|
||||
:lazy false
|
||||
:priority 1000
|
||||
:config (fn []
|
||||
@@ -14,7 +17,7 @@
|
||||
(vim.cmd.colorscheme "tokyonight"))}
|
||||
|
||||
;; Conjure - Interactive REPL for Fennel, Clojure, Lisp, etc.
|
||||
{1 "Olical/conjure"
|
||||
{repo "Olical/conjure"
|
||||
:ft ["fennel" "clojure" "lisp" "scheme" "racket" "lua"]
|
||||
:config (fn []
|
||||
;; Enable HUD floating window
|
||||
@@ -23,7 +26,7 @@
|
||||
;; nvim-paredit - Structural editing for Lisp
|
||||
;; Default keybindings: >)/<) slurp/barf forward, <(/>( slurp/barf backward
|
||||
;; >e/<e drag element, >f/<f drag form, E/W/B element motions
|
||||
{1 "julienvincent/nvim-paredit"
|
||||
{repo "julienvincent/nvim-paredit"
|
||||
:ft ["fennel" "clojure" "lisp" "scheme" "racket"]
|
||||
:config (fn []
|
||||
(local paredit (require :nvim-paredit))
|
||||
@@ -51,20 +54,21 @@
|
||||
|
||||
;; Mason - Package manager for LSP servers, DAP servers, linters, formatters
|
||||
;; Run :MasonInstall clojure_lsp lua_ls to install servers
|
||||
{1 "williamboman/mason.nvim"
|
||||
{repo "williamboman/mason.nvim"
|
||||
:cmd ["Mason" "MasonInstall" "MasonUpdate"]
|
||||
:build ":MasonUpdate"
|
||||
:opts {:ui {:border "rounded"}}}
|
||||
|
||||
;; which-key - Shows keybinding hints
|
||||
{1 "folke/which-key.nvim"
|
||||
;; lhs constant defined at top - which-key specs use index [1] for the key sequence
|
||||
{repo "folke/which-key.nvim"
|
||||
:event "VeryLazy"
|
||||
:opts {}
|
||||
:config (fn [_ opts]
|
||||
(local wk (require :which-key))
|
||||
(wk.setup opts)
|
||||
(wk.add
|
||||
[{1 "<leader>f" :group "find"}
|
||||
{1 "<leader>b" :group "buffer"}
|
||||
{1 "<leader>r" :group "refactor"}
|
||||
{1 "<leader>c" :group "code"}]))}]
|
||||
[{lhs "<leader>f" :group "find"}
|
||||
{lhs "<leader>b" :group "buffer"}
|
||||
{lhs "<leader>r" :group "refactor"}
|
||||
{lhs "<leader>c" :group "code"}]))}]
|
||||
|
||||
Reference in New Issue
Block a user