From 5471aba1a4badc6935ee60e02e08c2b16b2bde5d Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 19 Dec 2024 12:42:20 +0200 Subject: [PATCH] chore(nvim): autosession, configs, tweaks --- config/nvim/lua/options.lua | 2 ++ config/nvim/lua/plugins/lsp.lua | 2 +- config/nvim/lua/plugins/other.lua | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/config/nvim/lua/options.lua b/config/nvim/lua/options.lua index 14b20dd..2b9bcf1 100644 --- a/config/nvim/lua/options.lua +++ b/config/nvim/lua/options.lua @@ -38,6 +38,8 @@ o.splitright = true -- vsplit to the right o.termguicolors = true -- Enable GUI colors o.timeoutlen = 250 -- Decrease mapped sequence wait time o.updatetime = 250 -- 250 ms = 2,5 seconds +o.sessionoptions = + 'blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions' -- Enable the colorcolumn vim.api.nvim_set_option_value('colorcolumn', '+1', { scope = 'global' }) diff --git a/config/nvim/lua/plugins/lsp.lua b/config/nvim/lua/plugins/lsp.lua index dd285d8..6ad44ae 100644 --- a/config/nvim/lua/plugins/lsp.lua +++ b/config/nvim/lua/plugins/lsp.lua @@ -134,7 +134,6 @@ return { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons', }, - ---@type LspsagaConfig opts = { code_action = { show_server_name = true, @@ -192,6 +191,7 @@ return { auto_install = true, auto_update = true, ensure_installed = { + 'actionlint', 'editorconfig-checker', 'goimports', 'gotests', diff --git a/config/nvim/lua/plugins/other.lua b/config/nvim/lua/plugins/other.lua index 13b8b53..90694c1 100644 --- a/config/nvim/lua/plugins/other.lua +++ b/config/nvim/lua/plugins/other.lua @@ -1,4 +1,21 @@ return { + { + 'rmagatti/auto-session', + lazy = false, + version = '*', + ---@module "auto-session" + ---@type AutoSession.Config + opts = { + suppressed_dirs = { + '/', + '~/', + '~/Downloads', + '~/Library', + }, + -- log_level = 'debug', + }, + }, + { 'nvim-lua/plenary.nvim', version = '*',