This repository has been archived on 2025-10-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
.nvim/lua/options.lua
Gustavo "Guz" L. de Mello 092129549f refactor: minimal setup
2024-03-11 22:22:31 -03:00

61 lines
1.0 KiB
Lua

vim.g.mapleader = ' ';
vim.g.maplocalleader = ' ';
-- vim.g.loaded_netrw = 1;
-- vim.g.loaded_netrwPlugin = 1;
vim.wo.number = true;
vim.o.mouse = true;
-- True colors
vim.o.termguicolors = true;
-- Enable filetype plugins
vim.o.filetype = true;
-- Enable spell checking by default
vim.o.spell = true;
-- Set relative line numbers
vim.o.number = true;
vim.o.relativenumber = true;
vim.o.signcolumn = 'number';
-- Set indentation
vim.o.noexpandtab = true;
vim.o.tabstop = 4;
vim.o.softtabstop = 4;
vim.o.shiftwidth = 4;
-- vim.o.expandtab = 4;
vim.o.breakindent = true;
-- Scroll off
vim.o.scrolloff = 10;
-- Line length column
vim.o.colorcolumn = '80';
-- Sync NeoVim and OS clipboards
vim.o.clipboard = 'unnamedplus';
-- Highlight search
vim.o.hlsearch = false;
vim.o.incsearch = true;
-- Save undo history
vim.o.undofile = true;
-- Case-insensitive search, unless \C or capital in search
vim.o.ignorecase = true;
vim.o.smartcase = true;
vim.wo.signcolumn = 'yes';
vim.o.updatetime = 250;
vim.o.timeoutlen = 300;
vim.o.completeopt = 'menuone,noselect';