added auto-session support

This commit is contained in:
2025-05-16 14:03:39 +02:00
parent fca859c4cb
commit 78c1905cab
5 changed files with 188 additions and 149 deletions

1
after/plugin/session.lua Normal file
View File

@ -0,0 +1 @@
vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"

View File

@ -2,5 +2,6 @@ local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>pf', builtin.find_files, { desc = 'Telescope find files' })
vim.keymap.set('n', '<C-p>', builtin.git_files, {})
vim.keymap.set('n', '<leader>ps', function()
builtin.grep_string({ search = vim.fn.input("Grep > ") })
-- builtin.grep_string({ search = vim.fn.input("Grep > ") })
builtin.live_grep()
end)