Compare commits

...

7 Commits

5 changed files with 39 additions and 18 deletions

View File

@ -2,14 +2,19 @@
cache=yes
demuxer-max-bytes=2147483647
demuxer-max-back-bytes=2147483647
# Always allow seeking, e.g. allow seeking within a local cache of HTTP stream
force-seekable=yes
# Always open a video window even with no video
force-window=yes
# Don't exit when the end of playlist is reached
keep-open=yes
# Always save the current playback position on exit
save-position-on-quit=yes
# Create 'high-quality' profile
[high-quality]
# Describe this profile

View File

@ -207,7 +207,7 @@ local handlers = {
-- Use a loop to conveniently call 'setup' on multiple servers and
-- 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
require('lspconfig')[lsp].setup {
on_attach = on_attach,
@ -219,6 +219,7 @@ for _, lsp in pairs(servers) do
}
end
-- Handlers when you are in the insert mode you see the errors
vim.lsp.handlers["textDocument/publishDiagnostics"] =
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
local luasnip = require 'luasnip'
@ -357,12 +361,13 @@ let g:neoformat_try_formatprg = 1
let g:neoformat_basic_format_trim = 1
let g:neoformat_only_msg_on_error = 1
" autocmd BufWritePre * silent! undojoin | Neoformat
let g:neoformat_python_black = {
\ 'exe': 'black',
\ 'stdin': 1,
\ 'args': ['--line-length', '80', '-q', '-'],
\ }
let g:neoformat_enabled_python = ['black']
let g:neoformat_python_ruff = {
\ 'exe': 'ruff',
\ 'stdin': 1,
\ 'args': ['format', '--line-length=80', '-q', '-'],
\ }
let g:neoformat_enabled_python = ['ruff']
" Terraform
let g:terraform_fmt_on_save=1
@ -609,7 +614,7 @@ let g:shfmt_opt="-ci"
" Python
autocmd BufRead,BufNewFile *.py set textwidth=0
autocmd BufRead,BufNewFile *.py set fo-=t
autocmd BufWritePre *.py silent! undojoin | Neoformat black
autocmd BufWritePre *.py silent! undojoin | Neoformat ruff
" Newsboat
autocmd BufRead,BufNewFile urls set textwidth=0

View File

@ -116,6 +116,11 @@ function install_pyright() {
$pip install black $PIPEXTPRE
}
function install_ruff() {
# Install ruff
$pip install ruff $PIPEXTPRE
}
function install_bash-language-server() {
# Install bash-language-server
sudo npm -s -g i bash-language-server --force
@ -255,12 +260,12 @@ function install_meraki_ansible() {
function install_azure_cli() {
# Install azure_cli
$pip install azure-cli $PIPEXTPRE
$install azure-cli
}
function install_awscli() {
# Install awscli
$pip install awscli $PIPEXTPRE
$install awscli
}
function install_aws_adfs() {
@ -421,7 +426,8 @@ function main() {
command_start install_neovim_module_for_python
command_start install_node
command_start install_go
command_start install_pyright
# command_start install_pyright
command_start install_ruff
command_start install_lazy
command_start install_dlv
command_start install_bash-language-server

View File

@ -1,12 +1,12 @@
#!/bin/bash
~/.local/bin/sidebar-restore-macos
open -gj "smb://10.0.0.14/Downloads"
open -gj "smb://10.0.0.14/Anime"
open -gj "smb://10.0.0.14/Video"
open -gj "smb://10.0.0.14/Series"
open -gj "smb://10.0.0.14/Photos"
open -gj "smb://10.0.0.14/Backups"
open -gj "smb://10.0.0.14/Recordings"
open -gj "afp://10.0.0.14/Downloads"
open -gj "afp://10.0.0.14/Anime"
open -gj "afp://10.0.0.14/Video"
open -gj "afp://10.0.0.14/Series"
open -gj "afp://10.0.0.14/Photos"
open -gj "afp://10.0.0.14/Backups"
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/Backups/

5
.zshrc
View File

@ -177,7 +177,12 @@ if [[ "$(uname)" == "Darwin" ]]; then
sort |
tail -n1)
export PATH=$PATH:/opt/homebrew/Cellar/tfenv/$TFENVVERSION/versions/$TFVERSION/
# Unset browser
unset BROWSER
# Docker as linux/amd64
export DOCKER_DEFAULT_PLATFORM=linux/amd64
fi
# Setting the right editor