From 8089a60e3d5eff0431eee1b20bd5f59ac0aaf18c Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Fri, 14 Jun 2024 17:21:27 -0500 Subject: [PATCH] update --- .config/nvim/lua/mappings.lua | 14 ++++++++ .config/nvim/lua/plugins/init.lua | 39 +++++++++++++++-------- .config/sway/config | 3 ++ .zshrc | 1 + ansible/roles/packages/vars/Archlinux.yml | 3 ++ 5 files changed, 46 insertions(+), 14 deletions(-) diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua index 8d032cc..fdd3adb 100644 --- a/.config/nvim/lua/mappings.lua +++ b/.config/nvim/lua/mappings.lua @@ -28,3 +28,17 @@ map("", "dus", function() local sidebar = widgets.sidebar(widgets.scopes) sidebar.open() end, { desc = "Open debugging Window" }) + +-- Movement +map("n", "", "zz", { noremap = true }) +map("n", "", "zz", { noremap = true }) +map("n", "n", "nzzzv", { noremap = true }) +map("n", "N", "Nzzzv", { noremap = true }) + +-- Powershell +map("n", "E", function() + require("powershell").eval() +end, { noremap = true }) +map("n", "P", function() + require("powershell").toggle_term() +end, { noremap = true }) diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua index daf8d52..02e65d5 100644 --- a/.config/nvim/lua/plugins/init.lua +++ b/.config/nvim/lua/plugins/init.lua @@ -61,7 +61,20 @@ return { { "tpope/vim-fugitive", }, - -- Golang + { + "nvim-tree/nvim-tree.lua", + opts = { + filters = { + enable = false, + }, + }, + }, + { + "TheLeoP/powershell.nvim", + opts = { + bundle_path = vim.fn.stdpath "data" .. "/man/packages/powershell-editor-services", + }, + }, { "olexsmir/gopher.nvim", ft = "go", @@ -72,7 +85,17 @@ return { vim.cmd [[silent! GoInstallDeps]] end, }, - -- Dap + { + "dreamsofcode-io/nvim-dap-go", + ft = "go", + dependencies = { + "mfussenegger/nvim-dap", + "rcarriga/nvim-dap-ui", + }, + config = function(_, opts) + require("dap-go").setup(opts) + end, + }, { "mfussenegger/nvim-dap", }, @@ -97,16 +120,4 @@ return { end end, }, - { - "dreamsofcode-io/nvim-dap-go", - ft = "go", - dependencies = { - "mfussenegger/nvim-dap", - "rcarriga/nvim-dap-ui", - }, - config = function(_, opts) - require("dap-go").setup(opts) - -- require("core.utils").load_mappings "dap_go" - end, - }, } diff --git a/.config/sway/config b/.config/sway/config index 4c148b3..399a754 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -179,5 +179,8 @@ bindsym XF86AudioMute exec "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; pkill -R bindsym XF86MonBrightnessDown exec brightnessctl s 10%- bindsym XF86MonBrightnessUp exec brightnessctl s +10% +# ScreenShot +bindsym $mod+p exec grim -g "$(slurp)" - | wl-copy + default_border none include /etc/sway/config.d/* diff --git a/.zshrc b/.zshrc index 70e409d..ab1a9b8 100644 --- a/.zshrc +++ b/.zshrc @@ -26,6 +26,7 @@ alias cat='bat' alias network='nmtui' alias docker='podman' alias sudo='sudo ' +alias connectvpn='sudo openvpn ~/Documents/openvpn/openvpn.ovpn' eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/config.toml)" diff --git a/ansible/roles/packages/vars/Archlinux.yml b/ansible/roles/packages/vars/Archlinux.yml index 15e47d4..9a36103 100644 --- a/ansible/roles/packages/vars/Archlinux.yml +++ b/ansible/roles/packages/vars/Archlinux.yml @@ -41,6 +41,9 @@ required_packages_pacman: - podman - grim - slurp + - helm + - networkmanager-openvpn + - openresolv flatpak_remote: - {name: 'flathub', url: "https://dl.flathub.org/repo/flathub.flatpakrepo"}