summaryrefslogtreecommitdiff
path: root/fnl/plugins/ui
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins/ui')
-rw-r--r--fnl/plugins/ui/alpha.fnl49
-rw-r--r--fnl/plugins/ui/bqf.fnl3
-rw-r--r--fnl/plugins/ui/easyread.fnl5
-rw-r--r--fnl/plugins/ui/lualine.fnl91
-rw-r--r--fnl/plugins/ui/minibar.fnl31
5 files changed, 0 insertions, 179 deletions
diff --git a/fnl/plugins/ui/alpha.fnl b/fnl/plugins/ui/alpha.fnl
deleted file mode 100644
index c9dce50..0000000
--- a/fnl/plugins/ui/alpha.fnl
+++ /dev/null
@@ -1,49 +0,0 @@
-;; A customizable greeter.
-
-(local icons (require :plugins.icons))
-
-(local ascii-art [" ##############..... ############## "
- " ##############......############## "
- " ##########..........########## "
- " ##########........########## "
- " ##########.......########## "
- " ##########.....##########.. "
- " ##########....##########..... "
- " ..##########..##########......... "
- " ....##########.#########............. "
- " ..################JJJ............ "
- " ################............. "
- " ##############.JJJ.JJJJJJJJJJ "
- " ############...JJ...JJ..JJ JJ "
- " ##########....JJ...JJ..JJ JJ "
- " ########......JJJ..JJJ JJJ JJJ "
- " ###### ......... "
- " ..... "
- " . "])
-
-(fn setup []
- (let [alpha (require :alpha)]
- (let [dashboard (require :alpha.themes.dashboard)]
- (set dashboard.section.header.val ascii-art)
- (set dashboard.section.buttons.val
- [(dashboard.button :f (.. (. icons :search-files) " Find file")
- ":Telescope find_files theme=dropdown<CR>")
- (dashboard.button :g (.. (. icons :search-text) " Find text")
- ":Telescope live_grep theme=dropdown<CR>")
- (dashboard.button :p (.. (. icons :search-project) " Find project")
- ":Telescope projects theme=dropdown<CR>")
- (dashboard.button :r (.. (. icons :recent-files) " Recently used files")
- ":Telescope oldfiles theme=dropdown<CR>")
- (dashboard.button :t (.. (. icons :cog) " Configuration")
- ":e ~/.config/nvim/init.lua <CR>")
- (dashboard.button :o (.. (. icons :org) " Org")
- ":Telescope find_files theme=dropdown cwd=~/.local/share/org<CR>")])
- (set dashboard.section.header.opts.hl :AlphaHeader)
- (set dashboard.section.buttons.opts.hl :AlphaButtons)
- (set dashboard.opts.opts.noautocmd true)
- (alpha.setup dashboard.opts))))
-
-{1 :goolord/alpha-nvim
- :event :VimEnter
- :config (fn []
- (setup))}
diff --git a/fnl/plugins/ui/bqf.fnl b/fnl/plugins/ui/bqf.fnl
deleted file mode 100644
index e2b0791..0000000
--- a/fnl/plugins/ui/bqf.fnl
+++ /dev/null
@@ -1,3 +0,0 @@
-;; Make Neovim's quickfix window better.
-
-{1 :kevinhwang91/nvim-bqf :event :BufReadPost :config true}
diff --git a/fnl/plugins/ui/easyread.fnl b/fnl/plugins/ui/easyread.fnl
deleted file mode 100644
index c456726..0000000
--- a/fnl/plugins/ui/easyread.fnl
+++ /dev/null
@@ -1,5 +0,0 @@
-;; Bionic like reading.
-
-{1 :JellyApple102/easyread.nvim
- :keys [{1 "<leader>," 2 :<cmd>EasyreadToggle<cr> :desc :Easyread}]
- :config true}
diff --git a/fnl/plugins/ui/lualine.fnl b/fnl/plugins/ui/lualine.fnl
deleted file mode 100644
index 80adf55..0000000
--- a/fnl/plugins/ui/lualine.fnl
+++ /dev/null
@@ -1,91 +0,0 @@
-;; Statusbar.
-
-(local icons (require :plugins.icons))
-
-(local disable [:neogitstatus
- :netrw
- :lir
- :lazy
- :alpha
- :neo-tree
- :Outline
- :NeogitStatus
- :NeogitCommitMessage])
-
-(local ignore [:help :packer :spectre_panel :TelescopePrompt])
-
-(fn active-clients []
- (let [clients (vim.lsp.buf_get_clients)
- client_names []]
- (each [_ client (pairs clients)]
- (if (not= client.name :null-ls)
- (table.insert client_names client.name)))
- (if (> (length client_names) 0)
- (table.concat client_names ", ")
- "")))
-
-(fn hide-in-width []
- (> (vim.fn.winwidth 0) 80))
-
-(local diagnostics {1 :diagnostics
- :sources [:nvim_diagnostic]
- :sections [:error :warn]
- :symbols {:error (.. (. icons :error) " ")
- :warn (.. (. icons :warn) " ")}
- :colored false
- :disabled_buftypes [:nvim-tree]
- :padding 0
- :update_in_insert false
- :always_visible true})
-
-(local diff {1 :diff
- :colored false
- :disabled_buftypes [:nvim-tree]
- :cond hide-in-width})
-
-(local branch {1 "b:gitsigns_head"
- :icon (. icons :git)
- :disabled_buftypes [:nvim-tree]
- :cond hide-in-width})
-
-(local filetype {1 :filetype
- :icon_only true
- :disabled_buftypes [:nvim-tree]
- :colored false
- :cond hide-in-width})
-
-(local language-server {1 active-clients
- :disabled_buftypes [:nvim-tree]
- :cond hide-in-width})
-
-(local lsp-progress
- {1 :lsp_progress
- :display_components [[:title :percentage :message]]
- :timer {:progress_enddelay 500 :lsp_client_name_enddelay 500}})
-
-(local opts {:options {:icons_enabled true
- :theme :auto
- :component_separators ""
- :section_separators {:left "" :right ""}
- :disabled_filetypes disable
- :ignore_focus ignore
- :always_divide_middle true
- :globalstatus true}
- :sections {:lualine_a [:mode]
- :lualine_b [branch diff]
- :lualine_c {}
- :lualine_x [lsp-progress language-server diagnostics]
- :lualine_y [filetype]
- :lualine_z [:location :progress]}
- :inactive_sections {:lualine_a [:mode]
- :lualine_b {}
- :lualine_c {}
- :lualine_x {}
- :lualine_y {}
- :lualine_z [:location :progress]}
- :extensions []})
-
-{1 :nvim-lualine/lualine.nvim
- :event :BufReadPost
- : opts
- :dependencies [:nvim-tree/nvim-web-devicons :arkav/lualine-lsp-progress]}
diff --git a/fnl/plugins/ui/minibar.fnl b/fnl/plugins/ui/minibar.fnl
deleted file mode 100644
index ed80330..0000000
--- a/fnl/plugins/ui/minibar.fnl
+++ /dev/null
@@ -1,31 +0,0 @@
-;; Show the filename in the top left corner.
-
-{1 :aktersnurra/minibar.nvim
- :event :BufReadPre
- :opts {:ignore-filetypes [:help
- :harpoon
- :startify
- :dashboard
- :lir
- :alpha
- :packer
- :neogitstatus
- :Trouble
- :lazy
- :netrw
- :Outline
- :neo-tree
- :neo-tree-popup
- :NeogitStatus
- :NeogitCommitMessage
- :NeogitNotification
- :NeogitCommitView
- :spectre_panel
- ""]
- :events [:CursorMoved
- :TermOpen
- :DirChanged
- :BufWinEnter
- :BufFilePost
- :InsertEnter
- :BufWritePost]}}