about summary refs log tree commit diff
path: root/fnl/nvrc
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-27 09:15:52 +0900
committersefidel <contact@sefidel.net>2022-02-27 09:15:52 +0900
commitfff8ea45c00769ce3da9eead16bb00b0c877776a (patch)
tree5e4cd39850c1fd17cf0a0abc19bdec129fe44aa6 /fnl/nvrc
parente0373fbfeb5127fffb70e7c9f8f004742ff0c1c7 (diff)
downloadnvimrc-fff8ea45c00769ce3da9eead16bb00b0c877776a.tar.gz
nvimrc-fff8ea45c00769ce3da9eead16bb00b0c877776a.zip
feat(feline): remove redundant git module
Diffstat (limited to 'fnl/nvrc')
-rw-r--r--fnl/nvrc/packs/feline.fnl29
1 files changed, 2 insertions, 27 deletions
diff --git a/fnl/nvrc/packs/feline.fnl b/fnl/nvrc/packs/feline.fnl
index e75ad8e..fc4a082 100644
--- a/fnl/nvrc/packs/feline.fnl
+++ b/fnl/nvrc/packs/feline.fnl
@@ -2,7 +2,6 @@
 (local lsp (require :feline.providers.lsp))
 (local lsp_severity vim.diagnostic.severity)
 (local vi_mode (require :feline.providers.vi_mode))
-(local git (require :feline.providers.git))
 
 (local colors (require :nvrc.colors))
 (local utils (require :nvrc.utils))
@@ -81,27 +80,7 @@
                                   :enabled #(lsp.diagnostics_exist lsp_severity.HINT)
                                   :left_sep " "
                                   :icon :H
-                                  :hl {:fg (. colors :white)}}}
-                :git {:branch {:provider :git_branch
-                               :enabled #(git.git_info_exists)
-                               :icon "*"
-                               :right_sep " "
-                               :hl {:fg (. colors :violet) :style :bold}}
-                      :add {:provider :git_diff_added
-                            :enabled #(git.git_info_exists)
-                            :icon "+"
-                            :right_sep " "
-                            :hl {:fg (. colors :green)}}
-                      :change {:provider :git_diff_changed
-                               :enabled #(git.git_info_exists)
-                               :icon "~"
-                               :right_sep " "
-                               :hl {:fg (. colors :orange)}}
-                      :remove {:provider :git_diff_removed
-                               :enabled #(git.git_info_exists)
-                               :icon "-"
-                               :right_sep " "
-                               :hl {:fg (. colors :red)}}}})
+                                  :hl {:fg (. colors :white)}}}})
 
 (local comps {:left {:active [(. modules :pad)
                               (. modules :vi_mode)
@@ -113,11 +92,7 @@
                               (. modules :lsp :diag_info)
                               (. modules :lsp :diag_hint)]
                      :inactive []}
-              :right {:active [(. modules :git :branch)
-                               (. modules :git :add)
-                               (. modules :git :change)
-                               (. modules :git :remove)
-                               (. modules :file :encoding)
+              :right {:active [(. modules :file :encoding)
                                (. modules :file :type)
                                (. modules :line_percentage)
                                (. modules :scroll_bar)]