diff --git a/nvim/lua/plugs/auto-session.lua b/nvim/lua/plugs/auto-session.lua new file mode 100644 index 0000000..f2c30cf --- /dev/null +++ b/nvim/lua/plugs/auto-session.lua @@ -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 +} diff --git a/nvim/lua/plugs/lualine.lua b/nvim/lua/plugs/lualine.lua index 9576b8c..848a6e1 100644 --- a/nvim/lua/plugs/lualine.lua +++ b/nvim/lua/plugs/lualine.lua @@ -7,17 +7,17 @@ return { require("lualine").setup { options = { theme = "catppuccin", - section_separators = {"", ""}, - component_separators = {"", ""}, + section_separators = { "", "" }, + component_separators = { "", "" }, icons_enabled = true, }, sections = { - lualine_a = {"mode"}, - lualine_b = {"branch"}, - lualine_c = {}, - lualine_x = {"encoding", "fileformat", "filetype"}, - lualine_y = {"progress"}, - lualine_z = {"location"} + lualine_a = { "mode" }, + lualine_b = { "branch" }, + lualine_c = { require("auto-session.lib").current_session_name }, + lualine_x = { "encoding", "fileformat", "filetype" }, + lualine_y = { "progress" }, + lualine_z = { "location" } }, inactive_sections = { lualine_a = {}, diff --git a/nvim/lua/plugs/project.lua b/nvim/lua/plugs/project.lua new file mode 100644 index 0000000..efd5f8a --- /dev/null +++ b/nvim/lua/plugs/project.lua @@ -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, +}