diff --git a/lua/init.lua b/lua/init.lua index 6f4fe10..ae46e7d 100644 --- a/lua/init.lua +++ b/lua/init.lua @@ -25,8 +25,7 @@ require("editorconfig").properties.trim_trailing_whitespace = false require("nvim-tree").setup({ update_focused_file = { - enable = true, - update_cwd = trie + enable = true } }) require('neoscroll').setup() @@ -71,3 +70,44 @@ require("scrollbar").setup{ Misc = { color = colors.purple }, } } + +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/lua/plugins.lua b/lua/plugins.lua index 8c4fc64..0b6e8f8 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -14,7 +14,11 @@ return { "rebelot/kanagawa.nvim", "wellle/context.vim", "andweeb/presence.nvim", - + { + 'numToStr/Comment.nvim', + opts={}, + lazy = false, + }, { "nvim-tree/nvim-tree.lua", dependencies = {"nvim-tree/nvim-web-devicons"} @@ -70,5 +74,9 @@ return { }) end + }, + { + "nvim-lualine/lualine.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" } } }