luaify vim init, add mouse scroll binds
This commit is contained in:
@@ -18,7 +18,7 @@ vim.opt.completeopt = noinsert,menuone,noselect
|
|||||||
vim.opt.cursorline = true
|
vim.opt.cursorline = true
|
||||||
|
|
||||||
-- don't require writing files when changing buffers
|
-- don't require writing files when changing buffers
|
||||||
vim.cmd("set hidden")
|
vim.opt.hidden = true
|
||||||
|
|
||||||
-- show find/replace preview in split window
|
-- show find/replace preview in split window
|
||||||
vim.opt.inccommand = split
|
vim.opt.inccommand = split
|
||||||
@@ -29,6 +29,9 @@ vim.opt.mouse = a
|
|||||||
-- set title of window to filename
|
-- set title of window to filename
|
||||||
vim.opt.title = true
|
vim.opt.title = true
|
||||||
|
|
||||||
|
-- make line breaks on words instead of characters
|
||||||
|
vim.opt.linebreak = true
|
||||||
|
|
||||||
-- replace tabs with spaces
|
-- replace tabs with spaces
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
|
|
||||||
@@ -229,3 +232,7 @@ vim.keymap.set('i', '<C-BS>', '<C-W>')
|
|||||||
|
|
||||||
-- map ctrl-delete to delete next word
|
-- map ctrl-delete to delete next word
|
||||||
vim.keymap.set('i', '<C-Del>', '<C-o>dw')
|
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>')
|
||||||
|
@@ -43,7 +43,7 @@ Arch Linux + BSPWM
|
|||||||
- [glow](https://github.com/charmbracelet/glow) - markdown preview
|
- [glow](https://github.com/charmbracelet/glow) - markdown preview
|
||||||
|
|
||||||
### development
|
### development
|
||||||
- [lunarvim](https://www.lunarvim.org/) - ide/text editor
|
- [neovim](https://neovim.io/) - ide/text editor
|
||||||
|
|
||||||
### media
|
### media
|
||||||
- music: [feishin](https://github.com/jeffvli/feishin) + [jellyfin](https://jellyfin.org)
|
- music: [feishin](https://github.com/jeffvli/feishin) + [jellyfin](https://jellyfin.org)
|
||||||
|
Reference in New Issue
Block a user