From 5c4b6d9ec477a9606da5949f448661a7a8e7dfea Mon Sep 17 00:00:00 2001 From: Franciszek Malinka Date: Sat, 16 Apr 2022 23:23:58 +0200 Subject: Switched to lualine --- lua/user/lualine.lua | 17 +++++++++++++++++ lua/user/plugins.lua | 6 +----- lua/user/session-manager.lua | 2 +- 3 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 lua/user/lualine.lua (limited to 'lua/user') diff --git a/lua/user/lualine.lua b/lua/user/lualine.lua new file mode 100644 index 0000000..1bfec63 --- /dev/null +++ b/lua/user/lualine.lua @@ -0,0 +1,17 @@ + +local status_ok, lualine = pcall(require, "lualine") +if not status_ok then + return +end + +lualine.setup { + sections = { + lualine_c = { + { + 'filename', + path=1, + file_status=false, + }, + }, + } +} diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 84b05ff..b3a5aa0 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -40,11 +40,7 @@ return packer.startup(function(use) use "nvim-lua/popup.nvim" use "nvim-lua/plenary.nvim" - use "vim-airline/vim-airline" - use "vim-airline/vim-airline-themes" - -- use "itchyny/lightline.vim" - -- use "preservim/nerdtree" - -- use "tiagofumo/vim-nerdtree-syntax-highlight" + use "nvim-lualine/lualine.nvim" use "kyazdani42/nvim-tree.lua" use "kyazdani42/nvim-web-devicons" use "ryanoasis/vim-devicons" diff --git a/lua/user/session-manager.lua b/lua/user/session-manager.lua index c23b721..874c27c 100644 --- a/lua/user/session-manager.lua +++ b/lua/user/session-manager.lua @@ -9,4 +9,4 @@ session_manager.setup({ autoload_mode = require("session_manager.config").AutoloadMode.Disabled, }) -vim.cmd('autocmd User SessionLoadPost lua require"nvim-tree".toggle(false, true)') +-- vim.cmd('autocmd User SessionLoadPost lua require"nvim-tree".toggle(false, true)') -- cgit v1.2.3