1
Fork 0
satellite/dotfiles/neovim/init.lua

36 lines
1.3 KiB
Lua
Raw Normal View History

2022-01-30 19:10:57 +01:00
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd')
local fn = vim.fn -- to call Vim functions e.g. fn.bufnr()
local g = vim.g -- a table to access global variables
local opt = vim.opt -- to set options
-- Basic options
2022-01-30 20:19:35 +01:00
opt.joinspaces = false -- No double spaces with join
opt.list = true -- Show some invisible characters
2022-01-30 19:10:57 +01:00
opt.number = true -- Show line numbers
opt.relativenumber = true -- Relative line numbers
2022-01-30 20:19:35 +01:00
opt.scrolloff = 4 -- Lines of context
opt.shiftround = true -- Round indent
opt.shiftwidth = 2 -- Size of an indent
opt.termguicolors = true -- True color support
opt.ignorecase = true -- Ignore case
opt.smartcase = true -- Do not ignore case with capitals
opt.smartindent = true -- Insert indents automatically
opt.splitbelow = true -- Put new windows below current
opt.splitright = true -- Put new windows right of current
opt.wrap = false -- Disable line wrap
opt.wildmode = {'list', 'longest'} -- Command-line completion mode
2022-01-30 19:10:57 +01:00
-- Set theme
2022-01-30 20:19:35 +01:00
require('github-theme').setup({
theme_style = "light"
})
2022-01-30 19:10:57 +01:00
-- Import my other files
2022-01-30 20:19:35 +01:00
require('my.keymaps').setup()