A tidy statusline for neovim written in lua featuring
๐ Batteries Included. No configuration needed.
๐ด Minimalist Mode Indicators
๐ฅ 0.4ms Startup Time
๐ Git Status [Signify]
๐ด Git Branch
โ๏ธ Diagnostics Status [Ale & Native Nvim LSP] --> Native LSP set as default
๐ฆ LSP Current Function [builtinlsp.current_function] --> Requires require('lsp-status').on_attach(client)
๐ก LSP Code Action Indicator [textDocument/codeAction] --> Requires kosayoda/nvim-lightbulb/
๐ฏ LSP Progress Messages โ ผ [vim.lsp.util.get_progress_messages]
โ File Modified Status
๐ Clean Ruler
โ๏ธ File Icon Support [Nerd Font]
๐ Snipped File Paths
๐ป Tabline Support
๐จ Smooth colours inspired by gruvbox
๐ More to come!
Plug 'beauwilliams/statusline.lua'
use 'beauwilliams/statusline.lua'
Disable Tabline
local statusline = require('statusline')
statusline.tabline = false
Enable ALE Diagnostics Display
-- NOTE: Nvim Native LSP is displayed default
-- I personally prefer ALE, with nathunsmitty/nvim-ale-diagnostic piping LSP diags
-- With ALE you can get errors displayed without explicitly needing an LSP server
local statusline = require('statusline')
statusline.lsp_diagnostics = false
statusline.ale_diagnostics = true
Enable Global Statusline (version 0.7+)
-- This setting will mean that you have one single statusline drawn accross the entire display
lua vim.o.laststatus=3
- Signify [Git Status]
- Ale [Diagnostics] --> I recommend ALE with nathunsmitty/nvim-ale-diagnostic
- Native LSP [Current Function] --> require('lsp-status').on_attach(client)
- Native LSP [Diagnostics] --> Must have a relevant language server to provide diagnostics
- Native LSP [Progress %] --> Must have a relevant language server to provide progress messages
- Native LSP [Code Actions] --> Requires kosayoda/nvim-lightbulb/
- Completely move codebase to lua
- Async everything
- Shed Fugitive
- Shed Nvim-Webdev-Icons
- Support Native LSP
- Theme Support
Contributing
Please before submitting a PR install stylua here
And run stylua .
from your shell in the root folder of focus.nvim
This will format the code according to the guidlines set in stylua.toml