Updated Neovim Plugins as well as cleaned up aerospace config and sketbar config and added fastfetch config
50 lines
938 B
Lua
50 lines
938 B
Lua
local opt = vim.opt
|
|
|
|
opt.relativenumber = true
|
|
opt.number = true
|
|
|
|
-- tabs & indentation
|
|
opt.tabstop = 2
|
|
opt.shiftwidth = 2
|
|
opt.expandtab = true
|
|
opt.autoindent = true
|
|
|
|
-- disable line wrapping
|
|
opt.wrap = false
|
|
|
|
-- search settings
|
|
opt.ignorecase = true
|
|
opt.smartcase = true
|
|
|
|
-- undo
|
|
opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
|
opt.undofile = true
|
|
|
|
-- search behaviour
|
|
opt.hlsearch = false
|
|
opt.incsearch = true
|
|
|
|
-- colorscheme
|
|
opt.termguicolors = true
|
|
opt.background = "dark"
|
|
opt.signcolumn = "yes"
|
|
|
|
-- backspace
|
|
opt.backspace = "indent,eol,start"
|
|
|
|
-- clipboard
|
|
opt.clipboard:append("unnamedplus")
|
|
|
|
-- splitting windows
|
|
opt.splitright = true
|
|
opt.splitbelow = true
|
|
|
|
opt.iskeyword:append("-")
|
|
|
|
-- concealer
|
|
opt.conceallevel = 2
|
|
|
|
vim.cmd([[autocmd BufEnter *.pdf execute "!zathura '%'" | bdelete %]])
|
|
vim.cmd([[autocmd BufEnter *.jpg execute "!open '%'" | bdelete %]])
|
|
vim.cmd([[autocmd BufEnter *.png execute "!open '%'" | bdelete %]])
|