Compare commits
No commits in common. "9e184d9eba3aa7dcbb457e2b771292910dc4d278" and "f056acc31578f5b9b88021522d652ee5761a06f9" have entirely different histories.
9e184d9eba
...
f056acc315
@ -2,19 +2,14 @@
|
|||||||
cache=yes
|
cache=yes
|
||||||
demuxer-max-bytes=2147483647
|
demuxer-max-bytes=2147483647
|
||||||
demuxer-max-back-bytes=2147483647
|
demuxer-max-back-bytes=2147483647
|
||||||
|
|
||||||
# Always allow seeking, e.g. allow seeking within a local cache of HTTP stream
|
# Always allow seeking, e.g. allow seeking within a local cache of HTTP stream
|
||||||
force-seekable=yes
|
force-seekable=yes
|
||||||
|
|
||||||
# Always open a video window even with no video
|
# Always open a video window even with no video
|
||||||
force-window=yes
|
force-window=yes
|
||||||
|
|
||||||
# Don't exit when the end of playlist is reached
|
# Don't exit when the end of playlist is reached
|
||||||
keep-open=yes
|
keep-open=yes
|
||||||
|
|
||||||
# Always save the current playback position on exit
|
# Always save the current playback position on exit
|
||||||
save-position-on-quit=yes
|
save-position-on-quit=yes
|
||||||
|
|
||||||
# Create 'high-quality' profile
|
# Create 'high-quality' profile
|
||||||
[high-quality]
|
[high-quality]
|
||||||
# Describe this profile
|
# Describe this profile
|
||||||
|
@ -207,7 +207,7 @@ local handlers = {
|
|||||||
|
|
||||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||||
-- map buffer local keybindings when the language server attaches
|
-- map buffer local keybindings when the language server attaches
|
||||||
local servers = { 'clangd', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint', 'marksman', 'rust_analyzer' }
|
local servers = { 'pyright', 'clangd', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint', 'marksman', 'rust_analyzer' }
|
||||||
for _, lsp in pairs(servers) do
|
for _, lsp in pairs(servers) do
|
||||||
require('lspconfig')[lsp].setup {
|
require('lspconfig')[lsp].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
@ -219,7 +219,6 @@ for _, lsp in pairs(servers) do
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- Handlers when you are in the insert mode you see the errors
|
-- Handlers when you are in the insert mode you see the errors
|
||||||
vim.lsp.handlers["textDocument/publishDiagnostics"] =
|
vim.lsp.handlers["textDocument/publishDiagnostics"] =
|
||||||
vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics,
|
vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics,
|
||||||
@ -268,9 +267,6 @@ require'lspconfig'.gopls.setup {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Setup Python (ruff)
|
|
||||||
require('lspconfig').ruff.setup({})
|
|
||||||
|
|
||||||
-- luasnip setup
|
-- luasnip setup
|
||||||
local luasnip = require 'luasnip'
|
local luasnip = require 'luasnip'
|
||||||
|
|
||||||
@ -361,13 +357,12 @@ let g:neoformat_try_formatprg = 1
|
|||||||
let g:neoformat_basic_format_trim = 1
|
let g:neoformat_basic_format_trim = 1
|
||||||
let g:neoformat_only_msg_on_error = 1
|
let g:neoformat_only_msg_on_error = 1
|
||||||
" autocmd BufWritePre * silent! undojoin | Neoformat
|
" autocmd BufWritePre * silent! undojoin | Neoformat
|
||||||
|
let g:neoformat_python_black = {
|
||||||
let g:neoformat_python_ruff = {
|
\ 'exe': 'black',
|
||||||
\ 'exe': 'ruff',
|
\ 'stdin': 1,
|
||||||
\ 'stdin': 1,
|
\ 'args': ['--line-length', '80', '-q', '-'],
|
||||||
\ 'args': ['format', '--line-length=80', '-q', '-'],
|
\ }
|
||||||
\ }
|
let g:neoformat_enabled_python = ['black']
|
||||||
let g:neoformat_enabled_python = ['ruff']
|
|
||||||
|
|
||||||
" Terraform
|
" Terraform
|
||||||
let g:terraform_fmt_on_save=1
|
let g:terraform_fmt_on_save=1
|
||||||
@ -614,7 +609,7 @@ let g:shfmt_opt="-ci"
|
|||||||
" Python
|
" Python
|
||||||
autocmd BufRead,BufNewFile *.py set textwidth=0
|
autocmd BufRead,BufNewFile *.py set textwidth=0
|
||||||
autocmd BufRead,BufNewFile *.py set fo-=t
|
autocmd BufRead,BufNewFile *.py set fo-=t
|
||||||
autocmd BufWritePre *.py silent! undojoin | Neoformat ruff
|
autocmd BufWritePre *.py silent! undojoin | Neoformat black
|
||||||
|
|
||||||
" Newsboat
|
" Newsboat
|
||||||
autocmd BufRead,BufNewFile urls set textwidth=0
|
autocmd BufRead,BufNewFile urls set textwidth=0
|
||||||
|
@ -116,11 +116,6 @@ function install_pyright() {
|
|||||||
$pip install black $PIPEXTPRE
|
$pip install black $PIPEXTPRE
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_ruff() {
|
|
||||||
# Install ruff
|
|
||||||
$pip install ruff $PIPEXTPRE
|
|
||||||
}
|
|
||||||
|
|
||||||
function install_bash-language-server() {
|
function install_bash-language-server() {
|
||||||
# Install bash-language-server
|
# Install bash-language-server
|
||||||
sudo npm -s -g i bash-language-server --force
|
sudo npm -s -g i bash-language-server --force
|
||||||
@ -260,12 +255,12 @@ function install_meraki_ansible() {
|
|||||||
|
|
||||||
function install_azure_cli() {
|
function install_azure_cli() {
|
||||||
# Install azure_cli
|
# Install azure_cli
|
||||||
$install azure-cli
|
$pip install azure-cli $PIPEXTPRE
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_awscli() {
|
function install_awscli() {
|
||||||
# Install awscli
|
# Install awscli
|
||||||
$install awscli
|
$pip install awscli $PIPEXTPRE
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_aws_adfs() {
|
function install_aws_adfs() {
|
||||||
@ -426,8 +421,7 @@ function main() {
|
|||||||
command_start install_neovim_module_for_python
|
command_start install_neovim_module_for_python
|
||||||
command_start install_node
|
command_start install_node
|
||||||
command_start install_go
|
command_start install_go
|
||||||
# command_start install_pyright
|
command_start install_pyright
|
||||||
command_start install_ruff
|
|
||||||
command_start install_lazy
|
command_start install_lazy
|
||||||
command_start install_dlv
|
command_start install_dlv
|
||||||
command_start install_bash-language-server
|
command_start install_bash-language-server
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
~/.local/bin/sidebar-restore-macos
|
~/.local/bin/sidebar-restore-macos
|
||||||
open -gj "afp://10.0.0.14/Downloads"
|
open -gj "smb://10.0.0.14/Downloads"
|
||||||
open -gj "afp://10.0.0.14/Anime"
|
open -gj "smb://10.0.0.14/Anime"
|
||||||
open -gj "afp://10.0.0.14/Video"
|
open -gj "smb://10.0.0.14/Video"
|
||||||
open -gj "afp://10.0.0.14/Series"
|
open -gj "smb://10.0.0.14/Series"
|
||||||
open -gj "afp://10.0.0.14/Photos"
|
open -gj "smb://10.0.0.14/Photos"
|
||||||
open -gj "afp://10.0.0.14/Backups"
|
open -gj "smb://10.0.0.14/Backups"
|
||||||
open -gj "afp://10.0.0.14/Recordings"
|
open -gj "smb://10.0.0.14/Recordings"
|
||||||
|
|
||||||
/usr/local/bin/mysides add Synology file:///Volumes/Recordings/
|
/usr/local/bin/mysides add Synology file:///Volumes/Recordings/
|
||||||
/usr/local/bin/mysides add Synology file:///Volumes/Backups/
|
/usr/local/bin/mysides add Synology file:///Volumes/Backups/
|
||||||
|
5
.zshrc
5
.zshrc
@ -177,12 +177,7 @@ if [[ "$(uname)" == "Darwin" ]]; then
|
|||||||
sort |
|
sort |
|
||||||
tail -n1)
|
tail -n1)
|
||||||
export PATH=$PATH:/opt/homebrew/Cellar/tfenv/$TFENVVERSION/versions/$TFVERSION/
|
export PATH=$PATH:/opt/homebrew/Cellar/tfenv/$TFENVVERSION/versions/$TFVERSION/
|
||||||
|
|
||||||
# Unset browser
|
|
||||||
unset BROWSER
|
unset BROWSER
|
||||||
|
|
||||||
# Docker as linux/amd64
|
|
||||||
export DOCKER_DEFAULT_PLATFORM=linux/amd64
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Setting the right editor
|
# Setting the right editor
|
||||||
|
Loading…
Reference in New Issue
Block a user