summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/init.lua2
-rw-r--r--.config/nvim/lua/justsaumit/colorscheme.lua22
-rw-r--r--.config/nvim/lua/justsaumit/plugins.lua3
-rw-r--r--.config/nvim/plugin/packer_compiled.lua5
-rwxr-xr-x.local/src/st/external-pipe_scripts/st-copyout16
-rwxr-xr-x.local/src/st/external-pipe_scripts/st-urlhandler19
l---------.scripts/st-copyout1
7 files changed, 17 insertions, 51 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index b6a98f3..08d41d0 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -5,4 +5,4 @@ require("justsaumit.colorscheme")
require("justsaumit.treesitter-config")
require("justsaumit.lualine-config")
require("justsaumit.bufferline-config")
-print ("while ( !(success = try() );")
+print ("while(!(success = try());")
diff --git a/.config/nvim/lua/justsaumit/colorscheme.lua b/.config/nvim/lua/justsaumit/colorscheme.lua
index 5989f66..684a272 100644
--- a/.config/nvim/lua/justsaumit/colorscheme.lua
+++ b/.config/nvim/lua/justsaumit/colorscheme.lua
@@ -1,14 +1,3 @@
---protected call
-local colorscheme = "tokyonight"
-local pywal = require('pywal')
-
-local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
-if not status_ok then
- vim.notify("colorscheme " .. colorscheme .. " not found! :(")
- pywal.setup()
- return
-end
-
--configuration needs to be set BEFORE loading the color scheme with colorscheme tokyonight
vim.g.tokyonight_style = "night"
tokyonight_terminal_colors=true
@@ -24,3 +13,14 @@ tokyonight_dark_sidebar=true
tokyonight_dark_float=true
tokyonight_colors={}
tokyonight_lualine_bold=false
+
+--protected call
+local colorscheme = "tokyonight"
+local pywal = require('pywal')
+
+local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
+if not status_ok then
+ vim.notify("colorscheme " .. colorscheme .. " not found! :(")
+ pywal.setup()
+ return
+end
diff --git a/.config/nvim/lua/justsaumit/plugins.lua b/.config/nvim/lua/justsaumit/plugins.lua
index 95c8ae0..007bce0 100644
--- a/.config/nvim/lua/justsaumit/plugins.lua
+++ b/.config/nvim/lua/justsaumit/plugins.lua
@@ -50,10 +50,13 @@ return packer.startup(function(use)
--ColorSchemes
use "folke/tokyonight.nvim"
use { 'AlphaTechnolog/pywal.nvim', as = 'pywal' }
+--Web-devicons
+ use "kyazdani42/nvim-web-devicons"
--Lualine
use {'nvim-lualine/lualine.nvim',requires = { 'kyazdani42/nvim-web-devicons', opt = true }}
--Bufferline
use {'akinsho/bufferline.nvim', tag = "v2.*", requires = 'kyazdani42/nvim-web-devicons'}
+
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if PACKER_BOOTSTRAP then
diff --git a/.config/nvim/plugin/packer_compiled.lua b/.config/nvim/plugin/packer_compiled.lua
index 7297656..2d9dd39 100644
--- a/.config/nvim/plugin/packer_compiled.lua
+++ b/.config/nvim/plugin/packer_compiled.lua
@@ -90,9 +90,8 @@ _G.packer_plugins = {
url = "https://github.com/nvim-treesitter/nvim-treesitter"
},
["nvim-web-devicons"] = {
- loaded = false,
- needs_bufread = false,
- path = "/home/saumit/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons",
+ loaded = true,
+ path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
url = "https://github.com/kyazdani42/nvim-web-devicons"
},
["packer.nvim"] = {
diff --git a/.local/src/st/external-pipe_scripts/st-copyout b/.local/src/st/external-pipe_scripts/st-copyout
deleted file mode 100755
index e7be21e..0000000
--- a/.local/src/st/external-pipe_scripts/st-copyout
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-# Using external pipe with st, give a dmenu prompt of recent commands,
-# allowing the user to copy the output of one.
-# xclip required for this script.
-# By Jaywalker and Luke
-## figure how to not print ps1 without having to clear terminal
-## have only one command in active window and then piping into awk
-## to skip the first line
-tmpfile=$(mktemp /tmp/st-cmd-output.XXXXXX)
-trap 'rm "$tmpfile"' 0 1 15
-sed -n "w $tmpfile"
-sed -i 's/\x0//g' "$tmpfile"
-ps1="$(grep "\S" "$tmpfile" | tail -n 1 | sed 's/^\s*//' | cut -d' ' -f1)"
-chosen="$(grep -F "$ps1" "$tmpfile" | sed '$ d' | tac | dmenu -p "Copy which command's output?" -i -l 10 | sed 's/[^^]/[&]/g; s/\^/\\^/g')"
-eps1="$(echo "$ps1" | sed 's/[^^]/[&]/g; s/\^/\\^/g')"
-awk "/^$chosen$/{p=1;print;next} p&&/$eps1/{p=0};p" "$tmpfile" | awk 'NR!=1' |xclip -selection clipboard
diff --git a/.local/src/st/external-pipe_scripts/st-urlhandler b/.local/src/st/external-pipe_scripts/st-urlhandler
deleted file mode 100755
index e2a62f4..0000000
--- a/.local/src/st/external-pipe_scripts/st-urlhandler
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-urlregex="(((http|https|gopher|gemini|ftp|ftps|git)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./@$&%?$\#=_~-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)"
-
-urls="$(sed 's/.*│//g' | tr -d '\n' | # First remove linebreaks and mutt sidebars:
- grep -aEo "$urlregex" | # grep only urls as defined above.
- uniq | # Ignore neighboring duplicates.
- sed "s/\(\.\|,\|;\|\!\\|\?\)$//;
- s/^www./http:\/\/www\./")" # xdg-open will not detect url without http
-
-[ -z "$urls" ] && exit 1
-
-while getopts "hoc" o; do case "${o}" in
- h) printf "Optional arguments for custom use:\\n -c: copy\\n -o: xdg-open\\n -h: Show this message\\n" && exit 1 ;;
- o) chosen="$(echo "$urls" | dmenu -i -p 'Follow which url?' -l 10)"
- setsid xdg-open "$chosen" >/dev/null 2>&1 & ;;
- c) echo "$urls" | dmenu -i -p 'Copy which url?' -l 10 | tr -d '\n' | xclip -selection clipboard ;;
- *) printf "Invalid option: -%s\\n" "$OPTARG" && exit 1 ;;
-esac done
diff --git a/.scripts/st-copyout b/.scripts/st-copyout
deleted file mode 120000
index e822e4a..0000000
--- a/.scripts/st-copyout
+++ /dev/null
@@ -1 +0,0 @@
-/home/saumit/.local/src/st/external-pipe_scripts/st-copyout \ No newline at end of file