aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/statusline.lua
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2022-09-08 17:29:21 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2022-09-08 17:29:21 +0000
commitb57d4cb883e8f016cfbc89c87e6594f0c2aef1ff (patch)
tree39576dcd545bb0a1c41c4af9bdf00d89ebb9198f /.config/nvim/lua/statusline.lua
parentf13e82880cfcb566df62d9d3c787cc021273142e (diff)
downloaddotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar
dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar.gz
dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar.bz2
dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar.lz
dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar.xz
dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar.zst
dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.zip
New neovim config
Diffstat (limited to '')
-rw-r--r--.config/nvim/lua/statusline.lua31
1 files changed, 31 insertions, 0 deletions
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 = {};
+}
+