about summary refs log tree commit diff
path: root/fnl/nvrc/packs
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-27 23:57:08 +0900
committersefidel <contact@sefidel.net>2022-02-27 23:58:05 +0900
commita15747ea28b1011d96aea09bc9779cb5f11ca7a9 (patch)
tree75ba23a8850a4eb57669a4980721b9f02d558884 /fnl/nvrc/packs
parent56bf0ffd4304c610021268c675a59a4470fb29c6 (diff)
downloadnvimrc-a15747ea28b1011d96aea09bc9779cb5f11ca7a9.tar.gz
nvimrc-a15747ea28b1011d96aea09bc9779cb5f11ca7a9.zip
feat(ui): feline -> homebrew statusline
Diffstat (limited to 'fnl/nvrc/packs')
-rw-r--r--fnl/nvrc/packs/feline.fnl114
1 files changed, 0 insertions, 114 deletions
diff --git a/fnl/nvrc/packs/feline.fnl b/fnl/nvrc/packs/feline.fnl
deleted file mode 100644
index fc4a082..0000000
--- a/fnl/nvrc/packs/feline.fnl
+++ /dev/null
@@ -1,114 +0,0 @@
-(local feline (require :feline))
-(local lsp (require :feline.providers.lsp))
-(local lsp_severity vim.diagnostic.severity)
-(local vi_mode (require :feline.providers.vi_mode))
-
-(local colors (require :nvrc.colors))
-(local utils (require :nvrc.utils))
-
-(local vi_mode_colors {:NORMAL (. colors :green)
-                       :INSERT (. colors :red)
-                       :VISUAL (. colors :yellow)
-                       :OP (. colors :green)
-                       :BLOCK (. colors :skyblue)
-                       :REPLACE (. colors :violet)
-                       :V-REPLACE (. colors :violet)
-                       :ENTER (. colors :skyblue)
-                       :MORE (. colors :skyblue)
-                       :SELECT (. colors :orange)
-                       :COMMAND (. colors :green)
-                       :SHELL (. colors :green)
-                       :TERM (. colors :green)
-                       :NONE (. colors :yellow)})
-
-(local modules {:pad {:provider "▊ " :hl {:fg (. colors :skyblue)}}
-                :current_position {:provider :position
-                                   :left_sep " "
-                                   :right_sep {1 " "
-                                               2 {:str :vertical_bar_thin
-                                                  :hl {:fg :fg :bg :bg}}}}
-                :vi_mode {:provider :vi_mode
-                          :icon ""
-                          :right_sep " "
-                          :hl (fn []
-                                {:name (vi_mode.get_mode_highlight_name)
-                                 :fg (vi_mode.get_mode_color)})}
-                :file {:info {:provider {:name :file_info
-                                         :opts {:file_modified_icon "[+]"
-                                                :file_readonly_icon "!w "}}
-                              :icon ""
-                              :right_sep " "
-                              :hl {:fg (. colors :orange) :style :bold}}
-                       :encoding {:provider :file_encoding
-                                  :icon ""
-                                  :right_sep " "
-                                  :hl {:fg (. colors :magenta) :style :bold}}
-                       :type {:provider :file_type
-                              :icon ""
-                              :right_sep " "
-                              :hl {:fg (. colors :magenta) :style :bold}}
-                       :size {:provider :file_size
-                              :right_sep {1 " "
-                                          2 {:str :vertical_bar_thin
-                                             :hl {:fg :fg :bg :bg}}}}}
-                :line_percentage {:provider :line_percentage
-                                  :right_sep " "
-                                  :hl {:style :bold}}
-                :scroll_bar {:provider :scroll_bar
-                             :right_sep " "
-                             :hl {:fg (. colors :skyblue) :style :bold}}
-                :lsp {:name {:provider :lsp_client-names
-                             :icon ""
-                             :right_sep " "
-                             :hl {:fg (. colors :yellow)}}
-                      :diag_err {:provider :diagnostic_errors
-                                 :enabled #(lsp.diagnostics_exist lsp_severity.ERROR)
-                                 :left_sep " "
-                                 :icon :E
-                                 :hl {:fg (. colors :red)}}
-                      :diag_warn {:provider :diagnostic_warnings
-                                  :enabled #(lsp.diagnostics_exist lsp_severity.WARN)
-                                  :left_sep " "
-                                  :icon :W
-                                  :hl {:fg (. colors :yellow)}}
-                      :diag_info {:provider :diagnostic_info
-                                  :enabled #(lsp.diagnostics_exist lsp_severity.INFO)
-                                  :left_sep " "
-                                  :icon :I
-                                  :hl {:fg (. colors :skyblue)}}
-                      :diag_hint {:provider :diagnostic_hints
-                                  :enabled #(lsp.diagnostics_exist lsp_severity.HINT)
-                                  :left_sep " "
-                                  :icon :H
-                                  :hl {:fg (. colors :white)}}}})
-
-(local comps {:left {:active [(. modules :pad)
-                              (. modules :vi_mode)
-                              (. modules :file :info)
-                              (. modules :file :size)
-                              (. modules :current_position)
-                              (. modules :lsp :diag_err)
-                              (. modules :lsp :diag_warn)
-                              (. modules :lsp :diag_info)
-                              (. modules :lsp :diag_hint)]
-                     :inactive []}
-              :right {:active [(. modules :file :encoding)
-                               (. modules :file :type)
-                               (. modules :line_percentage)
-                               (. modules :scroll_bar)]
-                      :inactive []}})
-
-(local components
-       {:active [comps.left.active comps.right.active]
-        :inactive [comps.left.inactive comps.right.inactive]})
-
-(local properties
-       {:force_inactive {:filetypes [:lir :packer]
-                         :buftypes [:terminal :packer]}})
-
-(feline.setup {:theme colors
-               :default_bg (. colors :bg)
-               :default_fg (. colors :fg)
-               : components
-               : properties
-               : vi_mode_colors})