More stuff
This commit is contained in:
parent
8372bece28
commit
a010833bc3
10
init.lua
10
init.lua
|
|
@ -718,9 +718,9 @@ require('lazy').setup({
|
||||||
-- No, but seriously. Please read `:help ins-completion`, it is really good!
|
-- No, but seriously. Please read `:help ins-completion`, it is really good!
|
||||||
mapping = cmp.mapping.preset.insert {
|
mapping = cmp.mapping.preset.insert {
|
||||||
-- Select the [n]ext item
|
-- Select the [n]ext item
|
||||||
['<C-n>'] = cmp.mapping.select_next_item(),
|
-- ['<C-n>'] = cmp.mapping.select_next_item(),
|
||||||
-- Select the [p]revious 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
|
-- Scroll the documentation window [b]ack / [f]orward
|
||||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||||
|
|
@ -729,13 +729,13 @@ require('lazy').setup({
|
||||||
-- Accept ([y]es) the completion.
|
-- Accept ([y]es) the completion.
|
||||||
-- This will auto-import if your LSP supports it.
|
-- This will auto-import if your LSP supports it.
|
||||||
-- This will expand snippets if the LSP sent a snippet.
|
-- 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,
|
-- If you prefer more traditional completion keymaps,
|
||||||
-- you can uncomment the following lines
|
-- you can uncomment the following lines
|
||||||
--['<CR>'] = cmp.mapping.confirm { select = true },
|
--['<CR>'] = cmp.mapping.confirm { select = true },
|
||||||
--['<Tab>'] = cmp.mapping.select_next_item(),
|
['<M-j>'] = cmp.mapping.select_next_item(),
|
||||||
--['<S-Tab>'] = cmp.mapping.select_prev_item(),
|
['<M-k>'] = cmp.mapping.select_prev_item(),
|
||||||
|
|
||||||
-- Manually trigger a completion from nvim-cmp.
|
-- Manually trigger a completion from nvim-cmp.
|
||||||
-- Generally you don't need this, because nvim-cmp will display
|
-- Generally you don't need this, because nvim-cmp will display
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
return{
|
return{
|
||||||
|
{
|
||||||
|
-- Gruvbox colorscheme
|
||||||
'sainnhe/gruvbox-material',
|
'sainnhe/gruvbox-material',
|
||||||
priority = 1000, -- Make sure to load this before all the other start plugins.
|
priority = 1000, -- Make sure to load this before all the other start plugins.
|
||||||
init = function()
|
init = function()
|
||||||
|
|
@ -10,4 +12,20 @@ return{
|
||||||
-- You can configure highlights by doing something like:
|
-- You can configure highlights by doing something like:
|
||||||
-- vim.cmd.hi 'Comment gui=none'
|
-- vim.cmd.hi 'Comment gui=none'
|
||||||
end,
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
-- catpuccin colorscheme
|
||||||
|
"catppuccin/nvim",
|
||||||
|
priority = 1000,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
-- kanagawa.nvim colorscheme
|
||||||
|
'rebelot/kanagawa.nvim',
|
||||||
|
priority = 1000,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
-- onedark colorscheme
|
||||||
|
'navarasu/onedark.nvim',
|
||||||
|
priority = 1000,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
return {
|
||||||
|
'mbbill/undotree',
|
||||||
|
config = function()
|
||||||
|
vim.keymap.set('n', '<leader>ut', vim.cmd.UndotreeToggle, { desc = "[u]ndo [t]ree"})
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
return {
|
return {
|
||||||
'tpope/vim-fugitive',
|
'tpope/vim-fugitive',
|
||||||
config = function()
|
config = function()
|
||||||
|
vim.keymap.set('n', '<leader>G', vim.cmd.G, { desc = 'Open [G]it Window' })
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue