Skip to content

Commit

Permalink
Add support for vim-dadbod-ui and dashboard-nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
adelarsq committed Oct 14, 2020
1 parent e92f09d commit 9e80620
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ A light statusline/tabline plugin for [Neovim](https://github.com/neovim/neovim)
- [preservim/nerdtree](https://github.com/preservim/nerdtree)
- [ms-jpq/chadtree](https://github.com/ms-jpq/chadtree)
- [adelarsq/neovcs.vim](https://github.com/adelarsq/neovcs.vim)
- [kristijanhusak/vim-dadbod-ui](https://github.com/kristijanhusak/vim-dadbod-ui)
- [glepnir/dashboard-nvim](https://github.com/glepnir/dashboard-nvim)

## Installation πŸ§™

Expand Down
21 changes: 21 additions & 0 deletions lua/status-line.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ local iconNERDTree = '🌳 NERDTree'
local iconVista = 'πŸ“Œ Vista'
local iconQf = 'πŸ† QF'
local iconShell = '🐚'
local iconDBUI = '🎲'
local iconDBUIOut = '🐬'
local iconDashboard = 'πŸŒ…'

-- Using NERDFonts
-- https://github.com/ryanoasis/powerline-extra-symbols
Expand Down Expand Up @@ -213,6 +216,15 @@ function M.activeLine(idbuffer)
if filetype == 'nerdtree' or filetype == 'CHADTree' then
statusline = statusline..iconNERDTree
return statusline
elseif filetype == 'dbui' then
statusline = statusline..iconDBUI
return statusline
elseif filetype == 'dbout' then
statusline = statusline..iconDBUIOut
return statusline
elseif filetype == 'dashboard' then
statusline = statusline..iconDashboard
return statusline
elseif filetype == 'vista' or filetype == 'vista_kind' or filetype == 'vista_markdown' then
statusline = statusline..iconVista
return statusline
Expand Down Expand Up @@ -293,6 +305,15 @@ function M.inActiveLine(idbuffer)
if filetype == 'nerdtree' or filetype == 'CHADTree' then
statusline = "%#NeoLineInActive#"..iconNERDTree
return statusline
elseif filetype == 'dbui' then
statusline = "%#NeoLineInActive#"..iconDBUI
return statusline
elseif filetype == 'dbout' then
statusline = "%#NeoLineInActive#"..iconDBUIOut
return statusline
elseif filetype == 'dashboard' then
statusline = "%#NeoLineInActive#"..iconDashboard
return statusline
elseif filetype == 'vista' or filetype == 'vista_kind' or filetype == 'vista_markdown' then
statusline = "%#NeoLineInActive#"..iconVista
return statusline
Expand Down

0 comments on commit 9e80620

Please sign in to comment.