From 2ba6193a9266bfe3910a55d35fe8ef150797b83c Mon Sep 17 00:00:00 2001 From: Julius Waldmann Date: Thu, 9 May 2024 14:03:50 +0200 Subject: [PATCH] lualine --- after/plugin/colors.lua | 2 +- after/plugin/lualine.lua | 32 ++++++++++++++++++++++++++++++++ lazy-lock.json | 2 ++ lua/juliuswaldmann/lazynvim.lua | 15 +++------------ 4 files changed, 38 insertions(+), 13 deletions(-) create mode 100644 after/plugin/lualine.lua diff --git a/after/plugin/colors.lua b/after/plugin/colors.lua index 385e4ea..04ae560 100644 --- a/after/plugin/colors.lua +++ b/after/plugin/colors.lua @@ -10,7 +10,7 @@ end function LineNumberColors() vim.api.nvim_set_hl(0, 'LineNrAbove', { fg='#51B3EC', bold=true}) vim.api.nvim_set_hl(0, 'LineNr', { fg='white', bold=true }) - vim.api.nvim_set_hl(0, 'LineNrBelow', { fg='#FB508F', bold=true}) + vim.api.nvim_set_hl(0, 'LineNrBelow', { fg='#FB508F', bold=false }) vim.o.signcolumn = "auto" end diff --git a/after/plugin/lualine.lua b/after/plugin/lualine.lua new file mode 100644 index 0000000..7271747 --- /dev/null +++ b/after/plugin/lualine.lua @@ -0,0 +1,32 @@ + +local colors = { + white = "#cccccc", + grey = "#303030", + black = "#080808" +} + +local custom = require'lualine.themes.palenight' + +custom.normal.c.fg = colors.white +custom.normal.c.gui = "" + +require('lualine').setup { + options = { + icons_enabled = false, + theme = custom, + component_separators = { left = ' ', right = '|'}, + section_separators = { left = ' ', right = ' '}, + disabled_filetypes = { + statusline = {}, + winbar = {}, + }, + ignore_focus = {}, + always_divide_middle = true, + globalstatus = false, + refresh = { + statusline = 1000, + tabline = 1000, + winbar = 1000, + } + }, +} diff --git a/lazy-lock.json b/lazy-lock.json index f0c01be..40d5431 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -6,6 +6,7 @@ "instant.nvim": { "branch": "master", "commit": "294b6d08143b3db8f9db7f606829270149e1a786" }, "lazy.nvim": { "branch": "main", "commit": "d3974346b6cef2116c8e7b08423256a834cb7cbc" }, "lsp-zero.nvim": { "branch": "v3.x", "commit": "d1114ca5ff28ffcd0bc2a3fdd4c13019b1c41812" }, + "lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "05744f0f1967b5757bd05c08df4271ab8ec990aa" }, "mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" }, "neovim": { "branch": "main", "commit": "17b466e79479758b332a3cac12544a3ad2be6241" }, @@ -13,6 +14,7 @@ "nvim-cmp": { "branch": "main", "commit": "cd2cf0c124d3de577fb5449746568ee8e601afc8" }, "nvim-lspconfig": { "branch": "master", "commit": "a3d9395455f2b2e3b50a0b0f37b8b4c23683f44a" }, "nvim-treesitter": { "branch": "master", "commit": "1be5aa99e3e0e4a36c31fa7066dcf46a4e0142dd" }, + "nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" }, "plenary.nvim": { "branch": "master", "commit": "08e301982b9a057110ede7a735dd1b5285eb341f" }, "telescope-file-browser.nvim": { "branch": "master", "commit": "4d5fd21bae12ee6e9a79232e1c377f43c419d0c5" }, "telescope.nvim": { "branch": "master", "commit": "fac83a556e7b710dc31433dec727361ca062dbe9" }, diff --git a/lua/juliuswaldmann/lazynvim.lua b/lua/juliuswaldmann/lazynvim.lua index 34f43d6..d921e9d 100644 --- a/lua/juliuswaldmann/lazynvim.lua +++ b/lua/juliuswaldmann/lazynvim.lua @@ -88,18 +88,9 @@ return lazy.setup({ end }, { - "folke/which-key.nvim", - event = "VeryLazy", - init = function() - vim.o.timeout = true - vim.o.timeoutlen = 300 - end, - opts = { - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - } - } + 'nvim-lualine/lualine.nvim', + dependencies = { 'nvim-tree/nvim-web-devicons' } + }, -- Uncomment these lines if you want to use the plugins -- use 'nvim-tree/nvim-tree.lua'