luaify vim init, add mouse scroll binds

This commit is contained in:
azpsen
2025-01-08 10:33:10 -06:00
parent c2d83ad43d
commit 16f5a769f6
2 changed files with 9 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ vim.opt.completeopt = noinsert,menuone,noselect
vim.opt.cursorline = true
-- don't require writing files when changing buffers
vim.cmd("set hidden")
vim.opt.hidden = true
-- show find/replace preview in split window
vim.opt.inccommand = split
@@ -29,6 +29,9 @@ vim.opt.mouse = a
-- set title of window to filename
vim.opt.title = true
-- make line breaks on words instead of characters
vim.opt.linebreak = true
-- replace tabs with spaces
vim.opt.expandtab = true
@@ -229,3 +232,7 @@ vim.keymap.set('i', '<C-BS>', '<C-W>')
-- map ctrl-delete to delete next word
vim.keymap.set('i', '<C-Del>', '<C-o>dw')
-- mouse scrolling
vim.keymap.set('n', '<ScrollWheelUp>', '<C-u>')
vim.keymap.set('n', '<ScrollWheelDown>', '<C-d>')

View File

@@ -43,7 +43,7 @@ Arch Linux + BSPWM
- [glow](https://github.com/charmbracelet/glow) - markdown preview
### development
- [lunarvim](https://www.lunarvim.org/) - ide/text editor
- [neovim](https://neovim.io/) - ide/text editor
### media
- music: [feishin](https://github.com/jeffvli/feishin) + [jellyfin](https://jellyfin.org)