diff --git a/backup/home/wynd/.config/nvim/after/ftplugin/markdown.lua b/backup/home/wynd/.config/nvim/after/ftplugin/markdown.lua index d0c4757..912574f 100644 --- a/backup/home/wynd/.config/nvim/after/ftplugin/markdown.lua +++ b/backup/home/wynd/.config/nvim/after/ftplugin/markdown.lua @@ -6,6 +6,7 @@ local wo = vim.wo[winid][0] local bo = vim.bo[bufnr] wo.spell = true +wo.wrap = true -- bo.textwidth = 120 vim.cmd.highlight({ "SpellBad", "gui=undercurl", "guifg=#DA6464" }) diff --git a/backup/home/wynd/.config/nvim/lua/nvwynd/keymaps.lua b/backup/home/wynd/.config/nvim/lua/nvwynd/keymaps.lua index b152185..ccad697 100644 --- a/backup/home/wynd/.config/nvim/lua/nvwynd/keymaps.lua +++ b/backup/home/wynd/.config/nvim/lua/nvwynd/keymaps.lua @@ -17,14 +17,19 @@ map({ "n", "i", "v" }, "", function() vim.cmd("w") end, { desc = "File Save" }) -- easy way to close the current buffer -map("n", "", "bd!", { desc = "Close Buffer" }) +map("n", "", "bd!", { desc = "Close Buffer" }) -- moves the selection up or down using K and J (uppercase) map("v", "J", ":m '>+1gv=gv") map("v", "K", ":m '<-2gv=gv") +-- window +-- switch between splits by just holding ctrl + left/right key +map("n", "", "") +map("n", "", "") + -- quickfix map("n", "", "cnext", { desc = "Qui[C]kfix Next" }) -map("n", "", "cprev", { desc = "Qui[C]kfix Next" }) +map("n", "", "cprev", { desc = "Qui[C]kfix Previous" }) -- terminal map("t", "", "") diff --git a/backup/home/wynd/.config/nvim/lua/nvwynd/options.lua b/backup/home/wynd/.config/nvim/lua/nvwynd/options.lua index d1160ae..85a6ad3 100644 --- a/backup/home/wynd/.config/nvim/lua/nvwynd/options.lua +++ b/backup/home/wynd/.config/nvim/lua/nvwynd/options.lua @@ -27,6 +27,7 @@ o.updatetime = 100 o.colorcolumn = "100" o.cursorline = true wo.signcolumn = "yes" +o.swapfile = false -- search o.hlsearch = true diff --git a/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/dap.lua b/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/dap.lua index cfe7ef6..6c67b78 100644 --- a/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/dap.lua +++ b/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/dap.lua @@ -12,6 +12,16 @@ return { -- end -- end + -- dap.configurations.java = { + -- { + -- type = "java", + -- request = "attach", + -- name = "Debug (Attach)", + -- hostName = "127.0.0.1", + -- port = 5005, + -- }, + -- } + -- No I'm not gonna fucking use overseer just to run a fucking script local orig_run = dap.run dap.run = function(config) diff --git a/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/editor.lua b/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/editor.lua index 91c5e93..69ed137 100644 --- a/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/editor.lua +++ b/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/editor.lua @@ -52,17 +52,17 @@ return { end -- used for when lazyness takes over and I'm using a mouse to click around in neo-tree - -- if insert mode is active then neo-tree won't behave as expected, so we want to stop it - vim.api.nvim_create_autocmd("BufEnter", { - pattern = { "neo-tree*" }, + vim.api.nvim_create_autocmd({ "BufEnter", "ModeChanged" }, { callback = function() + if vim.bo.filetype ~= "neo-tree" then + return + end + -- prevents the list scrolling when clicking on bottom/top elements due to scrolloff vim.wo[0][0].scrolloff = 0 - local filetype = vim.filetype.match({ buf = 0 }) - if filetype == nil then - vim.cmd("stopinsert") - end + -- if insert mode is active then neo-tree won't behave as expected, so we want to stop it + vim.cmd("stopinsert") end, }) end, diff --git a/backup/home/wynd/.zshrc b/backup/home/wynd/.zshrc index 1deae9b..f1d60bd 100644 --- a/backup/home/wynd/.zshrc +++ b/backup/home/wynd/.zshrc @@ -151,6 +151,8 @@ source ~/.piwrc # JVM switches alias use-java8='export JAVA_HOME=/usr/lib/jvm/java-8-temurin;export PATH=$JAVA_HOME/bin:$PATH' alias use-java21='export JAVA_HOME=/usr/lib/jvm/java-21-temurin;export PATH=$JAVA_HOME/bin:$PATH' +alias use-jbr17='export JAVA_HOME=/home/wynd/.local/lib/jbr17;export PATH=$JAVA_HOME/bin:$PATH' +alias use-jbr21='export JAVA_HOME=/home/wynd/.local/lib/jbr21;export PATH=$JAVA_HOME/bin:$PATH' # changing GREP highlight color export GREP_COLORS='ms=01;04;32' diff --git a/dot.py b/dot.py index a5742c5..b3d1b0e 100755 --- a/dot.py +++ b/dot.py @@ -83,6 +83,13 @@ if __name__ == "__main__": default=True, dest="wipe", ) + parser.add_argument( + "--no-wipe", + action="store_false", + required=False, + default=False, + dest="wipe", + ) args = parser.parse_args() if args.init: