summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/fish/config.fish19
-rw-r--r--.config/git/config10
-rwxr-xr-x.config/nvim/coc-settings.json18
-rw-r--r--.config/nvim/init.vim38
-rw-r--r--.config/shell/profile17
-rw-r--r--.config/zsh/.zshenv11
6 files changed, 83 insertions, 30 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
index 35da1bb..2af421a 100644
--- a/.config/fish/config.fish
+++ b/.config/fish/config.fish
@@ -3,20 +3,5 @@
#
-# add ~/.local/bin to path if the directory exists
-function add_local_bin
- set -f dir "$HOME/.local/bin"
- if test -e $dir; and not contains $dir $PATH
- fish_add_path "$HOME/.local/bin"
- end
-end
-add_local_bin
-
-# default programs
-set -gx VISUAL nvim
-set -gx EDITOR nvim
-set -gx GPG_TTY (tty)
-
-# paths
-set -gx CARGO_HOME "$HOME/.local/share/cargo"
-set -gx RUSTUP_HOME "$HOME/.local/share/rustup"
+# plugins
+starship init fish | source
diff --git a/.config/git/config b/.config/git/config
new file mode 100644
index 0000000..1d7fad7
--- /dev/null
+++ b/.config/git/config
@@ -0,0 +1,10 @@
+[user]
+ name = seth
+ signingkey = D31BD0D494BBEE86
+[commit]
+ gpgsign = true
+[gpg]
+ program = gpg
+[core]
+ pager = bat --style=changes
diff --git a/.config/nvim/coc-settings.json b/.config/nvim/coc-settings.json
new file mode 100755
index 0000000..22e27a8
--- /dev/null
+++ b/.config/nvim/coc-settings.json
@@ -0,0 +1,18 @@
+{
+ "languageserver": {
+ "bash": {
+ "command": "bash-language-server",
+ "args": [
+ "start"
+ ],
+ "filetypes": [
+ "sh",
+ "PKGBUILD"
+ ]
+ }
+ },
+ "python.linting.flake8Enabled": true,
+ "coc.preferences.formatOnSaveFiletypes": [
+ "json"
+ ]
+}
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 3589bf3..cbedb8e 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -6,10 +6,32 @@
call plug#begin()
Plug 'itchyny/lightline.vim'
-Plug 'ayu-theme/ayu-vim'
+Plug 'joshdick/onedark.vim'
+Plug 'arcticicestudio/nord-vim'
+Plug 'rose-pine/neovim', {'as': 'rose-pine'}
+Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
+" coc settings
+"" use <tab> for trigger completion and navigate to the next complete item
+function! s:check_back_space() abort
+ let col = col('.') - 1
+ return !col || getline('.')[col - 1] =~ '\s'
+endfunction
+
+"" for lightline.vim
+function! CocCurrentFunction()
+ return get(b:, 'coc_current_function', '')
+endfunction
+
+inoremap <silent><expr> <Tab>
+ \ pumvisible() ? "\<C-n>" :
+ \ <SID>check_back_space() ? "\<Tab>" :
+ \ coc#refresh()
+
+inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
+
" options
set tabstop=2
set shiftwidth=2
@@ -20,7 +42,15 @@ set smartindent
syntax on
filetype plugin indent on
set termguicolors
-let ayucolor="mirage"
-colorscheme ayu
+colorscheme onedark
let g:lightline = {
- \ 'colorscheme': 'ayu_mirage'}
+ \ 'colorscheme': 'onedark',
+ \ 'active': {
+ \ 'left': [ [ 'mode', 'paste' ],
+ \ [ 'cocstatus', 'currentfunction', 'readonly', 'filename', 'modified' ] ]
+ \ },
+ \ 'component_function': {
+ \ 'cocstatus': 'coc#status',
+ \ 'currentfunction': 'CocCurrentFunction'
+ \ },
+ \ }
diff --git a/.config/shell/profile b/.config/shell/profile
new file mode 100644
index 0000000..804ff2a
--- /dev/null
+++ b/.config/shell/profile
@@ -0,0 +1,17 @@
+# default programs
+export EDITOR='nvim'
+export VISUAL='nvim'
+export GPG_TTY=$TTY
+
+# xdg dirs
+export XDG_DATA_HOME="$HOME/.local/share"
+export XDG_CONFIG_HOME="$HOME/.config"
+export XDG_STATE_HOME="$HOME/.local/state"
+export XDG_CACHE_HOME="$HOME/.cache"
+export XDG_DATA_DIRS="/usr/local/share/:/usr/share/"
+export XDG_CONFIG_DIRS="/etc/xdg"
+
+# paths
+export CARGO_HOME="$XDG_DATA_HOME/cargo"
+export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
+export LESSHISTFILE="$XDG_STATE_HOME/less/history"
diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv
index ce840bc..c32ce0b 100644
--- a/.config/zsh/.zshenv
+++ b/.config/zsh/.zshenv
@@ -11,12 +11,5 @@ if [[ -d "$HOME/.local/bin" ]]; then
export PATH
fi
-# default programs
-export EDITOR='nvim'
-export VISUAL='nvim'
-export GPG_TTY=$TTY
-
-# paths
-export ZDOTDIR="$HOME/.config/zsh"
-export CARGO_HOME="$HOME/.local/share/cargo"
-export RUSTUP_HOME="$HOME/.local/share/rustup"
+source "$HOME/.config/shell/profile"
+ZDOTDIR="$XDG_CONFIG_HOME/zsh"