Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

My Neovim Options

This is my options settings for Neovim. Details on options can be found with

Code

:h vim.o

~/.config/nvim/after/plugin/config-options.lua

nnoremap <silent> gb :BufferLinePick<CR>


-- Various config stuff
vim.o.wrap = false
vim.o.scrolloff = 3
vim.o.shell = "/bin/zsh"
vim.o.tabstop = 2
vim.o.shiftwidth = 2
vim.o.expandtab = true
vim.o.softtabstop = 2
vim.o.smarttab = true
vim.o.spell = true
vim.o.autowrite = true
vim.o.autoread = true
-- set autoindent
-- set smartindent
-- set shiftround
-- Set highlight on search
vim.o.hlsearch = false
-- Make line numbers default
vim.wo.number = true
vim.wo.rnu = true
-- Enable mouse mode
-- vim.o.mouse = 'a'
-- Sync clipboard between OS and Neovim.
--  Remove this option if you want your OS clipboard to remain independent.
--  See `:help 'clipboard'`
vim.o.clipboard = 'unnamedplus'
-- Enable break indent
vim.o.breakindent = true
-- Save undo history
-- vim.o.undofile = true -- turned off becuase it freams me out
-- Case insensitive searching UNLESS /C or capital in search
vim.o.ignorecase = true
vim.o.smartcase = true
-- Keep signcolumn on by default
vim.wo.signcolumn = 'yes'
-- Decrease update time
vim.o.updatetime = 50
vim.o.timeout = true
vim.o.timeoutlen = 1000
-- Set completeopt to have a better completion experience
vim.o.completeopt = 'menuone,noselect'
-- NOTE: You should make sure your terminal supports this
vim.o.termguicolors = true

-- Highlight the currnet line
-- vim.o.cursorline = true
-- vim.o.culopt = 'line'

-- Let left arrow go to previous line. The "b" and "s"
-- are defaults. The "[" is what provides the functionality
vim.o.whichwrap="b,s,["

-- Attempt turning filetype on
-- vim.o.filetype="on"