28 lines
637 B
Lua
28 lines
637 B
Lua
-- neovim/vim options
|
|
local opt = vim.opt
|
|
|
|
opt.guicursor = "" -- For indentation
|
|
|
|
opt.relativenumber = true
|
|
opt.number = true
|
|
|
|
opt.tabstop = 2
|
|
opt.softtabstop = 2
|
|
opt.shiftwidth = 2
|
|
opt.smartindent = true
|
|
|
|
opt.hlsearch = false
|
|
opt.incsearch = true
|
|
|
|
opt.termguicolors = true
|
|
|
|
vim.g.rust_recommended_style = 0
|
|
|
|
-- Keybinds
|
|
local keybind = vim.keymap.set
|
|
keybind('n', "<leader>hh", '<cmd>lua vim.diagnostic.setqflist()<CR>')
|
|
keybind('v', "<leader>ii", '\"+y')
|
|
keybind('n', "<leader>bb", '<cmd>bprevious<CR>')
|
|
keybind('n', "<leader>nn", '<cmd>bnext<CR>')
|
|
keybind('n', "<leader>,,", '<cmd>bdel<CR>')
|
|
keybind('i', "jk", '<Esc>') -- For justin
|