From e1f9499a381ce8ac4759f7dc4557f8b1c46a9fc4 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Mon, 21 Aug 2023 15:40:26 +0200 Subject: [PATCH] add lualine to nvim --- .config/nvim/after/plugin/lualine.lua | 40 +++++++++++++++++++++++++ .config/nvim/lua/hyrik/packer.lua | 5 ++++ .config/nvim/plugin/packer_compiled.lua | 11 +++++++ 3 files changed, 56 insertions(+) create mode 100644 .config/nvim/after/plugin/lualine.lua diff --git a/.config/nvim/after/plugin/lualine.lua b/.config/nvim/after/plugin/lualine.lua new file mode 100644 index 0000000..56c426a --- /dev/null +++ b/.config/nvim/after/plugin/lualine.lua @@ -0,0 +1,40 @@ +require('lualine').setup { + options = { + icons_enabled = true, + theme = 'auto', + 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, + } + }, + sections = { + lualine_a = {'mode'}, + lualine_b = {'branch', 'diff', 'diagnostics'}, + lualine_c = {'filename'}, + lualine_x = {'encoding', 'fileformat', 'filetype'}, + lualine_y = {'progress'}, + lualine_z = {'location'} + }, + inactive_sections = { + lualine_a = {}, + lualine_b = {}, + lualine_c = {'filename'}, + lualine_x = {'location'}, + lualine_y = {}, + lualine_z = {} + }, + tabline = {}, + winbar = {}, + inactive_winbar = {}, + extensions = {} +} diff --git a/.config/nvim/lua/hyrik/packer.lua b/.config/nvim/lua/hyrik/packer.lua index f1a6259..59f3184 100644 --- a/.config/nvim/lua/hyrik/packer.lua +++ b/.config/nvim/lua/hyrik/packer.lua @@ -27,6 +27,11 @@ return require("packer").startup(function(use) use "andweeb/presence.nvim" use "wakatime/vim-wakatime" + use { + 'nvim-lualine/lualine.nvim', + requires = { 'nvim-tree/nvim-web-devicons', opt = true } + } + use { "VonHeikemen/lsp-zero.nvim", branch = "v2.x", diff --git a/.config/nvim/plugin/packer_compiled.lua b/.config/nvim/plugin/packer_compiled.lua index 7c5dd99..8ee5ac5 100644 --- a/.config/nvim/plugin/packer_compiled.lua +++ b/.config/nvim/plugin/packer_compiled.lua @@ -99,6 +99,11 @@ _G.packer_plugins = { path = "/home/hyro/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim", url = "https://github.com/VonHeikemen/lsp-zero.nvim" }, + ["lualine.nvim"] = { + loaded = true, + path = "/home/hyro/.local/share/nvim/site/pack/packer/start/lualine.nvim", + url = "https://github.com/nvim-lualine/lualine.nvim" + }, ["mason-lspconfig.nvim"] = { loaded = true, path = "/home/hyro/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim", @@ -124,6 +129,12 @@ _G.packer_plugins = { path = "/home/hyro/.local/share/nvim/site/pack/packer/start/nvim-treesitter", url = "https://github.com/nvim-treesitter/nvim-treesitter" }, + ["nvim-web-devicons"] = { + loaded = false, + needs_bufread = false, + path = "/home/hyro/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons", + url = "https://github.com/nvim-tree/nvim-web-devicons" + }, ["packer.nvim"] = { loaded = true, path = "/home/hyro/.local/share/nvim/site/pack/packer/start/packer.nvim",