summaryrefslogtreecommitdiff
path: root/fnl/plugins
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
commit2a94573f54c69a9af7536586ab2c03eb88bda5e7 (patch)
tree48e430773d56baef8c751fb8a6b4d76303b61636 /fnl/plugins
parent16198ca3bcd0ddd61f8d18280769c6f226b2b7ce (diff)
Refactor
Diffstat (limited to 'fnl/plugins')
-rw-r--r--fnl/plugins/alpha.fnl (renamed from fnl/plugins/editor/alpha.fnl)2
-rw-r--r--fnl/plugins/autopairs.fnl (renamed from fnl/plugins/editor/autopairs.fnl)0
-rw-r--r--fnl/plugins/better-escape.fnl (renamed from fnl/plugins/editor/better-escape.fnl)0
-rw-r--r--fnl/plugins/bqf.fnl (renamed from fnl/plugins/editor/bqf.fnl)0
-rw-r--r--fnl/plugins/bufdel.fnl (renamed from fnl/plugins/editor/bufdel.fnl)0
-rw-r--r--fnl/plugins/cmp.fnl (renamed from fnl/plugins/editor/cmp.fnl)0
-rw-r--r--fnl/plugins/colorizer.fnl (renamed from fnl/plugins/editor/colorizer.fnl)0
-rw-r--r--fnl/plugins/colorscheme.fnl (renamed from fnl/plugins/editor/colorscheme.fnl)0
-rw-r--r--fnl/plugins/comment.fnl (renamed from fnl/plugins/editor/comment.fnl)0
-rw-r--r--fnl/plugins/conform.fnl (renamed from fnl/plugins/editor/conform.fnl)0
-rw-r--r--fnl/plugins/core/lazy.fnl42
-rw-r--r--fnl/plugins/dadbod.fnl (renamed from fnl/plugins/editor/dadbod.fnl)0
-rw-r--r--fnl/plugins/dial.fnl (renamed from fnl/plugins/editor/dial.fnl)0
-rw-r--r--fnl/plugins/diffview.fnl (renamed from fnl/plugins/editor/diffview.fnl)0
-rw-r--r--fnl/plugins/dressing.fnl (renamed from fnl/plugins/editor/dressing.fnl)0
-rw-r--r--fnl/plugins/easyread.fnl (renamed from fnl/plugins/editor/easyread.fnl)0
-rw-r--r--fnl/plugins/git-conflicts.fnl (renamed from fnl/plugins/editor/git-conflicts.fnl)0
-rw-r--r--fnl/plugins/git-worktree.fnl (renamed from fnl/plugins/editor/git-worktree.fnl)0
-rw-r--r--fnl/plugins/gitsigns.fnl (renamed from fnl/plugins/editor/gitsigns.fnl)2
-rw-r--r--fnl/plugins/harpoon.fnl (renamed from fnl/plugins/editor/harpoon.fnl)0
-rw-r--r--fnl/plugins/hotpot.fnl (renamed from fnl/plugins/core/hotpot.fnl)0
-rw-r--r--fnl/plugins/icons.fnl45
-rw-r--r--fnl/plugins/init.fnl18
-rw-r--r--fnl/plugins/leap.fnl (renamed from fnl/plugins/editor/leap.fnl)0
-rw-r--r--fnl/plugins/lsp/diagnostics.fnl2
-rw-r--r--fnl/plugins/lsp/init.fnl2
-rw-r--r--fnl/plugins/lsp/mason.fnl2
-rw-r--r--fnl/plugins/lualine.fnl (renamed from fnl/plugins/editor/lualine.fnl)2
-rw-r--r--fnl/plugins/minibar.fnl (renamed from fnl/plugins/editor/minibar.fnl)0
-rw-r--r--fnl/plugins/neogit.fnl (renamed from fnl/plugins/editor/neogit.fnl)0
-rw-r--r--fnl/plugins/nvim-lint.fnl (renamed from fnl/plugins/editor/nvim-lint.fnl)0
-rw-r--r--fnl/plugins/oil.fnl (renamed from fnl/plugins/editor/oil.fnl)2
-rw-r--r--fnl/plugins/orgmode.fnl (renamed from fnl/plugins/editor/orgmode.fnl)0
-rw-r--r--fnl/plugins/persistence.fnl (renamed from fnl/plugins/editor/persistence.fnl)0
-rw-r--r--fnl/plugins/spectre.fnl (renamed from fnl/plugins/editor/spectre.fnl)0
-rw-r--r--fnl/plugins/stay-in-place.fnl (renamed from fnl/plugins/editor/stay-in-place.fnl)0
-rw-r--r--fnl/plugins/surround.fnl (renamed from fnl/plugins/editor/surround.fnl)0
-rw-r--r--fnl/plugins/telescope.fnl (renamed from fnl/plugins/editor/telescope.fnl)2
-rw-r--r--fnl/plugins/textobjs.fnl (renamed from fnl/plugins/editor/textobjs.fnl)0
-rw-r--r--fnl/plugins/toggleterm.fnl (renamed from fnl/plugins/editor/toggleterm.fnl)0
-rw-r--r--fnl/plugins/treesitter.fnl (renamed from fnl/plugins/editor/treesitter.fnl)0
-rw-r--r--fnl/plugins/trouble.fnl (renamed from fnl/plugins/editor/trouble.fnl)6
-rw-r--r--fnl/plugins/undotree.fnl (renamed from fnl/plugins/editor/undotree.fnl)0
-rw-r--r--fnl/plugins/which-key.fnl (renamed from fnl/plugins/editor/which-key.fnl)2
-rw-r--r--fnl/plugins/window-picker.fnl (renamed from fnl/plugins/editor/window-picker.fnl)0
-rw-r--r--fnl/plugins/zen.fnl (renamed from fnl/plugins/editor/zen.fnl)0
46 files changed, 14 insertions, 115 deletions
diff --git a/fnl/plugins/editor/alpha.fnl b/fnl/plugins/alpha.fnl
index c933a99..89cfc2a 100644
--- a/fnl/plugins/editor/alpha.fnl
+++ b/fnl/plugins/alpha.fnl
@@ -1,6 +1,6 @@
;; A customizable greeter.
-(local icons (require :plugins.icons))
+(local icons (require :icons))
(local ascii-art [" ##############..... ############## "
" ##############......############## "
diff --git a/fnl/plugins/editor/autopairs.fnl b/fnl/plugins/autopairs.fnl
index 36e8ba5..36e8ba5 100644
--- a/fnl/plugins/editor/autopairs.fnl
+++ b/fnl/plugins/autopairs.fnl
diff --git a/fnl/plugins/editor/better-escape.fnl b/fnl/plugins/better-escape.fnl
index 5bd9b0c..5bd9b0c 100644
--- a/fnl/plugins/editor/better-escape.fnl
+++ b/fnl/plugins/better-escape.fnl
diff --git a/fnl/plugins/editor/bqf.fnl b/fnl/plugins/bqf.fnl
index 387ae19..387ae19 100644
--- a/fnl/plugins/editor/bqf.fnl
+++ b/fnl/plugins/bqf.fnl
diff --git a/fnl/plugins/editor/bufdel.fnl b/fnl/plugins/bufdel.fnl
index e14287e..e14287e 100644
--- a/fnl/plugins/editor/bufdel.fnl
+++ b/fnl/plugins/bufdel.fnl
diff --git a/fnl/plugins/editor/cmp.fnl b/fnl/plugins/cmp.fnl
index ca09329..ca09329 100644
--- a/fnl/plugins/editor/cmp.fnl
+++ b/fnl/plugins/cmp.fnl
diff --git a/fnl/plugins/editor/colorizer.fnl b/fnl/plugins/colorizer.fnl
index a61b3e5..a61b3e5 100644
--- a/fnl/plugins/editor/colorizer.fnl
+++ b/fnl/plugins/colorizer.fnl
diff --git a/fnl/plugins/editor/colorscheme.fnl b/fnl/plugins/colorscheme.fnl
index 85c83fd..85c83fd 100644
--- a/fnl/plugins/editor/colorscheme.fnl
+++ b/fnl/plugins/colorscheme.fnl
diff --git a/fnl/plugins/editor/comment.fnl b/fnl/plugins/comment.fnl
index 66abb33..66abb33 100644
--- a/fnl/plugins/editor/comment.fnl
+++ b/fnl/plugins/comment.fnl
diff --git a/fnl/plugins/editor/conform.fnl b/fnl/plugins/conform.fnl
index 511f695..511f695 100644
--- a/fnl/plugins/editor/conform.fnl
+++ b/fnl/plugins/conform.fnl
diff --git a/fnl/plugins/core/lazy.fnl b/fnl/plugins/core/lazy.fnl
deleted file mode 100644
index 30903f5..0000000
--- a/fnl/plugins/core/lazy.fnl
+++ /dev/null
@@ -1,42 +0,0 @@
-;; Lazy opts.
-
-(local icons (require :plugins.icons))
-
-(local opts {:install {:colorscheme [:no-clown-fiesta]}
- :debug false
- :defaults {:lazy false}
- :performance {:cache {:enabled true}
- :rtp {:disabled_plugins [:gzip
- :matchit
- :netrwPlugin
- :tarPlugin
- :tohtml
- :tutor
- :zipPlugin]}}
- :ui {:border :single
- :icons {:cmd (.. (. icons :cmd) " ")
- :config (.. (. icons :cog) " ")
- :event (.. (. icons :lightning) " ")
- :ft (.. (. icons :document) " ")
- :init (.. (. icons :cog) " ")
- :import (.. (. icons :import) " ")
- :keys (.. (. icons :keyboard) " ")
- :lazy (.. (. icons :sleep) " ")
- :loaded (.. (. icons :filled-orb) " ")
- :not_loaded (.. (. icons :orb) " ")
- :plugin (.. (. icons :package) " ")
- :runtime (.. (. icons :vim) " ")
- :source (.. (. icons :code) " ")
- :start (.. (. icons :play) " ")
- :task (.. (. icons :checkmark) " ")
- :list [(.. (. icons :filled-orb) " ")
- (.. (. icons :right-arrow) " ")
- (.. (. icons :star) " ")
- (.. (. icons :line) " ")]}}})
-
-(fn setup [plugins]
- (let [lazy (require :lazy)]
- (vim.keymap.set :n :<leader>y "<cmd>Lazy home<cr>" {:desc :Home})
- (lazy.setup plugins opts)))
-
-{: setup}
diff --git a/fnl/plugins/editor/dadbod.fnl b/fnl/plugins/dadbod.fnl
index c5ca5ec..c5ca5ec 100644
--- a/fnl/plugins/editor/dadbod.fnl
+++ b/fnl/plugins/dadbod.fnl
diff --git a/fnl/plugins/editor/dial.fnl b/fnl/plugins/dial.fnl
index 7a888eb..7a888eb 100644
--- a/fnl/plugins/editor/dial.fnl
+++ b/fnl/plugins/dial.fnl
diff --git a/fnl/plugins/editor/diffview.fnl b/fnl/plugins/diffview.fnl
index f041ab6..f041ab6 100644
--- a/fnl/plugins/editor/diffview.fnl
+++ b/fnl/plugins/diffview.fnl
diff --git a/fnl/plugins/editor/dressing.fnl b/fnl/plugins/dressing.fnl
index 60da1b0..60da1b0 100644
--- a/fnl/plugins/editor/dressing.fnl
+++ b/fnl/plugins/dressing.fnl
diff --git a/fnl/plugins/editor/easyread.fnl b/fnl/plugins/easyread.fnl
index 2652203..2652203 100644
--- a/fnl/plugins/editor/easyread.fnl
+++ b/fnl/plugins/easyread.fnl
diff --git a/fnl/plugins/editor/git-conflicts.fnl b/fnl/plugins/git-conflicts.fnl
index 4a4583b..4a4583b 100644
--- a/fnl/plugins/editor/git-conflicts.fnl
+++ b/fnl/plugins/git-conflicts.fnl
diff --git a/fnl/plugins/editor/git-worktree.fnl b/fnl/plugins/git-worktree.fnl
index 8812859..8812859 100644
--- a/fnl/plugins/editor/git-worktree.fnl
+++ b/fnl/plugins/git-worktree.fnl
diff --git a/fnl/plugins/editor/gitsigns.fnl b/fnl/plugins/gitsigns.fnl
index 8150f98..a194f3c 100644
--- a/fnl/plugins/editor/gitsigns.fnl
+++ b/fnl/plugins/gitsigns.fnl
@@ -41,7 +41,7 @@
:mode [:o :x]
:desc "GitSigns Select Hunk"}])
-(local icons (require :plugins.icons))
+(local icons (require :icons))
(local signs {:add {:text (. icons :git-add)}
:change {:text (. icons :git-add)}
diff --git a/fnl/plugins/editor/harpoon.fnl b/fnl/plugins/harpoon.fnl
index 0791f98..0791f98 100644
--- a/fnl/plugins/editor/harpoon.fnl
+++ b/fnl/plugins/harpoon.fnl
diff --git a/fnl/plugins/core/hotpot.fnl b/fnl/plugins/hotpot.fnl
index eba8083..eba8083 100644
--- a/fnl/plugins/core/hotpot.fnl
+++ b/fnl/plugins/hotpot.fnl
diff --git a/fnl/plugins/icons.fnl b/fnl/plugins/icons.fnl
deleted file mode 100644
index b1115cb..0000000
--- a/fnl/plugins/icons.fnl
+++ /dev/null
@@ -1,45 +0,0 @@
-;; Icons.
-
-{:error ""
- :warn ""
- :hint ""
- :info ""
- :git " "
- :search-project "󰺅"
- :search-files "󰱽"
- :search-text "󱎸"
- :notebook ""
- :recent-files "󱋢"
- :cog ""
- :org ""
- :checkmark ""
- :right-arrow ""
- :small-right-arrow ""
- :guillemet "»"
- :close ""
- :git-add "|"
- :git-delete "_"
- :git-top-delete "‾"
- :git-change-delete "~"
- :git-untracked "┆"
- :telescope ""
- :caret ">"
- :cmd ""
- :lightning ""
- :document ""
- :import ""
- :keyboard ""
- :sleep "󰒲"
- :filled-orb "●"
- :orb "○"
- :package "󰏗"
- :vim ""
- :code ""
- :play ""
- :star ""
- :line "‒"
- :ignored ""
- :unstaged ""
- :staged ""
- :conflict ""
-}
diff --git a/fnl/plugins/init.fnl b/fnl/plugins/init.fnl
deleted file mode 100644
index f451fc9..0000000
--- a/fnl/plugins/init.fnl
+++ /dev/null
@@ -1,18 +0,0 @@
-;; Load all plugins.
-
-(local editor-plugins (let [plugins []
- path (.. (vim.fn.stdpath :config)
- :/fnl/plugins/editor)]
- (each [fname (vim.fs.dir path)]
- (let [fname (fname:match "^(.*)%.fnl$")]
- (table.insert plugins
- (require (.. :plugins.editor. fname)))))
- plugins))
-
-(local plugins (let [plugins editor-plugins]
- (table.insert plugins (require :plugins.lsp))
- (table.insert plugins (require :plugins.core.hotpot))
- plugins))
-
-(let [lazy (require :plugins.core.lazy)]
- (lazy.setup plugins))
diff --git a/fnl/plugins/editor/leap.fnl b/fnl/plugins/leap.fnl
index c5b700d..c5b700d 100644
--- a/fnl/plugins/editor/leap.fnl
+++ b/fnl/plugins/leap.fnl
diff --git a/fnl/plugins/lsp/diagnostics.fnl b/fnl/plugins/lsp/diagnostics.fnl
index 8676924..f4a2a74 100644
--- a/fnl/plugins/lsp/diagnostics.fnl
+++ b/fnl/plugins/lsp/diagnostics.fnl
@@ -1,6 +1,6 @@
;; Handlers for the requests and responses from and to the lsp server.
-(local icons (require :plugins.icons))
+(local icons (require :icons))
(local signs [{:name :DiagnosticSignError :text (. icons :error)}
{:name :DiagnosticSignWarn :text (. icons :warn)}
diff --git a/fnl/plugins/lsp/init.fnl b/fnl/plugins/lsp/init.fnl
index f04ba86..c06a5aa 100644
--- a/fnl/plugins/lsp/init.fnl
+++ b/fnl/plugins/lsp/init.fnl
@@ -1,3 +1 @@
;; Lsp plugins.
-
-[(require :plugins.lsp.lspconfig) (require :plugins.lsp.mason)]
diff --git a/fnl/plugins/lsp/mason.fnl b/fnl/plugins/lsp/mason.fnl
index f94f328..4187381 100644
--- a/fnl/plugins/lsp/mason.fnl
+++ b/fnl/plugins/lsp/mason.fnl
@@ -1,6 +1,6 @@
;; Mason manages external tooling, e.g. lsp, formatters, and linters.
-(local icons (require :plugins.icons))
+(local icons (require :icons))
(local opts {:ui {:border :single
:icons {:package_installed (.. (. icons :checkmark) " ")
diff --git a/fnl/plugins/editor/lualine.fnl b/fnl/plugins/lualine.fnl
index a34e73e..1afad4f 100644
--- a/fnl/plugins/editor/lualine.fnl
+++ b/fnl/plugins/lualine.fnl
@@ -1,6 +1,6 @@
;; Statusbar.
-(local icons (require :plugins.icons))
+(local icons (require :icons))
(local disable [:neogitstatus
:netrw
diff --git a/fnl/plugins/editor/minibar.fnl b/fnl/plugins/minibar.fnl
index d25489c..d25489c 100644
--- a/fnl/plugins/editor/minibar.fnl
+++ b/fnl/plugins/minibar.fnl
diff --git a/fnl/plugins/editor/neogit.fnl b/fnl/plugins/neogit.fnl
index a84c9dd..a84c9dd 100644
--- a/fnl/plugins/editor/neogit.fnl
+++ b/fnl/plugins/neogit.fnl
diff --git a/fnl/plugins/editor/nvim-lint.fnl b/fnl/plugins/nvim-lint.fnl
index 2ea01fa..2ea01fa 100644
--- a/fnl/plugins/editor/nvim-lint.fnl
+++ b/fnl/plugins/nvim-lint.fnl
diff --git a/fnl/plugins/editor/oil.fnl b/fnl/plugins/oil.fnl
index a15c22e..fac1532 100644
--- a/fnl/plugins/editor/oil.fnl
+++ b/fnl/plugins/oil.fnl
@@ -6,7 +6,7 @@
:<C-h> :actions.select_split
:<C-t> :actions.select_tab
:<C-p> :actions.preview
- :<C-c> :actions.close
+ :q :actions.close
:<C-l> :actions.refresh
:- :actions.parent
:_ :actions.open_cwd
diff --git a/fnl/plugins/editor/orgmode.fnl b/fnl/plugins/orgmode.fnl
index abf98f7..abf98f7 100644
--- a/fnl/plugins/editor/orgmode.fnl
+++ b/fnl/plugins/orgmode.fnl
diff --git a/fnl/plugins/editor/persistence.fnl b/fnl/plugins/persistence.fnl
index 1939564..1939564 100644
--- a/fnl/plugins/editor/persistence.fnl
+++ b/fnl/plugins/persistence.fnl
diff --git a/fnl/plugins/editor/spectre.fnl b/fnl/plugins/spectre.fnl
index c7307f8..c7307f8 100644
--- a/fnl/plugins/editor/spectre.fnl
+++ b/fnl/plugins/spectre.fnl
diff --git a/fnl/plugins/editor/stay-in-place.fnl b/fnl/plugins/stay-in-place.fnl
index b264a05..b264a05 100644
--- a/fnl/plugins/editor/stay-in-place.fnl
+++ b/fnl/plugins/stay-in-place.fnl
diff --git a/fnl/plugins/editor/surround.fnl b/fnl/plugins/surround.fnl
index e8fda32..e8fda32 100644
--- a/fnl/plugins/editor/surround.fnl
+++ b/fnl/plugins/surround.fnl
diff --git a/fnl/plugins/editor/telescope.fnl b/fnl/plugins/telescope.fnl
index 720c69c..1489f06 100644
--- a/fnl/plugins/editor/telescope.fnl
+++ b/fnl/plugins/telescope.fnl
@@ -108,7 +108,7 @@
(fn config []
(let [telescope (require :telescope)
actions (require :telescope.actions)
- icons (require :plugins.icons)]
+ icons (require :icons)]
(telescope.setup {:defaults {:prompt_prefix (.. " " (. icons :telescope)
" ")
:selection_caret (.. (. icons :caret) " ")
diff --git a/fnl/plugins/editor/textobjs.fnl b/fnl/plugins/textobjs.fnl
index 8d68ac3..8d68ac3 100644
--- a/fnl/plugins/editor/textobjs.fnl
+++ b/fnl/plugins/textobjs.fnl
diff --git a/fnl/plugins/editor/toggleterm.fnl b/fnl/plugins/toggleterm.fnl
index 12168aa..12168aa 100644
--- a/fnl/plugins/editor/toggleterm.fnl
+++ b/fnl/plugins/toggleterm.fnl
diff --git a/fnl/plugins/editor/treesitter.fnl b/fnl/plugins/treesitter.fnl
index 103948d..103948d 100644
--- a/fnl/plugins/editor/treesitter.fnl
+++ b/fnl/plugins/treesitter.fnl
diff --git a/fnl/plugins/editor/trouble.fnl b/fnl/plugins/trouble.fnl
index b9a4e3c..35e67a9 100644
--- a/fnl/plugins/editor/trouble.fnl
+++ b/fnl/plugins/trouble.fnl
@@ -2,6 +2,12 @@
(local keys [{1 :<leader>jt
2 "<cmd>TroubleToggle workspace_diagnostics<cr>"
+ :desc :Trouble}
+ {1 "[e"
+ 2 "<cmd>lua require(\"trouble\").previous({skip_groups = true, jump = true});<cr>"
+ :desc :Trouble}
+ {1 "[n"
+ 2 "<cmd>lua require(\"trouble\").next({skip_groups = true, jump = true});<cr>"
:desc :Trouble}])
(local opts {:position :bottom
diff --git a/fnl/plugins/editor/undotree.fnl b/fnl/plugins/undotree.fnl
index 05de139..05de139 100644
--- a/fnl/plugins/editor/undotree.fnl
+++ b/fnl/plugins/undotree.fnl
diff --git a/fnl/plugins/editor/which-key.fnl b/fnl/plugins/which-key.fnl
index 962183e..9251832 100644
--- a/fnl/plugins/editor/which-key.fnl
+++ b/fnl/plugins/which-key.fnl
@@ -1,6 +1,6 @@
;; Which-key provides a pop-up menu for some key mappings.
-(local icons (require :plugins.icons))
+(local icons (require :icons))
(local opts {:plugins {:marks true
:registers true
diff --git a/fnl/plugins/editor/window-picker.fnl b/fnl/plugins/window-picker.fnl
index e396ce1..e396ce1 100644
--- a/fnl/plugins/editor/window-picker.fnl
+++ b/fnl/plugins/window-picker.fnl
diff --git a/fnl/plugins/editor/zen.fnl b/fnl/plugins/zen.fnl
index e9a1576..e9a1576 100644
--- a/fnl/plugins/editor/zen.fnl
+++ b/fnl/plugins/zen.fnl