dotfiles/cli/vim/neovim/init.lua

41 lines
861 B
Lua
Raw Normal View History

2022-07-06 14:50:45 +00:00
-- global options
vim.g.mapleader = ";"
vim.g.clipboard = {
name = "sysclip",
copy = {
["+"] = {"xsel", "-b"},
["*"] = {"xsel", "-b"},
},
paste = {
["+"] = {"xsel", "-b"},
["*"] = {"xsel", "-b"},
},
}
-- general options
vim.o.cursorline = true
vim.o.colorcolumn = 120
vim.o.scrolloff = 8
--vim.o.clipboard = "unnamedplus"
vim.o.expandtab = true
vim.o.list = true
vim.o.mouse = "a"
-- window options
vim.wo.number = true
vim.wo.relativenumber = true
2022-07-06 14:50:45 +00:00
-- more
require("keybindings")
require("plugins")
gruvbox_ok, gruvbox = pcall(require, "gruvbox")
if gruvbox_ok then
vim.o.background = "dark"
vim.cmd [[
colorscheme gruvbox
highlight Normal ctermbg=None guibg=none
highlight CursorLine ctermbg=240
]]
end