summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorChristian Krinitsin <code@krinitsin.xyz>2024-03-19 09:57:46 +0100
committerChristian Krinitsin <code@krinitsin.xyz>2024-03-19 09:57:46 +0100
commit96f256c7aa0a8de3eef2f56909678c2268e046b6 (patch)
tree6b48687cb2805f16d6fa9295b03e356ffb08d9af
parentb50db4bcc05eee8d8a85ddc74bac82eba8401d59 (diff)
downloaddotfiles-96f256c7aa0a8de3eef2f56909678c2268e046b6.tar.gz
dotfiles-96f256c7aa0a8de3eef2f56909678c2268e046b6.zip
fix a few things, add nvimtree plugin
-rw-r--r--.stow-local-ignore3
-rwxr-xr-xbin/run-spotify-player2
-rwxr-xr-xinstall.sh5
-rw-r--r--nvim/.config/nvim/lazy-lock.json1
-rw-r--r--nvim/.config/nvim/lua/core/keymaps.lua8
-rw-r--r--nvim/.config/nvim/lua/core/options.lua1
-rw-r--r--nvim/.config/nvim/lua/plugins/nvimtree.lua84
-rw-r--r--qutebrowser/.config/qutebrowser/dracula/__pycache__/__init__.cpython-311.pycbin160 -> 160 bytes
-rw-r--r--qutebrowser/.config/qutebrowser/dracula/__pycache__/draw.cpython-311.pycbin7904 -> 7904 bytes
9 files changed, 96 insertions, 8 deletions
diff --git a/.stow-local-ignore b/.stow-local-ignore
deleted file mode 100644
index c45ea57..0000000
--- a/.stow-local-ignore
+++ /dev/null
@@ -1,3 +0,0 @@
-.git
-bin
-wallpaper
diff --git a/bin/run-spotify-player b/bin/run-spotify-player
index 865aecd..271291e 100755
--- a/bin/run-spotify-player
+++ b/bin/run-spotify-player
@@ -2,4 +2,4 @@
 
 ps -A | grep -q 'spotify_player' || spotify_player -d
 
-kitty -e spotify_player
+alacritty -e spotify_player
diff --git a/install.sh b/install.sh
index 7de1e56..e16a49f 100755
--- a/install.sh
+++ b/install.sh
@@ -1,5 +1,10 @@
 #!/usr/bin/bash
 
+# cd into script path
+SCRIPT=$(readlink -f "$0")
+SCRIPTPATH=$(dirname "$SCRIPT")
+cd $SCRIPTPATH
+
 # Ignore list
 IGNORE=("bin" "wallpaper" "install.sh" ".git")
 
diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json
index b0c13c2..f55b15f 100644
--- a/nvim/.config/nvim/lazy-lock.json
+++ b/nvim/.config/nvim/lazy-lock.json
@@ -17,6 +17,7 @@
   "nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
   "nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
   "nvim-lspconfig": { "branch": "master", "commit": "4bdd3800b4148f670c6cf55ef65f490148eeb550" },
+  "nvim-tree.lua": { "branch": "master", "commit": "f7c09bd72e50e1795bd3afb9e2a2b157b4bfb3c3" },
   "nvim-treesitter": { "branch": "master", "commit": "f87882858438834d2fbb6379aa2be37de901751b" },
   "nvim-web-devicons": { "branch": "master", "commit": "a851380fbea4c1312d11f13d5cdc86a7a19808dd" },
   "plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
diff --git a/nvim/.config/nvim/lua/core/keymaps.lua b/nvim/.config/nvim/lua/core/keymaps.lua
index 5200427..0ea6274 100644
--- a/nvim/.config/nvim/lua/core/keymaps.lua
+++ b/nvim/.config/nvim/lua/core/keymaps.lua
@@ -1,10 +1,10 @@
-local map = vim.keymap.set
-
-map("", "<Space>", "<Nop>", {})
+vim.keymap.set("", "<Space>", "<Nop>", {})
 vim.g.mapleader = " "
 vim.g.maplocalleader = " "
 
-map("i", "jk", "<Esc>", {})
+vim.keymap.set("i", "jk", "<Esc>", {})
 
 vim.keymap.set('n', '<leader>ff', ':Telescope find_files theme=dropdown<CR>', {})
 vim.keymap.set('n', '<leader>lg', ':LazyGit<CR>', {})
+
+vim.keymap.set('n', '<C-n>', ':NvimTreeToggle<CR>', {})
diff --git a/nvim/.config/nvim/lua/core/options.lua b/nvim/.config/nvim/lua/core/options.lua
index 8f5b36e..90d20e3 100644
--- a/nvim/.config/nvim/lua/core/options.lua
+++ b/nvim/.config/nvim/lua/core/options.lua
@@ -1,6 +1,7 @@
 vim.opt.clipboard = 'unnamedplus'
 vim.opt.mouse = 'a'
 vim.opt.shell='/bin/bash'
+vim.opt.undofile = true
 
 vim.opt.backup=false
 vim.opt.writebackup=false
diff --git a/nvim/.config/nvim/lua/plugins/nvimtree.lua b/nvim/.config/nvim/lua/plugins/nvimtree.lua
new file mode 100644
index 0000000..00be6f4
--- /dev/null
+++ b/nvim/.config/nvim/lua/plugins/nvimtree.lua
@@ -0,0 +1,84 @@
+return {
+    {
+        "nvim-tree/nvim-tree.lua",
+        dependencies = {
+          "nvim-tree/nvim-web-devicons",
+        },
+        config = function ()
+            require("nvim-tree").setup({
+              filters = {
+                dotfiles = false,
+              },
+              disable_netrw = true,
+              hijack_netrw = true,
+              hijack_cursor = true,
+              hijack_unnamed_buffer_when_opening = false,
+              sync_root_with_cwd = true,
+              update_focused_file = {
+                enable = true,
+                update_root = false,
+              },
+              view = {
+                adaptive_size = false,
+                side = "left",
+                width = 30,
+                preserve_window_proportions = true,
+              },
+              git = {
+                enable = false,
+                ignore = true,
+              },
+              filesystem_watchers = {
+                enable = true,
+              },
+              actions = {
+                open_file = {
+                  resize_window = true,
+                },
+              },
+              renderer = {
+                root_folder_label = false,
+                highlight_git = false,
+                highlight_opened_files = "none",
+
+                indent_markers = {
+                  enable = false,
+                },
+
+                icons = {
+                  show = {
+                    file = true,
+                    folder = true,
+                    folder_arrow = true,
+                    git = false,
+                  },
+
+                  glyphs = {
+                    default = "󰈚",
+                    symlink = "",
+                    folder = {
+                      default = "",
+                      empty = "",
+                      empty_open = "",
+                      open = "",
+                      symlink = "",
+                      symlink_open = "",
+                      arrow_open = "",
+                      arrow_closed = "",
+                    },
+                    git = {
+                      unstaged = "✗",
+                      staged = "✓",
+                      unmerged = "",
+                      renamed = "➜",
+                      untracked = "★",
+                      deleted = "",
+                      ignored = "◌",
+                    },
+                  },
+                },
+              },
+            })
+        end
+    }
+}
diff --git a/qutebrowser/.config/qutebrowser/dracula/__pycache__/__init__.cpython-311.pyc b/qutebrowser/.config/qutebrowser/dracula/__pycache__/__init__.cpython-311.pyc
index 650cbaa..aebe264 100644
--- a/qutebrowser/.config/qutebrowser/dracula/__pycache__/__init__.cpython-311.pyc
+++ b/qutebrowser/.config/qutebrowser/dracula/__pycache__/__init__.cpython-311.pyc
Binary files differdiff --git a/qutebrowser/.config/qutebrowser/dracula/__pycache__/draw.cpython-311.pyc b/qutebrowser/.config/qutebrowser/dracula/__pycache__/draw.cpython-311.pyc
index 427fb77..f2b74e0 100644
--- a/qutebrowser/.config/qutebrowser/dracula/__pycache__/draw.cpython-311.pyc
+++ b/qutebrowser/.config/qutebrowser/dracula/__pycache__/draw.cpython-311.pyc
Binary files differ