1
0
Fork 0
dotfiles/.config/nvim/init.lua
Lucas Sta Maria 5619e9b217
fix: add castel latex workflow
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
2022-09-11 23:30:48 -04:00

38 lines
713 B
Lua

-- https://github.com/priime0/dotfiles
-- given a key and value, set nvim's global settings of key to value
local function opt(key, value)
vim.o[key] = value
end
-- line numbers
opt("number", true)
opt("relativenumber", true)
-- tabs
opt("expandtab", true)
opt("tabstop", 4)
opt("shiftwidth", 4)
opt("smarttab", true)
-- indentation
opt("smartindent", true)
opt("autoindent", true)
-- misc
opt("termguicolors", true)
opt("scrolloff", 1)
opt("cursorline", true)
opt("showcmd", true)
opt("inccommand", "split")
opt("updatetime", 100)
opt("mouse", "a")
vim.g.mapleader = " "
vim.g.copilot_no_tab_map = true
require("plugins")
require("mappings")
require("treesitter")
require("completion")
require("lsp")