Skip to content

Commit

Permalink
Bookmarks installer, xmllint
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxattax97 committed Aug 31, 2024
1 parent 437eec4 commit 32d2754
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 14 deletions.
10 changes: 5 additions & 5 deletions config/gtk-3.0/bookmarks
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
file://~/aura/sc/fos-data-testsuite/archives archives
file://~/aura/sc aura-sc
file://~/src src
file://~/Nextcloud Nextcloud
nfs://maxocull.com/srv/flamenco flamenco on maxocull.com
file:///home/mocull/src src
file:///home/mocull/aura/sc aura-sc
file:///home/mocull/aura/sc/fos-data-testsuite/archives Test Archives
file:///home/mocull/Nextcloud Nextcloud
nfs://maxocull.com/src/flamenco flamenco@maxocull.com
3 changes: 2 additions & 1 deletion config/nvim/includes/language_servers.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ let g:coc_global_extensions = [
\ 'coc-tslint-plugin',
\ 'coc-tsserver',
\ 'coc-vetur',
\ 'coc-vimtex',
\ 'coc-vimlsp',
\ 'coc-vimtex',
\ 'coc-yaml',
\ 'coc-yank',
\]
Expand All @@ -41,6 +41,7 @@ let g:coc_global_extensions = [
"\ 'coc-neco', " Install via plugin manager.
"\ 'coc-neoinclude', " Install via plugin manager.
"\ 'coc-word',
"\ 'coc-xml', " it's lame

" INSTALL: go get golang.org/x/tools/cmd/gopls
" INSTALL: pacman -Syu lua53 luarocks
Expand Down
17 changes: 9 additions & 8 deletions config/nvim/includes/plugin_settings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,30 @@ let g:ale_virtualtext_prefix = ' ]] '
let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\ 'javascript': ['eslint'],
\ 'typescript': ['eslint'],
\ 'jsx': ['eslint'],
\ 'json': ['jq'],
\ 'jsx': ['eslint'],
\ 'python': ['black'],
\ 'rust': ['rustfmt'],
\ 'typescript': ['eslint'],
\ 'xml': ['xmllint'],
\ 'yaml': [],
\}

" Disable ALE for C/C++, Python, use LSP exclusively.
let g:ale_linters = {
\ 'c': [],
\ 'cpp': [],
\ 'python': [],
\ 'css': [],
\ 'go': [],
\ 'html': [],
\ 'java': [],
\ 'json': [],
\ 'javascript': [],
\ 'typescript': [],
\ 'json': [],
\ 'jsx': [],
\ 'css': [],
\ 'html': [],
\ 'python': [],
\ 'ruby': [],
\ 'rust': [],
\ 'go': [],
\ 'typescript': [],
\ 'yaml': [],
\}

Expand Down
19 changes: 19 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,25 @@ case "$response" in
#[email protected]
#[email protected]
#[email protected]

# Clear the bookmarks file
printf "" > "${HOME}/.config/gtk-3.0/bookmarks"

add_bookmark() {
path="${1}"
name="${2}"

if [ -d "$path" ]; then
printf "file://%s %s\n" "$(realpath "$path")" "$name" >> "${HOME}/.config/gtk-3.0/bookmarks"
fi
}

add_bookmark "${HOME}/src" "src"
add_bookmark "${HOME}/aura/sc" "aura-sc"
add_bookmark "${HOME}/aura/sc/fos-data-testsuite/archives" "Test Archives"
add_bookmark "${HOME}/Nextcloud" "Nextcloud"

printf "nfs://maxocull.com/src/flamenco [email protected]\n" >> "${HOME}/.config/gtk-3.0/bookmarks"
fi
;;
*)
Expand Down

0 comments on commit 32d2754

Please sign in to comment.