From b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Thu, 8 Sep 2022 19:29:21 +0200 Subject: New neovim config --- .config/nvim/lua/statusline.lua | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .config/nvim/lua/statusline.lua (limited to '.config/nvim/lua/statusline.lua') diff --git a/.config/nvim/lua/statusline.lua b/.config/nvim/lua/statusline.lua new file mode 100644 index 0000000..3eef3c6 --- /dev/null +++ b/.config/nvim/lua/statusline.lua @@ -0,0 +1,31 @@ +require("bufferline").setup { options = { diagnostics = "nvim_lsp" } } + +require("lualine").setup { + options = { + icons_enabled = true; + theme = "auto"; + component_separators = { left = ""; right = "" }; + section_separators = { left = ""; right = "" }; + disabled_filetypes = {}; + always_divide_middle = true; + globalstatus = false; + }; + 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 = {}; + }; + extensions = {}; +} + -- cgit v1.2.3