Compare commits
7 Commits
f056acc315
...
9e184d9eba
Author | SHA1 | Date | |
---|---|---|---|
9e184d9eba | |||
4895bdfa23 | |||
eca7bf37e0 | |||
ff3d44bd93 | |||
e853f660b4 | |||
7f384c6839 | |||
8715e40e31 |
@ -2,14 +2,19 @@
|
|||||||
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 = { 'pyright', 'clangd', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint', 'marksman', 'rust_analyzer' }
|
local servers = { '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,6 +219,7 @@ 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,
|
||||||
@ -267,6 +268,9 @@ require'lspconfig'.gopls.setup {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Setup Python (ruff)
|
||||||
|
require('lspconfig').ruff.setup({})
|
||||||
|
|
||||||
-- luasnip setup
|
-- luasnip setup
|
||||||
local luasnip = require 'luasnip'
|
local luasnip = require 'luasnip'
|
||||||
|
|
||||||
@ -357,12 +361,13 @@ 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 = {
|
|
||||||
\ 'exe': 'black',
|
let g:neoformat_python_ruff = {
|
||||||
\ 'stdin': 1,
|
\ 'exe': 'ruff',
|
||||||
\ 'args': ['--line-length', '80', '-q', '-'],
|
\ 'stdin': 1,
|
||||||
\ }
|
\ '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
|
||||||
@ -609,7 +614,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 black
|
autocmd BufWritePre *.py silent! undojoin | Neoformat ruff
|
||||||
|
|
||||||
" Newsboat
|
" Newsboat
|
||||||
autocmd BufRead,BufNewFile urls set textwidth=0
|
autocmd BufRead,BufNewFile urls set textwidth=0
|
||||||
|
@ -116,6 +116,11 @@ 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
|
||||||
@ -255,12 +260,12 @@ function install_meraki_ansible() {
|
|||||||
|
|
||||||
function install_azure_cli() {
|
function install_azure_cli() {
|
||||||
# Install azure_cli
|
# Install azure_cli
|
||||||
$pip install azure-cli $PIPEXTPRE
|
$install azure-cli
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_awscli() {
|
function install_awscli() {
|
||||||
# Install awscli
|
# Install awscli
|
||||||
$pip install awscli $PIPEXTPRE
|
$install awscli
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_aws_adfs() {
|
function install_aws_adfs() {
|
||||||
@ -421,7 +426,8 @@ 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 "smb://10.0.0.14/Downloads"
|
open -gj "afp://10.0.0.14/Downloads"
|
||||||
open -gj "smb://10.0.0.14/Anime"
|
open -gj "afp://10.0.0.14/Anime"
|
||||||
open -gj "smb://10.0.0.14/Video"
|
open -gj "afp://10.0.0.14/Video"
|
||||||
open -gj "smb://10.0.0.14/Series"
|
open -gj "afp://10.0.0.14/Series"
|
||||||
open -gj "smb://10.0.0.14/Photos"
|
open -gj "afp://10.0.0.14/Photos"
|
||||||
open -gj "smb://10.0.0.14/Backups"
|
open -gj "afp://10.0.0.14/Backups"
|
||||||
open -gj "smb://10.0.0.14/Recordings"
|
open -gj "afp://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,7 +177,12 @@ 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