no magic numbers

This commit is contained in:
2026-01-29 14:00:50 -05:00
parent 10c20b619a
commit 3b6d7d95ce
+13 -9
View File
@@ -1,8 +1,11 @@
;; Plugin specs in Fennel ;; Plugin specs in Fennel
;; This file is compiled to lua/plugins/init.lua by nfnl ;; 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 [;; Tokyonight - Colorscheme
{1 "folke/tokyonight.nvim" {repo "folke/tokyonight.nvim"
:lazy false :lazy false
:priority 1000 :priority 1000
:config (fn [] :config (fn []
@@ -14,7 +17,7 @@
(vim.cmd.colorscheme "tokyonight"))} (vim.cmd.colorscheme "tokyonight"))}
;; Conjure - Interactive REPL for Fennel, Clojure, Lisp, etc. ;; Conjure - Interactive REPL for Fennel, Clojure, Lisp, etc.
{1 "Olical/conjure" {repo "Olical/conjure"
:ft ["fennel" "clojure" "lisp" "scheme" "racket" "lua"] :ft ["fennel" "clojure" "lisp" "scheme" "racket" "lua"]
:config (fn [] :config (fn []
;; Enable HUD floating window ;; Enable HUD floating window
@@ -23,7 +26,7 @@
;; nvim-paredit - Structural editing for Lisp ;; nvim-paredit - Structural editing for Lisp
;; Default keybindings: >)/<) slurp/barf forward, <(/>( slurp/barf backward ;; Default keybindings: >)/<) slurp/barf forward, <(/>( slurp/barf backward
;; >e/<e drag element, >f/<f drag form, E/W/B element motions ;; >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"] :ft ["fennel" "clojure" "lisp" "scheme" "racket"]
:config (fn [] :config (fn []
(local paredit (require :nvim-paredit)) (local paredit (require :nvim-paredit))
@@ -51,20 +54,21 @@
;; Mason - Package manager for LSP servers, DAP servers, linters, formatters ;; Mason - Package manager for LSP servers, DAP servers, linters, formatters
;; Run :MasonInstall clojure_lsp lua_ls to install servers ;; Run :MasonInstall clojure_lsp lua_ls to install servers
{1 "williamboman/mason.nvim" {repo "williamboman/mason.nvim"
:cmd ["Mason" "MasonInstall" "MasonUpdate"] :cmd ["Mason" "MasonInstall" "MasonUpdate"]
:build ":MasonUpdate" :build ":MasonUpdate"
:opts {:ui {:border "rounded"}}} :opts {:ui {:border "rounded"}}}
;; which-key - Shows keybinding hints ;; 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" :event "VeryLazy"
:opts {} :opts {}
:config (fn [_ opts] :config (fn [_ opts]
(local wk (require :which-key)) (local wk (require :which-key))
(wk.setup opts) (wk.setup opts)
(wk.add (wk.add
[{1 "<leader>f" :group "find"} [{lhs "<leader>f" :group "find"}
{1 "<leader>b" :group "buffer"} {lhs "<leader>b" :group "buffer"}
{1 "<leader>r" :group "refactor"} {lhs "<leader>r" :group "refactor"}
{1 "<leader>c" :group "code"}]))}] {lhs "<leader>c" :group "code"}]))}]