diff --git a/lazy-lock.json b/lazy-lock.json index e052389..85cb576 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,6 +1,7 @@ { "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" }, "alpha-nvim": { "branch": "main", "commit": "b6f4129302db197a7249e67a90de3f2b676de13e" }, + "auto-session": { "branch": "main", "commit": "a90aa7730efa60fdcc7e00497a8f36d94a6da709" }, "bufferline.nvim": { "branch": "main", "commit": "2e3c8cc5a57ddd32f1edd2ffd2ccb10c09421f6c" }, "catppuccin": { "branch": "main", "commit": "4fd72a9ab64b393c2c22b168508fd244877fec96" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, diff --git a/lua/rua/core/options.lua b/lua/rua/core/options.lua index a204cc5..d563e0d 100644 --- a/lua/rua/core/options.lua +++ b/lua/rua/core/options.lua @@ -51,7 +51,7 @@ opt.inccommand = "nosplit" -- preview incremental substitute opt.jumpoptions = "view" opt.laststatus = 3 -- global statusline opt.linebreak = true -- Wrap lines at convenient points -opt.list = true -- Show some invisible characters (tabs... +-- opt.list = true -- Show some invisible characters (tabs... opt.mouse = "a" -- Enable mouse mode opt.number = true -- Print line number opt.pumblend = 10 -- Popup blend diff --git a/lua/rua/plugins/auto-session.lua b/lua/rua/plugins/auto-session.lua new file mode 100644 index 0000000..3e40b10 --- /dev/null +++ b/lua/rua/plugins/auto-session.lua @@ -0,0 +1,16 @@ +return { + "rmagatti/auto-session", + lazy = true, + event = "VeryLazy", + dependencies = { + "nvim-telescope/telescope.nvim", -- Only needed if you want to use session lens + }, + ---enables autocomplete for opts + ---@module "auto-session" + ---@type AutoSession.Config + opts = { + suppressed_dirs = { "~/", "~/Projects", "~/Downloads", "/" }, + auto_restore = false, + -- log_level = 'debug', + }, +} diff --git a/lua/rua/plugins/lsp/lspconfig.lua b/lua/rua/plugins/lsp/lspconfig.lua index 1ebf941..0f566e9 100644 --- a/lua/rua/plugins/lsp/lspconfig.lua +++ b/lua/rua/plugins/lsp/lspconfig.lua @@ -77,6 +77,7 @@ return { end, ["vtsls"] = function() lspconfig["vtsls"].setup(require("rua.config.vtsls")) + map("n", "co", " OrganizeImports ", { desc = "Organize imports" }) end, ["lua_ls"] = function() lspconfig["lua_ls"].setup({