64 lines
1.5 KiB
Lua
64 lines
1.5 KiB
Lua
|
vim.g.mapleader = " "
|
||
|
-- netrw is handled by nvim-tree
|
||
|
vim.g.loaded_netrw = 1
|
||
|
vim.g.loaded_netrwPlugin = 1
|
||
|
-- true colors
|
||
|
vim.o.termguicolors = true
|
||
|
vim.o.cmdheight = 0
|
||
|
-- line numbers
|
||
|
vim.o.mouse = "nv"
|
||
|
vim.o.number = true
|
||
|
vim.o.relativenumber = true
|
||
|
-- scroll offsets
|
||
|
vim.o.scrolloff = 5
|
||
|
vim.o.sidescrolloff = 15
|
||
|
-- always show status
|
||
|
vim.o.laststatus = 3
|
||
|
-- hide tab line
|
||
|
vim.o.showtabline = 0
|
||
|
vim.g.termguicolors = false
|
||
|
-- completion height
|
||
|
vim.o.pumheight = 15
|
||
|
-- split directions
|
||
|
vim.o.splitbelow = true
|
||
|
vim.o.splitright = true
|
||
|
vim.o.wrap = false
|
||
|
-- redefine word boundaries - '_' is a word separator, this helps with snake_case
|
||
|
vim.opt.iskeyword:remove("_")
|
||
|
-- indentations settings
|
||
|
vim.o.shiftwidth = 2
|
||
|
vim.o.tabstop = 2
|
||
|
vim.o.softtabstop = 0
|
||
|
vim.o.expandtab = true
|
||
|
vim.o.signcolumn = "yes:1"
|
||
|
vim.opt.shortmess:append("sI")
|
||
|
-- double box drawing characters for splits
|
||
|
vim.opt.fillchars:append({
|
||
|
horiz = "═",
|
||
|
horizup = "╩",
|
||
|
horizdown = "╦",
|
||
|
vert = "║",
|
||
|
vertright = "╠",
|
||
|
vertleft = "╣",
|
||
|
verthoriz = "╬",
|
||
|
})
|
||
|
|
||
|
if vim.g.neovide then
|
||
|
vim.g.neovide_refresh_rate = 60
|
||
|
vim.g.neovide_refresh_rate_idle = 5
|
||
|
vim.g.neovide_cursor_vfx_mode = "ripple"
|
||
|
vim.g.neovide_scroll_animation_length = 0.3
|
||
|
vim.g.neovide_input_macos_alt_is_meta = true
|
||
|
vim.g.neovide_hide_mouse_when_typing = true
|
||
|
vim.keymap.set(
|
||
|
"n",
|
||
|
"<M-CR>",
|
||
|
":let g:neovide_fullscreen = !g:neovide_fullscreen<CR>",
|
||
|
{
|
||
|
noremap = true,
|
||
|
silent = true,
|
||
|
}
|
||
|
)
|
||
|
vim.opt.guifont = { "BerkeleyMono Nerd Font", "h14", "#e-subpixelantialias" }
|
||
|
end
|