Skip to content

Commit d2adb66

Browse files
committed
initial commit
1 parent a34a00b commit d2adb66

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

init.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--[[
1+
--[[init
22
33
=====================================================================
44
==================== READ THIS BEFORE CONTINUING ====================
@@ -160,6 +160,11 @@ require('lazy').setup({
160160
},
161161
},
162162

163+
{
164+
'stevearc/oil.nvim',
165+
opts = {},
166+
},
167+
--- vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' }),
163168
-- NOTE: Plugins can also be configured to run Lua code when they are loaded.
164169
--
165170
-- This is often very useful to both group configuration, as well as handle
@@ -174,7 +179,6 @@ require('lazy').setup({
174179
-- Then, because we use the `config` key, the configuration only runs
175180
-- after the plugin has been loaded:
176181
-- config = function() ... end
177-
178182
{ -- Useful plugin to show you pending keybinds.
179183
'folke/which-key.nvim',
180184
event = 'VimEnter', -- Sets the loading event to 'VimEnter'

lua/keymaps.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,23 @@ vim.keymap.set('n', 'c#', '*``cgN')
9393

9494
vim.keymap.set('n', 'L', '$')
9595
vim.keymap.set('n', 'H', '^')
96+
vim.keymap.set('n', 'J', '}')
97+
vim.keymap.set('n', 'K', '{')
98+
99+
vim.keymap.set('n', '<C-a>', 'ggVG"+y')
100+
vim.keymap.set('x', '<', '<gv')
101+
vim.keymap.set('x', '>', '>gv')
102+
103+
vim.keymap.set('x', 'p', 'P')
96104

97105
vim.api.nvim_set_keymap('n', '<C-t>', ':lua InsertTodo()<CR>', { noremap = true, silent = true })
98106
vim.api.nvim_set_keymap('i', '<C-t>', '// todo: ', { noremap = true, silent = true })
99107

100108
vim.api.nvim_set_keymap('n', '<C-i>', ':lua InsertId()<CR>', { noremap = true, silent = true })
101109
vim.api.nvim_set_keymap('i', '<C-i>', '[Id()]', { noremap = true, silent = true })
102110

111+
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
112+
103113
-- See `:help wincmd` for a list of all window commands
104114
vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
105115
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })

0 commit comments

Comments
 (0)