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

37 lines
1.2 KiB
Lua
Raw Normal View History

2022-02-01 11:02:02 +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
2022-01-30 19:10:57 +01:00
-- Basic options
2022-02-01 11:02:02 +01:00
opt.joinspaces = false -- No double spaces with join
opt.list = true -- Show some invisible characters
2022-01-30 20:19:35 +01:00
2022-02-01 11:02:02 +01:00
opt.number = true -- Show line numbers
opt.relativenumber = true -- Relative line numbers
2022-01-30 19:10:57 +01:00
2022-02-01 11:02:02 +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
2022-01-30 20:19:35 +01:00
2022-02-01 11:02:02 +01:00
opt.ignorecase = true -- Ignore case
opt.smartcase = true -- Do not ignore case with capitals
2022-01-30 20:19:35 +01:00
2022-02-01 11:02:02 +01:00
opt.smartindent = true -- Insert indents automatically
2022-01-30 20:19:35 +01:00
2022-02-01 11:02:02 +01:00
opt.splitbelow = true -- Put new windows below current
opt.splitright = true -- Put new windows right of current
2022-01-30 20:19:35 +01:00
2022-02-01 11:02:02 +01:00
opt.wrap = false -- Disable line wrap
opt.wildmode = {'list', 'longest'} -- Command-line completion mode
2022-01-30 20:19:35 +01:00
2022-02-23 15:44:33 +01:00
opt.completeopt = {"menu", "menuone", "noselect"}
2022-01-30 19:10:57 +01:00
-- Set theme
2022-02-01 11:02:02 +01:00
require('github-theme').setup({theme_style = "light", dark_float = true})
2022-01-30 19:10:57 +01:00
-- Import my other files
2022-01-30 20:19:35 +01:00
require('my.keymaps').setup()
2022-01-31 21:41:13 +01:00
require('my.plugins').setup()