More stuff

This commit is contained in:
Lackermeier, Florian 2024-05-16 14:34:39 +02:00
parent 8372bece28
commit a010833bc3
5 changed files with 48 additions and 6 deletions

View File

@ -718,9 +718,9 @@ require('lazy').setup({
-- No, but seriously. Please read `:help ins-completion`, it is really good!
mapping = cmp.mapping.preset.insert {
-- Select the [n]ext item
['<C-n>'] = cmp.mapping.select_next_item(),
-- ['<C-n>'] = cmp.mapping.select_next_item(),
-- Select the [p]revious item
['<C-p>'] = cmp.mapping.select_prev_item(),
-- ['<C-p>'] = cmp.mapping.select_prev_item(),
-- Scroll the documentation window [b]ack / [f]orward
['<C-b>'] = cmp.mapping.scroll_docs(-4),
@ -729,13 +729,13 @@ require('lazy').setup({
-- Accept ([y]es) the completion.
-- This will auto-import if your LSP supports it.
-- This will expand snippets if the LSP sent a snippet.
['<C-y>'] = cmp.mapping.confirm { select = true },
['<Tab>'] = cmp.mapping.confirm { select = true },
-- If you prefer more traditional completion keymaps,
-- you can uncomment the following lines
--['<CR>'] = cmp.mapping.confirm { select = true },
--['<Tab>'] = cmp.mapping.select_next_item(),
--['<S-Tab>'] = cmp.mapping.select_prev_item(),
['<M-j>'] = cmp.mapping.select_next_item(),
['<M-k>'] = cmp.mapping.select_prev_item(),
-- Manually trigger a completion from nvim-cmp.
-- Generally you don't need this, because nvim-cmp will display

View File

@ -0,0 +1,18 @@
return {
'rmagatti/auto-session',
config = function()
require("auto-session").setup {
log_level = "error",
cwd_change_handling = {
restore_upcoming_session = true, -- already the default, no need to specify like this, only here as an example
pre_cwd_changed_hook = nil, -- already the default, no need to specify like this, only here as an example
post_cwd_changed_hook = function() -- example refreshing the lualine status line _after_ the cwd changes
require("lualine").refresh() -- refresh lualine so the new session name is displayed in the status bar
end,
},
}
end
}

View File

@ -1,4 +1,6 @@
return{
{
-- Gruvbox colorscheme
'sainnhe/gruvbox-material',
priority = 1000, -- Make sure to load this before all the other start plugins.
init = function()
@ -10,4 +12,20 @@ return{
-- You can configure highlights by doing something like:
-- vim.cmd.hi 'Comment gui=none'
end,
},
{
-- catpuccin colorscheme
"catppuccin/nvim",
priority = 1000,
},
{
-- kanagawa.nvim colorscheme
'rebelot/kanagawa.nvim',
priority = 1000,
},
{
-- onedark colorscheme
'navarasu/onedark.nvim',
priority = 1000,
},
}

View File

@ -0,0 +1,6 @@
return {
'mbbill/undotree',
config = function()
vim.keymap.set('n', '<leader>ut', vim.cmd.UndotreeToggle, { desc = "[u]ndo [t]ree"})
end,
}

View File

@ -1,6 +1,6 @@
return {
'tpope/vim-fugitive',
config = function()
vim.keymap.set('n', '<leader>G', vim.cmd.G, { desc = 'Open [G]it Window' })
end,
}