aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--init.lua1
-rw-r--r--lua/user/lualine.lua17
-rw-r--r--lua/user/plugins.lua6
-rw-r--r--lua/user/session-manager.lua2
5 files changed, 22 insertions, 8 deletions
diff --git a/README.md b/README.md
index 744f7dc..51e6dda 100644
--- a/README.md
+++ b/README.md
@@ -17,8 +17,8 @@ and [Lunar vim](https://github.com/LunarVim/LunarVim)
I manager plugins with packer. Plugins I use:
-- vim-airline,
-- nvim-tree ,
+- lualine,
+- nvim-tree,
- nvim-cmp with additions,
- cmp_luasnip,
- nvim-lspconfig,
diff --git a/init.lua b/init.lua
index aaeb0ca..24a1e21 100644
--- a/init.lua
+++ b/init.lua
@@ -2,6 +2,7 @@
require "user.plugins"
-- Specific configuration for those plugins
+require "user.lualine"
require "user.cmp"
require "user.lsp"
require "user.treesitter"
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)')