Various Plugins and Settings

This commit is contained in:
Norm Rasmussen
2022-12-07 14:09:19 -05:00
parent 8d46ae585e
commit 822dc35b50
8 changed files with 141 additions and 64 deletions

View File

@ -25,6 +25,7 @@ opt.cursorline = true
g.markdown_folding = 1
opt.spell=true
opt.spelllang = 'en_us'
cmd [[ autocmd FileType md autocmd BufWritePre * :%s/\s\+$//e ]]
-----------------------------------------------------------
-- Neovim UI
-----------------------------------------------------------
@ -47,7 +48,6 @@ opt.hidden = true -- Enable background buffers
opt.history = 100 -- Remember N lines in history
opt.lazyredraw = true -- Faster scrolling
opt.synmaxcol = 240 -- Max column for syntax highlight
-----------------------------------------------------------
-- Colorscheme
-----------------------------------------------------------
@ -57,8 +57,8 @@ cmd [[colorscheme catppuccin-macchiato]]
-- Tabs, indent
-----------------------------------------------------------
opt.expandtab = true -- Use spaces instead of tabs
opt.shiftwidth = 4 -- Shift 4 spaces when tab
opt.tabstop = 4 -- 1 tab == 4 spaces
opt.shiftwidth = 2 -- Shift 4 spaces when tab
opt.tabstop = 8 -- 1 tab == 4 spaces
opt.smartindent = true -- Autoindent new lines
-----------------------------------------------------------
-- Glow Settings
@ -73,7 +73,7 @@ g.glow_style = 'dark'
-----------------------------------------------------------
-- 2 spaces for selected filetypes
cmd [[
autocmd FileType md,liquid,xml,html,xhtml,css,scss,javascript,lua,yaml setlocal shiftwidth=2 tabstop=2
autocmd FileType md,liquid,xml,html,xhtml,css,scss,javascript,lua,yaml setlocal shiftwidth=2 tabstop=8 noexpandtab
]]
local disabled_built_ins = {