diff options
author | Tyler Davis <tyler@gluecode.net> | 2025-03-15 04:30:29 +0000 |
---|---|---|
committer | Tyler Davis <tyler@gluecode.net> | 2025-03-15 04:30:29 +0000 |
commit | 4d24d338e4a7b7c9c31d451e8797c7eff781e092 (patch) | |
tree | 2b9a84fe98b91c7f550e28dc5aa4ae58953282aa /.config/nvim/lua/settings.lua | |
parent | fcf300a450cce646b2632737c6a5fb2d3f1edb1b (diff) | |
download | dotfiles-4d24d338e4a7b7c9c31d451e8797c7eff781e092.tar.gz dotfiles-4d24d338e4a7b7c9c31d451e8797c7eff781e092.zip |
sh: adding neovim again
Diffstat (limited to '.config/nvim/lua/settings.lua')
-rw-r--r-- | .config/nvim/lua/settings.lua | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua deleted file mode 100644 index cac13fb..0000000 --- a/.config/nvim/lua/settings.lua +++ /dev/null @@ -1,96 +0,0 @@ --- Settings file -HOME = os.getenv("HOME") - --- Core settings -vim.g.mapleader = '\\' - ---New Neovim 0.7 settings, as vimcmd because not yet Lua-fied -vim.cmd [[ -let g:do_filetype_lua = 1 -let g:did_load_filetypes = 0 -]] - --- Sidebar -vim.o.number = true -- line number on the left -vim.o.numberwidth = 2 -- always reserve 2 spaces for line number -vim.o.signcolumn = 'yes' -- keep 1 column for coc.vim check -vim.o.modelines = 0 -vim.o.showcmd = true -- display command in bottom bar - --- Files and interface -vim.o.encoding = "utf-8" -vim.o.backspace = "eol,start,indent" -- backspace works on every char in insert mode -vim.o.completeopt = 'menuone,noselect' -vim.o.history = 500 ---vim.o.dictionary = '/usr/share/dict/words' -vim.o.startofline = true - -vim.o.expandtab = true -- expand tab to spaces -vim.o.autoindent = true -vim.o.smartindent = true -vim.o.tabstop = 8 -vim.o.shiftwidth = 8 -- indentation rule -vim.o.shiftround = true - --- Display -vim.o.showmatch = true -- show matching brackets -vim.o.scrolloff = 7 -- always show 3 rows from edge of the screen -vim.o.synmaxcol = 250 -- stop syntax highlight after x lines for performance -vim.o.laststatus = 3 -- always show status line, globally - -vim.o.list = false -- do not display white characters -vim.o.foldenable = false -vim.o.foldlevel = 4 -- limit folding to 4 levels -vim.o.foldmethod = 'syntax' -- use language syntax to generate folds -vim.o.matchtime = 2 -- delay (tenths of seconds) before showing matching paren - -vim.o.errorbells = false -vim.o.visualbell = false - --- Search -vim.o.incsearch = true -- starts searching as soon as typing, without enter needed -vim.o.ignorecase = true -- ignore letter case when searching -vim.o.smartcase = true -- case insentive unless capitals used in search - --- Colors -vim.o.background = "light" --- Can't set some values with lua yet -vim.cmd [[ - syntax off - colorscheme peachpuff -]] - --- Backup files -vim.o.backup = true -- use backup files -vim.o.writebackup = false -vim.o.swapfile = false -- do not use swap file -vim.o.undodir = HOME .. '/.vim/tmp/undo//' -- undo files -vim.o.backupdir = HOME .. '/.vim/tmp/backup//' -- backups -vim.o.directory = '/.vim/tmp/swap//' -- swap files - --- Command Mode -vim.o.wildmenu = true -- on TAB, complete options for system command -vim.o.wildignore = 'deps,.svn,CVS,.git,.hg,*.o,*.a,*.class,*.mo,*.la,*.so,*.obj,*.swp,*.jpg,*.png,*.xpm,*.gif,.DS_Store,*.aux,*.out,*.toc' - --- Remove trailing whitespace -vim.cmd [[ -autocmd BufWritePre * :%s/\s\+$//e -]] - --- Language Settings --- Go -vim.cmd [[ -autocmd BufWritePre *.go lua vim.lsp.buf.formatting() -autocmd BufWritePre *.go lua org_imports(2000) -]] - --- All files attempt to auto-format -vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.formatting_sync()]] - --- Auto-compile after changes to the file -vim.cmd [[ - augroup packer_user_config - autocmd! - autocmd BufWritePost plugins.lua source <afile> | PackerCompile - augroup end -]] |