initial commit

This commit is contained in:
tiasmt 2025-05-22 09:45:59 +02:00
parent a34a00b4d2
commit d2adb66f25
2 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
--[[ --[[init
===================================================================== =====================================================================
==================== READ THIS BEFORE CONTINUING ==================== ==================== READ THIS BEFORE CONTINUING ====================
@ -160,6 +160,11 @@ require('lazy').setup({
}, },
}, },
{
'stevearc/oil.nvim',
opts = {},
},
--- vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' }),
-- NOTE: Plugins can also be configured to run Lua code when they are loaded. -- NOTE: Plugins can also be configured to run Lua code when they are loaded.
-- --
-- This is often very useful to both group configuration, as well as handle -- This is often very useful to both group configuration, as well as handle
@ -174,7 +179,6 @@ require('lazy').setup({
-- Then, because we use the `config` key, the configuration only runs -- Then, because we use the `config` key, the configuration only runs
-- after the plugin has been loaded: -- after the plugin has been loaded:
-- config = function() ... end -- config = function() ... end
{ -- Useful plugin to show you pending keybinds. { -- Useful plugin to show you pending keybinds.
'folke/which-key.nvim', 'folke/which-key.nvim',
event = 'VimEnter', -- Sets the loading event to 'VimEnter' event = 'VimEnter', -- Sets the loading event to 'VimEnter'

View File

@ -93,6 +93,14 @@ vim.keymap.set('n', 'c#', '*``cgN')
vim.keymap.set('n', 'L', '$') vim.keymap.set('n', 'L', '$')
vim.keymap.set('n', 'H', '^') vim.keymap.set('n', 'H', '^')
vim.keymap.set('n', 'J', '}')
vim.keymap.set('n', 'K', '{')
vim.keymap.set('n', '<C-a>', 'ggVG"+y')
vim.keymap.set('x', '<', '<gv')
vim.keymap.set('x', '>', '>gv')
vim.keymap.set('x', 'p', 'P')
vim.api.nvim_set_keymap('n', '<C-t>', ':lua InsertTodo()<CR>', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '<C-t>', ':lua InsertTodo()<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('i', '<C-t>', '// todo: ', { noremap = true, silent = true }) vim.api.nvim_set_keymap('i', '<C-t>', '// todo: ', { noremap = true, silent = true })
@ -100,6 +108,8 @@ vim.api.nvim_set_keymap('i', '<C-t>', '// todo: ', { noremap = true, silent = tr
vim.api.nvim_set_keymap('n', '<C-i>', ':lua InsertId()<CR>', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '<C-i>', ':lua InsertId()<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('i', '<C-i>', '[Id()]', { noremap = true, silent = true }) vim.api.nvim_set_keymap('i', '<C-i>', '[Id()]', { noremap = true, silent = true })
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
-- See `:help wincmd` for a list of all window commands -- See `:help wincmd` for a list of all window commands
vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' }) vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' }) vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })