summaryrefslogblamecommitdiffstats
path: root/.config/nvim/lua/settings.lua
blob: 2741c99da56a08727cb22bcb161cbad7aa382d64 (plain) (tree)





























                                                                            
bo.expandtab = false
bo.shiftwidth = 8
bo.softtabstop = 8

o.completeopt = 'longest,menuone'
o.shell = '/bin/sh'
o.encoding = 'utf-8'
o.scrolloff = 3
o.lazyredraw = true
o.autochdir = true
o.smarttab = true
o.number = true
o.list = true

o.swapfile = false

-- o.foldmethod = 'expr'
-- o.foldexpr = 'nvim_treesitter#foldexpr()'

cmd 'syntax enable'
cmd 'filetype on'
cmd 'filetype plugin on'
cmd 'filetype indent on'
cmd 'colorscheme colorscheme'

vim.cmd([[
au BufNewFile,BufRead *.Dockerfile,Dockerfile.* setlocal filetype=dockerfile
au BufNewFile,BufRead *.j2*,*.jinja* setlocal filetype=django
au BufNewFile,BufRead *.env* setlocal filetype=sh
]])
remember that computers suck.