summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/user/plugins/lualine.lua
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2022-12-23 22:01:25 +0100
committeryuzu-eva <stevenhu@web.de>2022-12-23 22:01:25 +0100
commitc9502c9c4b61c4cab7655c484ef7e577308343cf (patch)
tree699e8a51e94a3b2a1ba42b83d0c0cfa1b7a142cf /.config/nvim/lua/user/plugins/lualine.lua
parentee92c6100fd18a80309bcaa86d1cbc20f8f2cd49 (diff)
readded nvim
Diffstat (limited to '.config/nvim/lua/user/plugins/lualine.lua')
-rw-r--r--.config/nvim/lua/user/plugins/lualine.lua64
1 files changed, 64 insertions, 0 deletions
diff --git a/.config/nvim/lua/user/plugins/lualine.lua b/.config/nvim/lua/user/plugins/lualine.lua
new file mode 100644
index 0000000..6ac5cee
--- /dev/null
+++ b/.config/nvim/lua/user/plugins/lualine.lua
@@ -0,0 +1,64 @@
+-- local tabLineHl = vim.api.nvim_get_hl_by_name('TabLine', true)
+-- local bg = '#' .. bit.tohex(tabLineHl.background, 6)
+-- local fg = '#' .. bit.tohex(tabLineHl.foreground, 6)
+local fg = '#F8F8F2' -- DraculaFg
+local bg = '#21222C' -- DraculaBgDark
+local separator = '#424450' -- DraculaSubtle
+-- local fg = '#' .. bit.tohex(vim.api.nvim_get_hl_by_name('DraculaFg', true).foreground, 6)
+-- local bg = '#' .. bit.tohex(vim.api.nvim_get_hl_by_name('DraculaBgDark', true).background, 6)
+-- local separator = '#' .. bit.tohex(vim.api.nvim_get_hl_by_name('DraculaSubtle', true).foreground, 6)
+
+require('lualine').setup {
+ options = {
+ component_separators = '',
+ section_separators = '▕',
+ theme = {
+ normal = {
+ a = { fg = fg, bg = bg },
+ b = { fg = fg, bg = bg },
+ c = { fg = fg, bg = bg },
+ x = { fg = fg, bg = bg },
+ y = { fg = fg, bg = bg },
+ z = { fg = fg, bg = bg },
+ },
+ inactive = { c = { fg = fg, bg = bg } },
+ },
+ },
+ sections = {
+ lualine_a = {
+ 'mode',
+ { '"▏"', color = { fg = separator } },
+ },
+ lualine_b = {
+ 'branch',
+ 'diff',
+ { '"▕"', color = { fg = separator } },
+ '"🖧  " .. tostring(#vim.tbl_keys(vim.lsp.buf_get_clients()))',
+ { 'diagnostics', sources = { 'nvim_diagnostic' } },
+ { '"▏"', color = { fg = separator } },
+ },
+ lualine_c = { 'filename' },
+ lualine_x = {
+ 'filetype',
+ 'encoding',
+ 'fileformat',
+ },
+ lualine_y = {
+ { '"▕"', color = { fg = separator } },
+ '(vim.bo.expandtab and "␠ " or "⇥ ") .. " " .. vim.bo.shiftwidth',
+ { '"▏"', color = { fg = separator } },
+ },
+ lualine_z = {
+ 'location',
+ 'progress',
+ },
+ },
+ -- tabline = {
+ -- lualine_a = {
+ -- {'buffers'}
+ -- },
+ -- lualine_z = {
+ -- {'tabs'}
+ -- }
+ -- }
+}