This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on " enable syntax highlighting | |
set background=dark " we like it dark! | |
try | colorscheme gruvbox | catch | endtry " use this awesome theme if possible | |
highlight Pmenu ctermbg=black guibg=black | " fix popup color so it's easier to read | |
filetype plugin on " load plugins based on file type | |
filetype indent on " load indent settings based on file type | |
set shiftwidth=2 " number of spaces to use for indenting | |
set softtabstop=2 " number of spaces to use when inserting a tab | |
set tabstop=2 " show tabs as 2 spaces | |
set expandtab " convert tabs into spaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B) | |
set -g prefix C-space | |
unbind-key C-b | |
bind-key C-space 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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Sets Prezto options. | |
# | |
# Authors: | |
# Sorin Ionescu <[email protected]> | |
# | |
# | |
# General | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Starship command prompt configuration file. Colour choice and over-use of emoji | |
# is to help blend in with Ubuntu MATE default theme, Ambiant-Mate. | |
# disable starship from forcing a new line to be taken. Solved the empty line | |
# at start of terminal | |
add_newline = false | |
[line_break] | |
disabled = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- @USAGE: | |
-- local foo = safe_require('foo') | |
-- if not foo then return end | |
_G.safe_require = function(module_name) | |
local package_exists, module = pcall(require, module_name) | |
if not package_exists then | |
vim.defer_fn(function() | |
vim.schedule(function() | |
vim.notify('Could not load module: ' .. module_name, 'error', { title = 'Module Not Found' }) | |
end) |