Skip to content

Commit

Permalink
docs: enable autocomplete for opts
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronr committed Aug 26, 2024
1 parent 1ed68e4 commit 405b220
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ AutoSession takes advantage of Neovim's existing session management capabilities
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', '/' },
-- log_level = 'debug',
Expand Down Expand Up @@ -163,6 +167,10 @@ You can use Telescope to see, load, and delete your sessions. It's enabled by de
{ '<leader>ws', '<cmd>SessionSave<CR>', desc = 'Save session' },
{ '<leader>wa', '<cmd>SessionToggleAutoSave<CR>', desc = 'Toggle autosave' },
},

---enables autocomplete for opts
---@module "auto-session"
---@type AutoSession.Config
opts = {
-- ⚠️ This will only work if Telescope.nvim is installed
-- The following are already the default values, no need to provide them if these are already the settings you want.
Expand Down

0 comments on commit 405b220

Please sign in to comment.