summaryrefslogtreecommitdiff
path: root/lua/plugins/extra/feline.lua
diff options
context:
space:
mode:
authorChristian Segundo2024-10-19 09:37:48 +0200
committerChristian Segundo2024-10-19 09:37:48 +0200
commit1162b873ed477414c026f9435c602363e75f78ae (patch)
treedd4a8ca66769efd42882cbd0d743937f89513a4f /lua/plugins/extra/feline.lua
parent10202963de22f73b34ceff69a3160ebce36b158c (diff)
downloadconfig-1162b873ed477414c026f9435c602363e75f78ae.tar.gz
remove feline for good
Diffstat (limited to 'lua/plugins/extra/feline.lua')
-rw-r--r--lua/plugins/extra/feline.lua84
1 files changed, 0 insertions, 84 deletions
diff --git a/lua/plugins/extra/feline.lua b/lua/plugins/extra/feline.lua
deleted file mode 100644
index 037db34..0000000
--- a/lua/plugins/extra/feline.lua
+++ /dev/null
@@ -1,84 +0,0 @@
-return {
- {
- "feline-nvim/feline.nvim",
- dependencies = { "nvim-navic", "catppuccin", "nvim-tree/nvim-web-devicons" },
- config = function()
- local ctp_feline = require("catppuccin.groups.integrations.feline")
- ctp_feline.setup({
- assets = {
- left_separator = "",
- right_separator = "",
- },
- })
-
- local catpuccin_components = ctp_feline.get()
- require("feline").setup({ components = catpuccin_components })
-
- local catpuccin_winbar_components = { active = { {}, {}, {} }, inactive = {} }
- --catpuccin_winbar_components.inactive = catpuccin_components.inactive
-
- -- Removes the mode_icon and its left padding
- --table.remove(catpuccin_components.active[1], 2)
- --table.remove(catpuccin_components.active[1], 1)
- --local catpuccin_winbar_components = catpuccin_components
-
- --local yaml_schema_component = {
- --provider = function()
- --local schema = require("yaml-companion").get_buf_schema(0)
- --return schema.result[1].name
- --end,
- --enabled = function()
- --local enabled = catpuccin_components.active[3][1].enabled
- --if vim.bo.filetype == "yaml" and enabled then
- --return true
- --end
- --end,
- --hl = catpuccin_components.active[3][1].hl,
- --left_sep = catpuccin_components.active[3][1].left_sep,
- --right_sep = catpuccin_components.active[3][1].right_sep,
- --}
-
- local navic_component = {
- provider = function()
- local location = require("nvim-navic").get_location()
- if location == "" then
- return location
- end
- return "> " .. require("nvim-navic").get_location()
- end,
- enabled = function()
- local ok, navic = pcall(require, "nvim-navic")
- if ok then
- return navic.is_available()
- end
- end,
- hl = {
- bg = require("catppuccin.palettes").get_palette().base,
- fg = catpuccin_components.active[3][1].hl.fg,
- },
- }
-
- --table.insert(catpuccin_components.active[3], 1, yaml_schema_component)
- -- Overwrite the useless LSP component
- --catpuccin_components.active[3][2] = yaml_schema_component
-
- -- this is a hack to properly align the next component
- catpuccin_winbar_components.active[1][1] = {
- provider = function()
- return " "
- end,
- hl = {
- bg = require("catppuccin.palettes").get_palette().base,
- fg = require("catppuccin.palettes").get_palette().base,
- },
- }
-
- catpuccin_winbar_components.active[1][2] = navic_component
- catpuccin_winbar_components.inactive = catpuccin_winbar_components.active
-
- require("feline").winbar.setup({
- components = catpuccin_winbar_components,
- })
- end,
- },
-}