diff --git a/.dotter/local.toml b/.dotter/local.toml index f649759..25a671e 100644 --- a/.dotter/local.toml +++ b/.dotter/local.toml @@ -4,3 +4,10 @@ packages = ["workstation"] [files] [variables] + +multimedia_beets_musicbrainz_user = "" +multimedia_beets_musicbrainz_pass = "" +multimedia_mopidy_subidy_url = "" +multimedia_mopidy_subidy_user = "" +multimedia_mopidy_subidy_pass = "" + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 4ecde1a..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- -# install moreutils to enable ifne (if not empty) -# will only run the respective analyzers when files to test -# are acutally found -image: fnichol/check-shell:latest - -analyze: - stage: test - before_script: - - apk add moreutils - - shellcheck --version - script: - - echo "--------- CHECKING POSIX SHELLSCRIPTS -------------" - - find . -type f -name '*.sh' | ifne xargs shellcheck -Calways - - echo "--------- CHECKING ZSH SHELLSCRIPTS -------------" - - find . -type f -name '*.zsh' | ifne xargs shellcheck -Calways -s bash -e SC2034 - -lint: - stage: test - before_script: - - apk add moreutils - - shfmt -version - script: - - echo "--------- CHECKING POSIX SHELLSCRIPTS -------------" - - find . -type f -name '*.sh' -not -path '*/pomo-app/*' | ifne xargs shfmt -d -i 4 - - echo "--------- CHECKING ZSH SHELLSCRIPTS -------------" - - find . -type f -name '*.zsh' -not -path '*/pomo-app/*' | ifne xargs shfmt -d -i 4 - -test: - stage: test - image: alpine - before_script: - - apk add git bash - - git clone https://github.com/bats-core/bats-core.git /bats - - /bats/bin/bats --version - script: - - /bats/bin/bats -r . diff --git a/desktop/.config/flavours/templates/sioyek/default.mustache b/desktop/.config/flavours/templates/sioyek/default.mustache index 40d0ef4..145f5c9 100644 --- a/desktop/.config/flavours/templates/sioyek/default.mustache +++ b/desktop/.config/flavours/templates/sioyek/default.mustache @@ -3,6 +3,7 @@ # {{scheme-name}} scheme by{{scheme-author}} custom_background_color #{{base00-hex}} +custom_color_mode_empty_background_color #{{base00-hex}} custom_text_color #{{base06-hex}} page_separator_color #{{base00-hex}} @@ -13,7 +14,6 @@ ui_text_color #{{base06-hex}} ui_selected_text_color #{{base06-hex}} ui_background_color #{{base01-hex}} ui_selected_background_color #{{base03-hex}} -background_color #{{base00-hex}} visual_mark_color {{base03-dec-r}} {{base03-dec-g}} {{base03-dec-b}} 0.2 text_highlight_color #{{base03-hex}} link_highlight_color #{{base0D-hex}} diff --git a/multimedia/.config/beets/config.yaml b/multimedia/.config/beets/config.yaml index 03b417d..37324c9 100644 --- a/multimedia/.config/beets/config.yaml +++ b/multimedia/.config/beets/config.yaml @@ -48,6 +48,8 @@ item_fields: musicbrainz: extra_tags: [year, catalognum, country, media, label] + user: {{multimedia_beets_musicbrainz_user}} + pass: {{multimedia_beets_musicbrainz_pass}} auto: yes remove: yes diff --git a/multimedia/.config/mopidy/mopidy.conf b/multimedia/.config/mopidy/mopidy.conf index 29679c6..2f5173b 100644 --- a/multimedia/.config/mopidy/mopidy.conf +++ b/multimedia/.config/mopidy/mopidy.conf @@ -146,7 +146,7 @@ enabled = false #default_playlist_scheme = m3u [local] -#enabled = true +enabled = false #max_search_results = 100 media_dir = $XDG_MUSIC_DIR scan_timeout = 5000 @@ -182,6 +182,11 @@ scan_timeout = 5000 # *.jpeg # *.png +[subidy] +url={{multimedia_mopidy_subidy_url}} +username={{multimedia_mopidy_subidy_user}} +password={{multimedia_mopidy_subidy_pass}} + [mpris] #enabled = true #bus_type = session diff --git a/nvim/.config/nvim/lua/plugins/config/lsp.lua b/nvim/.config/nvim/lua/plugins/config/lsp.lua index b537c7f..0670395 100644 --- a/nvim/.config/nvim/lua/plugins/config/lsp.lua +++ b/nvim/.config/nvim/lua/plugins/config/lsp.lua @@ -109,12 +109,24 @@ local function on_attach(client, bufnr) "lua vim.lsp.buf.signature_help()", { buffer = bufnr, desc = "Signature help" } ) + map("n", "lo", function() + if vim.diagnostic.is_disabled(0) then + vim.diagnostic.enable(0) + else + vim.diagnostic.disable(0) + end + end, { buffer = bufnr, desc = "Disable buffer diagnostics" }) if vim.g.format_on_save then require("lsp-setup.utils").format_on_save(client) end end +-- Display diagnostics as virtual text only if not in insert mode +-- https://lr.artemislena.eu/r/neovim/comments/12inp4c/disable_diagnostics_virtual_text_when_in_insert/jqqifwk/ +vim.api.nvim_create_autocmd("InsertEnter", { callback = function() vim.diagnostic.config({ virtual_text = false, }) end }) +vim.api.nvim_create_autocmd("InsertLeave", { callback = function() vim.diagnostic.config({ virtual_text = true, }) end }) + lsp.setup({ default_mappings = false, servers = servers, @@ -196,3 +208,4 @@ require("mason-null-ls").setup({ end, }, }) +