more changesssss
This commit is contained in:
2
nvim/config/lazygit.lua
Normal file
2
nvim/config/lazygit.lua
Normal file
@@ -0,0 +1,2 @@
|
||||
require('lazygit')
|
||||
vim.keymap.set('n', "<leader>lg", "<cmd>LazyGit<cr>", { desc = "LazyGit" })
|
||||
20
nvim/config/presisted.lua
Normal file
20
nvim/config/presisted.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
require("persisted").setup({
|
||||
telescope = {
|
||||
mappings = { -- Mappings for managing sessions in Telescope
|
||||
copy_session = "<C-c>",
|
||||
change_branch = "<C-b>",
|
||||
delete_session = "<C-d>",
|
||||
},
|
||||
icons = { -- icons displayed in the Telescope picker
|
||||
selected = " ",
|
||||
dir = " ",
|
||||
branch = " ",
|
||||
},
|
||||
},
|
||||
follow_cwd = true, -- Change the session file to match any change in the cwd?
|
||||
use_git_branch = true, -- Include the git branch in the session file name?
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
5
nvim/config/sessions.lua
Normal file
5
nvim/config/sessions.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
require("sessions").setup({
|
||||
events = { "WinEnter" },
|
||||
session_filepath = "~/dotfiles/nvim/sessions/",
|
||||
absolute = false,
|
||||
})
|
||||
18
nvim/config/telescope.lua
Normal file
18
nvim/config/telescope.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
local telescope = require('telescope')
|
||||
telescope.setup({
|
||||
defaults = {
|
||||
…
|
||||
},
|
||||
extensions = {
|
||||
persisted = {
|
||||
layout_config = { width = 0.55, height = 0.55 }
|
||||
}
|
||||
}
|
||||
})
|
||||
telescope.load_extension("persisted")
|
||||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = 'Telescope find files' })
|
||||
vim.keymap.set('n', '<leader>fg', builtin.live_grep, { desc = 'Telescope live grep' })
|
||||
vim.keymap.set('n', '<leader>fb', builtin.buffers, { desc = 'Telescope buffers' })
|
||||
vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = 'Telescope help tags' })
|
||||
vim.keymap.set('n', '<leader>fs', '<cmd>Telescope persisted<cr>')
|
||||
Reference in New Issue
Block a user