diff --git a/dot-conf/.config/lvim/config.lua b/dot-conf/.config/lvim/config.lua new file mode 100644 index 0000000..bad910d --- /dev/null +++ b/dot-conf/.config/lvim/config.lua @@ -0,0 +1,18 @@ +-- Read the docs: https://www.lunarvim.org/docs/configuration +-- Video Tutorials: https://www.youtube.com/watch?v=sFA9kX-Ud_c&list=PLhoH5vyxr6QqGu0i7tt_XoVK9v-KvZ3m6 +-- Forum: https://www.reddit.com/r/lunarvim/ +-- Discord: https://discord.com/invite/Xb9B4Ny + +vim.opt.timeoutlen = 5 +vim.opt.relativenumber = true +lvim.builtin.telescope.defaults.layout_config.preview_cutoff = 80 + +vim.api.nvim_create_autocmd("BufEnter", { + pattern = { "*" }, + command = "setlocal tabstop=4 shiftwidth=4" +}) + +vim.api.nvim_create_autocmd("BufEnter", { + pattern = { "*.lua" }, + command = "setlocal tabstop=2 shiftwidth=2" +}) diff --git a/dot-conf/.config/lvim/lazy-lock.json b/dot-conf/.config/lvim/lazy-lock.json new file mode 100644 index 0000000..27c2dc3 --- /dev/null +++ b/dot-conf/.config/lvim/lazy-lock.json @@ -0,0 +1,44 @@ +{ + "Comment.nvim": { "branch": "master", "commit": "38d3b7eb553872d8866f14a0dd4fe84126068fce" }, + "LuaSnip": { "branch": "master", "commit": "e77fa9ad0b1f4fc6cddf54e51047e17e90c7d7ed" }, + "alpha-nvim": { "branch": "main", "commit": "87c204040e3f5d4c1c95067b35905d8f8a2f2545" }, + "bigfile.nvim": { "branch": "main", "commit": "c1bad34ce742b4f360b67ca23c873fef998240fc" }, + "bufferline.nvim": { "branch": "main", "commit": "a4bd44523316928a7c4a5c09a3407d02c30b6027" }, + "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, + "cmp-nvim-lsp": { "branch": "main", "commit": "0e6b2ed705ddcff9738ec4ea838141654f12eeef" }, + "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, + "cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" }, + "friendly-snippets": { "branch": "main", "commit": "631f79e346b0b3203d2ce3eae619ca8d612e5463" }, + "gitsigns.nvim": { "branch": "main", "commit": "e5edefd9976039f5352e0c900f35206770b33a2d" }, + "indent-blankline.nvim": { "branch": "master", "commit": "018bd04d80c9a73d399c1061fa0c3b14a7614399" }, + "lazy.nvim": { "branch": "main", "commit": "d6a782c7002682f4a01b79fc3918c4584ad6e8fb" }, + "lir.nvim": { "branch": "master", "commit": "1aa871f20637eccc4e1e26b0fbcf9aafc9b6caf7" }, + "lualine.nvim": { "branch": "master", "commit": "84ffb80e452d95e2c46fa29a98ea11a240f7843e" }, + "lunar.nvim": { "branch": "master", "commit": "08bbc93b96ad698d22fc2aa01805786bcedc34b9" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "7276ffffcf51a8304b5fd4b81293be4ee010ec47" }, + "mason.nvim": { "branch": "main", "commit": "057ac5ca159c83e302a55bd839a96ff1ea2396db" }, + "neodev.nvim": { "branch": "main", "commit": "0043cf91c18aeac8db5765eb86c6078e17ac9325" }, + "nlsp-settings.nvim": { "branch": "main", "commit": "32aa12da328258f2dccb15d327c26a8d21d9f4bd" }, + "null-ls.nvim": { "branch": "main", "commit": "33b853a3933eed3137cd055aac4e539e69832ad0" }, + "nvim-autopairs": { "branch": "master", "commit": "7566a86f44bb72ba2b1a609f528a27d93241502d" }, + "nvim-cmp": { "branch": "main", "commit": "11102d3db12c7f8b35265ad0e17a21511e5b1e68" }, + "nvim-dap": { "branch": "master", "commit": "6cedcb527e264c8f25e86afa8dae74c6692dee51" }, + "nvim-dap-ui": { "branch": "master", "commit": "286f682f366fbc652b38dff893569374e9433dd3" }, + "nvim-lspconfig": { "branch": "master", "commit": "427378a03ffc1e1bc023275583a49b1993e524d0" }, + "nvim-navic": { "branch": "master", "commit": "83dc174da915f9dbc9b51169e9b62a2e0d42b527" }, + "nvim-tree.lua": { "branch": "master", "commit": "bb375fb20327c49920c41d2b51c1ce2f4fe7deb3" }, + "nvim-treesitter": { "branch": "master", "commit": "2ce3c9080cfe4a39c7907e672edafd2a95244a7c" }, + "nvim-ts-context-commentstring": { "branch": "main", "commit": "0bf8fbc2ca8f8cdb6efbd0a9e32740d7a991e4c3" }, + "nvim-web-devicons": { "branch": "master", "commit": "986875b7364095d6535e28bd4aac3a9357e91bbe" }, + "onedarker.nvim": { "branch": "freeze", "commit": "b00dd2189f264c5aeb4cf04c59439655ecd573ec" }, + "plenary.nvim": { "branch": "master", "commit": "9ac3e9541bbabd9d73663d757e4fe48a675bb054" }, + "project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" }, + "schemastore.nvim": { "branch": "main", "commit": "0b396f538f195c249f021a48c3d8988f0d3f86f7" }, + "structlog.nvim": { "branch": "main", "commit": "45b26a2b1036bb93c0e83f4225e85ab3cee8f476" }, + "telescope-fzf-native.nvim": { "branch": "main", "commit": "580b6c48651cabb63455e97d7e131ed557b8c7e2" }, + "telescope.nvim": { "branch": "0.1.x", "commit": "9de317bdea2bc393074651179c4fc7f93e9b2d56" }, + "toggleterm.nvim": { "branch": "main", "commit": "68fdf851c2b7901a7065ff129b77d3483419ddce" }, + "tokyonight.nvim": { "branch": "main", "commit": "c5df636ce62a8aab7565f35da143cfd672526302" }, + "vim-illuminate": { "branch": "master", "commit": "a2907275a6899c570d16e95b9db5fd921c167502" }, + "which-key.nvim": { "branch": "main", "commit": "4acffc92953a90a790603bfdab7c92319ab167b1" } +} \ No newline at end of file diff --git a/dot-conf/.tmux.conf b/dot-conf/.tmux.conf new file mode 100644 index 0000000..2470547 --- /dev/null +++ b/dot-conf/.tmux.conf @@ -0,0 +1,47 @@ +unbind r +bind r source-file ~/.tmux.conf + +# Change leader key to Ctrl + s +set -g prefix C-s + +# Set shell +set -g default-shell /bin/zsh + +# VI shit +setw -g mode-keys vi +bind-key h select-pane -L +bind-key j select-pane -D +bind-key k select-pane -U +bind-key l select-pane -R + +# Start windows and panes at 1, not 0 +set -g base-index 1 +setw -g pane-base-index 1 + +# Use mouse scroll wheel +setw -g mouse on + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'christoomey/vim-tmux-navigator' +set -g @plugin 'ofirgall/tmux-window-name' +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'tmux-plugins/tmux-continuum' +set -g @plugin 'tmux-plugins/tmux-yank' +set -g @plugin 'b0o/tmux-autoreload' + +set -g @plugin 'dracula/tmux' +set -g @dracula-plugins "cpu-usage tmux-ram-usage network-bandwidth continuum" +set -g @dracula-show-empty-plugins false +set -g @dracula-show-powerline true +set -g @dracula-show-flags true +set -g @dracula-show-left-icon "🐉" # 🐾 +set -g @dracula-tmux-ram-usage-label "RAM" +set -g @dracula-continuum-mode time + +# Set status bar to top +set -g status-position top + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run -b '~/.tmux/plugins/tpm/tpm' diff --git a/dot-conf/.zshrc b/dot-conf/.zshrc new file mode 100644 index 0000000..191f067 --- /dev/null +++ b/dot-conf/.zshrc @@ -0,0 +1,40 @@ +# 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 + +source ~/powerlevel10k/powerlevel10k.zsh-theme + +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +# bindkeys +bindkey "^[[1;5C" forward-word +bindkey "^[[1;5D" backward-word +bindkey "^H" backward-kill-word +bindkey "5~" kill-word +bindkey "^[[H" beginning-of-line +bindkey "^[[F" end-of-line +bindkey "^[[3~" delete-char + +autoload -U select-word-style +select-word-style bash + +alias ll="exa --icons -la" +alias ls="ll" +alias cat="bat --style=auto" + +alias docs="cd /mnt/e/Windows/Documents" + +# asdf +. "$HOME/.asdf/asdf.sh" + +# append completions to fpath +fpath=(${ASDF_DIR}/completions $fpath) + +# initialise completions with ZSH's compinit +fpath+=~/.zfunc + +autoload -Uz compinit && compinit diff --git a/runBackup.sh b/runBackup.sh index 2c45fac..3d29525 100755 --- a/runBackup.sh +++ b/runBackup.sh @@ -4,3 +4,7 @@ mkdir --parents dot-conf/.config/lvim cp ${HOME}/.zshrc ./dot-conf/ cp ${HOME}/.tmux.conf ./dot-conf/ cp --recursive ${HOME}/.config/lvim/ ./dot-conf/.config + +fulltime=$(date +%y-%m-%d-%H-%M-%S) +git add . +git commit -m "Devboot update: ${fulltime}"