Skip to content

Commit

Permalink
feat(nvim): register lualine extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Dec 22, 2024
1 parent d6fca9c commit 6959954
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 3 deletions.
2 changes: 2 additions & 0 deletions nvim-fredrik/lua/fredrik/plugins/core/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ return {
"mfussenegger/nvim-dap",
},
opts = function(_, opts)
opts.extensions = { "nvim-dap-ui" }

local function dap_status()
return "" .. require("dap").status()
end
Expand Down
6 changes: 6 additions & 0 deletions nvim-fredrik/lua/fredrik/plugins/core/fzf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ return {
lazy = false,
dependencies = {
"folke/trouble.nvim",
{
"nvim-lualine/lualine.nvim",
opts = {
extensions = { "fzf" },
},
},
},
config = function(_, opts)
local config = require("fzf-lua.config")
Expand Down
7 changes: 4 additions & 3 deletions nvim-fredrik/lua/fredrik/plugins/core/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ return {
lualine_z = { "location" },
},

-- settings that needs to be defined here, due to other plugins being lazy-loaded
disabled_filetypes = { "codecompanion", "Avante", "AvanteInput" },
extensions = { "lazy", "man", "quickfix", "neo-tree", "mason", "trouble", "nvim-dap-ui" },
extensions = { "lazy", "man", "quickfix" },
opts_extend = {
"sections.extensions",
},
},
config = function(_, opts)
-- TODO: make more generic insertion function which can insert anywhere.
Expand Down
6 changes: 6 additions & 0 deletions nvim-fredrik/lua/fredrik/plugins/core/mason.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ return {
lockfile_path = os.getenv("DOTFILES") .. "/nvim-fredrik/mason-lock.json",
},
},
{
"nvim-lualine/lualine.nvim",
opts = {
extensions = { "mason" },
},
},
},
opts = {
-- for local development/testing; clone down the mason-registry locally
Expand Down
6 changes: 6 additions & 0 deletions nvim-fredrik/lua/fredrik/plugins/core/neotree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ return {
-- icons supported via mini-icons.lua
{ "echasnovski/mini.icons", version = false },
"MunifTanjim/nui.nvim",
{
"nvim-lualine/lualine.nvim",
opts = {
extensions = { "neo-tree" },
},
},
},
opts = {
sources = { "filesystem", "buffers", "git_status", "document_symbols" },
Expand Down
7 changes: 7 additions & 0 deletions nvim-fredrik/lua/fredrik/plugins/trouble.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ return {
lazy = true,
dependencies = {
-- icons supported via mini-icons.lua

{
"nvim-lualine/lualine.nvim",
opts = {
extensions = { "trouble" },
},
},
},
opts = {},
keys = require("fredrik.config.keymaps").setup_trouble_keymaps(),
Expand Down

0 comments on commit 6959954

Please sign in to comment.