Something went wrong. Try again.
my dotfiles for arch
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798vim.g.mapleader = " "vim.g.maplocalleader = " "
vim.opt.nu = truevim.opt.relativenumber = true
vim.opt.tabstop = 2vim.opt.softtabstop = 2vim.opt.shiftwidth = 2
vim.opt.expandtab = false
vim.opt.smartindent = true
vim.opt.swapfile = falsevim.opt.backup = falsevim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"vim.opt.undofile = true
vim.opt.hlsearch = falsevim.opt.incsearch = true
vim.opt.termguicolors = true
vim.opt.scrolloff = 8
vim.opt.updatetime = 50
vim.opt.ignorecase = truevim.opt.smartcase = true
-- vim.opt.colorcolumn = "80"
vim.opt.inccommand = "nosplit"
vim.opt.cursorline = true
vim.g.have_nerd_font = true
-- Enable mouse mode, can be useful for resizing splits for example!vim.o.mouse = "a"
-- Don't show the mode, since it's already in the status linevim.o.showmode = false
-- Enable break indentvim.o.breakindent = true
-- Save undo historyvim.o.undofile = true
-- Keep signcolumn on by defaultvim.o.signcolumn = "yes"
-- Decrease update time-- vim.o.updatetime = 250
-- Decrease mapped sequence wait timevim.o.timeoutlen = 300
-- Configure how new splits should be openedvim.o.splitright = truevim.o.splitbelow = true
-- Sets how neovim will display certain whitespace characters in the editor.-- See `:help 'list'`-- and `:help 'listchars'`---- Notice listchars is set using `vim.opt` instead of `vim.o`.-- It is very similar to `vim.o` but offers an interface for conveniently interacting with tables.-- See `:help lua-options`-- and `:help lua-options-guide`vim.o.list = truevim.opt.listchars = { tab = "» ", trail = "·", nbsp = "␣" }
-- Preview substitutions live, as you type!vim.o.inccommand = "split"
-- Show which line your cursor is onvim.o.cursorline = true
-- Minimal number of screen lines to keep above and below the cursor.vim.o.scrolloff = 10
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),-- instead raise a dialog asking if you wish to save the current file(s)-- See `:help 'confirm'`vim.o.confirm = true
-- vim.o.winborder = "rounded"
-- Highlight text on yankvim.api.nvim_create_autocmd("TextYankPost", { callback = function() vim.highlight.on_yank({ timeout = 100 }) end,})