Compare commits
38 Commits
neovim-onl
...
dcf6ece06a
| Author | SHA1 | Date | |
|---|---|---|---|
| dcf6ece06a | |||
| f20db3b89f | |||
| c8dfc7c1ae | |||
| 8c50ac0d15 | |||
| 5e6cba9351 | |||
| 2cafc91ba1 | |||
| 45eca459b6 | |||
| 6828bd4055 | |||
| f6de6e03db | |||
| 354f330c44 | |||
| 8960b58d64 | |||
| 7ff868c5ae | |||
| c22e8287af | |||
| db34ad9ff9 | |||
| c9266d82c6 | |||
| ff2629e02a | |||
| daae4f922b | |||
| a5be5c2535 | |||
| a3a4a22f84 | |||
| 2d74aba1f1 | |||
| 55580ecbf1 | |||
| 65923ed2fd | |||
| 60884400c1 | |||
| 9e83a6d855 | |||
| fe52cc950b | |||
| c6f4ca9cf1 | |||
| af30d2fa0b | |||
| 30bdfe95a3 | |||
| 5b4abd236a | |||
| 83af7a065d | |||
| e302e1a133 | |||
| 3e760c72c1 | |||
| 7325aa5b0e | |||
| e7f73ded6a | |||
| 0e13675a77 | |||
| cbc16fd9ef | |||
| 3c344bc893 | |||
| 2f6161a917 |
22
README.md
Normal file
22
README.md
Normal file
@ -0,0 +1,22 @@
|
||||
```
|
||||
_ _ _
|
||||
| \ | | (_)
|
||||
| \| | ___ _ __ _ __ ___ __ __ _ _ __ ___
|
||||
| . ` | / _ \ | '__|| '_ ` _ \\ \ / /| || '_ ` _ \
|
||||
| |\ || (_) || | | | | | | |\ V / | || | | | | |
|
||||
|_| \_| \___/ |_| |_| |_| |_| \_/ |_||_| |_| |_|
|
||||
```
|
||||
|
||||
### Welcome to my setup
|
||||
|
||||
Most of the times I'm writing in Markdown or Python. I'll also manage my servers from a similar environment which is mostly yaml and bash scripts. Here's a few images.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
228
backups/tmux-powerline-config.sh
Normal file
228
backups/tmux-powerline-config.sh
Normal file
@ -0,0 +1,228 @@
|
||||
# Default configuration file for tmux-powerline.
|
||||
# Modeline {
|
||||
# vi: foldmarker={,} foldmethod=marker foldlevel=0 tabstop=4 filetype=sh
|
||||
# }
|
||||
|
||||
# General {
|
||||
# Show which segment fails and its exit code.
|
||||
export TMUX_POWERLINE_DEBUG_MODE_ENABLED="false"
|
||||
# Use patched font symbols.
|
||||
export TMUX_POWERLINE_PATCHED_FONT_IN_USE="true"
|
||||
|
||||
# The theme to use.
|
||||
export TMUX_POWERLINE_THEME="norm-main"
|
||||
# Overlay directory to look for themes. There you can put your own themes outside the repo. Fallback will still be the "themes" directory in the repo.
|
||||
export TMUX_POWERLINE_DIR_USER_THEMES="${XDG_CONFIG_HOME:-$HOME/.dotfiles/tmux/.config/tmux}/tmux-powerline/themes"
|
||||
# Overlay directory to look for segments. There you can put your own segments outside the repo. Fallback will still be the "segments" directory in the repo.
|
||||
export TMUX_POWERLINE_DIR_USER_SEGMENTS="${XDG_CONFIG_HOME:-$HOME/.dotfiles/tmux/.config/tmux}/tmux-powerline/segments"
|
||||
|
||||
# The initial visibility of the status bar. Can be {"on, off"}.
|
||||
export TMUX_POWERLINE_STATUS_VISIBILITY="on"
|
||||
# The status bar refresh interval in seconds.
|
||||
# Note that events that force-refresh the status bar (such as window renaming) will ignore this.
|
||||
export TMUX_POWERLINE_STATUS_INTERVAL="1"
|
||||
# The location of the window list. Can be {"absolute-centre, centre, left, right"}.
|
||||
# Note that "absolute-centre" is only supported on `tmux -V` >= 3.2.
|
||||
export TMUX_POWERLINE_STATUS_JUSTIFICATION="centre"
|
||||
|
||||
# The maximum length of the left status bar.
|
||||
export TMUX_POWERLINE_STATUS_LEFT_LENGTH="60"
|
||||
# The maximum length of the right status bar.
|
||||
export TMUX_POWERLINE_STATUS_RIGHT_LENGTH="60"
|
||||
|
||||
# Uncomment these if you want to enable tmux bindings for muting (hiding) one of the status bars.
|
||||
# E.g. this example binding would mute the left status bar when pressing <prefix> followed by Ctrl-[
|
||||
#export TMUX_POWERLINE_MUTE_LEFT_KEYBINDING="C-["
|
||||
#export TMUX_POWERLINE_MUTE_RIGHT_KEYBINDING="C-]"
|
||||
# }
|
||||
|
||||
# battery.sh {
|
||||
# How to display battery remaining. Can be {percentage, cute}.
|
||||
export TMUX_POWERLINE_SEG_BATTERY_TYPE="percentage"
|
||||
# How may hearts to show if cute indicators are used.
|
||||
export TMUX_POWERLINE_SEG_BATTERY_NUM_HEARTS="5"
|
||||
# }
|
||||
|
||||
# date.sh {
|
||||
# date(1) format for the date. If you don't, for some reason, like ISO 8601 format you might want to have "%D" or "%m/%d/%Y".
|
||||
export TMUX_POWERLINE_SEG_DATE_FORMAT="%F"
|
||||
# }
|
||||
|
||||
# disk_usage.sh {
|
||||
# Filesystem to retrieve disk space information. Any from the filesystems available (run "df | awk '{print }'" to check them).
|
||||
export TMUX_POWERLINE_SEG_DISK_USAGE_FILESYSTEM="/"
|
||||
# }
|
||||
|
||||
# earthquake.sh {
|
||||
# The data provider to use. Currently only "goo" is supported.
|
||||
export TMUX_POWERLINE_SEG_EARTHQUAKE_DATA_PROVIDER="goo"
|
||||
# How often to update the earthquake data in seconds.
|
||||
# Note: This is not an early warning detector, use this
|
||||
# to be informed about recent earthquake magnitudes in your
|
||||
# area. If this is too often, goo may decide to ban you form
|
||||
# their server
|
||||
export TMUX_POWERLINE_SEG_EARTHQUAKE_UPDATE_PERIOD="600"
|
||||
# Only display information when earthquakes are within this many minutes
|
||||
export TMUX_POWERLINE_SEG_EARTHQUAKE_ALERT_TIME_WINDOW="60"
|
||||
# Display time with this format
|
||||
export TMUX_POWERLINE_SEG_EARTHQUAKE_TIME_FORMAT='(%H:%M)'
|
||||
# Display only if magnitude is greater or equal to this number
|
||||
export TMUX_POWERLINE_SEG_EARTHQUAKE_MIN_MAGNITUDE="3"
|
||||
# }
|
||||
|
||||
# gcalcli.sh {
|
||||
# gcalcli uses 24hr time format by default - if you want to see 12hr time format, set TMUX_POWERLINE_SEG_GCALCLI_MILITARY_TIME_DEFAULT to 0
|
||||
export TMUX_POWERLINE_SEG_GCALCLI_24HR_TIME_FORMAT="1"
|
||||
# }
|
||||
|
||||
# hostname.sh {
|
||||
# Use short or long format for the hostname. Can be {"short, long"}.
|
||||
export TMUX_POWERLINE_SEG_HOSTNAME_FORMAT="short"
|
||||
# }
|
||||
|
||||
# macos_notification_count.sh {
|
||||
# App ids to query in notification center, separated by space
|
||||
# To get the app id that is associated with a specific app run:
|
||||
# sqlite3 -list "/var/folders/14/xy84d13x3091_xgcmy34gk8w0000gp/0//com.apple.notificationcenter/db/db" 'select * from app_info'
|
||||
# The first column contains the app ids
|
||||
# "5" is the app id of Messages.app
|
||||
# Only "banner" notifications are supported (see settings in the notification center)
|
||||
export TMUX_POWERLINE_SEG_MACOS_NOTIFICATION_COUNT_APPIDS="5"
|
||||
# Notification symbol
|
||||
export TMUX_POWERLINE_SEG_MACOS_NOTIFICATION_COUNT_CHAR="💬"
|
||||
# }
|
||||
|
||||
# mailcount.sh {
|
||||
# Mailbox type to use. Can be any of {apple_mail, gmail, maildir, mbox, mailcheck}
|
||||
export TMUX_POWERLINE_SEG_MAILCOUNT_MAILBOX_TYPE=""
|
||||
|
||||
## Gmail
|
||||
# Enter your Gmail username here WITH OUT @gmail.com.( OR @domain)
|
||||
export TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_USERNAME=""
|
||||
# Google password. Recomenned to use application specific password (https://accounts.google.com/b/0/IssuedAuthSubTokens) Leave this empty to get password from OS X keychain.
|
||||
# For OSX users : MAKE SURE that you add a key to the keychain in the format as follows
|
||||
# Keychain Item name : http://<value-you-fill-in-server-variable-below>
|
||||
# Account name : <username-below>@<server-below>
|
||||
# Password : Your password ( Once again, try to use 2 step-verification and application-specific password)
|
||||
# See http://support.google.com/accounts/bin/answer.py?hl=en&answer=185833 for more info.
|
||||
export TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_PASSWORD=""
|
||||
# Domain name that will complete your email. For normal GMail users it probably is "gmail.com but can be "foo.tld" for Google Apps users.
|
||||
export TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_SERVER="gmail.com"
|
||||
# How often in minutes to check for new mails.
|
||||
export TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_INTERVAL="5"
|
||||
|
||||
## Maildir
|
||||
# Path to the maildir to check.
|
||||
export TMUX_POWERLINE_SEG_MAILCOUNT_MAILDIR_INBOX="/Users/normrasmussen/.mail/inbox/new"
|
||||
|
||||
## mbox
|
||||
# Path to the mbox to check.
|
||||
export TMUX_POWERLINE_SEG_MAILCOUNT_MBOX_INBOX=""
|
||||
|
||||
## mailcheck
|
||||
# Optional path to mailcheckrc
|
||||
export TMUX_POWERLINE_SEG_MAILCOUNT_MAILCHECKRC="/Users/normrasmussen/.mailcheckrc"
|
||||
# }
|
||||
|
||||
# now_playing.sh {
|
||||
# Music player to use. Can be any of {audacious, banshee, cmus, apple_music, itunes, lastfm, plexamp, mocp, mpd, mpd_simple, pithos, playerctl, rdio, rhythmbox, spotify, spotify_wine, file}.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_MUSIC_PLAYER="spotify"
|
||||
# File to be read in case the song is being read from a file
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_FILE_NAME=""
|
||||
# Maximum output length.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_MAX_LEN="40"
|
||||
# How to handle too long strings. Can be {trim, roll}.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_TRIM_METHOD="trim"
|
||||
# Charcters per second to roll if rolling trim method is used.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_ROLL_SPEED="2"
|
||||
|
||||
# Hostname for MPD server in the format "[password@]host"
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_HOST="localhost"
|
||||
# Port the MPD server is running on.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_PORT="6600"
|
||||
# Song display format for mpd_simple. See mpc(1) for delimiters.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_SIMPLE_FORMAT="%artist% - %title%"
|
||||
# Song display format for playerctl. see "Format Strings" in playerctl(1).
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_PLAYERCTL_FORMAT="{{ artist }} - {{ title }}"
|
||||
# Song display format for rhythmbox. see "FORMATS" in rhythmbox-client(1).
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_RHYTHMBOX_FORMAT="%aa - %tt"
|
||||
|
||||
# Last.fm
|
||||
# Set up steps for Last.fm
|
||||
# 1. Make sure jq(1) is installed on the system.
|
||||
# 2. Create a new API application at https://www.last.fm/api/account/create (name it tmux-powerline) and copy the API key and insert it below in the setting TMUX_POWERLINE_SEG_NOW_PLAYING_LASTFM_API_KEY
|
||||
# 3. Make sure the API can access your recently played song by going to you user privacy settings https://www.last.fm/settings/privacy and make sure "Hide recent listening information" is UNCHECKED.
|
||||
# Username for Last.fm if that music player is used.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_LASTFM_USERNAME=""
|
||||
# API Key for the API.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_LASTFM_API_KEY=""
|
||||
# How often in seconds to update the data from last.fm.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_LASTFM_UPDATE_PERIOD="30"
|
||||
# Fancy char to display before now playing track
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_NOTE_CHAR="♫"
|
||||
|
||||
# Plexamp
|
||||
# Set up steps for Plexamp
|
||||
# 1. Make sure jq(1) is installed on the system.
|
||||
# 2. Make sure you have an instance of Tautulli that is accessible by the computer running tmux-powerline.
|
||||
# Username for Plexamp if that music player is used.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_PLEXAMP_USERNAME=""
|
||||
# Hostname for Tautulli server in the format "[password@]host"
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_PLEXAMP_TAUTULLI_HOST=""
|
||||
# API Key for Tautulli.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_PLEXAMP_TAUTULLI_API_KEY=""
|
||||
# How often in seconds to update the data from Plexamp.
|
||||
export TMUX_POWERLINE_SEG_NOW_PLAYING_PLEXAMP_UPDATE_PERIOD="30"
|
||||
# }
|
||||
|
||||
# pwd.sh {
|
||||
# Maximum length of output.
|
||||
export TMUX_POWERLINE_SEG_PWD_MAX_LEN="40"
|
||||
# }
|
||||
|
||||
# time.sh {
|
||||
# date(1) format for the time. Americans might want to have "%I:%M %p".
|
||||
export TMUX_POWERLINE_SEG_TIME_FORMAT="%H:%M"
|
||||
# Change this to display a different timezone than the system default.
|
||||
# Use TZ Identifier like "America/Los_Angeles"
|
||||
export TMUX_POWERLINE_SEG_TIME_TZ=""
|
||||
# }
|
||||
|
||||
# tmux_mem_cpu_load.sh {
|
||||
# Arguments passed to tmux-mem-cpu-load.
|
||||
# See https://github.com/thewtex/tmux-mem-cpu-load for all available options.
|
||||
export TMUX_POWERLINE_SEG_TMUX_MEM_CPU_LOAD_ARGS="-v"
|
||||
# }
|
||||
|
||||
# tmux_session_info.sh {
|
||||
# Session info format to feed into the command: tmux display-message -p
|
||||
# For example, if FORMAT is '[ #S ]', the command is: tmux display-message -p '[ #S ]'
|
||||
export TMUX_POWERLINE_SEG_TMUX_SESSION_INFO_FORMAT="#S:#I.#P"
|
||||
# }
|
||||
|
||||
# utc_time.sh {
|
||||
# date(1) format for the UTC time.
|
||||
export TMUX_POWERLINE_SEG_UTC_TIME_FORMAT="%H:%M %Z"
|
||||
# }
|
||||
|
||||
# vcs_branch.sh {
|
||||
# Max length of the branch name.
|
||||
export TMUX_POWERLINE_SEG_VCS_BRANCH_MAX_LEN="24"
|
||||
# }
|
||||
|
||||
# weather.sh {
|
||||
# The data provider to use. Currently only "yahoo" is supported.
|
||||
export TMUX_POWERLINE_SEG_WEATHER_DATA_PROVIDER="yahoo"
|
||||
# What unit to use. Can be any of {c,f,k}.
|
||||
export TMUX_POWERLINE_SEG_WEATHER_UNIT="f"
|
||||
# How often to update the weather in seconds.
|
||||
export TMUX_POWERLINE_SEG_WEATHER_UPDATE_PERIOD="60"
|
||||
# Name of GNU grep binary if in PATH, or path to it.
|
||||
export TMUX_POWERLINE_SEG_WEATHER_GREP="grep"
|
||||
# Location of the JSON parser, jq
|
||||
export TMUX_POWERLINE_SEG_WEATHER_JSON="jq"
|
||||
# Your location
|
||||
# Latitude and Longtitude for use with yr.no
|
||||
TMUX_POWERLINE_SEG_WEATHER_LAT="41.099050"
|
||||
TMUX_POWERLINE_SEG_WEATHER_LON="-74.252859"
|
||||
# }
|
||||
55
backups/tmuxp-main-layout.yaml
Normal file
55
backups/tmuxp-main-layout.yaml
Normal file
@ -0,0 +1,55 @@
|
||||
session_name: Work
|
||||
windows:
|
||||
- layout: ba3e,151x53,0,0,1
|
||||
options: {}
|
||||
panes:
|
||||
- focus: 'true'
|
||||
shell_command: zsh
|
||||
start_directory: /Users/normrasmussen/Documents/Work
|
||||
window_name: notes
|
||||
- layout: c1ff,149x54,0,0,2
|
||||
options: {}
|
||||
panes:
|
||||
- focus: 'true'
|
||||
shell_command: zsh
|
||||
start_directory: /Users/normrasmussen/Documents/Work/Custom_Templates
|
||||
window_name: templates
|
||||
- layout: ba40,151x53,0,0,3
|
||||
options: {}
|
||||
panes:
|
||||
- focus: 'true'
|
||||
shell_command: nvim
|
||||
start_directory: /Users/normrasmussen/Documents/Work/Scripts
|
||||
window_name: scripts
|
||||
- layout: e469,177x53,0,0[177x42,0,0,4,177x10,0,43,5]
|
||||
options: {}
|
||||
panes:
|
||||
- focus: 'true'
|
||||
shell_command:
|
||||
- cd /Users/normrasmussen/.dotfiles
|
||||
- nvim
|
||||
- shell_command:
|
||||
- cd /Users/normrasmussen
|
||||
- zsh
|
||||
window_name: dots
|
||||
- focus: 'true'
|
||||
layout: 5cf6,171x53,0,0[171x36,0,0,7,171x16,0,37{85x16,0,37,14,85x16,86,37,16}]
|
||||
options: {}
|
||||
panes:
|
||||
- shell_command:
|
||||
- cd /Users/normrasmussen/Documents/Projects/hugo_blog/rsmsn_blog
|
||||
- nvim
|
||||
- focus: 'true'
|
||||
shell_command:
|
||||
- cd /Users/normrasmussen/Desktop
|
||||
- shell_command:
|
||||
- cd /Users/normrasmussen/Documents/Projects/hugo_blog/rsmsn_blog
|
||||
- zsh
|
||||
window_name: hugo
|
||||
- layout: 5d96,171x53,0,0,17
|
||||
options: {}
|
||||
panes:
|
||||
- focus: 'true'
|
||||
shell_command: zsh
|
||||
start_directory: /Users/normrasmussen
|
||||
window_name: zsh
|
||||
BIN
images/neovim1.png
Normal file
BIN
images/neovim1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 184 KiB |
BIN
images/neovim2.png
Normal file
BIN
images/neovim2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 226 KiB |
BIN
images/neovim3.png
Normal file
BIN
images/neovim3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 345 KiB |
BIN
images/neovim4.png
Normal file
BIN
images/neovim4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 271 KiB |
BIN
images/neovim5.png
Normal file
BIN
images/neovim5.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 269 KiB |
BIN
nvim/.config/nvim/data/.DS_Store
vendored
BIN
nvim/.config/nvim/data/.DS_Store
vendored
Binary file not shown.
@ -1,15 +1,19 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filteer=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
vim.g.mapleader = ','
|
||||
vim.g.localmapleader = ','
|
||||
--- vim.opt.textwidth = 85
|
||||
@ -40,21 +44,24 @@ opt.clipboard = 'unnamedplus' -- Copy/paste to system clipboard
|
||||
opt.swapfile = false -- Don't use swapfile
|
||||
opt.shadafile = "NONE"
|
||||
opt.shadafile = ""
|
||||
opt.shell = "/bin/bash"
|
||||
opt.shell = "/bin/zsh"
|
||||
opt.updatetime = 200
|
||||
opt.cursorline = true
|
||||
g.markdown_folding = 1
|
||||
-- g.markdown_enable_folding = 1
|
||||
opt.spell=true
|
||||
opt.spelllang = 'en_us'
|
||||
cmd [[ autocmd BufWritePre * :%s/\s\+$//e ]]
|
||||
vim.api.nvim_set_hl(0, "ColorColumn", {guibg=DarkOrchid1})
|
||||
opt.autochdir = true
|
||||
vim.cmd [[ autocmd BufWritePre * :%s/\s\+$//e ]]
|
||||
-- vim.cmd [[ autocmd autochdir ]]
|
||||
-----------------------------------------------------------
|
||||
-- Neovim UI
|
||||
-----------------------------------------------------------
|
||||
opt.number = true -- Show line number
|
||||
opt.relativenumber = true -- Show Current Line with Relative numbers above and below cursor.
|
||||
opt.showmatch = true -- Highlight matching parenthesis
|
||||
opt.foldmethod = "syntax" -- Enable folding (default 'foldmarker')
|
||||
opt.foldmethod = "expr" -- Enable folding (default 'foldmarker')
|
||||
opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
opt.splitright = true -- Vertical split to the right
|
||||
opt.splitbelow = true -- Horizontal split to the bottom
|
||||
opt.ignorecase = true -- Ignore case letters when search
|
||||
@ -77,9 +84,9 @@ opt.termguicolors = true -- Enable 24-bit RGB colors
|
||||
-----------------------------------------------------------
|
||||
-- Tabs, indent
|
||||
-----------------------------------------------------------
|
||||
g.expandtab = true -- Use spaces instead of tabs
|
||||
g.expandtab = false -- Use spaces instead of tabs
|
||||
g.shiftwidth = 2 -- Shift 4 spaces when tab
|
||||
g.tabstop = 1 -- 1 tab == 4 spaces
|
||||
g.tabstop = 2 -- 1 tab == 4 spaces
|
||||
g.smartindent = true -- Autoindent new lines
|
||||
-----------------------------------------------------------
|
||||
-- Glow Settings
|
||||
@ -95,13 +102,14 @@ g.glow_style = 'dark'
|
||||
-----------------------------------------------------------
|
||||
-- 2 spaces for selected filetypes
|
||||
vim.cmd [[
|
||||
autocmd FileType md,liquid,xml,html,xhtml,css,scss,javascript,lua,yaml setlocal shiftwidth=2 tabstop=4 noexpandtab
|
||||
autocmd FileType md,liquid,xml,html,xhtml,css,scss,javascript,lua,yaml setlocal shiftwidth=2 tabstop=2 noexpandtab
|
||||
]]
|
||||
vim.cmd [[ autocmd FileType python set textwidth=110 ]]
|
||||
vim.cmd [[ autocmd FileType python set textwidth=250 ]]
|
||||
vim.cmd [[ autocmd FileType lua set textwidth=80 ]]
|
||||
vim.cmd [[ autocmd FileType markdown,text set textwidth=125 shiftwidth=2 ]]
|
||||
vim.cmd [[ autocmd FileType markdown,text set shiftwidth=2 foldlevel=99 ]]
|
||||
-- vim.cmd [[ autocmd FileType markdown setlocal foldlevel=99 ]]
|
||||
vim.cmd[[ colorscheme duskfox ]]
|
||||
|
||||
--[[
|
||||
local disabled_built_ins = {
|
||||
"netrw",
|
||||
"netrwPlugin",
|
||||
@ -126,7 +134,6 @@ local disabled_built_ins = {
|
||||
for _, plugin in pairs(disabled_built_ins) do
|
||||
vim.g["loaded_" .. plugin] = 1
|
||||
end
|
||||
]]--
|
||||
|
||||
-- Deletes all trailing whitespaces in a file if it's not binary nor a diff.
|
||||
function _G.trim_trailing_whitespaces()
|
||||
@ -167,4 +174,3 @@ end
|
||||
--]]
|
||||
|
||||
require('core/keymaps')
|
||||
vim.cmd[[colorscheme dracula]]
|
||||
|
||||
@ -1,54 +1,96 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "0b4950a237ce441a6a3a947d501622453f6860ea" },
|
||||
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
|
||||
"adjacent.nvim": { "branch": "main", "commit": "a555ab92d61aa6fbbfa1bfaef4633b663563f04e" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "234822140b265ec4ba3203e3e0be0e0bb826dff5" },
|
||||
"barbar.nvim": { "branch": "master", "commit": "dd852401ee902745b67fc09a83d113b3fe82a96f" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||
"cmp-calc": { "branch": "main", "commit": "ce91d14d2e7a8b3f6ad86d85e34d41c1ae6268d9" },
|
||||
"cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" },
|
||||
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1" },
|
||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"cmp-spell": { "branch": "master", "commit": "32a0867efa59b43edbb2db67b0871cfad90c9b66" },
|
||||
"cmp-under-comparator": { "branch": "master", "commit": "6857f10272c3cfe930cece2afa2406e1385bfef8" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
"deadcolumn.nvim": { "branch": "master", "commit": "b9b5e237371ae5379e280e4df9ecf62e4bc8d7a5" },
|
||||
"dracula.nvim": { "branch": "main", "commit": "9fe831e685a76e1a1898a694623b33247c4d036c" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "de72250e054e5e691b9736ee30db72c65d560771" },
|
||||
"async.vim": { "branch": "master", "commit": "2082d13bb195f3203d41a308b89417426a7deca1" },
|
||||
"avante.nvim": { "branch": "main", "commit": "01e05a538b4b7f20fb922016d72be8c42d400b0e" },
|
||||
"barbar.nvim": { "branch": "master", "commit": "53b5a2f34b68875898f0531032fbf090e3952ad7" },
|
||||
"blink.cmp": { "branch": "main", "commit": "d534f9e8bf39299c480e0c2e11dad21f51cfb2fe" },
|
||||
"copilot.lua": { "branch": "master", "commit": "886ee73b6d464b2b3e3e6a7ff55ce87feac423a9" },
|
||||
"blink.cmp": { "branch": "main", "commit": "ae5a4ce8f7e519e49de7ae6fcadd74547f820a52" },
|
||||
"blink.cmp": { "branch": "main", "commit": "ae5a4ce8f7e519e49de7ae6fcadd74547f820a52" },
|
||||
"deadcolumn.nvim": { "branch": "master", "commit": "897c905aef1a268ce4cc507d5cce048ed808fa7a" },
|
||||
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
||||
"dracula.nvim": { "branch": "main", "commit": "515acae4fd294fcefa5b15237a333c2606e958d1" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "fc78a3ca96f4db9f8893bb7e2fd9823e0780451b" },
|
||||
"eldritch.nvim": { "branch": "master", "commit": "d3df98f58841bdbd88fbe1ca27c9eb76ccca6572" },
|
||||
"f-string-toggle.nvim": { "branch": "main", "commit": "4e2ad79dfc5122dd65515ebbdd671e8ee01d157e" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "43727c2ff84240e55d4069ec3e6158d74cb534b6" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "5a9a6ac29a7805c4783cda21b80a1e361964b3f2" },
|
||||
"headlines.nvim": { "branch": "master", "commit": "74a083a3c32a08be24f7dfcc6f448ecf47857f46" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "8a7b48f5823cc924f815129192288ec2e2b9288f" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "9788a19ec0b4036028e78aec702634b4b89d3470" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "09be3766669bfbabbe2863c624749d8da392c916" },
|
||||
"mason-null-ls.nvim": { "branch": "main", "commit": "ae0c5fa57468ac65617f1bf821ba0c3a1e251f0c" },
|
||||
"mason.nvim": { "branch": "main", "commit": "cd7835b15f5a4204fc37e0aa739347472121a54c" },
|
||||
"mini.comment": { "branch": "main", "commit": "877acea5b2a32ff55f808fc0ebe9aa898648318c" },
|
||||
"mini.fuzzy": { "branch": "stable", "commit": "295763d73cbf580c27a4419364c47b09fc82e0f4" },
|
||||
"mini.move": { "branch": "main", "commit": "b3bca8e493f8d1da343ff1be06c21a47e2fde1c0" },
|
||||
"mini.pairs": { "branch": "stable", "commit": "dfa9f6e2576bb8853be277d96b735af59d9be7c2" },
|
||||
"mini.surround": { "branch": "main", "commit": "9d1956b576d7051da3a483b251dfc778121c60db" },
|
||||
"mini.trailspace": { "branch": "main", "commit": "e8c144ee11f6a827ac9c5732f20aefbbd7b26035" },
|
||||
"neoscroll.nvim": { "branch": "master", "commit": "4bc0212e9f2a7bc7fe7a6bceb15b33e39f0f41fb" },
|
||||
"fidget.nvim": { "branch": "main", "commit": "9238947645ce17d96f30842e61ba81147185b657" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "5f808b5e4fef30bd8aca1b803b4e555da07fc412" },
|
||||
"hover.nvim": { "branch": "main", "commit": "140c4d0ae9397b76baa46b87c574f5377de09309" },
|
||||
"img-clip.nvim": { "branch": "main", "commit": "5ff183655ad98b5fc50c55c66540375bbd62438c" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "259357fa4097e232730341fa60988087d189193a" },
|
||||
"kanagawa.nvim": { "branch": "master", "commit": "ad3dddecd606746374ba4807324a08331dfca23c" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "7e6c863bc7563efbdd757a310d17ebc95166cef3" },
|
||||
"lsp-timeout.nvim": { "branch": "main", "commit": "6325906730330105a9adc41d0ceb8499b3072e2b" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" },
|
||||
"lush.nvim": { "branch": "main", "commit": "45a79ec4acb5af783a6a29673a999ce37f00497e" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "8e46de9241d3997927af12196bd8faa0ed08c29a" },
|
||||
"mason-null-ls.nvim": { "branch": "main", "commit": "de19726de7260c68d94691afb057fa73d3cc53e7" },
|
||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
||||
"mini.comment": { "branch": "main", "commit": "03c13e37318bdb18481311c0ac1adc9ed731caf1" },
|
||||
"mini.fuzzy": { "branch": "stable", "commit": "ea9d1380ad925c4d0e890f68dbf830d2b19bae5d" },
|
||||
"mini.hipatterns": { "branch": "main", "commit": "f34975103a38b3f608219a1324cdfc58ea660b8b" },
|
||||
"mini.icons": { "branch": "main", "commit": "44c0160526f7ae17ca8e8eab9ab235d047fcf7a6" },
|
||||
"mini.move": { "branch": "main", "commit": "4caa1c212f5ca3d1633d21cfb184808090ed74b1" },
|
||||
"mini.pairs": { "branch": "stable", "commit": "e543c760edc5e746e5b6cbd02c066c17ead3ef16" },
|
||||
"mini.pick": { "branch": "main", "commit": "b87f4d4e75673f6e7b918408017833424ecaa245" },
|
||||
"mini.surround": { "branch": "main", "commit": "0e67c4bc147f2a15cee94e7c94dcc0e115b9f55e" },
|
||||
"mini.trailspace": { "branch": "main", "commit": "3a328e62559c33014e422fb9ae97afc4208208b1" },
|
||||
"mkdnflow.nvim": { "branch": "main", "commit": "d459bd7ce68910272038ed037c028180161fd14d" },
|
||||
"neoscroll.nvim": { "branch": "master", "commit": "f957373912e88579e26fdaea4735450ff2ef5c9c" },
|
||||
"neovim": { "branch": "main", "commit": "91548dca53b36dbb9d36c10f114385f759731be1" },
|
||||
"night-owl.nvim": { "branch": "main", "commit": "86ed124c2f7e118670649701288e024444bf91e5" },
|
||||
"nightfly": { "branch": "master", "commit": "f1176605eb01b38d84e0e9e221c9599bd022dfd4" },
|
||||
"nightfox.nvim": { "branch": "main", "commit": "7557f26defd093c4e9bc17f28b08403f706f5a44" },
|
||||
"nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" },
|
||||
"null-ls.nvim": { "branch": "main", "commit": "0010ea927ab7c09ef0ce9bf28c2b573fc302f5a7" },
|
||||
"numb.nvim": { "branch": "master", "commit": "3f7d4a74bd456e747a1278ea1672b26116e0824d" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "d3a3056204e1a9dbb7c7fe36c114dc43b681768c" },
|
||||
"nvim-dap": { "branch": "master", "commit": "92dc531eea2c9a3ef504a5c8ac0decd1fa59a6a3" },
|
||||
"nvim-dap-python": { "branch": "master", "commit": "37b4cba02e337a95cb62ad1609b3d1dccb2e5d42" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "34160a7ce6072ef332f350ae1d4a6a501daf0159" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "38da5bbe1eaab2394056109e48c7e195bdb8fdfe" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "40b9b887d090d5da89a84689b4ca0304a9649f62" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "4a68f0778c05083cc458a3a144205cfc41474439" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "3af745113ea537f58c4b1573b64a429fefad9e07" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
|
||||
"nvim": { "branch": "main", "commit": "faf15ab0201b564b6368ffa47b56feefc92ce3f4" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "98e8b9d593a5547c126a39212d6f5e954a2d85dd" },
|
||||
"nvim-dap": { "branch": "master", "commit": "7e48a80551e0b8fd7e34436d74243de7ae1ec397" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "ffa89839f97bad360e78428d5c740fdad9a0ff02" },
|
||||
"nvim-http": { "branch": "main", "commit": "9a0e97b639d34af17d06b3421fe633b416dd64ee" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "040001d85e9190a904d0e35ef5774633e14d8475" },
|
||||
"nvim-notify": { "branch": "master", "commit": "fbef5d32be8466dd76544a257d3f3dce20082a07" },
|
||||
"nvim-prose": { "branch": "main", "commit": "38aac8c9c94a5725d152bdfea374d60e07fb93d6" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "cfbc1c0e0ff63e5b5e37b465b915b95fc2e98cef" },
|
||||
"nvim-ufo": { "branch": "main", "commit": "32cb247b893a384f1888b9cd737264159ecf183c" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "5740b7382429d20b6ed0bbdb0694185af9507d44" },
|
||||
"oil.nvim": { "branch": "master", "commit": "ba858b662599eab8ef1cba9ab745afded99cb180" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "375e38673b5c61debd8074ced01cfd4f3b7ce1e9" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "fa915a30c5cdf1d18129e9ef6ac2ee0fa799904f" },
|
||||
"nvim-ufo": { "branch": "main", "commit": "270ca542dae992ffe40274718c63645217ebc8bf" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "0eb18da56e2ba6ba24de7130a12bcc4e31ad11cb" },
|
||||
"oil.nvim": { "branch": "master", "commit": "dba037598843973b8c54bc5ce0318db4a0da439d" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
|
||||
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
|
||||
"symbols-outline.nvim": { "branch": "master", "commit": "512791925d57a61c545bc303356e8a8f7869763c" },
|
||||
"telescope-file-browser.nvim": { "branch": "master", "commit": "6e51d0cd6447cf2525412220ff0a2885eef9039c" },
|
||||
"telescope-live-grep-args.nvim": { "branch": "master", "commit": "851c0997d55601f2afd7290db0f90dc364e29f58" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "c1a2af0af69e80e14e6b226d3957a064cd080805" },
|
||||
"toggleterm.nvim": { "branch": "main", "commit": "faee9d60428afc7857e0927fdc18daa6c409fa64" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" },
|
||||
"vim-wakatime": { "branch": "master", "commit": "945a441b83e48c7bafdd227ef8e2eb826f72ab90" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
|
||||
}
|
||||
"pulse.nvim": { "branch": "main", "commit": "4026460b12da9abcfe34322db0bdc80e4b0dce3d" },
|
||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "77e5bad54227dcfe3878ffbda88ab1efdaacb475" },
|
||||
"rainbow_csv.nvim": { "branch": "main", "commit": "7f3fddfe813641035fac2cdf94c2ff69bb0bf0b9" },
|
||||
"render-markdown.nvim": { "branch": "main", "commit": "0022a579ac7355966be5ade77699b88c76b6a549" },
|
||||
"solarized-osaka.nvim": { "branch": "main", "commit": "eebeb55b2bca73db287b5a6bf9b8c4b7d0317515" },
|
||||
"sonokai": { "branch": "master", "commit": "fd42b20963c34dfc1744ac31f6a6efe78f4edad2" },
|
||||
"spacecamp": { "branch": "master", "commit": "8945b4a2bfaaa16fbcee9f1d7c00cb9c1256b591" },
|
||||
"telescope-cmdline.nvim": { "branch": "main", "commit": "8b05928ac1b9f2b772cedde891faa6669b0ec59a" },
|
||||
"telescope-file-browser.nvim": { "branch": "master", "commit": "626998e5c1b71c130d8bc6cf7abb6709b98287bb" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "dae2eac9d91464448b584c7949a31df8faefec56" },
|
||||
"telescope-live-grep-args.nvim": { "branch": "master", "commit": "649b662a8f476fd2c0289570764459e95ebaa3f3" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" },
|
||||
"thethethe.nvim": { "branch": "main", "commit": "357580127cd291c8a813564eeaff07c09303084e" },
|
||||
"tmux.nvim": { "branch": "main", "commit": "307bad95a1274f7288aaee09694c25c8cbcd6f1a" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
|
||||
"toggleterm.nvim": { "branch": "main", "commit": "022ff5594acccc8d90d2e46dc43994f7722ebdf7" },
|
||||
"tokyonight.nvim": { "branch": "main", "commit": "45d22cf0e1b93476d3b6d362d720412b3d34465c" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "46cf952fc115f4c2b98d4e208ed1e2dce08c9bf6" },
|
||||
"venn.nvim": { "branch": "main", "commit": "b09c2f36ddf70b498281845109bedcf08a7e0de0" },
|
||||
"vim-arduino": { "branch": "master", "commit": "2ded67cdf09bb07c4805d9e93d478095ed3d8606" },
|
||||
"vim-arsync": { "branch": "master", "commit": "dd5fd93182aafb67ede2ef465f379610980b52d3" },
|
||||
"vim-dadbod": { "branch": "master", "commit": "f740950d0703099e0f172016f10e0e39f50fd0ba" },
|
||||
"vim-dadbod-completion": { "branch": "master", "commit": "9e354e86fcc67a5ec2c104f312e374ea2f89c799" },
|
||||
"vim-dadbod-ui": { "branch": "master", "commit": "0fec59e3e1e619e302198cd491b7d27f8d398b7c" },
|
||||
"vim-wakatime": { "branch": "master", "commit": "cf51327a9e08935569614d1cb24e779ee9f45519" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "8ab96b38a2530eacba5be717f52e04601eb59326" },
|
||||
"wtf.nvim": { "branch": "main", "commit": "16eec1f32c3608bd8519e9e520041fe34201abb0" }
|
||||
}
|
||||
|
||||
@ -13,6 +13,9 @@ local default_opts = { noremap = true, silent = true }
|
||||
-- Python Script that saves the file & moves Todos to my Todolist.
|
||||
-- map('n', '<leader>sd', ':w|:! python3 ~/Documents/Northpass/Scripts/TodoMD/todo.py %<CR>', default_opts)
|
||||
|
||||
-- Close and save all buffers and return to Dashboard
|
||||
map('n', '<leader>ds', ':silent wa | %bd | Alpha', default_opts)
|
||||
|
||||
-- Neovim Tab Navgation via Vem-Tabline
|
||||
map('n', '<leader>t', ':tabnew<CR>', default_opts)
|
||||
map('n', '<leader>e', ':bnext<CR>', default_opts)
|
||||
@ -24,13 +27,10 @@ map('n', '<leader>q', '<Plug>vem_move_buffer_left', default_opts)
|
||||
-- Nvim-Tree
|
||||
map('n', '<leader>v', ':NvimTreeToggle<CR>', default_opts)
|
||||
|
||||
-- Nvim Sidebar
|
||||
map('n', '<leader>n', ':SidebarNvimToggle<CR>', default_opts)
|
||||
map('n', '<leader>q', ':SidebarNvimUpdate<CR>', default_opts)
|
||||
|
||||
-- Telescope
|
||||
map('n', '<leader>ff', ':Telescope find_files<CR>', default_opts)
|
||||
map('n', '<leader>fg', ':Telescope live_grep<CR>', default_opts)
|
||||
map('n', '<leader>fh', ':Telescope live_grep<CR>', default_opts)
|
||||
map('n', '<leader>fg', ':Telescope live_grep_args<CR>', default_opts)
|
||||
map('n', '<leader>fb', ':Telescope buffers<CR>', default_opts)
|
||||
map('n', '<leader>fe', ':Telescope file_browser<CR>', default_opts)
|
||||
map('n', '<leader>fk', ':Telescope keymaps<CR>', default_opts)
|
||||
@ -40,6 +40,11 @@ map('n', '<leader>cb', ':Telescope current_buffer_fuzzy_find<CR>', default_opts)
|
||||
-- Formatting
|
||||
map('n', '<leader>b', ':! black %<CR>', default_opts)
|
||||
map('n', '<leader>m', ':! markdownlint -f %<CR>', default_opts)
|
||||
map('n', '<leader>pj', ':!python -m json.tool<CR>', default_opts)
|
||||
map('n', '<leader>cs', ':%s/\\s*\\([^|]\\{-}\\)\\s*|/"\1",/g', default_opts)
|
||||
|
||||
-- Fold all comments
|
||||
map('n', '<leader>fc', ':set foldmethod=expr foldexpr=getline(v:lnum)=~"^\\s*".&commentstring[0]<CR>', default_opts)
|
||||
|
||||
-- Terminal
|
||||
map('n', '<C-t>', ':ToggleTerm direction=float<CR>', default_opts)
|
||||
|
||||
@ -59,7 +59,7 @@ opt.synmaxcol = 240 -- Max column for syntax highlight
|
||||
-- Colorscheme
|
||||
-----------------------------------------------------------
|
||||
opt.termguicolors = true -- Enable 24-bit RGB colors
|
||||
cmd[[colorscheme dracula]]
|
||||
-- cmd[[colorscheme dracula]]
|
||||
-----------------------------------------------------------
|
||||
-- Tabs, indent
|
||||
-----------------------------------------------------------
|
||||
|
||||
18
nvim/.config/nvim/lua/custom_snippets/markdown.json
Normal file
18
nvim/.config/nvim/lua/custom_snippets/markdown.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"today-date": {
|
||||
"prefix": "today",
|
||||
"body": ["${CURRENT_MONTH}-${CURRENT_DATE}-${CURRENT_YEAR}"],
|
||||
"description": "Puts the date in (Y-m-D) format"
|
||||
},
|
||||
"today-tasks": {
|
||||
"prefix": "todaytask",
|
||||
"body": ["## ${CURRENT_MONTH}-${CURRENT_DATE}-${CURRENT_YEAR} \n\n- [ ] "],
|
||||
"description": "Today's date plus a markdown task for easy addition."
|
||||
},
|
||||
"box": {
|
||||
"prefix": "hugobox",
|
||||
"body": ["{{< box info >}} \n\n {{< /box >}}"],
|
||||
"description": "Cstom info box for hugo website. Info can also be warn, tip."
|
||||
|
||||
}
|
||||
}
|
||||
14
nvim/.config/nvim/lua/custom_snippets/package.json
Normal file
14
nvim/.config/nvim/lua/custom_snippets/package.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"contributes": {
|
||||
"snippets": [
|
||||
{
|
||||
"language": "markdown",
|
||||
"path": "./markdown.json"
|
||||
},
|
||||
{
|
||||
"language": "python",
|
||||
"path": "./python.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
7
nvim/.config/nvim/lua/custom_snippets/python.json
Normal file
7
nvim/.config/nvim/lua/custom_snippets/python.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"pprint-import": {
|
||||
"prefix": "pprint-import",
|
||||
"body": ["import pprint \n\n pp=pprint.PrettyPrinter(indent=4) \n\n pp.pprint(VARIABLE)"],
|
||||
"description": "Easily import, declare, and add a Pretty Print for easier reading."
|
||||
},
|
||||
}
|
||||
46
nvim/.config/nvim/lua/plugins/avante.lua
Normal file
46
nvim/.config/nvim/lua/plugins/avante.lua
Normal file
@ -0,0 +1,46 @@
|
||||
return {
|
||||
"yetone/avante.nvim",
|
||||
event = "VeryLazy",
|
||||
lazy = false,
|
||||
version = false, -- set this if you want to always pull the latest change
|
||||
opts = {
|
||||
-- add any opts here
|
||||
},
|
||||
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
||||
build = "make",
|
||||
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
|
||||
dependencies = {
|
||||
"stevearc/dressing.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
--- The below dependencies are optional,
|
||||
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
|
||||
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
|
||||
"zbirenbaum/copilot.lua", -- for providers='copilot'
|
||||
{
|
||||
-- support for image pasting
|
||||
"HakonHarnes/img-clip.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
-- recommended settings
|
||||
default = {
|
||||
embed_image_as_base64 = false,
|
||||
prompt_for_file_name = false,
|
||||
drag_and_drop = {
|
||||
insert_mode = true,
|
||||
},
|
||||
-- required for Windows users
|
||||
use_absolute_path = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
-- Make sure to set this up properly if you have lazy=true
|
||||
'MeanderingProgrammer/render-markdown.nvim',
|
||||
opts = {
|
||||
file_types = { "markdown", "Avante" },
|
||||
},
|
||||
ft = { "markdown", "Avante" },
|
||||
},
|
||||
},
|
||||
}
|
||||
49
nvim/.config/nvim/lua/plugins/blink.lua
Normal file
49
nvim/.config/nvim/lua/plugins/blink.lua
Normal file
@ -0,0 +1,49 @@
|
||||
return {
|
||||
'saghen/blink.cmp',
|
||||
lazy = false, -- lazy loading handled internally
|
||||
-- optional: provides snippets for the snippet source
|
||||
dependencies = {
|
||||
'rafamadriz/friendly-snippets',
|
||||
'L3MON4D3/LuaSnip',
|
||||
},
|
||||
version = 'v0.*',
|
||||
opts = {
|
||||
keymap = {
|
||||
preset = "enter",
|
||||
|
||||
["<Tab>"] = {
|
||||
"select_next",
|
||||
"snippet_forward",
|
||||
"fallback",
|
||||
},
|
||||
|
||||
["<S-Tab>"] = {
|
||||
"select_prev",
|
||||
"snippet_backward",
|
||||
"fallback",
|
||||
},
|
||||
},
|
||||
|
||||
highlight = {
|
||||
use_nvim_cmp_as_default = true,
|
||||
nerd_font_variant = 'normal',
|
||||
}
|
||||
},
|
||||
trigger = {
|
||||
completion = {
|
||||
keyword_regex = '[%w_\\-]',
|
||||
blocked_trigger_characters = { ' ', '\n', '\t' },
|
||||
show_on_insert_on_trigger_character = true,
|
||||
}
|
||||
},
|
||||
sources = {
|
||||
providers = {
|
||||
{
|
||||
{ 'blink.cmp.sources.lsp' },
|
||||
{ 'blink.cmp.sources.path' },
|
||||
{ 'blink.cmp.sources.snippets', score_offset = -1 },
|
||||
},
|
||||
{ { 'blink.cmp.sources.buffer' } },
|
||||
}
|
||||
},
|
||||
}
|
||||
@ -2,47 +2,49 @@ return -- Signs for Git Status Information
|
||||
{
|
||||
'lewis6991/gitsigns.nvim',
|
||||
config = function()
|
||||
require('gitsigns').setup {
|
||||
signs = {
|
||||
add = {hl = 'GitSignsAdd' , text = '│', numhl='GitSignsAddNr' , linehl='GitSignsAddLn'},
|
||||
change = {hl = 'GitSignsChange', text = '│', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
||||
delete = {hl = 'GitSignsDelete', text = '_', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
||||
topdelete = {hl = 'GitSignsDelete', text = '‾', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
||||
changedelete = {hl = 'GitSignsChange', text = '~', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
||||
},
|
||||
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
|
||||
numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
|
||||
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
|
||||
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
|
||||
watch_gitdir = {
|
||||
interval = 1000,
|
||||
follow_files = true
|
||||
},
|
||||
attach_to_untracked = true,
|
||||
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
|
||||
current_line_blame_opts = {
|
||||
virt_text = true,
|
||||
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
|
||||
delay = 1000,
|
||||
ignore_whitespace = false,
|
||||
},
|
||||
current_line_blame_formatter = '<author>, <author_time:%Y-%m-%d> - <summary>',
|
||||
sign_priority = 1,
|
||||
update_debounce = 100,
|
||||
status_formatter = nil, -- Use default
|
||||
max_file_length = 40000,
|
||||
preview_config = {
|
||||
-- Options passed to nvim_open_win
|
||||
border = 'double',
|
||||
style = 'normal',
|
||||
relative = 'cursor',
|
||||
row = 0,
|
||||
col = 2
|
||||
},
|
||||
yadm = {
|
||||
enable = false
|
||||
},
|
||||
}
|
||||
end
|
||||
require('gitsigns').setup ()
|
||||
end
|
||||
}
|
||||
-- signs = {
|
||||
-- add = {hl = 'GitSignsAdd' , text = '│', numhl='GitSignsAddNr' , linehl='GitSignsAddLn'},
|
||||
-- change = {hl = 'GitSignsChange', text = '│', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
||||
-- delete = {hl = 'GitSignsDelete', text = '_', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
||||
-- topdelete = {hl = 'GitSignsDelete', text = '‾', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
||||
-- changedelete = {hl = 'GitSignsChange', text = '~', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
||||
-- },
|
||||
-- signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
|
||||
-- numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
|
||||
-- linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
|
||||
-- word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
|
||||
-- watch_gitdir = {
|
||||
-- interval = 1000,
|
||||
-- follow_files = true
|
||||
-- },
|
||||
-- attach_to_untracked = true,
|
||||
-- current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
|
||||
-- current_line_blame_opts = {
|
||||
-- virt_text = true,
|
||||
-- virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
|
||||
-- delay = 1000,
|
||||
-- ignore_whitespace = false,
|
||||
-- },
|
||||
-- current_line_blame_formatter = '<author>, <author_time:%Y-%m-%d> - <summary>',
|
||||
-- sign_priority = 1,
|
||||
-- update_debounce = 100,
|
||||
-- status_formatter = nil, -- Use default
|
||||
-- max_file_length = 40000,
|
||||
-- preview_config = {
|
||||
-- -- Options passed to nvim_open_win
|
||||
-- border = 'double',
|
||||
-- style = 'normal',
|
||||
-- relative = 'cursor',
|
||||
-- row = 0,
|
||||
-- col = 2
|
||||
-- },
|
||||
-- -- yadm = {
|
||||
-- -- enable = false
|
||||
-- -- },
|
||||
-- }
|
||||
-- end
|
||||
-- }
|
||||
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
return {
|
||||
'lukas-reineke/headlines.nvim',
|
||||
}
|
||||
--[[ config = function()
|
||||
require("headlines").setup {
|
||||
markdown = {
|
||||
query = vim.treesitter.parse_query(
|
||||
"markdown",
|
||||
[[
|
||||
(atx_heading [
|
||||
(atx_h1_marker)
|
||||
(atx_h2_marker)
|
||||
(atx_h3_marker)
|
||||
(atx_h4_marker)
|
||||
(atx_h5_marker)
|
||||
(atx_h6_marker)
|
||||
] @headline)
|
||||
|
||||
(thematic_break) @dash
|
||||
|
||||
(fenced_code_block) @codeblock
|
||||
|
||||
(block_quote_marker) @quote
|
||||
(block_quote (paragraph (inline (block_continuation) @quote)))
|
||||
|
||||
),
|
||||
headline_highlights = { "Headline" },
|
||||
codeblock_highlight = "CodeBlock",
|
||||
dash_highlight = "Dash",
|
||||
dash_string = "-",
|
||||
quote_highlight = "Quote",
|
||||
quote_string = "┃",
|
||||
fat_headlines = true,
|
||||
},
|
||||
}
|
||||
end
|
||||
}
|
||||
--]]
|
||||
51
nvim/.config/nvim/lua/plugins/headlines.lua.backup
Normal file
51
nvim/.config/nvim/lua/plugins/headlines.lua.backup
Normal file
@ -0,0 +1,51 @@
|
||||
-- return {
|
||||
-- 'lukas-reineke/headlines.nvim',
|
||||
-- dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
-- config = function()
|
||||
-- require("headlines").setup {
|
||||
-- markdown = {
|
||||
-- query = vim.treesitter.query.parse(
|
||||
-- "markdown",
|
||||
-- [[
|
||||
-- (atx_heading [
|
||||
-- (atx_h1_marker)
|
||||
-- (atx_h2_marker)
|
||||
-- (atx_h3_marker)
|
||||
-- (atx_h4_marker)
|
||||
-- (atx_h5_marker)
|
||||
-- (atx_h6_marker)
|
||||
-- ] @headline)
|
||||
--
|
||||
-- (thematic_break) @dash
|
||||
--
|
||||
-- (fenced_code_block) @codeblock
|
||||
--
|
||||
-- (block_quote_marker) @quote
|
||||
-- (block_quote (paragraph (inline (block_continuation) @quote)))
|
||||
-- ]]
|
||||
-- ),
|
||||
-- headline_highlights = {
|
||||
-- 'Headline1',
|
||||
-- 'Headline2',
|
||||
-- 'Headline3',
|
||||
-- 'Headline4',
|
||||
-- 'Headline5',
|
||||
-- 'Headline6',
|
||||
-- },
|
||||
-- codeblock_highlight = "CodeBlock",
|
||||
-- dash_highlight = "Dash",
|
||||
-- dash_string = "-",
|
||||
-- quote_highlight = "Quote",
|
||||
-- quote_string = "┃",
|
||||
-- fat_headlines = false,
|
||||
-- },
|
||||
-- }
|
||||
-- vim.api.nvim_set_hl(0, 'Headline1', { fg = '#ffffff', bg = '#6272A4', italic = false })
|
||||
-- vim.api.nvim_set_hl(0, 'Headline2', { fg = '#000000', bg = '#8BE9FD', italic = false })
|
||||
-- vim.api.nvim_set_hl(0, 'Headline3', { fg = '#000000', bg = '#BD93F9', italic = false })
|
||||
-- vim.api.nvim_set_hl(0, 'Headline4', { fg = '#000000', bg = '#FFB86C', italic = false })
|
||||
-- vim.api.nvim_set_hl(0, 'Headline5', { fg = '#000000', bg = '#FF79C6', italic = false })
|
||||
-- vim.api.nvim_set_hl(0, 'Headline6', { fg = '#000000', bg = '#FF5555', italic = false })
|
||||
-- vim.api.nvim_set_hl(0, 'CodeBlock', { bg = '#222221' })
|
||||
-- end
|
||||
-- }
|
||||
27
nvim/.config/nvim/lua/plugins/hover.lua
Normal file
27
nvim/.config/nvim/lua/plugins/hover.lua
Normal file
@ -0,0 +1,27 @@
|
||||
return {
|
||||
"lewis6991/hover.nvim",
|
||||
config = function()
|
||||
require("hover").setup {
|
||||
init = function()
|
||||
require("hover.providers.lsp")
|
||||
-- require('hover.providers.gh')
|
||||
-- require('hover.providers.gh_user')
|
||||
-- require('hover.providers.jira')
|
||||
require('hover.providers.man')
|
||||
require('hover.providers.dictionary')
|
||||
end,
|
||||
preview_opts = {
|
||||
border = nil
|
||||
},
|
||||
-- Whether the contents of a currently open hover window should be moved
|
||||
-- to a :h preview-window when pressing the hover keymap.
|
||||
preview_window = false,
|
||||
title = true
|
||||
}
|
||||
|
||||
-- Setup keymaps
|
||||
vim.keymap.set("n", "K", require("hover").hover, {desc = "hover.nvim"})
|
||||
vim.keymap.set("n", "gK", require("hover").hover_select, {desc = "hover.nvim (select)"})
|
||||
end
|
||||
}
|
||||
|
||||
@ -20,6 +20,10 @@ return {
|
||||
config = function() require("mason-lspconfig").setup{} end,
|
||||
},
|
||||
{ 'neovim/nvim-lspconfig' },
|
||||
{
|
||||
'hinell/lsp-timeout.nvim',
|
||||
dependencies={ "neovim/nvim-lspconfig" }
|
||||
},
|
||||
{
|
||||
'L3MON4D3/LuaSnip', version = "2.*",
|
||||
build = "make install_jsregexp",
|
||||
@ -29,22 +33,50 @@ return {
|
||||
history = true,
|
||||
delete_check_events = "TextChanged",
|
||||
})
|
||||
require("luasnip").filetype_extend("liquid", {"html","css","javascript"})
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
require("luasnip.loaders.from_vscode").load({
|
||||
paths = {
|
||||
"~/.dotfiles/nvim/.config/nvim/lua/custom_snippets/" }
|
||||
"~/.dotfiles/nvim/.config/nvim/lua/custom_snippets/" }
|
||||
})
|
||||
-- require("luasnip.extras.filetype_functions").extend_load_ft({
|
||||
-- liquid = {"html", "css", "javascript" },
|
||||
-- })
|
||||
end,
|
||||
},
|
||||
'saadparwaiz1/cmp_luasnip',
|
||||
'hrsh7th/cmp-nvim-lsp-signature-help',
|
||||
'lukas-reineke/cmp-under-comparator',
|
||||
|
||||
-- {"ellisonleao/glow.nvim", config = function() require("glow").setup() end },
|
||||
|
||||
-- 'saadparwaiz1/cmp_luasnip',
|
||||
-- 'hrsh7th/cmp-nvim-lsp-signature-help',
|
||||
-- 'lukas-reineke/cmp-under-comparator',
|
||||
|
||||
-- {
|
||||
-- 'asiryk/auto-hlsearch.nvim',
|
||||
-- version = "1.1.0",
|
||||
-- config = function() require("auto-hlsearch").setup{} end,
|
||||
-- },
|
||||
|
||||
------------------------------------------------------------
|
||||
-- General Functionality
|
||||
------------------------------------------------------------
|
||||
|
||||
{
|
||||
'stevearc/oil.nvim',
|
||||
opts = {},
|
||||
dependencies = { { "echasnovski/mini.icons", opts = {} } },
|
||||
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons
|
||||
},
|
||||
{ 'kenn7/vim-arsync',
|
||||
dependencies={'prabirshrestha/async.vim'},
|
||||
},
|
||||
{'kevinhwang91/nvim-ufo', requires = 'kevinhwang91/promise-async'},
|
||||
|
||||
{ 'MaximilianLloyd/adjacent.nvim' },
|
||||
'BlackLight/nvim-http',
|
||||
{ 'stevearc/vim-arduino'},
|
||||
{ 'sindrets/diffview.nvim' },
|
||||
{ 'skwee357/nvim-prose' },
|
||||
{
|
||||
'nacro90/numb.nvim',
|
||||
config = function() require('numb').setup{
|
||||
@ -64,37 +96,45 @@ return {
|
||||
theme = 'material',
|
||||
always_divide_middle = false,
|
||||
},
|
||||
sections = {
|
||||
lualine_x = { "encoding", { "fileformat", symbols = { unix = " " } }, "filetype" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
-- Nvim Tree File Manager on the Left
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
version = "*",
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
-- {
|
||||
-- "nvim-tree/nvim-tree.lua",
|
||||
-- version = "*",
|
||||
-- lazy = false,
|
||||
-- dependencies = {
|
||||
-- "nvim-tree/nvim-web-devicons",
|
||||
-- },
|
||||
-- config = function()
|
||||
-- require("nvim-tree").setup({
|
||||
-- sort_by = "case_sensitive",
|
||||
-- view = {
|
||||
-- width = 30,
|
||||
-- },
|
||||
-- renderer = {
|
||||
-- group_empty = true,
|
||||
-- },
|
||||
-- filters = {
|
||||
-- dotfiles = true,
|
||||
-- },
|
||||
-- diagnostics = {
|
||||
-- enable = true,
|
||||
-- },
|
||||
-- })
|
||||
-- end,
|
||||
-- },
|
||||
--
|
||||
-- Tmux Navigation
|
||||
{
|
||||
"aserowy/tmux.nvim",
|
||||
config = function() require("tmux").setup() end
|
||||
},
|
||||
config = function()
|
||||
require("nvim-tree").setup({
|
||||
sort_by = "case_sensitive",
|
||||
view = {
|
||||
width = 30,
|
||||
},
|
||||
renderer = {
|
||||
group_empty = true,
|
||||
},
|
||||
filters = {
|
||||
dotfiles = true,
|
||||
},
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"roobert/f-string-toggle.nvim",
|
||||
config = function()
|
||||
@ -133,7 +173,18 @@ return {
|
||||
}
|
||||
end
|
||||
},
|
||||
"hrsh7th/nvim-cmp", -- optional, for completion
|
||||
-- "hrsh7th/nvim-cmp", -- optional, for completion
|
||||
|
||||
-- Top Right Notify Pop Up
|
||||
{
|
||||
"rcarriga/nvim-notify",
|
||||
config = function ()
|
||||
require("notify").setup {
|
||||
}
|
||||
-- vim.api.nvim_notify = require('notify')
|
||||
vim.notify = require('notify')
|
||||
end
|
||||
},
|
||||
|
||||
{'akinsho/toggleterm.nvim', version = "*", opts = {
|
||||
direction = 'float',
|
||||
@ -143,6 +194,12 @@ return {
|
||||
-- echasnovski's Minis get a section of their own...
|
||||
------------------------------------------------------------
|
||||
|
||||
|
||||
{ 'echasnovski/mini.pick', version = '*',
|
||||
config = function()
|
||||
require('mini.pick').setup()
|
||||
end
|
||||
},
|
||||
{
|
||||
'echasnovski/mini.comment', version = '*',
|
||||
config = function()
|
||||
@ -191,32 +248,89 @@ return {
|
||||
require('mini.fuzzy').setup()
|
||||
end
|
||||
},
|
||||
{
|
||||
'echasnovski/mini.hipatterns', version = false,
|
||||
-- event = "BufReadPre",
|
||||
config = function()
|
||||
local hipatterns = require('mini.hipatterns')
|
||||
hipatterns.setup({
|
||||
highlighters = {
|
||||
hex_color = hipatterns.gen_highlighter.hex_color(),
|
||||
hsl_color = {
|
||||
pattern = "hsl%(%d+,? %d+,? %d+%)",
|
||||
group = function(_, match)
|
||||
local utils = require("solarized-osaka.hsl")
|
||||
local nh, ns, nl = match:match("hsl%((%d+),? (%d+),? (%d+)%)")
|
||||
local h, s, l = tonumber(nh), tonumber(ns), tonumber(nl)
|
||||
local hex_color = utils.hslToHex(h, s, l)
|
||||
return MiniHipatterns.compute_hex_color_group(hex_color, "bg")
|
||||
end,
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
},
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- Markdown Plugins
|
||||
------------------------------------------------------------
|
||||
|
||||
-- {
|
||||
-- "iamcco/markdown-preview.nvim",
|
||||
-- build = "cd app && npm install",
|
||||
-- ft = "markdown",
|
||||
-- lazy = true,
|
||||
-- keys = { { "gm", "<cmd>MarkdownPreviewToggle<cr>", desc = "Markdown Preview" } },
|
||||
-- init = function()
|
||||
-- vim.g.mkdp_filetypes = { "markdown" }
|
||||
-- vim.g.mkdp_auto_close = true
|
||||
-- vim.g.mkdp_open_to_the_world = false
|
||||
-- vim.g.mkdp_open_ip = "127.0.0.1"
|
||||
-- vim.g.mkdp_port = "8888"
|
||||
-- vim.g.mkdp_browser = ""
|
||||
-- vim.g.mkdp_echo_preview_url = true
|
||||
-- vim.g.mkdp_page_title = "${name}"
|
||||
-- end,
|
||||
-- },
|
||||
{ "jbyuki/venn.nvim" },
|
||||
--[[
|
||||
{ 'toppair/peek.nvim',
|
||||
build = 'deno task --quiet build:fast',
|
||||
config = function()
|
||||
require('peek').setup()
|
||||
end
|
||||
},
|
||||
]]--
|
||||
-- DAP (Debug adaptor Protocol)
|
||||
'mfussenegger/nvim-dap',
|
||||
|
||||
{
|
||||
'mfussenegger/nvim-dap-python',
|
||||
config = function()
|
||||
require('dap-python').setup(
|
||||
'~/.virtualenvs/debugpy/bin/python'
|
||||
)
|
||||
end
|
||||
-- {
|
||||
-- 'mfussenegger/nvim-dap-python',
|
||||
-- config = function()
|
||||
-- require('dap-python').setup(
|
||||
-- '~/.virtualenvs/debugpy/bin/python'
|
||||
-- )
|
||||
-- end
|
||||
-- },
|
||||
{
|
||||
'rcarriga/nvim-dap-ui', dependencies = {"mfussenegger/nvim-dap"}
|
||||
},
|
||||
|
||||
{
|
||||
'rcarriga/nvim-dap-ui', dependencies = {"mfussenegger/nvim-dap"}
|
||||
},
|
||||
|
||||
---------------------------------------------------------
|
||||
-- Text, Icons, Symbols
|
||||
----------------------------------------------------------
|
||||
|
||||
-- {
|
||||
-- 'simrat39/symbols-outline.nvim',
|
||||
-- config = function()
|
||||
-- require('symbols-outline').setup()
|
||||
-- end
|
||||
-- },
|
||||
{
|
||||
'simrat39/symbols-outline.nvim',
|
||||
config = function()
|
||||
require('symbols-outline').setup()
|
||||
end
|
||||
"j-hui/fidget.nvim",
|
||||
opts = {
|
||||
-- options
|
||||
},
|
||||
},
|
||||
'lukas-reineke/indent-blankline.nvim',
|
||||
'karb94/neoscroll.nvim',
|
||||
@ -225,15 +339,133 @@ return {
|
||||
'nvim-lua/popup.nvim',
|
||||
'nvim-lua/plenary.nvim',
|
||||
|
||||
-- Todo & Comments for Organization
|
||||
{
|
||||
'folke/todo-comments.nvim',
|
||||
dependencies = "nvim-lua/plenary.nvim",
|
||||
config = function()
|
||||
require("todo-comments").setup {
|
||||
keywords = {
|
||||
FIX = {
|
||||
icon = " ", -- icon used for the sign, and in search results
|
||||
color = "error", -- can be a hex color, or a named color (see below)
|
||||
alt = { "FIXME", "BUG", "FIXIT", "ISSUE" }, -- a set of other keywords that all map to this FIX keywords
|
||||
-- signs = false, -- configure signs for some keywords individually
|
||||
},
|
||||
DONE = { icon = " ", color = "info" },
|
||||
IN_PROG = { icon = "", color = "default" },
|
||||
FEAT = { icon = " ", color = "warning", alt = { "NEED", "REQUEST" } },
|
||||
WARN = { icon = " ", color = "error", alt = { "WARNING", "ERROR" } },
|
||||
TODO = { icon = " ", color = "hint", alt = { "TASK", "TBD" } },
|
||||
RISK = { icon = " ", color = "hint", alt = { "RISK" } },
|
||||
GOAL = { icon = " ", color = "test", alt = { "GOAL", "KPI"} },
|
||||
},
|
||||
highlight = {
|
||||
comments_only = false,
|
||||
},
|
||||
colors = {
|
||||
error = { "DiagnosticError", "ErrorMsg", "#DC2626" },
|
||||
warning = { "DiagnosticWarning", "WarningMsg", "#FBBF24" },
|
||||
info = { "DiagnosticInfo", "#2563EB" },
|
||||
hint = { "DiagnosticHint", "#10B981" },
|
||||
default = { "Identifier", "#7C3AED" },
|
||||
test = { "Identifier", "#FF00FF" }
|
||||
},
|
||||
}
|
||||
end
|
||||
},
|
||||
-- Various telescopes
|
||||
'nvim-telescope/telescope-file-browser.nvim',
|
||||
|
||||
{
|
||||
'nvim-telescope/telescope-fzf-native.nvim',
|
||||
build = 'make'
|
||||
},
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- Various Color Schemes, Dashboard, etc
|
||||
-----------------------------------------------------------
|
||||
|
||||
|
||||
{'jaredgorski/spacecamp'},
|
||||
{
|
||||
"eldritch-theme/eldritch.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
opts = {},
|
||||
},
|
||||
{ 'rktjmp/lush.nvim' },
|
||||
-- { 'normanras/link.nvim' },
|
||||
-- { dir = '/Users/normrasmussen/Documents/Projects/link-two/', lazy = true},
|
||||
{
|
||||
"craftzdog/solarized-osaka.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
opts = {},
|
||||
},
|
||||
'Mofiqul/dracula.nvim',
|
||||
-- 'ray-x/starry.nvim',
|
||||
'rose-pine/neovim',
|
||||
'EdenEast/nightfox.nvim',
|
||||
'rebelot/kanagawa.nvim',
|
||||
'catppuccin/nvim',
|
||||
'sainnhe/sonokai',
|
||||
{
|
||||
"oxfist/night-owl.nvim",
|
||||
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
||||
priority = 1000, -- make sure to load this before all the other start plugins
|
||||
config = function()
|
||||
-- load the colorscheme here
|
||||
vim.cmd.colorscheme("night-owl")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"folke/tokyonight.nvim",
|
||||
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
||||
priority = 1000, -- make sure to load this before all the other start plugins
|
||||
config = function()
|
||||
-- load the colorscheme here
|
||||
-- vim.cmd([[colorscheme tokyonight]])
|
||||
end,
|
||||
},
|
||||
{ 'bluz71/vim-nightfly-colors', name = "nightfly", lazy = true, priority = 1000 },
|
||||
'Bekaboo/deadcolumn.nvim',
|
||||
-- {
|
||||
-- "dustypomerleau/tol.nvim",
|
||||
-- lazy = false, -- load the colorscheme at startup
|
||||
-- priority = 1000, -- load colorscheme first
|
||||
-- config = true,
|
||||
-- },
|
||||
|
||||
-- UI Improvements and Changes
|
||||
{
|
||||
"https://git.sr.ht/~swaits/thethethe.nvim",
|
||||
lazy = true,
|
||||
event = "VeryLazy",
|
||||
opts = { },
|
||||
},
|
||||
'HiPhish/rainbow-delimiters.nvim',
|
||||
-- {
|
||||
-- "wookayin/semshi",
|
||||
-- ft = "python",
|
||||
-- build = ":UpdateRemotePlugins",
|
||||
-- config = function()
|
||||
-- vim.api.nvim_set_hl(0, "semshiLocal", { ctermfg=209, fg="#80aa9e" } )
|
||||
-- vim.api.nvim_set_hl(0, "semshiGlobal", { ctermfg=214, fg="#d3869b" } )
|
||||
-- vim.api.nvim_set_hl(0, "semshiImported", { ctermfg=214, fg="#8bba7f", cterm=bold, gui=bold } )
|
||||
-- vim.api.nvim_set_hl(0, "semshiParameter", { ctermfg=75, fg="#8bba7f" } )
|
||||
-- vim.api.nvim_set_hl(0, "semshiParameterUnused", { ctermfg=117, fg="#34381b", cterm=underline, gui=underline} )
|
||||
-- vim.api.nvim_set_hl(0, "semshiFree", { ctermfg=218, fg="#e9b143"} )
|
||||
-- vim.api.nvim_set_hl(0, "semshiBuiltin", { ctermfg=207, fg="#f2594b"} )
|
||||
-- vim.api.nvim_set_hl(0, "semshiAttribute", { ctermfg=49, fg="#3b4439"} )
|
||||
-- vim.api.nvim_set_hl(0, "semshiSelf", { ctermfg=249, fg="#db4740"} )
|
||||
-- vim.api.nvim_set_hl(0, "semshiUnresolved", { ctermfg=226, fg="#f28534", cterm=underline, gui=underline} )
|
||||
-- vim.api.nvim_set_hl(0, "semshiSelected", { ctermfg=231, fg="#ffffff", ctermbg=161, bg="#4c3432"} )
|
||||
-- vim.api.nvim_set_hl(0, "semshiErrorSign", { ctermfg=231, fg="#ffffff", ctermbg=160, bg="#402120"} )
|
||||
-- vim.api.nvim_set_hl(0, "semshiErrorChar", { ctermfg=231, fg="#ffffff", ctermbg=160, bg="#402120"} )
|
||||
-- vim.cmd([[sign define semshiError text=E> texthl=semshiErrorSign]])
|
||||
-- end
|
||||
-- },
|
||||
|
||||
-- Wakatime Tracking
|
||||
'wakatime/vim-wakatime',
|
||||
@ -241,5 +473,14 @@ return {
|
||||
----------------------------------------------
|
||||
--- Custom Plugins and Tests
|
||||
----------------------------------------------
|
||||
-- {
|
||||
-- dir = '/Users/normrasmussen/Documents/Projects/tasksPlugin.nvim/',
|
||||
-- dev = true,
|
||||
-- name = "Mkdn Tasks (DEV)",
|
||||
-- },
|
||||
-- {
|
||||
-- dir = '/Users/normrasmussen/Documents/Projects/pulse.nvim',
|
||||
-- dev = true,
|
||||
-- },
|
||||
}
|
||||
|
||||
|
||||
@ -14,14 +14,19 @@ return {
|
||||
null_ls.setup({
|
||||
debug = true,
|
||||
sources = {
|
||||
null_ls.builtins.formatting.black,
|
||||
null_ls.builtins.completion.luasnip,
|
||||
null_ls.builtins.code_actions.gitsigns,
|
||||
null_ls.builtins.diagnostics.pylint.with({
|
||||
diagnostics_postprocess = function(diagnostic)
|
||||
diagnostic.code = diagnostic.message_id
|
||||
end,
|
||||
}),
|
||||
-- null_ls.builtins.diagnostics.markdownlint.with({
|
||||
-- extra_args = { "--disable", "MD024", "MD013", "MD012", "--" }}),
|
||||
-- null_ls.builtins.formatting.black,
|
||||
-- null_ls.builtins.completion.luasnip,
|
||||
-- null_ls.builtins.code_actions.gitsigns,
|
||||
-- null_ls.builtins.diagnostics.ruff,
|
||||
-- null_ls.builtins.formatting.ruff,
|
||||
-- null_ls.builtins.formatting.prettierd,
|
||||
-- null_ls.builtins.diagnostics.pylint.with({
|
||||
-- diagnostics_postprocess = function(diagnostic)
|
||||
-- diagnostic.code = diagnostic.message_id
|
||||
-- end,
|
||||
-- }),
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
37
nvim/.config/nvim/lua/plugins/mini-deps.lua
Normal file
37
nvim/.config/nvim/lua/plugins/mini-deps.lua
Normal file
@ -0,0 +1,37 @@
|
||||
-- return {
|
||||
-- 'echasnovski/mini.deps', version='*',
|
||||
-- config = function()
|
||||
-- require('mini.deps').setup({
|
||||
-- path = { package = path_package }
|
||||
-- })
|
||||
-- end
|
||||
--
|
||||
-- local add, later, now = MiniDeps.add, MiniDeps.later, MiniDeps.now
|
||||
--
|
||||
--
|
||||
-- add({
|
||||
-- source = 'yetone/avante.nvim',
|
||||
-- monitor = 'main',
|
||||
-- depends = {
|
||||
-- 'stevearc/dressing.nvim',
|
||||
-- 'nvim-lua/plenary.nvim',
|
||||
-- 'MunifTanjim/nui.nvim',
|
||||
-- 'echasnovski/mini.icons'
|
||||
-- },
|
||||
-- hooks = { post_checkout = function() vim.cmd('make') end }
|
||||
-- })
|
||||
-- --- optional
|
||||
-- add({ source = 'hrsh7th/nvim-cmp' })
|
||||
-- add({ source = 'zbirenbaum/copilot.lua' })
|
||||
-- add({ source = 'HakonHarnes/img-clip.nvim' })
|
||||
-- add({ source = 'MeanderingProgrammer/render-markdown.nvim' })
|
||||
--
|
||||
-- now(function() require('avante_lib').load() end)
|
||||
-- later(function() require('render-markdown').setup({...}) end)
|
||||
-- later(function()
|
||||
-- require('img-clip').setup({...}) -- config img-clip
|
||||
-- require("copilot").setup({...}) -- setup copilot to your liking
|
||||
-- require("avante").setup({...}) -- config for avante.nvim
|
||||
-- end)
|
||||
--
|
||||
-- }
|
||||
21
nvim/.config/nvim/lua/plugins/mkdnflow.lua
Normal file
21
nvim/.config/nvim/lua/plugins/mkdnflow.lua
Normal file
@ -0,0 +1,21 @@
|
||||
return {
|
||||
'jakewvincent/mkdnflow.nvim',
|
||||
config = function()
|
||||
require('mkdnflow').setup({
|
||||
mappings = {
|
||||
MkdnToggleToDo = {{'i', 'n'}, '<C-Space>'},
|
||||
MkdnEnter = {{'i', 'n', 'v'}, '<CR>'},
|
||||
MkdnExtendList = {{'n'}, '<leader>;'},
|
||||
MkdnNewListItemBelowInsert = {{'n', 'i'}, '<leader>l'},
|
||||
MkdnTableNextCell = false,
|
||||
MkdnTab = {{'i',}, '<Tab>'},
|
||||
MkdnSTab = {{'i'}, '<S-Tab>'},
|
||||
MkdnFollowLink = {{'n'}, '<leader>p'}
|
||||
},
|
||||
links = {
|
||||
name_is_source = true,
|
||||
conceal = true,
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
@ -125,8 +125,47 @@ return {
|
||||
-- Set up lspconfig.
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
-- Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.
|
||||
require'lspconfig'.pyright.setup {
|
||||
require'lspconfig'.pylsp.setup {
|
||||
capabilities = capabilities
|
||||
}
|
||||
local lspconfig = require'lspconfig'
|
||||
local configs = require'lspconfig.configs'
|
||||
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
|
||||
if not configs.ls_emmet then
|
||||
configs.ls_emmet = {
|
||||
default_config = {
|
||||
cmd = { 'ls_emmet', '--stdio' };
|
||||
filetypes = {
|
||||
'html',
|
||||
'liquid',
|
||||
'css',
|
||||
'scss',
|
||||
'javascriptreact',
|
||||
'typescriptreact',
|
||||
'haml',
|
||||
'xml',
|
||||
'xsl',
|
||||
'pug',
|
||||
'slim',
|
||||
'sass',
|
||||
'stylus',
|
||||
'less',
|
||||
'sss',
|
||||
'hbs',
|
||||
'handlebars',
|
||||
};
|
||||
root_dir = function(fname)
|
||||
return vim.loop.cwd()
|
||||
end;
|
||||
settings = {};
|
||||
};
|
||||
}
|
||||
end
|
||||
require'lspconfig'.ls_emmet.setup {
|
||||
capabilities = capabilities
|
||||
}
|
||||
end
|
||||
}
|
||||
@ -1,37 +1,32 @@
|
||||
return {
|
||||
'neovim/nvim-lspconfig',
|
||||
config = function()
|
||||
-- Setup language servers.
|
||||
local lspconfig = require('lspconfig')
|
||||
lspconfig.pyright.setup {}
|
||||
lspconfig.pylsp.setup {}
|
||||
-- Server-specific settings. See `:help lspconfig-setup`
|
||||
settings = {
|
||||
['pyright'] = {
|
||||
cmd = {"pyright-langserver", "--stdio"},
|
||||
root_dir = function(fname)
|
||||
local root_files = {
|
||||
'pyproject.toml',
|
||||
'setup.py',
|
||||
'setup.cfg',
|
||||
'requirements.txt',
|
||||
'Pipfile',
|
||||
}
|
||||
return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname)
|
||||
end,
|
||||
settings = {
|
||||
pylsp = {
|
||||
configurationSources = {"pylint"},
|
||||
plugins = {
|
||||
pylint = { enabled = true },
|
||||
flake8 = { enabled = false },
|
||||
pycodestyle = { enabled = false },
|
||||
pyflakes = { enabled = false },
|
||||
}
|
||||
}
|
||||
-- Setup language servers.
|
||||
local lspconfig = require('lspconfig')
|
||||
local configs = require('lspconfig.configs')
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
lspconfig.emmet_ls.setup{
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
filetypes = { "css", "eruby", "html", "javascript", "javascriptreact", "less", "sass", "scss", "svelte", "pug", "typescriptreact", "vue", "liquid" },
|
||||
init_options = {
|
||||
html = {
|
||||
options = {
|
||||
["bem.enabled"] = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
lspconfig.ruff.setup{
|
||||
on_attach = on_attach,
|
||||
init_options = {
|
||||
settings = {
|
||||
args = {},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- Global mappings.
|
||||
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
||||
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float)
|
||||
@ -69,5 +64,5 @@ return {
|
||||
end, opts)
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
107
nvim/.config/nvim/lua/plugins/nvim-lspconfig.lua.backup
Normal file
107
nvim/.config/nvim/lua/plugins/nvim-lspconfig.lua.backup
Normal file
@ -0,0 +1,107 @@
|
||||
-- return {
|
||||
-- 'neovim/nvim-lspconfig',
|
||||
-- config = function()
|
||||
-- -- Setup language servers.
|
||||
-- local lspconfig = require('lspconfig')
|
||||
-- local configs = require('lspconfig/configs')
|
||||
-- local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
-- capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
--
|
||||
-- lspconfig.emmet_ls.setup{
|
||||
-- -- on_attach = on_attach,
|
||||
-- capabilities = capabilities,
|
||||
-- filetypes = { "css", "eruby", "html", "javascript", "javascriptreact", "less", "sass", "scss", "svelte", "pug", "typescriptreact", "vue","liquid" },
|
||||
-- init_options = {
|
||||
-- html = {
|
||||
-- options = {
|
||||
-- ["bem.enabled"] = true,
|
||||
-- },
|
||||
-- },
|
||||
-- }
|
||||
-- }
|
||||
-- -- lspconfig.pylsp.setup{
|
||||
-- -- -- Server-specific settings. See `:help lspconfig-setup`
|
||||
-- -- settings = {
|
||||
-- -- settings = {
|
||||
-- -- pylsp = {
|
||||
-- -- configurationSources = {"pylint"},
|
||||
-- -- plugins = {
|
||||
-- -- pylint = { enabled = true },
|
||||
-- -- }
|
||||
-- -- }
|
||||
-- -- }
|
||||
-- -- }
|
||||
-- -- }
|
||||
-- -- Global mappings.
|
||||
-- -- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
||||
-- vim.keymap.set('n', '<space>e', vim.diagnostic.open_float)
|
||||
-- vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
|
||||
-- vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
|
||||
-- vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist)
|
||||
--
|
||||
-- -- Use LspAttach autocommand to only map the following keys
|
||||
-- -- after the language server attaches to the current buffer
|
||||
-- vim.api.nvim_create_autocmd('LspAttach', {
|
||||
-- group = vim.api.nvim_create_augroup('UserLspConfig', {}),
|
||||
-- callback = function(ev)
|
||||
-- -- Enable completion triggered by <c-x><c-o>
|
||||
-- vim.bo[ev.buf].omnifunc = 'v:lua.vim.lsp.omnifunc'
|
||||
--
|
||||
-- -- Buffer local mappings.
|
||||
-- -- See `:help vim.lsp.*` for documentation on any of the below functions
|
||||
-- local opts = { buffer = ev.buf }
|
||||
-- vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, opts)
|
||||
-- vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts)
|
||||
-- vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)
|
||||
-- vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, opts)
|
||||
-- vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, opts)
|
||||
-- vim.keymap.set('n', '<space>wa', vim.lsp.buf.add_workspace_folder, opts)
|
||||
-- vim.keymap.set('n', '<space>wr', vim.lsp.buf.remove_workspace_folder, opts)
|
||||
-- vim.keymap.set('n', '<space>wl', function()
|
||||
-- print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
|
||||
-- end, opts)
|
||||
-- vim.keymap.set('n', '<space>D', vim.lsp.buf.type_definition, opts)
|
||||
-- vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, opts)
|
||||
-- vim.keymap.set({ 'n', 'v' }, '<space>ca', vim.lsp.buf.code_action, opts)
|
||||
-- vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts)
|
||||
-- vim.keymap.set('n', '<space>f', function()
|
||||
-- vim.lsp.buf.format { async = true }
|
||||
-- end, opts)
|
||||
-- end,
|
||||
-- })
|
||||
--
|
||||
-- -- local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
-- -- capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
-- --
|
||||
-- -- if not configs.ls_emmet then
|
||||
-- -- configs.ls_emmet = {
|
||||
-- -- default_config = {
|
||||
-- -- cmd = { 'ls_emmet', '--stdio' };
|
||||
-- -- filetypes = {
|
||||
-- -- 'html',
|
||||
-- -- 'liquid',
|
||||
-- -- 'css',
|
||||
-- -- 'scss',
|
||||
-- -- 'javascriptreact',
|
||||
-- -- 'typescriptreact',
|
||||
-- -- 'haml',
|
||||
-- -- 'xml',
|
||||
-- -- 'xsl',
|
||||
-- -- 'pug',
|
||||
-- -- 'slim',
|
||||
-- -- 'sass',
|
||||
-- -- 'stylus',
|
||||
-- -- 'less',
|
||||
-- -- 'sss',
|
||||
-- -- 'handlebars',
|
||||
-- -- };
|
||||
-- -- root_dir = function(fname)
|
||||
-- -- return vim.loop.cwd()
|
||||
-- -- end;
|
||||
-- -- settings = {};
|
||||
-- -- };
|
||||
-- -- }
|
||||
-- -- end
|
||||
-- -- lspconfig.ls_emmet.setup { capabilities = capabilities }
|
||||
-- -- end
|
||||
--}
|
||||
@ -12,15 +12,31 @@ return {
|
||||
-- require('nvim-treesitter.install').update({ with_sync = true })
|
||||
-- A list of parser names, or "all"
|
||||
ensure_installed = {
|
||||
'bash', 'css', 'json', 'lua', 'python',
|
||||
'vim', 'yaml',
|
||||
'bash', 'css', 'html', 'javascript', 'json', 'lua', 'python',
|
||||
'vim', 'yaml', 'typescript', 'markdown',
|
||||
},
|
||||
sync_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = function(lang, bufnr)
|
||||
return lang == "py" and vim.api.nvim_buf_line_count(bufnr) > 5000
|
||||
end,
|
||||
additional_vim_regex_highlighting = true,
|
||||
},
|
||||
indent = { enable = true },
|
||||
})
|
||||
end
|
||||
end,
|
||||
disable = function(lang, buf)
|
||||
local max_filesize = 100 * 1024 -- 100 KB
|
||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||
if ok and stats and stats.size > max_filesize then
|
||||
return true
|
||||
end
|
||||
end, disable = function(lang, buf)
|
||||
local max_filesize = 100 * 1024 -- 100 KB
|
||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||
if ok and stats and stats.size > max_filesize then
|
||||
return true
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
20
nvim/.config/nvim/lua/plugins/pulse.lua
Normal file
20
nvim/.config/nvim/lua/plugins/pulse.lua
Normal file
@ -0,0 +1,20 @@
|
||||
return {
|
||||
'linguini1/pulse.nvim',
|
||||
-- 'Normanras/pulse.nvim',
|
||||
version = "*",
|
||||
config = function()
|
||||
|
||||
local pulse = require("pulse")
|
||||
|
||||
pulse.setup({level = vim.log.levels.ERROR})
|
||||
|
||||
pulse.add("Send Krista Message", {
|
||||
interval = 90,
|
||||
message = "Tell Krista that you love her!",
|
||||
enabled = True,
|
||||
})
|
||||
end
|
||||
}
|
||||
|
||||
-- Not working: DEBUG, TRACE
|
||||
-- Working: ERROR, OFF, WARN, INFO
|
||||
19
nvim/.config/nvim/lua/plugins/rainbow_csv.lua
Normal file
19
nvim/.config/nvim/lua/plugins/rainbow_csv.lua
Normal file
@ -0,0 +1,19 @@
|
||||
return {
|
||||
'cameron-wags/rainbow_csv.nvim',
|
||||
config = true,
|
||||
ft = {
|
||||
'csv',
|
||||
'tsv',
|
||||
'csv_semicolon',
|
||||
'csv_whitespace',
|
||||
'csv_pipe',
|
||||
'rfc_csv',
|
||||
'rfc_semicolon'
|
||||
},
|
||||
cmd = {
|
||||
'RainbowDelim',
|
||||
'RainbowDelimSimple',
|
||||
'RainbowDelimQuoted',
|
||||
'RainbowMultiDelim'
|
||||
}
|
||||
}
|
||||
@ -1,10 +1,11 @@
|
||||
return {
|
||||
{
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.1',
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.5',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-telescope/telescope-live-grep-args.nvim',
|
||||
},
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-telescope/telescope-live-grep-args.nvim',
|
||||
'jonarrien/telescope-cmdline.nvim',
|
||||
},
|
||||
|
||||
config = function ()
|
||||
local g = vim.g
|
||||
@ -132,16 +133,23 @@ return {
|
||||
},
|
||||
extensions = {
|
||||
file_browser = {
|
||||
mappings = {
|
||||
["i"] = {
|
||||
["<C-c>"] = fb_actions.create,
|
||||
["<C-y>"] = fb_actions.copy,
|
||||
["<C-r>"] = fb_actions.rename,
|
||||
["<C-w>"] = fb_actions.goto_cwd,
|
||||
["<C-o>"] = fb_actions.open,
|
||||
["<C-d>"] = fb_actions.remove,
|
||||
},
|
||||
},
|
||||
mappings = {
|
||||
["i"] = {
|
||||
["<C-c>"] = fb_actions.create,
|
||||
["<C-y>"] = fb_actions.copy,
|
||||
["<C-r>"] = fb_actions.rename,
|
||||
["<C-w>"] = fb_actions.goto_cwd,
|
||||
["<C-o>"] = fb_actions.open,
|
||||
["<C-d>"] = fb_actions.remove,
|
||||
},
|
||||
},
|
||||
cmdline = {
|
||||
mappings = {
|
||||
complete = '<Tab>',
|
||||
run_selection = '<C-CR>',
|
||||
run_input = '<CR>',
|
||||
}
|
||||
}
|
||||
},
|
||||
fzf = {
|
||||
fuzzy = true, -- false will only do exact matching
|
||||
@ -153,7 +161,9 @@ return {
|
||||
})
|
||||
require("telescope").load_extension "file_browser"
|
||||
require("telescope").load_extension "live_grep_args"
|
||||
require("telescope").load_extension "fzf"
|
||||
require("telescope").load_extension "adjacent"
|
||||
require("telescope").load_extension('cmdline')
|
||||
end
|
||||
|
||||
}}
|
||||
|
||||
|
||||
17
nvim/.config/nvim/lua/plugins/vim-dadbod-ui.lua
Normal file
17
nvim/.config/nvim/lua/plugins/vim-dadbod-ui.lua
Normal file
@ -0,0 +1,17 @@
|
||||
return {
|
||||
'kristijanhusak/vim-dadbod-ui',
|
||||
dependencies = {
|
||||
{ 'tpope/vim-dadbod', lazy = true },
|
||||
{ 'kristijanhusak/vim-dadbod-completion', ft = { 'sql', 'mysql', 'plsql' }, lazy = true }, -- Optional
|
||||
},
|
||||
cmd = {
|
||||
'DBUI',
|
||||
'DBUIToggle',
|
||||
'DBUIAddConnection',
|
||||
'DBUIFindBuffer',
|
||||
},
|
||||
init = function()
|
||||
-- Your DBUI configuration
|
||||
vim.g.db_ui_use_nerd_fonts = 1
|
||||
end,
|
||||
}
|
||||
25
nvim/.config/nvim/lua/plugins/wtf.lua
Normal file
25
nvim/.config/nvim/lua/plugins/wtf.lua
Normal file
@ -0,0 +1,25 @@
|
||||
return {
|
||||
"piersolenski/wtf.nvim",
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"gw",
|
||||
mode = { "n", "x" },
|
||||
function()
|
||||
require("wtf").ai()
|
||||
end,
|
||||
desc = "Debug diagnostic with AI",
|
||||
},
|
||||
{
|
||||
mode = { "n" },
|
||||
"gW",
|
||||
function()
|
||||
require("wtf").search()
|
||||
end,
|
||||
desc = "Search diagnostic with Google",
|
||||
},
|
||||
},
|
||||
}
|
||||
349
nvim/.config/nvim/spell/en.utf-8.add
Normal file
349
nvim/.config/nvim/spell/en.utf-8.add
Normal file
@ -0,0 +1,349 @@
|
||||
recert
|
||||
gravatar
|
||||
TODO
|
||||
gravatars
|
||||
webhook
|
||||
Neovim
|
||||
accomplished
|
||||
accomplished
|
||||
Talkspace
|
||||
Northpass
|
||||
CEU
|
||||
th
|
||||
B2B
|
||||
Integrations
|
||||
NPP
|
||||
CSV
|
||||
BBHR
|
||||
onboarding
|
||||
Kai
|
||||
scorms
|
||||
QMC
|
||||
trainings
|
||||
cancelled
|
||||
Ummey
|
||||
Ummey's
|
||||
prev
|
||||
Kaitlyn
|
||||
CYA
|
||||
programmatically
|
||||
Wistia
|
||||
iOS
|
||||
PPT
|
||||
Kaitlyn's
|
||||
OneTrust
|
||||
JS
|
||||
Analytics
|
||||
KPI
|
||||
param
|
||||
UUID
|
||||
Pipedrive
|
||||
pipedrive
|
||||
Lukasz
|
||||
Bjorn
|
||||
webhooks
|
||||
trackable
|
||||
Pipedrive's
|
||||
boolean
|
||||
Kaisa
|
||||
SSO
|
||||
XP
|
||||
DW
|
||||
Chołodecki
|
||||
Łukasz
|
||||
Kotkas
|
||||
Patrycja
|
||||
Q1
|
||||
Vidyard
|
||||
badging
|
||||
Flink
|
||||
S3
|
||||
Unclickable
|
||||
DataDog
|
||||
wistia
|
||||
https
|
||||
https
|
||||
wifi
|
||||
autoplaying
|
||||
tbd
|
||||
G2
|
||||
SMEs
|
||||
CSM
|
||||
AEs
|
||||
ZoomInfo's
|
||||
linkedin
|
||||
Enablement
|
||||
enablement
|
||||
DIY
|
||||
Zoominfo
|
||||
G2M
|
||||
Carli
|
||||
LevelJump
|
||||
LMS
|
||||
CMS
|
||||
Lessonly
|
||||
Katlin
|
||||
nd
|
||||
LT
|
||||
EVP's
|
||||
UX
|
||||
Schoology
|
||||
Pendo
|
||||
Salesforce
|
||||
ILTs
|
||||
SFDC
|
||||
ROI
|
||||
NPS
|
||||
roadmap
|
||||
BigIdeasMath
|
||||
Hubspot
|
||||
analytics
|
||||
SCORM
|
||||
AWS
|
||||
JnJ
|
||||
DSAR
|
||||
ons
|
||||
Zapier
|
||||
Accredible
|
||||
LPs
|
||||
Shopify
|
||||
Callum
|
||||
Chek
|
||||
Chek
|
||||
Chek
|
||||
Chek
|
||||
Chek
|
||||
Chek
|
||||
prereg
|
||||
OpenAccess
|
||||
Camila
|
||||
SAP
|
||||
SAP
|
||||
Workato
|
||||
Soner
|
||||
Okta
|
||||
Auth0
|
||||
flink
|
||||
goflink
|
||||
backfill
|
||||
Marek
|
||||
KJ
|
||||
Canva
|
||||
Customizable
|
||||
GoFlink
|
||||
Cami
|
||||
auth
|
||||
Litmos
|
||||
infographic
|
||||
Nino's
|
||||
Flink's
|
||||
Crowdin
|
||||
Joonas
|
||||
QBR
|
||||
UID
|
||||
versioning
|
||||
GDPR
|
||||
Edume
|
||||
something
|
||||
something
|
||||
AppCues
|
||||
appcues
|
||||
Skuad
|
||||
Skuid
|
||||
COO
|
||||
Nergis
|
||||
pdf
|
||||
FiveTran
|
||||
BigQuery
|
||||
COO
|
||||
NDA
|
||||
lifecycle
|
||||
PALs
|
||||
LTV
|
||||
Articulate's
|
||||
Comms
|
||||
ILT
|
||||
Mockup
|
||||
iFrame
|
||||
Froala
|
||||
html
|
||||
css
|
||||
resize
|
||||
customizable
|
||||
OpenSesame
|
||||
timestamp
|
||||
comms
|
||||
Audrius
|
||||
Youtube
|
||||
Omnisend
|
||||
northpass
|
||||
Omnisend's
|
||||
url
|
||||
Hoc
|
||||
exisiting
|
||||
subdomains
|
||||
iFrame
|
||||
iFrame
|
||||
iFrame
|
||||
gifs
|
||||
webview
|
||||
Skuid's
|
||||
reachs
|
||||
JJSV
|
||||
Todos
|
||||
Phaco
|
||||
Garg
|
||||
codeblock
|
||||
Aleksandr
|
||||
Sten
|
||||
v10
|
||||
TOC
|
||||
Nitty
|
||||
KPIs
|
||||
MAL
|
||||
walmart
|
||||
Segura
|
||||
Luminate
|
||||
gif
|
||||
OneDrive
|
||||
EOC
|
||||
legistlation
|
||||
todo
|
||||
SCA
|
||||
V2
|
||||
Rock22
|
||||
Figma
|
||||
Foundational
|
||||
Iorad
|
||||
ish
|
||||
Credly
|
||||
Ritu
|
||||
Kumar
|
||||
Deeksha
|
||||
Prajwal
|
||||
Praveen
|
||||
Rakesh
|
||||
integrations
|
||||
recomendations
|
||||
personalization
|
||||
SLAs
|
||||
Devanathan
|
||||
productize
|
||||
accesss
|
||||
devs
|
||||
Sandipan
|
||||
Kayla
|
||||
discoverable
|
||||
Trei
|
||||
aways
|
||||
Chronotype
|
||||
zapier
|
||||
WildHealth
|
||||
dev
|
||||
Shopify's
|
||||
ProductIDs
|
||||
Flupdates
|
||||
availble
|
||||
enrollees
|
||||
automations
|
||||
hoc
|
||||
Baeligh
|
||||
Moburley
|
||||
Baeleigh
|
||||
Gmail
|
||||
WHAcademy
|
||||
www
|
||||
wildhealth
|
||||
www
|
||||
www
|
||||
transformative
|
||||
impactful
|
||||
positivity
|
||||
CSMs
|
||||
Basecamp
|
||||
PSRs
|
||||
PSR
|
||||
TSU
|
||||
ChurnZero
|
||||
Neste
|
||||
SEO
|
||||
oAuth
|
||||
sso
|
||||
learning
|
||||
pre
|
||||
Margus
|
||||
pipedive
|
||||
http
|
||||
iFrame
|
||||
learn
|
||||
OM
|
||||
duolingo
|
||||
gamification
|
||||
CIP
|
||||
typeform
|
||||
Trello
|
||||
repo
|
||||
Unific
|
||||
AIIM
|
||||
FOMO
|
||||
Async
|
||||
zendesk
|
||||
centre
|
||||
centres
|
||||
consisently
|
||||
LiveStorm
|
||||
represneted
|
||||
Jagannatha
|
||||
Q2
|
||||
Gainsight
|
||||
unlinked
|
||||
Gainsight's
|
||||
RevOps
|
||||
Heraly
|
||||
Cherrill
|
||||
LeanData
|
||||
nitty
|
||||
Planhat
|
||||
Toothman
|
||||
event
|
||||
event
|
||||
MJ
|
||||
Wix
|
||||
cateogries
|
||||
cateogries
|
||||
Glassdoor
|
||||
accomodate
|
||||
Ines
|
||||
distrcits
|
||||
suggstions
|
||||
Chek's
|
||||
COO
|
||||
nginx's
|
||||
nginx
|
||||
config
|
||||
javascript
|
||||
subdomain
|
||||
Moodle
|
||||
MSP
|
||||
moodle
|
||||
Faux
|
||||
repos
|
||||
Github
|
||||
Gitea
|
||||
AppDaemon
|
||||
AppDaemon's
|
||||
birdnet
|
||||
HomeAssistant
|
||||
MQTT
|
||||
BirdNET
|
||||
reseller
|
||||
Ece
|
||||
accredation
|
||||
assesment
|
||||
submodules
|
||||
Artera
|
||||
Qualtrics
|
||||
Discoverability
|
||||
programatically
|
||||
#ASEURL/!
|
||||
BASEURL/!
|
||||
BIN
nvim/.config/nvim/spell/en.utf-8.add.spl
Normal file
BIN
nvim/.config/nvim/spell/en.utf-8.add.spl
Normal file
Binary file not shown.
6
package-lock.json
generated
Normal file
6
package-lock.json
generated
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": ".dotfiles",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {}
|
||||
}
|
||||
19
tmux/.config/tmux/lan_test.sh
Executable file
19
tmux/.config/tmux/lan_test.sh
Executable file
@ -0,0 +1,19 @@
|
||||
run_program() {
|
||||
default_route_nic=$(route get default | grep -i interface | awk '{print $2}')
|
||||
all_nics=$(ifconfig 2>/dev/null | awk -F':' '/^[a-z]/ && !/^lo/ { print $1 }' | tr '\n' ' ')
|
||||
IFS=' ' read -ra all_nics_array <<< "$all_nics"
|
||||
all_nics_array=("$default_route_nic" "${all_nics_array[@]}")
|
||||
for nic in "${all_nics_array[@]}"; do
|
||||
ipv4s_on_nic=$(ifconfig ${nic} 2>/dev/null | awk '$1 == "inet" { print $2 }')
|
||||
echo ${ipv4s_on_nic}
|
||||
for lan_ip in ${ipv4s_on_nic[@]}; do
|
||||
echo ${lan_ip}
|
||||
[[ -n "${lan_ip}" ]]
|
||||
done
|
||||
[[ -n "${lan_ip}" ]]
|
||||
done
|
||||
echo "ⓛ ${lan_ip-Not working}"
|
||||
return 0
|
||||
}
|
||||
|
||||
"$@"
|
||||
BIN
.DS_Store → tmux/.config/tmux/plugins/.DS_Store
vendored
BIN
.DS_Store → tmux/.config/tmux/plugins/.DS_Store
vendored
Binary file not shown.
30
tmux/.config/tmux/plugins/ifstat.sh
Executable file
30
tmux/.config/tmux/plugins/ifstat.sh
Executable file
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
find_data=$(ifstat -S -q 1 1)
|
||||
interfaces=$(echo -e "${find_data}" | head -n 1)
|
||||
final=()
|
||||
for interface in ${interfaces}; do
|
||||
has_data=$(ifstat -i ${interface} -S -q 1 1 | tail -n 1 | tr -d '\r' | tr -d ' ')
|
||||
if [[ "$has_data" != "0.000.00" ]]; then
|
||||
for int in ${interface}; do
|
||||
data=$(ifstat -i ${interface} -S -q 1 1)
|
||||
flow_data=$(echo -e "${data}" | tail -n 1 | tr -d '\r' )
|
||||
up=${flow_data% *}
|
||||
down=${flow_data##* }
|
||||
up=$up | tr -d ' '
|
||||
down=$down | tr -d ' '
|
||||
final+=("$int: $up/ $down")
|
||||
echo $final
|
||||
done
|
||||
# OUTPUT="⇈ $up ⇊ $down"
|
||||
# echo $OUTPUT
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
# data=$(ifstat -i en0 -i en5 -S -q 1 1)
|
||||
# flow_data=$(echo -e "${data}" | tail -n 1 | tr -d '\r')
|
||||
# up=${flow_data% *}
|
||||
# down=${flow_data##* }
|
||||
# OUTPUT="⇈ $up ⇊ $down"
|
||||
# echo $OUTPUT
|
||||
17
tmux/.config/tmux/plugins/lan_ip.sh
Executable file
17
tmux/.config/tmux/plugins/lan_ip.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
function ip_address() {
|
||||
|
||||
# Loop through the interfaces and check for the interface that is up.
|
||||
for file in /sys/class/net/*; do
|
||||
|
||||
iface=$(basename $file);
|
||||
|
||||
read status < $file/operstate;
|
||||
|
||||
[ "$status" == "up" ] && ip addr show $iface | awk '/inet /{printf $2" "}'
|
||||
|
||||
done
|
||||
|
||||
}
|
||||
6
tmux/.config/tmux/plugins/timezones.sh
Executable file
6
tmux/.config/tmux/plugins/timezones.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
PST=$(TZ=":America/Los_Angeles" date -R +%H:%M)
|
||||
EST=$(TZ=":America/New_York" date -R +%H:%M)
|
||||
CET=$(TZ=":Europe/Warsaw" date -R +%H:%M)
|
||||
echo "PST: $PST | EST: $EST | CET: $CET"
|
||||
1
tmux/.config/tmux/plugins/tmux
Submodule
1
tmux/.config/tmux/plugins/tmux
Submodule
Submodule tmux/.config/tmux/plugins/tmux added at 79068c40b3
1
tmux/.config/tmux/plugins/tmux-continuum
Submodule
1
tmux/.config/tmux/plugins/tmux-continuum
Submodule
Submodule tmux/.config/tmux/plugins/tmux-continuum added at 3e4bc35da4
1
tmux/.config/tmux/plugins/tmux-powerline
Submodule
1
tmux/.config/tmux/plugins/tmux-powerline
Submodule
Submodule tmux/.config/tmux/plugins/tmux-powerline added at 25cf067040
1
tmux/.config/tmux/plugins/tmux-resurrect
Submodule
1
tmux/.config/tmux/plugins/tmux-resurrect
Submodule
Submodule tmux/.config/tmux/plugins/tmux-resurrect added at cff343cf9e
1
tmux/.config/tmux/plugins/tmux-sensible
Submodule
1
tmux/.config/tmux/plugins/tmux-sensible
Submodule
Submodule tmux/.config/tmux/plugins/tmux-sensible added at 25cb91f42d
1
tmux/.config/tmux/plugins/tmux-world-clock
Submodule
1
tmux/.config/tmux/plugins/tmux-world-clock
Submodule
Submodule tmux/.config/tmux/plugins/tmux-world-clock added at 07266df297
1
tmux/.config/tmux/plugins/tpm
Submodule
1
tmux/.config/tmux/plugins/tpm
Submodule
Submodule tmux/.config/tmux/plugins/tpm added at 99469c4a9b
1
tmux/.config/tmux/plugins/vim-tmux-navigator
Submodule
1
tmux/.config/tmux/plugins/vim-tmux-navigator
Submodule
Submodule tmux/.config/tmux/plugins/vim-tmux-navigator added at 38b1d0402c
27
tmux/.config/tmux/plugins/wan_ip.sh
Executable file
27
tmux/.config/tmux/plugins/wan_ip.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
function wan_ip() {
|
||||
|
||||
tmp_file="./wan_ip.txt"
|
||||
wan_up="N/a"
|
||||
|
||||
if [ -z "$wan_ip" ]; then
|
||||
wan_ip=$(curl --max-time 2 -s http://whatismyip.akamai.com/)
|
||||
|
||||
if [ "$?" -eq "0" ]; then
|
||||
echo "${wan_ip}" > $tmp_file
|
||||
elif [ -f "${tmp_file}" ]; then
|
||||
wan_ip=$(cat "$tmp_file")
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$wan_ip" ]; then
|
||||
printf "ⓦ ${wan_ip}"
|
||||
fi
|
||||
}
|
||||
|
||||
function main() {
|
||||
wan_ip
|
||||
}
|
||||
|
||||
main
|
||||
1
tmux/.config/tmux/plugins/wan_ip.txt
Normal file
1
tmux/.config/tmux/plugins/wan_ip.txt
Normal file
@ -0,0 +1 @@
|
||||
104.246.2.167
|
||||
4
tmux/.config/tmux/sidebar/directory_widths.txt
Normal file
4
tmux/.config/tmux/sidebar/directory_widths.txt
Normal file
@ -0,0 +1,4 @@
|
||||
/Users/normrasmussen 40
|
||||
/Users/normrasmussen/Documents/Liquid_Templates 40
|
||||
/Users/normrasmussen/Documents/Liquid_Templates/customer_templates 69
|
||||
40
|
||||
81
tmux/.config/tmux/tmux.conf
Normal file
81
tmux/.config/tmux/tmux.conf
Normal file
@ -0,0 +1,81 @@
|
||||
set-environment -g PATH "/opt/homebrew/bin:/bin:/usr/bin"
|
||||
set-window-option -g mode-keys vi
|
||||
set-option default-terminal "screen-256color"
|
||||
set-option default-terminal "tmux-256color"
|
||||
set-option -a terminal-overrides ",*256col*:RGB"
|
||||
|
||||
# Set up Variables
|
||||
black='#000000'
|
||||
white='#f8f8f2'
|
||||
gray='#44475a'
|
||||
dark_gray='#282a36'
|
||||
light_purple='#bd93f9'
|
||||
dark_purple='#6272a4'
|
||||
cyan='#8be9fd'
|
||||
green='#50fa7b'
|
||||
orange='#ffb86c'
|
||||
red='#ff5555'
|
||||
pink='#ff79c6'
|
||||
yellow='#f1fa8c'
|
||||
active='#50fa7b'
|
||||
nonactive='#6272a4'
|
||||
left_sep=''
|
||||
right_sep=''
|
||||
|
||||
wanip="~/.dotfiles/tmux/.config/tmux/plugins/wan_ip.sh"
|
||||
timezones="~/.dotfiles/tmux/.config/tmux/plugins/timezones.sh"
|
||||
ifstat="~/.dotfiles/tmux/.config/tmux/plugins/ifstat.sh"
|
||||
|
||||
|
||||
set -g status on
|
||||
set -g status-interval 1
|
||||
set -g status-justify centre
|
||||
|
||||
set-window-option -g window-status-separator ''
|
||||
set-window-option -g window-status-current-format "#[fg=${active},bg=${dark_gray}]${right_sep}#[fg=${black},bg=${active}] #I #W #[fg=${active},bg=${dark_gray}]${left_sep}"
|
||||
set-window-option -g window-status-format "#[fg=${white},bg=${dark_gray}] #I #W "
|
||||
set-option -g status-bg ${dark_gray}
|
||||
# set-option -g status-fg white
|
||||
set -g status-left-length 50
|
||||
# set -g status-left-style default
|
||||
set -g status-left "#[fg=${black},bg=${light_purple}] #(${wanip}) #[fg=${light_purple},bg=${green}]${left_sep}#[fg=${black},bg=${green}] #(${ifstat})#[fg=${green},bg=${dark_gray}]${left_sep}"
|
||||
|
||||
set -g status-right-length 60
|
||||
set -g status-right "#[fg=${pink},bg=${dark_gray}]${right_sep}#[fg=${black},bg=${pink}]#(${timezones}) "
|
||||
set -g status-right-style default
|
||||
|
||||
|
||||
# Standard Plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
|
||||
# Continue Session on Startup
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
|
||||
# Search your Scrollback using fzf
|
||||
# set -g @plugin 'roosta/tmux-fuzzback'
|
||||
|
||||
|
||||
# Allow Focus Events
|
||||
set -g focus-events on
|
||||
|
||||
# enable mouse support
|
||||
set-option -g mouse on
|
||||
|
||||
# Open Pane in same working directory
|
||||
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B)
|
||||
set -g prefix C-b
|
||||
unbind-key C-space
|
||||
bind-key C-b send-prefix
|
||||
|
||||
# Set new panes to open in current directory
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
bind '"' split-window -c "#{pane_current_path}"
|
||||
bind % split-window -h -c "#{pane_current_path}"
|
||||
|
||||
# Vim-Tmux-Navigator plugin/
|
||||
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||
|
||||
# Initialize TMUX plugin manager - kept at bottom of file
|
||||
run '~/.dotfiles/tmux/.config/tmux/plugins/tpm/tpm'
|
||||
5
wezterm/.wezterm.lua
Normal file
5
wezterm/.wezterm.lua
Normal file
@ -0,0 +1,5 @@
|
||||
local wezterm = require 'wezterm'
|
||||
local config = wezterm.config_builder()
|
||||
config.window_background_opacity = 0.9
|
||||
config.color_scheme = 'Rapture'
|
||||
return config
|
||||
1664
zsh/.p10k.zsh
Normal file
1664
zsh/.p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
59
zsh/.zshrc
Normal file
59
zsh/.zshrc
Normal file
@ -0,0 +1,59 @@
|
||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
# confirmations, etc.) must go above this block; everything else may go below.
|
||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export LANG=en_US.UTF-8
|
||||
# autoload -Uz compinit; compinit; _comp_options+=(globdots);
|
||||
|
||||
# User configuration
|
||||
export DOT="~/.dotfiles"
|
||||
alias vim='vim -S ~/.vimrc'
|
||||
alias nvim='nvim'
|
||||
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
|
||||
export CLICOLOR=1
|
||||
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
|
||||
|
||||
export EDITOR="$VISUAL"
|
||||
export VISUAL='nvim'
|
||||
export PYTHONPATH="/opt/homebrew/bin/python3:$PYTHONPATH"
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init -)"
|
||||
eval "$(pyenv virtualenv-init -)"
|
||||
|
||||
# Function to Correctly Source $VIRTUAL_ENV for Neovim
|
||||
function nvimvenv {
|
||||
if [[ -e "$VIRTUAL_ENV" && -f "$VIRTUAL_ENV/bin/activate" ]]; then
|
||||
source "$VIRTUAL_ENV/bin/activate"
|
||||
command nvim "$@"
|
||||
deactivate
|
||||
else
|
||||
command nvim "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
export PATH="$PATH:$HOME/.rvm/bin"
|
||||
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
NPM_PACKAGES=/Users/normrasmussen/.npm-packages
|
||||
export PATH="/opt/homebrew/sbin:$PATH"
|
||||
export PATH="/opt/homebrew/bin:$PATH"
|
||||
export PATH="$NPM_PACKAGES/bin:$PATH"
|
||||
source /opt/homebrew/share/powerlevel10k/powerlevel10k.zsh-theme
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
source ~/.dotfiles/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source ~/.dotfiles/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
. "$HOME/.cargo/env"
|
||||
export PATH="/usr/local/opt/openssl/bin:$PATH"
|
||||
echo 'eval "$(uv generate-shell-completion zsh)"' >> ~/.zshrc
|
||||
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
eval "$(uv generate-shell-completion zsh)"
|
||||
8
zsh/.zshrc.minimal
Normal file
8
zsh/.zshrc.minimal
Normal file
@ -0,0 +1,8 @@
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export LANG=en_US.UTF-8
|
||||
|
||||
# User configuration
|
||||
export DOT="~/.dotfiles"
|
||||
alias vim='vim -S ~/.vimrc'
|
||||
alias nvim='nvim'
|
||||
source ~/.dotfiles/zsh/.zshrc
|
||||
1
zsh/zsh-autosuggestions
Submodule
1
zsh/zsh-autosuggestions
Submodule
Submodule zsh/zsh-autosuggestions added at c3d4e576c9
1
zsh/zsh-syntax-highlighting
Submodule
1
zsh/zsh-syntax-highlighting
Submodule
Submodule zsh/zsh-syntax-highlighting added at 143b25eb98
Reference in New Issue
Block a user