nixos-config/home/neovim.lua
Sridhar Ratnakumar 7e5668a40b redundant
2022-04-16 13:00:33 -04:00

31 lines
582 B
Lua

-- -------
-- Library
-- -------
function map(mode, shortcut, command)
vim.api.nvim_set_keymap(mode, shortcut, command, { noremap = true, silent = true })
end
function nmap(shortcut, command)
map('n', shortcut, command)
end
function imap(shortcut, command)
map('i', shortcut, command)
end
-- ------
-- Config
-- ------
vim.cmd([[
set nobackup
set termguicolors " 24-bit colors
" let g:tokyonight_style = "day"
let g:tokyonight_italic_functions = 1
colorscheme tokyonight
]])
-- I don't care about tabs.
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true