summaryrefslogtreecommitdiff
path: root/public/nvim/.nvim/lua/plugins/extra
diff options
context:
space:
mode:
Diffstat (limited to 'public/nvim/.nvim/lua/plugins/extra')
-rw-r--r--public/nvim/.nvim/lua/plugins/extra/copilot.lua33
-rw-r--r--public/nvim/.nvim/lua/plugins/extra/feline.lua84
-rw-r--r--public/nvim/.nvim/lua/plugins/extra/neorg.lua36
-rw-r--r--public/nvim/.nvim/lua/plugins/extra/vim-fugitive.lua14
4 files changed, 167 insertions, 0 deletions
diff --git a/public/nvim/.nvim/lua/plugins/extra/copilot.lua b/public/nvim/.nvim/lua/plugins/extra/copilot.lua
new file mode 100644
index 0000000..15d0c73
--- /dev/null
+++ b/public/nvim/.nvim/lua/plugins/extra/copilot.lua
@@ -0,0 +1,33 @@
+return {
+ {
+ "zbirenbaum/copilot.lua",
+ event = { "InsertEnter" },
+ build = ":Copilot auth",
+ config = function()
+ vim.schedule(function()
+ require("copilot").setup({
+ filetypes = { yaml = true },
+ suggestion = { enabled = false },
+ panel = { enabled = false },
+ })
+ end)
+ end,
+ },
+
+ {
+ "zbirenbaum/copilot-cmp",
+ dependencies = { "copilot.lua" },
+ opts = {},
+ },
+
+ {
+ "hrsh7th/nvim-cmp",
+ dependencies = { "zbirenbaum/copilot-cmp" },
+ opts = function(_, opts)
+ if type(opts) == "table" then
+ table.insert(opts.sources, 1, { name = "copilot" })
+ opts.formatting.format.menu["copilot"] = ""
+ end
+ end,
+ },
+}
diff --git a/public/nvim/.nvim/lua/plugins/extra/feline.lua b/public/nvim/.nvim/lua/plugins/extra/feline.lua
new file mode 100644
index 0000000..037db34
--- /dev/null
+++ b/public/nvim/.nvim/lua/plugins/extra/feline.lua
@@ -0,0 +1,84 @@
+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,
+ },
+}
diff --git a/public/nvim/.nvim/lua/plugins/extra/neorg.lua b/public/nvim/.nvim/lua/plugins/extra/neorg.lua
new file mode 100644
index 0000000..991ec40
--- /dev/null
+++ b/public/nvim/.nvim/lua/plugins/extra/neorg.lua
@@ -0,0 +1,36 @@
+return {
+ {
+ "nvim-neorg/neorg",
+ build = ":Neorg sync-parsers",
+ dependencies = { "nvim-lua/plenary.nvim" },
+ config = function()
+ require("neorg").setup({
+ load = {
+ ["core.defaults"] = {}, -- Loads default behaviour
+ ["core.concealer"] = {}, -- Adds pretty icons to your documents
+ ["core.completion"] = { config = { engine = "nvim-cmp" } },
+ ["core.dirman"] = { -- Manages Neorg workspaces
+ config = {
+ workspaces = {
+ notes = "~/notes",
+ www = "~/www",
+ },
+ default_workspace = "notes",
+ },
+ },
+ },
+ })
+ end,
+ },
+
+ {
+ "hrsh7th/nvim-cmp",
+ dependencies = { "nvim-neorg/neorg" },
+ opts = function(_, opts)
+ if type(opts) == "table" then
+ table.insert(opts.sources, 1, { name = "neorg" })
+ opts.formatting.format.menu["neorg"] = ""
+ end
+ end,
+ },
+}
diff --git a/public/nvim/.nvim/lua/plugins/extra/vim-fugitive.lua b/public/nvim/.nvim/lua/plugins/extra/vim-fugitive.lua
new file mode 100644
index 0000000..d1f8a5a
--- /dev/null
+++ b/public/nvim/.nvim/lua/plugins/extra/vim-fugitive.lua
@@ -0,0 +1,14 @@
+return {
+ {
+ "shumphrey/fugitive-gitlab.vim",
+ cmd = "GBrowse",
+ config = function()
+ vim.g.fugitive_gitlab_domains = { "https://gitlab.otters.xyz" }
+ end,
+ },
+
+ {
+ "tpope/vim-fugitive",
+ dependencies = { "tpope/vim-rhubarb", "fugitive-gitlab.vim" },
+ },
+}