aboutsummaryrefslogtreecommitdiff
path: root/lua/gabrielgio/settable.lua
blob: 5096d3f0c0f878db7d19d2e181525927279e594f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
local key = require("gabrielgio.key")

vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.hidden = true
vim.opt.errorbells = false
vim.opt.exrc = true
vim.opt.relativenumber = true
vim.opt.hlsearch = true
vim.opt.nu = true
vim.opt.wrap = false
vim.opt.smartcase = true
vim.opt.ignorecase = true
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = "/home/gabrielgio/.local/share/nvim/undodir"
vim.opt.undofile = true
vim.opt.incsearch = true
vim.opt.termguicolors = true
vim.opt.scrolloff = 8
vim.opt.showmode = false
vim.opt.colorcolumn = "80"
vim.opt.signcolumn = "yes"
vim.opt.background = "light"
vim.opt.completeopt = {"menu", "menuone", "noselect"}
vim.opt.clipboard = (vim.opt.clipboard + "unnamedplus")
vim.opt.spelllang = {"en", "pt_br", "de"}
vim.opt.list = true
vim.opt.listchars = {
    eol = "\194\172",
    tab = ">\194\183",
    trail = "~",
    extends = ">",
    precedes = "<",
    space = "."
}
vim.opt.wildignore = (vim.opt.wildignore + "**/.git/*")
vim.g.mapleader = " "
vim.opt.updatetime = 100
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldenable = false
vim.o.background = "light"
if 1==1 then
    vim.cmd("colorscheme edge")
else
    vim.cmd("colorscheme gruvbox")
end
vim.g.loaded = 1
vim.g.loaded_netrwPlugin = 1
vim.g.CtrlSpaceDefaultMappingKey = "<C-space> "
vim.g.maplocalleader = ";"

vim.g.cmake_build_dir = "build"
vim.g.cmake_build_type = "Debug"


key.nnoremap("<leader>w", "<C-w>w")
key.nnoremap("<TAB>", ":bnext<CR>")
key.nnoremap("<S-TAB>", ":bprevious<CR>")
key.nnoremap("<C-TAB>", ":bd<CR>")