Add project, and auto-sessions, also add auto-sessions to the lualine
This commit is contained in:
parent
fa5dab7882
commit
ef90fd5cea
3 changed files with 45 additions and 8 deletions
19
nvim/lua/plugs/auto-session.lua
Normal file
19
nvim/lua/plugs/auto-session.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
return {
|
||||||
|
"rmagatti/auto-session",
|
||||||
|
config = function()
|
||||||
|
require("auto-session").setup {
|
||||||
|
log_level = "error",
|
||||||
|
auto_session_suppress_dirs = {
|
||||||
|
"/",
|
||||||
|
"~/",
|
||||||
|
"~/Projects",
|
||||||
|
"~/Downloads",
|
||||||
|
"~/Development",
|
||||||
|
"~/Dev",
|
||||||
|
"~/Dev/Git",
|
||||||
|
"~/.config",
|
||||||
|
"~/dev/git/.dotfiles",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
@ -14,7 +14,7 @@ return {
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { "mode" },
|
lualine_a = { "mode" },
|
||||||
lualine_b = { "branch" },
|
lualine_b = { "branch" },
|
||||||
lualine_c = {},
|
lualine_c = { require("auto-session.lib").current_session_name },
|
||||||
lualine_x = { "encoding", "fileformat", "filetype" },
|
lualine_x = { "encoding", "fileformat", "filetype" },
|
||||||
lualine_y = { "progress" },
|
lualine_y = { "progress" },
|
||||||
lualine_z = { "location" }
|
lualine_z = { "location" }
|
||||||
|
|
|
||||||
18
nvim/lua/plugs/project.lua
Normal file
18
nvim/lua/plugs/project.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
return {
|
||||||
|
"ahmedkhalf/project.nvim",
|
||||||
|
config = function()
|
||||||
|
require("project_nvim").setup({
|
||||||
|
patterns = {
|
||||||
|
".git",
|
||||||
|
".hg",
|
||||||
|
".svn",
|
||||||
|
"Makefile",
|
||||||
|
"package.json",
|
||||||
|
"Cargo.toml",
|
||||||
|
"go.mod",
|
||||||
|
".clang-tidy",
|
||||||
|
".clang-format"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue