gabrielgio.lua @ 2d94bbee48f6a887e68737ed8d27e3b193618878

 1local key = require("gabrielgio.key")
 2
 3vim.opt.shiftwidth = 4
 4vim.opt.tabstop = 4
 5vim.opt.softtabstop = 4
 6vim.opt.shiftwidth = 4
 7vim.opt.expandtab = true
 8vim.opt.smartindent = true
 9vim.opt.hidden = true
10vim.opt.errorbells = false
11vim.opt.exrc = true
12vim.opt.relativenumber = true
13vim.opt.hlsearch = true
14vim.opt.nu = true
15vim.opt.wrap = false
16vim.opt.smartcase = true
17vim.opt.ignorecase = true
18vim.opt.swapfile = false
19vim.opt.backup = false
20vim.opt.undodir = "/home/gabrielgio/.local/share/nvim/undodir"
21vim.opt.undofile = true
22vim.opt.incsearch = true
23vim.opt.termguicolors = true
24vim.opt.scrolloff = 8
25vim.opt.showmode = false
26vim.opt.colorcolumn = "80"
27vim.opt.signcolumn = "yes"
28vim.opt.background = "light"
29vim.opt.completeopt = { "menu", "menuone", "noselect" }
30vim.opt.clipboard = (vim.opt.clipboard + "unnamedplus")
31vim.opt.spelllang = { "en", "pt_br", "de" }
32vim.opt.list = true
33vim.opt.listchars = {
34	eol = "\194\172",
35	tab = ">\194\183",
36	trail = "~",
37	extends = ">",
38	precedes = "<",
39	space = ".",
40}
41vim.opt.wildignore = (vim.opt.wildignore + "**/.git/*")
42vim.g.mapleader = " "
43vim.opt.updatetime = 100
44vim.opt.foldmethod = "expr"
45vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
46vim.opt.foldenable = false
47vim.o.background = "light"
48if 1 == 1 then
49	vim.cmd("colorscheme edge")
50else
51	vim.cmd("colorscheme gruvbox")
52end
53vim.g.loaded = 1
54vim.g.loaded_netrwPlugin = 1
55vim.g.CtrlSpaceDefaultMappingKey = "<C-space> "
56vim.g.maplocalleader = ";"
57
58vim.g.cmake_build_dir = "build"
59vim.g.cmake_build_type = "Debug"
60
61key.nnoremap("<leader>w", "<C-w>w")
62key.nnoremap("<TAB>", ":bnext<CR>")
63key.nnoremap("<S-TAB>", ":bprevious<CR>")
64key.nnoremap("<C-TAB>", ":bd<CR>")