mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
64 lines
2.7 KiB
Lua
64 lines
2.7 KiB
Lua
local options = {
|
|
backup = false, -- creates a backup file
|
|
clipboard = "unnamedplus", -- allows neovim to access the system clipboard
|
|
cmdheight = 1, -- more space in the neovim command line for displaying messages
|
|
completeopt = { "menuone", "noselect" }, -- mostly just for cmp
|
|
conceallevel = 0, -- so that `` is visible in markdown files
|
|
fileencoding = "utf-8", -- the encoding written to a file
|
|
hlsearch = false, -- highlight all matches on previous search pattern
|
|
incsearch = true,
|
|
ignorecase = true, -- ignore case in search patterns
|
|
mouse = "a", -- allow the mouse to be used in neovim
|
|
pumheight = 10, -- pop up menu height showmode = false, -- we don't need to see things like -- INSERT -- anymore
|
|
showtabline = 0, -- disable tabs
|
|
smartcase = true, -- smart case
|
|
smartindent = true, -- make indenting smarter again
|
|
splitbelow = true, -- force all horizontal splits to go below current window
|
|
splitright = true, -- force all vertical splits to go to the right of current window
|
|
swapfile = false, -- creates a swapfile
|
|
termguicolors = true, -- set term gui colors (most terminals support this)
|
|
timeoutlen = 250, -- time to wait for a mapped sequence to complete (in milliseconds)
|
|
undofile = true, -- enable persistent undo
|
|
undodir = vim.fn.stdpath("data") .. "/nvim/undodir",
|
|
updatetime = 50, -- faster completion (4000ms default)
|
|
writebackup = false, -- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited
|
|
expandtab = true, -- convert tabs to spaces
|
|
shiftwidth = 4, -- the number of spaces inserted for each indentation
|
|
tabstop = 4, -- insert 4 spaces for a tab
|
|
cursorcolumn = true, -- highlight the current column
|
|
cursorline = true, -- highlight the current line
|
|
number = true, -- set numbered lines
|
|
relativenumber = true, -- set relative numbered lines
|
|
laststatus = 3,
|
|
showcmd = false,
|
|
ruler = false,
|
|
numberwidth = 4, -- set number column width to 4 {default 4}
|
|
signcolumn = "yes", -- always show the sign column, otherwise it would shift the text each time
|
|
wrap = false, -- display lines as one long line
|
|
scrolloff = 8, -- is one of my fav
|
|
sidescrolloff = 8,
|
|
guifont = "JetBrainsMono NF:h11", -- the font used in graphical neovim applications
|
|
spell = false,
|
|
foldmethod = "manual",
|
|
}
|
|
|
|
vim.opt.fillchars.eob = " "
|
|
vim.opt.shortmess:append("c")
|
|
vim.opt.whichwrap:append("<,>,[,],h,l")
|
|
vim.opt.iskeyword:append("-")
|
|
|
|
for k, v in pairs(options) do
|
|
vim.opt[k] = v
|
|
end
|
|
vim.opt.spelloptions:append("camel")
|
|
|
|
local g = vim.g
|
|
g.mapleader = " "
|
|
g.maplocalleader = " "
|
|
g.loaded_netrw = 1
|
|
g.loaded_netrwPlugin = 1
|
|
|
|
vim.opt_local.suffixesadd:prepend(".lua")
|
|
vim.opt_local.suffixesadd:prepend("init.lua")
|
|
vim.opt_local.path:prepend(vim.fn.stdpath("config") .. "/lua")
|