From 4dcb0901f297bde936af01e54f036c5ead039fb7 Mon Sep 17 00:00:00 2001 From: AeroGlory Date: Mon, 16 Feb 2026 00:03:26 -0500 Subject: [PATCH] Added AutoSession and noice, big changes --- lazy-lock.json | 3 +++ lua/plugins/autosession.lua | 18 +++++++++++++++++ lua/plugins/noice.lua | 39 +++++++++++++++++++++++++++++++++++++ lua/plugins/treesitter.lua | 2 +- 4 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 lua/plugins/autosession.lua create mode 100644 lua/plugins/noice.lua diff --git a/lazy-lock.json b/lazy-lock.json index ae9354f..1a818f9 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,4 +1,5 @@ { + "auto-session": { "branch": "main", "commit": "62437532b38495551410b3f377bcf4aaac574ebe" }, "barbar.nvim": { "branch": "master", "commit": "539d73def39c9172b4d4d769f14090e08f37b29d" }, "catppuccin": { "branch": "main", "commit": "0a5de4da015a175f416d6ef1eda84661623e0500" }, "coq.artifacts": { "branch": "artifacts", "commit": "ef5f21d638ccc456cfa5b8d0ab37093cefe48c8b" }, @@ -13,9 +14,11 @@ "mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" }, "neoscroll.nvim": { "branch": "master", "commit": "c8d29979cb0cb3a2437a8e0ae683fd82f340d3b8" }, + "noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" }, "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, "nvim-lsp-file-operations": { "branch": "master", "commit": "b9c795d3973e8eec22706af14959bc60c579e771" }, "nvim-lspconfig": { "branch": "master", "commit": "44acfe887d4056f704ccc4f17513ed41c9e2b2e6" }, + "nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" }, "nvim-treesitter": { "branch": "main", "commit": "4d9466677a5ceadef104eaa0fe08d60d91c4e9a7" }, "nvim-web-devicons": { "branch": "master", "commit": "746ffbb17975ebd6c40142362eee1b0249969c5c" }, "nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" }, diff --git a/lua/plugins/autosession.lua b/lua/plugins/autosession.lua new file mode 100644 index 0000000..4c18a73 --- /dev/null +++ b/lua/plugins/autosession.lua @@ -0,0 +1,18 @@ +return { + "rmagatti/auto-session", + lazy = false, + + ---enables autocomplete for opts + ---@module "auto-session" + ---@type AutoSession.Config + opts = { + suppressed_dirs = { "~/", "~/Projects", "~/Downloads", "/" }, + -- log_level = 'debug', + }, + + config = function() + require('auto-session').setup({}) + + vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions" + end +} diff --git a/lua/plugins/noice.lua b/lua/plugins/noice.lua new file mode 100644 index 0000000..a56eca9 --- /dev/null +++ b/lua/plugins/noice.lua @@ -0,0 +1,39 @@ +return +-- lazy.nvim +{ + "folke/noice.nvim", + event = "VeryLazy", + opts = { + -- add any options here + }, + dependencies = { + -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries + "MunifTanjim/nui.nvim", + -- OPTIONAL: + -- `nvim-notify` is only needed, if you want to use the notification view. + -- If not available, we use `mini` as the fallback + "rcarriga/nvim-notify", + }, + config = function() + require("noice").setup({ + lsp = { + -- override markdown rendering so that **cmp** and other plugins use **Treesitter** + override = { + ["vim.lsp.util.convert_input_to_markdown_lines"] = true, + ["vim.lsp.util.stylize_markdown"] = true, + ["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp + }, + }, + -- you can enable a preset for easier configuration + presets = { + bottom_search = true, -- use a classic bottom cmdline for search + command_palette = true, -- position the cmdline and popupmenu together + long_message_to_split = true, -- long messages will be sent to a split + inc_rename = false, -- enables an input dialog for inc-rename.nvim + lsp_doc_border = false, -- add a border to hover docs and signature help + }, + }) + end +} + + diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 7529d7c..4f79e4e 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -4,7 +4,7 @@ return { build = ':TSUpdate', config = function() require'nvim-treesitter'.setup { - ensure_installed = {"help", "vim", "c", "lua", "vimdoc", "python", "json", "rust"}, + ensure_installed = {"regex", "bash", "help", "vim", "c", "lua", "vimdoc", "python", "json", "rust"}, auto_install = true,