Skip to content

Commit cd01128

Browse files
adding utils
1 parent 33c0ed6 commit cd01128

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

lua/config/keymaps.lua

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,17 @@ vim.keymap.set('i', '<CR>', function()
3838
else
3939
return '<CR>'
4040
end
41-
end, { expr = true })
41+
end, { expr = true })
42+
43+
-- Move lines up/down with Alt+J/K
44+
vim.keymap.set('n', '<A-j>', ':m .+1<CR>==', { desc = 'Move line down' })
45+
vim.keymap.set('n', '<A-k>', ':m .-2<CR>==', { desc = 'Move line up' })
46+
vim.keymap.set('v', '<A-j>', ":m '>+1<CR>gv=gv", { desc = 'Move selection down' })
47+
vim.keymap.set('v', '<A-k>', ":m '<-2<CR>gv=gv", { desc = 'Move selection up' })
48+
49+
-- Comment/uncomment lines with Ctrl+,
50+
vim.keymap.set('n', '<C-,>', 'gcc', { desc = 'Comment line', remap = true })
51+
vim.keymap.set('v', '<C-,>', 'gc', { desc = 'Comment selection', remap = true })
52+
53+
-- Copy to clipboard with Ctrl+C
54+
vim.keymap.set('v', '<C-c>', '"+y', { desc = 'Copy to clipboard' })

lua/plugins/theme.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ return {
6363
hi('CursorColumn', '', c.line_bg, '')
6464
hi('LineNr', c.light_gray, '', '')
6565
hi('CursorLineNr', c.focus_fg, '', 'bold')
66-
hi('Visual', '', '#3d3d3d28', '')
67-
hi('VisualNOS', '', '#3d3d3d28', '')
66+
hi('Visual', '', '#404040', '')
67+
hi('VisualNOS', '', '#404040', '')
6868
hi('Search', c.black, c.number, '')
6969
hi('IncSearch', c.black, c.active_fg, '')
7070
hi('MatchParen', '', '#0064001a', '')

0 commit comments

Comments
 (0)