forge
login
or
join now
j3s.sh
/
dotfiles
star
2
fork
atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my dotz
star
2
fork
atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
overview
issues
pulls
pipelines
*
j3s
4 years ago
079a90ce
887f0966
+32
-13
4 changed files
expand all
collapse all
unified
split
.config
nvim
init.vim
sway
zora
.env
.profile
+21
-4
.config/nvim/init.vim
reviewed
···
1
1
call plug#begin()
2
2
Plug 'junegunn/vim-easy-align'
3
3
Plug 'neovim/nvim-lspconfig'
4
4
+
Plug 'nvim-lua/plenary.nvim' " lua funcs i guess
5
5
+
Plug 'vhyrro/neorg'
6
6
+
Plug 'hrsh7th/nvim-compe'
4
7
call plug#end()
5
8
6
6
-
" go LSP
7
9
lua << EOF
8
10
require'lspconfig'.gopls.setup{}
11
11
+
require'lspconfig'.terraformls.setup{}
12
12
+
require('neorg').setup {
13
13
+
load = {
14
14
+
["core.defaults"] = {},
15
15
+
["core.norg.concealer"] = {},
16
16
+
}
17
17
+
}
9
18
EOF
10
19
11
20
" set keybinds for go LSP - warning: disgusting
···
42
51
buf_set_keymap('n', ']d', '<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
43
52
buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
44
53
buf_set_keymap("n", "<space>f", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
45
45
-
46
54
end
47
55
48
56
-- Use a loop to conveniently call 'setup' on multiple servers and
49
57
-- map buffer local keybindings when the language server attaches
50
50
-
local servers = { "gopls", "rust_analyzer" }
58
58
+
local servers = { "gopls", "terraformls" }
51
59
for _, lsp in ipairs(servers) do
52
60
nvim_lsp[lsp].setup { on_attach = on_attach }
53
61
end
54
62
EOF
55
55
-
56
63
57
64
" tabstops for my langs
58
65
autocmd FileType sh setlocal et ts=4 sw=4
59
66
autocmd FileType go setlocal noet ts=4 sw=4
60
67
autocmd FileType python setlocal et ts=4 sw=4
61
68
autocmd FileType ruby setlocal et ts=2 sw=2
69
69
+
autocmd FileType terraform setlocal et ts=2 sw=2
62
70
autocmd FileType text setlocal tw=80
63
71
autocmd FileType html setlocal et ts=2 sw=2
64
72
autocmd FileType yaml setlocal et ts=2 sw=2
···
67
75
autocmd BufRead,BufNewFile *mutt-* setfiletype mail
68
76
augroup filetypedetect
69
77
autocmd FileType markdown setlocal tw=80 et ts=2 sw=2
78
78
+
79
79
+
" terraform ft detection
80
80
+
" vint: -ProhibitAutocmdWithNoGroup
81
81
+
" By default, Vim associates .tf files with TinyFugue - tell it not to.
82
82
+
silent! autocmd! filetypedetect BufRead,BufNewFile *.tf
83
83
+
autocmd BufRead,BufNewFile *.hcl set filetype=hcl
84
84
+
autocmd BufRead,BufNewFile .terraformrc,terraform.rc set filetype=hcl
85
85
+
autocmd BufRead,BufNewFile *.tf,*.tfvars set filetype=terraform
86
86
+
autocmd BufRead,BufNewFile *.tfstate,*.tfstate.backup set filetype=json
70
87
71
88
" bindings
72
89
let mapleader = ","
+2
-2
.config/sway/zora
reviewed
···
5
5
# resumed. It will also lock your screen before your computer goes to sleep.
6
6
7
7
exec swayidle -w \
8
8
-
timeout 300 'swaylock -f -c 000000' \
9
9
-
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
8
8
+
timeout 600 'swaylock -f -c 000000' \
9
9
+
timeout 1200 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
10
10
before-sleep 'swaylock -f -c 000000'
11
11
12
12
for_window [class="Firefox"] inhibit_idle fullscreen
+7
-7
.env
reviewed
···
23
23
# yep still needed
24
24
if ls --version 2>&1 | grep -i gnu >/dev/null
25
25
then
26
26
-
alias ls='ls --color=auto '
26
26
+
alias ls='ls --color=auto '
27
27
elif ls --version 2>&1 | grep -i busybox >/dev/null
28
28
then
29
29
-
alias ls='ls --color=auto '
29
29
+
alias ls='ls --color=auto '
30
30
fi
31
31
32
32
if [ -z "${SSH_AGENT_PID}" ]
33
33
then
34
34
-
if ! [ -e /tmp/ssh-agent-$USER ]
35
35
-
then
36
36
-
ssh-agent 2>/dev/null >/tmp/ssh-agent-$USER
37
37
-
fi
38
38
-
. /tmp/ssh-agent-$USER >/dev/null
34
34
+
if ! [ -e /tmp/ssh-agent-$USER ]
35
35
+
then
36
36
+
ssh-agent 2>/dev/null >/tmp/ssh-agent-$USER
37
37
+
fi
38
38
+
. /tmp/ssh-agent-$USER >/dev/null
39
39
fi
40
40
41
41
# launch alacritty with no GPU support if on old thinkpad
+2
.profile
reviewed
···
3
3
export EDITOR=nvim
4
4
export LANG=en_US.UTF-8
5
5
export GDK_BACKEND=wayland
6
6
+
# https://wiki.archlinux.org/title/Firefox#Applications_on_Wayland_can_not_launch_Firefox
7
7
+
export MOZ_DBUS_REMOTE=1
6
8
export XDG_CURRENT_DESKTOP=sway
7
9
export CHEF_USER_NAME=jolson