From bcf4c2b2b577a50c8a9bb29895ebfed0e3326fc5 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Thu, 23 Sep 2021 17:13:06 -0700 Subject: [PATCH 1/4] nvim: removed cmake from ale lint list --- .config/nvim/lua/plugins.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index a9f4d84..1261624 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -104,7 +104,7 @@ return require('packer').startup(function() } use { -- ALE: Support for lots of linters, etc 'dense-analysis/ale', - ft = {'sh', 'zsh', 'bash', 'cmake', 'html', 'markdown', 'racket', 'vim', 'tex'}, + ft = {'sh', 'zsh', 'bash', 'html', 'markdown', 'racket', 'vim', 'tex'}, config = function() vim.g.ale_disable_lsp = 1 end From 6f8a11cb1ab26a51b54396509229b941f5f7199d Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Thu, 23 Sep 2021 17:13:45 -0700 Subject: [PATCH 2/4] nvim: add support for hex editing --- .config/nvim/lua/settings.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua index e787f58..c0a9917 100644 --- a/.config/nvim/lua/settings.lua +++ b/.config/nvim/lua/settings.lua @@ -81,7 +81,21 @@ vim.cmd [[ vnoremap J :m '>+1gv=gv vnoremap K :m '<-2gv=gv -colorscheme slate + " Make vim a hex editor + " Edit *.bin files as binaries rather than text files (if your file isn't a .bin, + " make a symlink that points to it with the .bin extension and edit the symlink ;) + augroup Binary + au! + au BufReadPre *.bin let &bin=1 + au BufReadPost *.bin if &bin | %!xxd + au BufReadPost *.bin set ft=xxd | endif + au BufWritePre *.bin if &bin | %!xxd -r + au BufWritePre *.bin endif + au BufWritePost *.bin if &bin | %!xxd + au BufWritePost *.bin set nomod | endif + augroup END + + colorscheme slate ]] vim.cmd [[ From 0f622a895121e371545c3d531d2e626e000ba0c3 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 24 Sep 2021 01:00:43 -0700 Subject: [PATCH 3/4] nvim: Modified terminal settings --- .config/nvim/lua/other.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lua/other.lua b/.config/nvim/lua/other.lua index 0a9e5a0..42195bf 100644 --- a/.config/nvim/lua/other.lua +++ b/.config/nvim/lua/other.lua @@ -51,7 +51,7 @@ M.toggleterm = function() return vim.o.columns * 0.4 end end, - open_mapping = [[]], + open_mapping = [[]], hide_numbers = true, -- hide the number column in toggleterm buffers shade_filetypes = {}, shade_terminals = true, @@ -69,8 +69,8 @@ M.toggleterm = function() -- the 'curved' border is a custom border type -- not natively supported but implemented in this plugin. border = 'curved', -- single, double, shadow, or curved - width = 120, - height = 32, + width = 200, + height = 50, winblend = 10, -- transparancy highlights = { border = "Normal", From 2c294db05f3990dc7c1f959faf80983a9fe46d9b Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 24 Sep 2021 01:01:55 -0700 Subject: [PATCH 4/4] zsh: more git aliases --- .zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 06ad865..f6bcf47 100644 --- a/.zshrc +++ b/.zshrc @@ -62,9 +62,11 @@ # Git aliases alias \ - gst='git status' \ gc='git commit' \ - + gca='git commit -a' \ + gst='git status' \ + gp='git push' \ + # <<< ## Program improvements (ex: ls = ls -h) >>> alias df='df -h' # Human-readable sizes