Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,8 @@ extensions = {'quickfix'}
- symbols-outline
- toggleterm
- trouble
- telescope
- floaterm

#### Custom extensions

Expand Down
18 changes: 18 additions & 0 deletions lua/lualine/extensions/floaterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-- Extension for Floaterm
local M = {}

M.sections = {
lualine_a = {
function()
if vim.bo.filetype == 'floaterm' then
return 'Floaterm'
else
return ''
end
end,
},
}

M.filetypes = { 'floaterm' }

return M
16 changes: 16 additions & 0 deletions lua/lualine/extensions/telescope.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- Extension for Telescope
local M = {}
M.sections = {
lualine_a = {
function()
local ok, _ = pcall(require, 'telescope')
if ok then
return 'Telescope'
else
return ''
end
end,
},
}
M.filetypes = { 'TelescopePrompt' }
return M