From c7a88a07b9287db9c129914483f6b3ae1ab5404c Mon Sep 17 00:00:00 2001 From: awy Date: Fri, 14 Nov 2025 23:43:38 +0300 Subject: init --- .config/btop/btop.conf | 71 + .config/fastfetch/config.jsonc | 71 + .config/fnott/fnott.ini | 26 + .config/fontconfig/fonts.conf | 40 + .config/foot/foot.ini | 46 + .../k9s/skins/catppuccin-mocha-transparent.yaml | 100 + .config/k9s/skins/everforest-dark.yaml | 114 + .config/k9s/skins/gruvbox.yaml | 105 + .config/k9s/skins/nord.yaml | 120 + .config/lazygit/config.yml | 11 + .config/lazygit/themes.gitconfig | 667 ++++ .config/mango/config.conf | 281 ++ .config/mimeapps.list | 20 + .config/mpd/mpd.conf | 19 + .config/mpv/input.conf | 5 + .config/mpv/mpv.conf | 15 + .config/newsraft/config | 11 + .config/nvim/init.lua | 173 ++ .config/nvim/lsp/ada_ls.lua | 31 + .config/nvim/lsp/agda_ls.lua | 17 + .config/nvim/lsp/aiken.lua | 15 + .config/nvim/lsp/air.lua | 14 + .config/nvim/lsp/alloy_ls.lua | 30 + .config/nvim/lsp/anakin_language_server.lua | 71 + .config/nvim/lsp/angularls.lua | 85 + .config/nvim/lsp/ansiblels.lua | 38 + .config/nvim/lsp/antlersls.lua | 15 + .config/nvim/lsp/apex_ls.lua | 59 + .config/nvim/lsp/arduino_language_server.lua | 91 + .config/nvim/lsp/asm_lsp.lua | 15 + .config/nvim/lsp/ast_grep.lua | 50 + .config/nvim/lsp/astro.lua | 25 + .config/nvim/lsp/atlas.lua | 66 + .config/nvim/lsp/atopile.lua | 14 + .config/nvim/lsp/autohotkey_lsp.lua | 51 + .config/nvim/lsp/autotools_ls.lua | 24 + .config/nvim/lsp/awk_ls.lua | 14 + .config/nvim/lsp/azure_pipelines_ls.lua | 39 + .config/nvim/lsp/bacon_ls.lua | 47 + .config/nvim/lsp/ballerina.lua | 13 + .config/nvim/lsp/basedpyright.lua | 66 + .config/nvim/lsp/bashls.lua | 29 + .config/nvim/lsp/basics_ls.lua | 27 + .config/nvim/lsp/bazelrc_lsp.lua | 22 + .config/nvim/lsp/beancount.lua | 13 + .config/nvim/lsp/bicep.lua | 40 + .config/nvim/lsp/biome.lua | 72 + .config/nvim/lsp/bitbake_language_server.lua | 17 + .config/nvim/lsp/blueprint_ls.lua | 22 + .config/nvim/lsp/bqls.lua | 17 + .config/nvim/lsp/bright_script.lua | 15 + .config/nvim/lsp/bsl_ls.lua | 11 + .config/nvim/lsp/buck2.lua | 18 + .config/nvim/lsp/buddy_ls.lua | 13 + .config/nvim/lsp/buf_ls.lua | 13 + .config/nvim/lsp/bufls.lua | 17 + .config/nvim/lsp/bzl.lua | 15 + .config/nvim/lsp/c3_lsp.lua | 12 + .config/nvim/lsp/cairo_ls.lua | 20 + .config/nvim/lsp/ccls.lua | 53 + .config/nvim/lsp/cds_lsp.lua | 20 + .config/nvim/lsp/cir_lsp_server.lua | 14 + .config/nvim/lsp/circom-lsp.lua | 12 + .config/nvim/lsp/clangd.lua | 103 + .config/nvim/lsp/clarinet.lua | 11 + .config/nvim/lsp/clojure_lsp.lua | 12 + .config/nvim/lsp/cmake.lua | 15 + .config/nvim/lsp/cobol_ls.lua | 10 + .config/nvim/lsp/codebook.lua | 37 + .config/nvim/lsp/coffeesense.lua | 16 + .config/nvim/lsp/contextive.lua | 17 + .config/nvim/lsp/copilot.lua | 135 + .config/nvim/lsp/coq_lsp.lua | 10 + .config/nvim/lsp/crystalline.lua | 12 + .config/nvim/lsp/csharp_ls.lua | 24 + .config/nvim/lsp/cspell_ls.lua | 24 + .config/nvim/lsp/css_variables.lua | 39 + .config/nvim/lsp/cssls.lua | 34 + .config/nvim/lsp/cssmodules_ls.lua | 17 + .config/nvim/lsp/cucumber_language_server.lua | 19 + .config/nvim/lsp/cue.lua | 12 + .config/nvim/lsp/custom_elements_ls.lua | 32 + .config/nvim/lsp/cypher_ls.lua | 18 + .config/nvim/lsp/daedalus_ls.lua | 27 + .config/nvim/lsp/dafny.lua | 15 + .config/nvim/lsp/dagger.lua | 12 + .config/nvim/lsp/dartls.lua | 25 + .config/nvim/lsp/dcmls.lua | 12 + .config/nvim/lsp/debputy.lua | 12 + .config/nvim/lsp/denols.lua | 111 + .config/nvim/lsp/dhall_lsp_server.lua | 18 + .config/nvim/lsp/diagnosticls.lua | 14 + .config/nvim/lsp/digestif.lua | 16 + .config/nvim/lsp/djls.lua | 12 + .config/nvim/lsp/djlsp.lua | 13 + .../nvim/lsp/docker_compose_language_service.lua | 19 + .config/nvim/lsp/docker_language_server.lua | 32 + .config/nvim/lsp/dockerls.lua | 30 + .config/nvim/lsp/dolmenls.lua | 15 + .config/nvim/lsp/dotls.lua | 15 + .config/nvim/lsp/dprint.lua | 26 + .config/nvim/lsp/ds_pinyin_lsp.lua | 67 + .config/nvim/lsp/dts_lsp.lua | 22 + .config/nvim/lsp/earthlyls.lua | 12 + .config/nvim/lsp/ecsact.lua | 15 + .config/nvim/lsp/efm.lua | 25 + .config/nvim/lsp/elixirls.lua | 46 + .config/nvim/lsp/elmls.lua | 35 + .config/nvim/lsp/elp.lua | 13 + .config/nvim/lsp/ember.lua | 16 + .config/nvim/lsp/emmet_language_server.lua | 31 + .config/nvim/lsp/emmet_ls.lua | 31 + .config/nvim/lsp/emmylua_ls.lua | 24 + .config/nvim/lsp/erg_language_server.lua | 19 + .config/nvim/lsp/erlangls.lua | 21 + .config/nvim/lsp/esbonio.lua | 51 + .config/nvim/lsp/eslint.lua | 225 ++ .config/nvim/lsp/expert.lua | 26 + .config/nvim/lsp/facility_language_server.lua | 12 + .config/nvim/lsp/fennel_language_server.lua | 13 + .config/nvim/lsp/fennel_ls.lua | 26 + .config/nvim/lsp/fish_lsp.lua | 17 + .config/nvim/lsp/flow.lua | 20 + .config/nvim/lsp/flux_lsp.lua | 14 + .config/nvim/lsp/foam_ls.lua | 29 + .config/nvim/lsp/fortls.lua | 27 + .config/nvim/lsp/fsautocomplete.lua | 54 + .config/nvim/lsp/fsharp_language_server.lua | 30 + .config/nvim/lsp/fstar.lua | 12 + .config/nvim/lsp/futhark_lsp.lua | 17 + .config/nvim/lsp/gdscript.lua | 15 + .config/nvim/lsp/gdshader_lsp.lua | 12 + .config/nvim/lsp/gh_actions_ls.lua | 57 + .config/nvim/lsp/ghcide.lua | 13 + .config/nvim/lsp/ghdl_ls.lua | 15 + .config/nvim/lsp/ginko_ls.lua | 17 + .config/nvim/lsp/gitlab_ci_ls.lua | 26 + .config/nvim/lsp/glasgow.lua | 30 + .config/nvim/lsp/gleam.lua | 14 + .config/nvim/lsp/glint.lua | 54 + .config/nvim/lsp/glsl_analyzer.lua | 13 + .config/nvim/lsp/glslls.lua | 23 + .config/nvim/lsp/gnls.lua | 21 + .config/nvim/lsp/golangci_lint_ls.lua | 52 + .config/nvim/lsp/gopls.lua | 99 + .config/nvim/lsp/gradle_ls.lua | 28 + .config/nvim/lsp/grammarly.lua | 26 + .config/nvim/lsp/graphql.lua | 23 + .config/nvim/lsp/groovyls.lua | 30 + .config/nvim/lsp/guile_ls.lua | 21 + .config/nvim/lsp/harper_ls.lua | 51 + .config/nvim/lsp/hdl_checker.lua | 12 + .config/nvim/lsp/helm_ls.lua | 25 + .config/nvim/lsp/herb_ls.lua | 29 + .config/nvim/lsp/hhvm.lua | 14 + .config/nvim/lsp/hie.lua | 25 + .config/nvim/lsp/hlasm.lua | 12 + .config/nvim/lsp/hls.lua | 31 + .config/nvim/lsp/hoon_ls.lua | 17 + .config/nvim/lsp/html.lua | 36 + .config/nvim/lsp/htmx.lua | 64 + .config/nvim/lsp/hydra_lsp.lua | 12 + .config/nvim/lsp/hyprls.lua | 15 + .config/nvim/lsp/idris2_lsp.lua | 42 + .config/nvim/lsp/intelephense.lua | 33 + .config/nvim/lsp/janet_lsp.lua | 15 + .config/nvim/lsp/java_language_server.lua | 14 + .config/nvim/lsp/jdtls.lua | 102 + .config/nvim/lsp/jedi_language_server.lua | 19 + .config/nvim/lsp/jinja_lsp.lua | 23 + .config/nvim/lsp/jqls.lua | 24 + .config/nvim/lsp/jsonls.lua | 32 + .config/nvim/lsp/jsonnet_ls.lua | 20 + .config/nvim/lsp/julials.lua | 131 + .config/nvim/lsp/just.lua | 12 + .config/nvim/lsp/kcl.lua | 13 + .config/nvim/lsp/koka.lua | 11 + .config/nvim/lsp/kotlin_language_server.lua | 42 + .config/nvim/lsp/kotlin_lsp.lua | 23 + .config/nvim/lsp/kulala_ls.lua | 12 + .config/nvim/lsp/laravel_ls.lua | 14 + .config/nvim/lsp/lean3ls.lua | 40 + .config/nvim/lsp/leanls.lua | 45 + .config/nvim/lsp/lelwel_ls.lua | 17 + .config/nvim/lsp/lemminx.lua | 14 + .config/nvim/lsp/lexical.lua | 16 + .config/nvim/lsp/lsp_ai.lua | 24 + .config/nvim/lsp/ltex.lua | 85 + .config/nvim/lsp/ltex_plus.lua | 87 + .config/nvim/lsp/lua_ls.lua | 92 + .config/nvim/lsp/luau_lsp.lua | 20 + .config/nvim/lsp/lwc_ls.lua | 30 + .config/nvim/lsp/m68k.lua | 24 + .config/nvim/lsp/markdown_oxide.lua | 37 + .config/nvim/lsp/marko-js.lua | 17 + .config/nvim/lsp/marksman.lua | 16 + .config/nvim/lsp/matlab_ls.lua | 34 + .config/nvim/lsp/mdx_analyzer.lua | 22 + .config/nvim/lsp/mesonlsp.lua | 38 + .config/nvim/lsp/metals.lua | 32 + .config/nvim/lsp/millet.lua | 19 + .config/nvim/lsp/mint.lua | 13 + .config/nvim/lsp/mlir_lsp_server.lua | 14 + .config/nvim/lsp/mlir_pdll_lsp_server.lua | 14 + .config/nvim/lsp/mm0_ls.lua | 15 + .config/nvim/lsp/mojo.lua | 14 + .config/nvim/lsp/motoko_lsp.lua | 15 + .config/nvim/lsp/move_analyzer.lua | 20 + .config/nvim/lsp/msbuild_project_tools_server.lua | 47 + .config/nvim/lsp/muon.lua | 25 + .config/nvim/lsp/mutt_ls.lua | 17 + .config/nvim/lsp/nelua_lsp.lua | 31 + .config/nvim/lsp/neocmake.lua | 24 + .config/nvim/lsp/nextflow_ls.lua | 38 + .config/nvim/lsp/nextls.lua | 11 + .config/nvim/lsp/nginx_language_server.lua | 16 + .config/nvim/lsp/nickel_ls.lua | 32 + .config/nvim/lsp/nil_ls.lua | 17 + .config/nvim/lsp/nim_langserver.lua | 23 + .config/nvim/lsp/nimls.lua | 23 + .config/nvim/lsp/nixd.lua | 15 + .config/nvim/lsp/nomad_lsp.lua | 34 + .config/nvim/lsp/ntt.lua | 20 + .config/nvim/lsp/nushell.lua | 14 + .config/nvim/lsp/nxls.lua | 17 + .config/nvim/lsp/ocamllsp.lua | 88 + .config/nvim/lsp/ols.lua | 17 + .config/nvim/lsp/omnisharp.lua | 92 + .config/nvim/lsp/opencl_ls.lua | 14 + .config/nvim/lsp/openscad_ls.lua | 27 + .config/nvim/lsp/openscad_lsp.lua | 17 + .config/nvim/lsp/oxlint.lua | 31 + .config/nvim/lsp/pact_ls.lua | 12 + .config/nvim/lsp/pasls.lua | 28 + .config/nvim/lsp/pbls.lua | 19 + .config/nvim/lsp/perlls.lua | 30 + .config/nvim/lsp/perlnavigator.lua | 28 + .config/nvim/lsp/perlpls.lua | 21 + .config/nvim/lsp/pest_ls.lua | 12 + .config/nvim/lsp/phan.lua | 32 + .config/nvim/lsp/phpactor.lua | 13 + .config/nvim/lsp/phptools.lua | 36 + .config/nvim/lsp/pico8_ls.lua | 18 + .config/nvim/lsp/please.lua | 14 + .config/nvim/lsp/pli.lua | 12 + .config/nvim/lsp/poryscript_pls.lua | 12 + .config/nvim/lsp/postgres_lsp.lua | 14 + .config/nvim/lsp/powershell_es.lua | 56 + .config/nvim/lsp/prismals.lua | 20 + .config/nvim/lsp/prolog_ls.lua | 22 + .config/nvim/lsp/prosemd_lsp.lua | 14 + .config/nvim/lsp/protols.lua | 17 + .config/nvim/lsp/psalm.lua | 15 + .config/nvim/lsp/pug.lua | 14 + .config/nvim/lsp/puppet.lua | 28 + .config/nvim/lsp/purescriptls.lua | 15 + .config/nvim/lsp/pylsp.lua | 41 + .config/nvim/lsp/pylyzer.lua | 35 + .config/nvim/lsp/pyre.lua | 17 + .config/nvim/lsp/pyrefly.lua | 26 + .config/nvim/lsp/pyright.lua | 65 + .config/nvim/lsp/qmlls.lua | 14 + .config/nvim/lsp/quick_lint_js.lua | 14 + .config/nvim/lsp/r_language_server.lua | 20 + .config/nvim/lsp/racket_langserver.lua | 16 + .config/nvim/lsp/raku_navigator.lua | 28 + .config/nvim/lsp/reason_ls.lua | 12 + .config/nvim/lsp/regal.lua | 22 + .config/nvim/lsp/regols.lua | 22 + .config/nvim/lsp/remark_ls.lua | 46 + .config/nvim/lsp/rescriptls.lua | 58 + .config/nvim/lsp/rls.lua | 35 + .config/nvim/lsp/rnix.lua | 20 + .config/nvim/lsp/robotcode.lua | 15 + .config/nvim/lsp/robotframework_ls.lua | 12 + .config/nvim/lsp/roc_ls.lua | 13 + .config/nvim/lsp/rome.lua | 25 + .config/nvim/lsp/roslyn_ls.lua | 237 ++ .config/nvim/lsp/rpmspec.lua | 19 + .config/nvim/lsp/rubocop.lua | 10 + .config/nvim/lsp/ruby_lsp.lua | 27 + .config/nvim/lsp/ruff.lua | 35 + .config/nvim/lsp/ruff_lsp.lua | 30 + .config/nvim/lsp/rune_languageserver.lua | 13 + .config/nvim/lsp/rust_analyzer.lua | 121 + .config/nvim/lsp/salt_ls.lua | 16 + .config/nvim/lsp/scheme_langserver.lua | 15 + .config/nvim/lsp/scry.lua | 12 + .config/nvim/lsp/selene3p_ls.lua | 12 + .config/nvim/lsp/serve_d.lua | 13 + .config/nvim/lsp/shopify_theme_ls.lua | 26 + .config/nvim/lsp/sixtyfps.lua | 25 + .config/nvim/lsp/slangd.lua | 37 + .config/nvim/lsp/slint_lsp.lua | 24 + .config/nvim/lsp/smarty_ls.lua | 36 + .config/nvim/lsp/smithy_ls.lua | 44 + .config/nvim/lsp/snakeskin_ls.lua | 15 + .config/nvim/lsp/snyk_ls.lua | 29 + .config/nvim/lsp/solang.lua | 19 + .config/nvim/lsp/solargraph.lua | 24 + .config/nvim/lsp/solc.lua | 17 + .config/nvim/lsp/solidity.lua | 42 + .config/nvim/lsp/solidity_ls.lua | 28 + .config/nvim/lsp/solidity_ls_nomicfoundation.lua | 28 + .config/nvim/lsp/somesass_ls.lua | 30 + .config/nvim/lsp/sorbet.lua | 19 + .config/nvim/lsp/sourcekit.lua | 40 + .config/nvim/lsp/spectral.lua | 22 + .config/nvim/lsp/spyglassmc_language_server.lua | 24 + .config/nvim/lsp/sqlls.lua | 13 + .config/nvim/lsp/sqls.lua | 19 + .config/nvim/lsp/sqruff.lua | 13 + .config/nvim/lsp/standardrb.lua | 12 + .config/nvim/lsp/starlark_rust.lua | 16 + .config/nvim/lsp/starpls.lua | 12 + .config/nvim/lsp/statix.lua | 12 + .config/nvim/lsp/steep.lua | 14 + .config/nvim/lsp/stimulus_ls.lua | 22 + .config/nvim/lsp/stylelint_lsp.lua | 55 + .config/nvim/lsp/stylua.lua | 12 + .config/nvim/lsp/stylua3p_ls.lua | 12 + .config/nvim/lsp/superhtml.lua | 24 + .config/nvim/lsp/svelte.lua | 47 + .config/nvim/lsp/svlangserver.lua | 42 + .config/nvim/lsp/svls.lua | 17 + .config/nvim/lsp/swift_mesonls.lua | 12 + .config/nvim/lsp/syntax_tree.lua | 21 + .config/nvim/lsp/systemd_ls.lua | 17 + .config/nvim/lsp/tabby_ml.lua | 18 + .config/nvim/lsp/tailwindcss.lua | 135 + .config/nvim/lsp/taplo.lua | 17 + .config/nvim/lsp/tblgen_lsp_server.lua | 25 + .config/nvim/lsp/teal_ls.lua | 24 + .config/nvim/lsp/templ.lua | 12 + .config/nvim/lsp/termux_language_server.lua | 12 + .config/nvim/lsp/terraform_lsp.lua | 36 + .config/nvim/lsp/terraformls.lua | 40 + .config/nvim/lsp/texlab.lua | 181 ++ .config/nvim/lsp/textlsp.lua | 45 + .config/nvim/lsp/tflint.lua | 13 + .config/nvim/lsp/theme_check.lua | 24 + .config/nvim/lsp/thriftls.lua | 12 + .config/nvim/lsp/tilt_ls.lua | 18 + .config/nvim/lsp/tinymist.lua | 72 + .config/nvim/lsp/tofu_ls.lua | 11 + .config/nvim/lsp/tombi.lua | 13 + .config/nvim/lsp/ts_ls.lua | 126 + .config/nvim/lsp/ts_query_ls.lua | 43 + .config/nvim/lsp/tsgo.lua | 42 + .config/nvim/lsp/tsp_server.lua | 17 + .config/nvim/lsp/ttags.lua | 10 + .config/nvim/lsp/turbo_ls.lua | 22 + .config/nvim/lsp/turtle_ls.lua | 39 + .config/nvim/lsp/tvm_ffi_navigator.lua | 15 + .config/nvim/lsp/twiggy_language_server.lua | 15 + .config/nvim/lsp/ty.lua | 14 + .config/nvim/lsp/typeprof.lua | 12 + .config/nvim/lsp/typos_lsp.lua | 15 + .config/nvim/lsp/typst_lsp.lua | 12 + .config/nvim/lsp/uiua.lua | 14 + .config/nvim/lsp/ungrammar_languageserver.lua | 26 + .config/nvim/lsp/unison.lua | 16 + .config/nvim/lsp/unocss.lua | 41 + .config/nvim/lsp/uvls.lua | 23 + .config/nvim/lsp/v_analyzer.lua | 14 + .config/nvim/lsp/vacuum.lua | 23 + .config/nvim/lsp/vala_ls.lua | 35 + .config/nvim/lsp/vale_ls.lua | 12 + .config/nvim/lsp/vectorcode_server.lua | 11 + .config/nvim/lsp/verible.lua | 17 + .config/nvim/lsp/veridian.lua | 24 + .config/nvim/lsp/veryl_ls.lua | 17 + .config/nvim/lsp/vespa_ls.lua | 38 + .config/nvim/lsp/vhdl_ls.lua | 38 + .config/nvim/lsp/vimls.lua | 29 + .config/nvim/lsp/visualforce_ls.lua | 31 + .config/nvim/lsp/vls.lua | 14 + .config/nvim/lsp/volar.lua | 9 + .config/nvim/lsp/vscoqtop.lua | 10 + .config/nvim/lsp/vtsls.lua | 96 + .config/nvim/lsp/vue_ls.lua | 71 + .config/nvim/lsp/wasm_language_tools.lua | 12 + .config/nvim/lsp/wgsl_analyzer.lua | 16 + .config/nvim/lsp/yamlls.lua | 80 + .config/nvim/lsp/yang_lsp.lua | 12 + .config/nvim/lsp/yls.lua | 16 + .config/nvim/lsp/ziggy.lua | 12 + .config/nvim/lsp/ziggy_schema.lua | 12 + .config/nvim/lsp/zk.lua | 116 + .config/nvim/lsp/zls.lua | 12 + .config/nvim/lsp/zuban.lua | 19 + .config/paru/paru.conf | 2 + .config/pipewire/pipewire.conf.d/user-session.conf | 9 + .config/python/pythonrc | 2 + .config/qt5ct/colors/everforest.conf | 4 + .config/qt5ct/colors/gruvbox.conf | 4 + .config/qt5ct/colors/nord.conf | 4 + .config/qt5ct/qt5ct.conf | 32 + .config/qt6ct/colors/everforest.conf | 4 + .config/qt6ct/colors/gruvbox.conf | 4 + .config/qt6ct/colors/nord.conf | 4 + .config/qt6ct/qt6ct.conf | 32 + .config/rmpc/config.ron | 201 ++ .config/rmpc/scripts/statusbar | 2 + .config/rmpc/themes/def.ron | 193 ++ .config/shell/aliasrc | 77 + .config/shell/bm-dirs | 14 + .config/shell/bm-files | 16 + .config/shell/inputrc | 19 + .config/shell/profile | 113 + .config/shell/shortcutenvrc | 24 + .config/shell/shortcutrc | 24 + .config/shell/zshnameddirrc | 23 + .config/swayidle/config | 3 + .config/swayimg/config | 38 + .config/swayimg/key-handler | 35 + .config/swaylock/config | 1 + .config/tmux/tmux.conf | 67 + .config/user-dirs.dirs | 1 + .config/wget/wgetrc | 1 + .config/xdg-desktop-portal-termfilechooser/config | 2 + .config/xdg-desktop-portal/config | 2 + .../yazi/flavors/catppuccin-mocha.yazi/flavor.toml | 186 ++ .../yazi/flavors/catppuccin-mocha.yazi/tmtheme.xml | 2112 +++++++++++++ .../flavors/everforest-medium.yazi/flavor.toml | 229 ++ .../flavors/everforest-medium.yazi/tmtheme.xml | 3186 ++++++++++++++++++++ .config/yazi/flavors/gruvbox-dark.yazi/flavor.toml | 176 ++ .config/yazi/flavors/gruvbox-dark.yazi/tmtheme.xml | 1509 +++++++++ .config/yazi/flavors/nord.yazi/flavor.toml | 170 ++ .config/yazi/init.lua | 4 + .config/yazi/plugins/git.yazi/main.lua | 261 ++ .config/yazi/theme.toml | 2114 +++++++++++++ .config/yazi/yazi.toml | 12 + .config/yt-dlp/config | 1 + .config/zathura/zathurarc | 25 + .config/zsh/.zshrc | 143 + 436 files changed, 23896 insertions(+) create mode 100644 .config/btop/btop.conf create mode 100644 .config/fastfetch/config.jsonc create mode 100644 .config/fnott/fnott.ini create mode 100644 .config/fontconfig/fonts.conf create mode 100644 .config/foot/foot.ini create mode 100644 .config/k9s/skins/catppuccin-mocha-transparent.yaml create mode 100644 .config/k9s/skins/everforest-dark.yaml create mode 100644 .config/k9s/skins/gruvbox.yaml create mode 100644 .config/k9s/skins/nord.yaml create mode 100644 .config/lazygit/config.yml create mode 100644 .config/lazygit/themes.gitconfig create mode 100644 .config/mango/config.conf create mode 100644 .config/mimeapps.list create mode 100644 .config/mpd/mpd.conf create mode 100644 .config/mpv/input.conf create mode 100644 .config/mpv/mpv.conf create mode 100644 .config/newsraft/config create mode 100644 .config/nvim/init.lua create mode 100644 .config/nvim/lsp/ada_ls.lua create mode 100644 .config/nvim/lsp/agda_ls.lua create mode 100644 .config/nvim/lsp/aiken.lua create mode 100644 .config/nvim/lsp/air.lua create mode 100644 .config/nvim/lsp/alloy_ls.lua create mode 100644 .config/nvim/lsp/anakin_language_server.lua create mode 100644 .config/nvim/lsp/angularls.lua create mode 100644 .config/nvim/lsp/ansiblels.lua create mode 100644 .config/nvim/lsp/antlersls.lua create mode 100644 .config/nvim/lsp/apex_ls.lua create mode 100644 .config/nvim/lsp/arduino_language_server.lua create mode 100644 .config/nvim/lsp/asm_lsp.lua create mode 100644 .config/nvim/lsp/ast_grep.lua create mode 100644 .config/nvim/lsp/astro.lua create mode 100644 .config/nvim/lsp/atlas.lua create mode 100644 .config/nvim/lsp/atopile.lua create mode 100644 .config/nvim/lsp/autohotkey_lsp.lua create mode 100644 .config/nvim/lsp/autotools_ls.lua create mode 100644 .config/nvim/lsp/awk_ls.lua create mode 100644 .config/nvim/lsp/azure_pipelines_ls.lua create mode 100644 .config/nvim/lsp/bacon_ls.lua create mode 100644 .config/nvim/lsp/ballerina.lua create mode 100644 .config/nvim/lsp/basedpyright.lua create mode 100644 .config/nvim/lsp/bashls.lua create mode 100644 .config/nvim/lsp/basics_ls.lua create mode 100644 .config/nvim/lsp/bazelrc_lsp.lua create mode 100644 .config/nvim/lsp/beancount.lua create mode 100644 .config/nvim/lsp/bicep.lua create mode 100644 .config/nvim/lsp/biome.lua create mode 100644 .config/nvim/lsp/bitbake_language_server.lua create mode 100644 .config/nvim/lsp/blueprint_ls.lua create mode 100644 .config/nvim/lsp/bqls.lua create mode 100644 .config/nvim/lsp/bright_script.lua create mode 100644 .config/nvim/lsp/bsl_ls.lua create mode 100644 .config/nvim/lsp/buck2.lua create mode 100644 .config/nvim/lsp/buddy_ls.lua create mode 100644 .config/nvim/lsp/buf_ls.lua create mode 100644 .config/nvim/lsp/bufls.lua create mode 100644 .config/nvim/lsp/bzl.lua create mode 100644 .config/nvim/lsp/c3_lsp.lua create mode 100644 .config/nvim/lsp/cairo_ls.lua create mode 100644 .config/nvim/lsp/ccls.lua create mode 100644 .config/nvim/lsp/cds_lsp.lua create mode 100644 .config/nvim/lsp/cir_lsp_server.lua create mode 100644 .config/nvim/lsp/circom-lsp.lua create mode 100644 .config/nvim/lsp/clangd.lua create mode 100644 .config/nvim/lsp/clarinet.lua create mode 100644 .config/nvim/lsp/clojure_lsp.lua create mode 100644 .config/nvim/lsp/cmake.lua create mode 100644 .config/nvim/lsp/cobol_ls.lua create mode 100644 .config/nvim/lsp/codebook.lua create mode 100644 .config/nvim/lsp/coffeesense.lua create mode 100644 .config/nvim/lsp/contextive.lua create mode 100644 .config/nvim/lsp/copilot.lua create mode 100644 .config/nvim/lsp/coq_lsp.lua create mode 100644 .config/nvim/lsp/crystalline.lua create mode 100644 .config/nvim/lsp/csharp_ls.lua create mode 100644 .config/nvim/lsp/cspell_ls.lua create mode 100644 .config/nvim/lsp/css_variables.lua create mode 100644 .config/nvim/lsp/cssls.lua create mode 100644 .config/nvim/lsp/cssmodules_ls.lua create mode 100644 .config/nvim/lsp/cucumber_language_server.lua create mode 100644 .config/nvim/lsp/cue.lua create mode 100644 .config/nvim/lsp/custom_elements_ls.lua create mode 100644 .config/nvim/lsp/cypher_ls.lua create mode 100644 .config/nvim/lsp/daedalus_ls.lua create mode 100644 .config/nvim/lsp/dafny.lua create mode 100644 .config/nvim/lsp/dagger.lua create mode 100644 .config/nvim/lsp/dartls.lua create mode 100644 .config/nvim/lsp/dcmls.lua create mode 100644 .config/nvim/lsp/debputy.lua create mode 100644 .config/nvim/lsp/denols.lua create mode 100644 .config/nvim/lsp/dhall_lsp_server.lua create mode 100644 .config/nvim/lsp/diagnosticls.lua create mode 100644 .config/nvim/lsp/digestif.lua create mode 100644 .config/nvim/lsp/djls.lua create mode 100644 .config/nvim/lsp/djlsp.lua create mode 100644 .config/nvim/lsp/docker_compose_language_service.lua create mode 100644 .config/nvim/lsp/docker_language_server.lua create mode 100644 .config/nvim/lsp/dockerls.lua create mode 100644 .config/nvim/lsp/dolmenls.lua create mode 100644 .config/nvim/lsp/dotls.lua create mode 100644 .config/nvim/lsp/dprint.lua create mode 100644 .config/nvim/lsp/ds_pinyin_lsp.lua create mode 100644 .config/nvim/lsp/dts_lsp.lua create mode 100644 .config/nvim/lsp/earthlyls.lua create mode 100644 .config/nvim/lsp/ecsact.lua create mode 100644 .config/nvim/lsp/efm.lua create mode 100644 .config/nvim/lsp/elixirls.lua create mode 100644 .config/nvim/lsp/elmls.lua create mode 100644 .config/nvim/lsp/elp.lua create mode 100644 .config/nvim/lsp/ember.lua create mode 100644 .config/nvim/lsp/emmet_language_server.lua create mode 100644 .config/nvim/lsp/emmet_ls.lua create mode 100644 .config/nvim/lsp/emmylua_ls.lua create mode 100644 .config/nvim/lsp/erg_language_server.lua create mode 100644 .config/nvim/lsp/erlangls.lua create mode 100644 .config/nvim/lsp/esbonio.lua create mode 100644 .config/nvim/lsp/eslint.lua create mode 100644 .config/nvim/lsp/expert.lua create mode 100644 .config/nvim/lsp/facility_language_server.lua create mode 100644 .config/nvim/lsp/fennel_language_server.lua create mode 100644 .config/nvim/lsp/fennel_ls.lua create mode 100644 .config/nvim/lsp/fish_lsp.lua create mode 100644 .config/nvim/lsp/flow.lua create mode 100644 .config/nvim/lsp/flux_lsp.lua create mode 100644 .config/nvim/lsp/foam_ls.lua create mode 100644 .config/nvim/lsp/fortls.lua create mode 100644 .config/nvim/lsp/fsautocomplete.lua create mode 100644 .config/nvim/lsp/fsharp_language_server.lua create mode 100644 .config/nvim/lsp/fstar.lua create mode 100644 .config/nvim/lsp/futhark_lsp.lua create mode 100644 .config/nvim/lsp/gdscript.lua create mode 100644 .config/nvim/lsp/gdshader_lsp.lua create mode 100644 .config/nvim/lsp/gh_actions_ls.lua create mode 100644 .config/nvim/lsp/ghcide.lua create mode 100644 .config/nvim/lsp/ghdl_ls.lua create mode 100644 .config/nvim/lsp/ginko_ls.lua create mode 100644 .config/nvim/lsp/gitlab_ci_ls.lua create mode 100644 .config/nvim/lsp/glasgow.lua create mode 100644 .config/nvim/lsp/gleam.lua create mode 100644 .config/nvim/lsp/glint.lua create mode 100644 .config/nvim/lsp/glsl_analyzer.lua create mode 100644 .config/nvim/lsp/glslls.lua create mode 100644 .config/nvim/lsp/gnls.lua create mode 100644 .config/nvim/lsp/golangci_lint_ls.lua create mode 100644 .config/nvim/lsp/gopls.lua create mode 100644 .config/nvim/lsp/gradle_ls.lua create mode 100644 .config/nvim/lsp/grammarly.lua create mode 100644 .config/nvim/lsp/graphql.lua create mode 100644 .config/nvim/lsp/groovyls.lua create mode 100644 .config/nvim/lsp/guile_ls.lua create mode 100644 .config/nvim/lsp/harper_ls.lua create mode 100644 .config/nvim/lsp/hdl_checker.lua create mode 100644 .config/nvim/lsp/helm_ls.lua create mode 100644 .config/nvim/lsp/herb_ls.lua create mode 100644 .config/nvim/lsp/hhvm.lua create mode 100644 .config/nvim/lsp/hie.lua create mode 100644 .config/nvim/lsp/hlasm.lua create mode 100644 .config/nvim/lsp/hls.lua create mode 100644 .config/nvim/lsp/hoon_ls.lua create mode 100644 .config/nvim/lsp/html.lua create mode 100644 .config/nvim/lsp/htmx.lua create mode 100644 .config/nvim/lsp/hydra_lsp.lua create mode 100644 .config/nvim/lsp/hyprls.lua create mode 100644 .config/nvim/lsp/idris2_lsp.lua create mode 100644 .config/nvim/lsp/intelephense.lua create mode 100644 .config/nvim/lsp/janet_lsp.lua create mode 100644 .config/nvim/lsp/java_language_server.lua create mode 100644 .config/nvim/lsp/jdtls.lua create mode 100644 .config/nvim/lsp/jedi_language_server.lua create mode 100644 .config/nvim/lsp/jinja_lsp.lua create mode 100644 .config/nvim/lsp/jqls.lua create mode 100644 .config/nvim/lsp/jsonls.lua create mode 100644 .config/nvim/lsp/jsonnet_ls.lua create mode 100644 .config/nvim/lsp/julials.lua create mode 100644 .config/nvim/lsp/just.lua create mode 100644 .config/nvim/lsp/kcl.lua create mode 100644 .config/nvim/lsp/koka.lua create mode 100644 .config/nvim/lsp/kotlin_language_server.lua create mode 100644 .config/nvim/lsp/kotlin_lsp.lua create mode 100644 .config/nvim/lsp/kulala_ls.lua create mode 100644 .config/nvim/lsp/laravel_ls.lua create mode 100644 .config/nvim/lsp/lean3ls.lua create mode 100644 .config/nvim/lsp/leanls.lua create mode 100644 .config/nvim/lsp/lelwel_ls.lua create mode 100644 .config/nvim/lsp/lemminx.lua create mode 100644 .config/nvim/lsp/lexical.lua create mode 100644 .config/nvim/lsp/lsp_ai.lua create mode 100644 .config/nvim/lsp/ltex.lua create mode 100644 .config/nvim/lsp/ltex_plus.lua create mode 100644 .config/nvim/lsp/lua_ls.lua create mode 100644 .config/nvim/lsp/luau_lsp.lua create mode 100644 .config/nvim/lsp/lwc_ls.lua create mode 100644 .config/nvim/lsp/m68k.lua create mode 100644 .config/nvim/lsp/markdown_oxide.lua create mode 100644 .config/nvim/lsp/marko-js.lua create mode 100644 .config/nvim/lsp/marksman.lua create mode 100644 .config/nvim/lsp/matlab_ls.lua create mode 100644 .config/nvim/lsp/mdx_analyzer.lua create mode 100644 .config/nvim/lsp/mesonlsp.lua create mode 100644 .config/nvim/lsp/metals.lua create mode 100644 .config/nvim/lsp/millet.lua create mode 100644 .config/nvim/lsp/mint.lua create mode 100644 .config/nvim/lsp/mlir_lsp_server.lua create mode 100644 .config/nvim/lsp/mlir_pdll_lsp_server.lua create mode 100644 .config/nvim/lsp/mm0_ls.lua create mode 100644 .config/nvim/lsp/mojo.lua create mode 100644 .config/nvim/lsp/motoko_lsp.lua create mode 100644 .config/nvim/lsp/move_analyzer.lua create mode 100644 .config/nvim/lsp/msbuild_project_tools_server.lua create mode 100644 .config/nvim/lsp/muon.lua create mode 100644 .config/nvim/lsp/mutt_ls.lua create mode 100644 .config/nvim/lsp/nelua_lsp.lua create mode 100644 .config/nvim/lsp/neocmake.lua create mode 100644 .config/nvim/lsp/nextflow_ls.lua create mode 100644 .config/nvim/lsp/nextls.lua create mode 100644 .config/nvim/lsp/nginx_language_server.lua create mode 100644 .config/nvim/lsp/nickel_ls.lua create mode 100644 .config/nvim/lsp/nil_ls.lua create mode 100644 .config/nvim/lsp/nim_langserver.lua create mode 100644 .config/nvim/lsp/nimls.lua create mode 100644 .config/nvim/lsp/nixd.lua create mode 100644 .config/nvim/lsp/nomad_lsp.lua create mode 100644 .config/nvim/lsp/ntt.lua create mode 100644 .config/nvim/lsp/nushell.lua create mode 100644 .config/nvim/lsp/nxls.lua create mode 100644 .config/nvim/lsp/ocamllsp.lua create mode 100644 .config/nvim/lsp/ols.lua create mode 100644 .config/nvim/lsp/omnisharp.lua create mode 100644 .config/nvim/lsp/opencl_ls.lua create mode 100644 .config/nvim/lsp/openscad_ls.lua create mode 100644 .config/nvim/lsp/openscad_lsp.lua create mode 100644 .config/nvim/lsp/oxlint.lua create mode 100644 .config/nvim/lsp/pact_ls.lua create mode 100644 .config/nvim/lsp/pasls.lua create mode 100644 .config/nvim/lsp/pbls.lua create mode 100644 .config/nvim/lsp/perlls.lua create mode 100644 .config/nvim/lsp/perlnavigator.lua create mode 100644 .config/nvim/lsp/perlpls.lua create mode 100644 .config/nvim/lsp/pest_ls.lua create mode 100644 .config/nvim/lsp/phan.lua create mode 100644 .config/nvim/lsp/phpactor.lua create mode 100644 .config/nvim/lsp/phptools.lua create mode 100644 .config/nvim/lsp/pico8_ls.lua create mode 100644 .config/nvim/lsp/please.lua create mode 100644 .config/nvim/lsp/pli.lua create mode 100644 .config/nvim/lsp/poryscript_pls.lua create mode 100644 .config/nvim/lsp/postgres_lsp.lua create mode 100644 .config/nvim/lsp/powershell_es.lua create mode 100644 .config/nvim/lsp/prismals.lua create mode 100644 .config/nvim/lsp/prolog_ls.lua create mode 100644 .config/nvim/lsp/prosemd_lsp.lua create mode 100644 .config/nvim/lsp/protols.lua create mode 100644 .config/nvim/lsp/psalm.lua create mode 100644 .config/nvim/lsp/pug.lua create mode 100644 .config/nvim/lsp/puppet.lua create mode 100644 .config/nvim/lsp/purescriptls.lua create mode 100644 .config/nvim/lsp/pylsp.lua create mode 100644 .config/nvim/lsp/pylyzer.lua create mode 100644 .config/nvim/lsp/pyre.lua create mode 100644 .config/nvim/lsp/pyrefly.lua create mode 100644 .config/nvim/lsp/pyright.lua create mode 100644 .config/nvim/lsp/qmlls.lua create mode 100644 .config/nvim/lsp/quick_lint_js.lua create mode 100644 .config/nvim/lsp/r_language_server.lua create mode 100644 .config/nvim/lsp/racket_langserver.lua create mode 100644 .config/nvim/lsp/raku_navigator.lua create mode 100644 .config/nvim/lsp/reason_ls.lua create mode 100644 .config/nvim/lsp/regal.lua create mode 100644 .config/nvim/lsp/regols.lua create mode 100644 .config/nvim/lsp/remark_ls.lua create mode 100644 .config/nvim/lsp/rescriptls.lua create mode 100644 .config/nvim/lsp/rls.lua create mode 100644 .config/nvim/lsp/rnix.lua create mode 100644 .config/nvim/lsp/robotcode.lua create mode 100644 .config/nvim/lsp/robotframework_ls.lua create mode 100644 .config/nvim/lsp/roc_ls.lua create mode 100644 .config/nvim/lsp/rome.lua create mode 100644 .config/nvim/lsp/roslyn_ls.lua create mode 100644 .config/nvim/lsp/rpmspec.lua create mode 100644 .config/nvim/lsp/rubocop.lua create mode 100644 .config/nvim/lsp/ruby_lsp.lua create mode 100644 .config/nvim/lsp/ruff.lua create mode 100644 .config/nvim/lsp/ruff_lsp.lua create mode 100644 .config/nvim/lsp/rune_languageserver.lua create mode 100644 .config/nvim/lsp/rust_analyzer.lua create mode 100644 .config/nvim/lsp/salt_ls.lua create mode 100644 .config/nvim/lsp/scheme_langserver.lua create mode 100644 .config/nvim/lsp/scry.lua create mode 100644 .config/nvim/lsp/selene3p_ls.lua create mode 100644 .config/nvim/lsp/serve_d.lua create mode 100644 .config/nvim/lsp/shopify_theme_ls.lua create mode 100644 .config/nvim/lsp/sixtyfps.lua create mode 100644 .config/nvim/lsp/slangd.lua create mode 100644 .config/nvim/lsp/slint_lsp.lua create mode 100644 .config/nvim/lsp/smarty_ls.lua create mode 100644 .config/nvim/lsp/smithy_ls.lua create mode 100644 .config/nvim/lsp/snakeskin_ls.lua create mode 100644 .config/nvim/lsp/snyk_ls.lua create mode 100644 .config/nvim/lsp/solang.lua create mode 100644 .config/nvim/lsp/solargraph.lua create mode 100644 .config/nvim/lsp/solc.lua create mode 100644 .config/nvim/lsp/solidity.lua create mode 100644 .config/nvim/lsp/solidity_ls.lua create mode 100644 .config/nvim/lsp/solidity_ls_nomicfoundation.lua create mode 100644 .config/nvim/lsp/somesass_ls.lua create mode 100644 .config/nvim/lsp/sorbet.lua create mode 100644 .config/nvim/lsp/sourcekit.lua create mode 100644 .config/nvim/lsp/spectral.lua create mode 100644 .config/nvim/lsp/spyglassmc_language_server.lua create mode 100644 .config/nvim/lsp/sqlls.lua create mode 100644 .config/nvim/lsp/sqls.lua create mode 100644 .config/nvim/lsp/sqruff.lua create mode 100644 .config/nvim/lsp/standardrb.lua create mode 100644 .config/nvim/lsp/starlark_rust.lua create mode 100644 .config/nvim/lsp/starpls.lua create mode 100644 .config/nvim/lsp/statix.lua create mode 100644 .config/nvim/lsp/steep.lua create mode 100644 .config/nvim/lsp/stimulus_ls.lua create mode 100644 .config/nvim/lsp/stylelint_lsp.lua create mode 100644 .config/nvim/lsp/stylua.lua create mode 100644 .config/nvim/lsp/stylua3p_ls.lua create mode 100644 .config/nvim/lsp/superhtml.lua create mode 100644 .config/nvim/lsp/svelte.lua create mode 100644 .config/nvim/lsp/svlangserver.lua create mode 100644 .config/nvim/lsp/svls.lua create mode 100644 .config/nvim/lsp/swift_mesonls.lua create mode 100644 .config/nvim/lsp/syntax_tree.lua create mode 100644 .config/nvim/lsp/systemd_ls.lua create mode 100644 .config/nvim/lsp/tabby_ml.lua create mode 100644 .config/nvim/lsp/tailwindcss.lua create mode 100644 .config/nvim/lsp/taplo.lua create mode 100644 .config/nvim/lsp/tblgen_lsp_server.lua create mode 100644 .config/nvim/lsp/teal_ls.lua create mode 100644 .config/nvim/lsp/templ.lua create mode 100644 .config/nvim/lsp/termux_language_server.lua create mode 100644 .config/nvim/lsp/terraform_lsp.lua create mode 100644 .config/nvim/lsp/terraformls.lua create mode 100644 .config/nvim/lsp/texlab.lua create mode 100644 .config/nvim/lsp/textlsp.lua create mode 100644 .config/nvim/lsp/tflint.lua create mode 100644 .config/nvim/lsp/theme_check.lua create mode 100644 .config/nvim/lsp/thriftls.lua create mode 100644 .config/nvim/lsp/tilt_ls.lua create mode 100644 .config/nvim/lsp/tinymist.lua create mode 100644 .config/nvim/lsp/tofu_ls.lua create mode 100644 .config/nvim/lsp/tombi.lua create mode 100644 .config/nvim/lsp/ts_ls.lua create mode 100644 .config/nvim/lsp/ts_query_ls.lua create mode 100644 .config/nvim/lsp/tsgo.lua create mode 100644 .config/nvim/lsp/tsp_server.lua create mode 100644 .config/nvim/lsp/ttags.lua create mode 100644 .config/nvim/lsp/turbo_ls.lua create mode 100644 .config/nvim/lsp/turtle_ls.lua create mode 100644 .config/nvim/lsp/tvm_ffi_navigator.lua create mode 100644 .config/nvim/lsp/twiggy_language_server.lua create mode 100644 .config/nvim/lsp/ty.lua create mode 100644 .config/nvim/lsp/typeprof.lua create mode 100644 .config/nvim/lsp/typos_lsp.lua create mode 100644 .config/nvim/lsp/typst_lsp.lua create mode 100644 .config/nvim/lsp/uiua.lua create mode 100644 .config/nvim/lsp/ungrammar_languageserver.lua create mode 100644 .config/nvim/lsp/unison.lua create mode 100644 .config/nvim/lsp/unocss.lua create mode 100644 .config/nvim/lsp/uvls.lua create mode 100644 .config/nvim/lsp/v_analyzer.lua create mode 100644 .config/nvim/lsp/vacuum.lua create mode 100644 .config/nvim/lsp/vala_ls.lua create mode 100644 .config/nvim/lsp/vale_ls.lua create mode 100644 .config/nvim/lsp/vectorcode_server.lua create mode 100644 .config/nvim/lsp/verible.lua create mode 100644 .config/nvim/lsp/veridian.lua create mode 100644 .config/nvim/lsp/veryl_ls.lua create mode 100644 .config/nvim/lsp/vespa_ls.lua create mode 100644 .config/nvim/lsp/vhdl_ls.lua create mode 100644 .config/nvim/lsp/vimls.lua create mode 100644 .config/nvim/lsp/visualforce_ls.lua create mode 100644 .config/nvim/lsp/vls.lua create mode 100644 .config/nvim/lsp/volar.lua create mode 100644 .config/nvim/lsp/vscoqtop.lua create mode 100644 .config/nvim/lsp/vtsls.lua create mode 100644 .config/nvim/lsp/vue_ls.lua create mode 100644 .config/nvim/lsp/wasm_language_tools.lua create mode 100644 .config/nvim/lsp/wgsl_analyzer.lua create mode 100644 .config/nvim/lsp/yamlls.lua create mode 100644 .config/nvim/lsp/yang_lsp.lua create mode 100644 .config/nvim/lsp/yls.lua create mode 100644 .config/nvim/lsp/ziggy.lua create mode 100644 .config/nvim/lsp/ziggy_schema.lua create mode 100644 .config/nvim/lsp/zk.lua create mode 100644 .config/nvim/lsp/zls.lua create mode 100644 .config/nvim/lsp/zuban.lua create mode 100644 .config/paru/paru.conf create mode 100644 .config/pipewire/pipewire.conf.d/user-session.conf create mode 100644 .config/python/pythonrc create mode 100644 .config/qt5ct/colors/everforest.conf create mode 100644 .config/qt5ct/colors/gruvbox.conf create mode 100644 .config/qt5ct/colors/nord.conf create mode 100644 .config/qt5ct/qt5ct.conf create mode 100644 .config/qt6ct/colors/everforest.conf create mode 100644 .config/qt6ct/colors/gruvbox.conf create mode 100644 .config/qt6ct/colors/nord.conf create mode 100644 .config/qt6ct/qt6ct.conf create mode 100644 .config/rmpc/config.ron create mode 100755 .config/rmpc/scripts/statusbar create mode 100644 .config/rmpc/themes/def.ron create mode 100644 .config/shell/aliasrc create mode 100644 .config/shell/bm-dirs create mode 100644 .config/shell/bm-files create mode 100644 .config/shell/inputrc create mode 100644 .config/shell/profile create mode 100644 .config/shell/shortcutenvrc create mode 100644 .config/shell/shortcutrc create mode 100644 .config/shell/zshnameddirrc create mode 100644 .config/swayidle/config create mode 100644 .config/swayimg/config create mode 100755 .config/swayimg/key-handler create mode 100644 .config/swaylock/config create mode 100644 .config/tmux/tmux.conf create mode 100644 .config/user-dirs.dirs create mode 100644 .config/wget/wgetrc create mode 100644 .config/xdg-desktop-portal-termfilechooser/config create mode 100644 .config/xdg-desktop-portal/config create mode 100644 .config/yazi/flavors/catppuccin-mocha.yazi/flavor.toml create mode 100644 .config/yazi/flavors/catppuccin-mocha.yazi/tmtheme.xml create mode 100644 .config/yazi/flavors/everforest-medium.yazi/flavor.toml create mode 100644 .config/yazi/flavors/everforest-medium.yazi/tmtheme.xml create mode 100644 .config/yazi/flavors/gruvbox-dark.yazi/flavor.toml create mode 100644 .config/yazi/flavors/gruvbox-dark.yazi/tmtheme.xml create mode 100644 .config/yazi/flavors/nord.yazi/flavor.toml create mode 100644 .config/yazi/init.lua create mode 100644 .config/yazi/plugins/git.yazi/main.lua create mode 100644 .config/yazi/theme.toml create mode 100644 .config/yazi/yazi.toml create mode 100644 .config/yt-dlp/config create mode 100644 .config/zathura/zathurarc create mode 100644 .config/zsh/.zshrc (limited to '.config') diff --git a/.config/btop/btop.conf b/.config/btop/btop.conf new file mode 100644 index 0000000..7791301 --- /dev/null +++ b/.config/btop/btop.conf @@ -0,0 +1,71 @@ +# color_theme = "/usr/share/btop/themes/everforest-dark-medium.theme" +color_theme = "/usr/share/btop/themes/gruvbox_dark.theme" +theme_background = False +presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty" +vim_keys = True +rounded_corners = False +graph_symbol = "braille" +graph_symbol_cpu = "braille" +graph_symbol_gpu = "default" +graph_symbol_mem = "default" +graph_symbol_net = "default" +graph_symbol_proc = "default" +shown_boxes = "mem net proc cpu" +update_ms = 1000 +proc_sorting = "memory" +proc_reversed = False +proc_tree = False +proc_colors = True +proc_gradient = True +proc_per_core = False +proc_mem_bytes = True +proc_cpu_graphs = True +proc_info_smaps = False +proc_left = False +proc_filter_kernel = True +proc_aggregate = False +cpu_graph_upper = "Auto" +cpu_graph_lower = "Auto" +show_gpu_info = "Auto" +cpu_invert_lower = True +cpu_single_graph = True +cpu_bottom = False +show_uptime = True +check_temp = True +cpu_sensor = "Auto" +show_coretemp = True +cpu_core_map = "" +temp_scale = "celsius" +base_10_sizes = False +show_cpu_freq = True +clock_format = "%X" +background_update = True +custom_cpu_name = "" +disks_filter = "" +mem_graphs = False +mem_below_net = False +zfs_arc_cached = True +show_swap = True +swap_disk = True +show_disks = True +only_physical = True +use_fstab = True +zfs_hide_datasets = False +disk_free_priv = False +show_io_stat = True +io_mode = False +io_graph_combined = False +io_graph_speeds = "" +net_download = 100 +net_upload = 100 +net_auto = True +net_sync = True +net_iface = "" +base_10_bitrate = "Auto" +show_battery = True +selected_battery = "Auto" +show_battery_watts = True +log_level = "WARNING" +nvml_measure_pcie_speeds = True +rsmi_measure_pcie_speeds = True +gpu_mirror_graph = False diff --git a/.config/fastfetch/config.jsonc b/.config/fastfetch/config.jsonc new file mode 100644 index 0000000..ee32148 --- /dev/null +++ b/.config/fastfetch/config.jsonc @@ -0,0 +1,71 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "type": "small", + "padding": { + "top": 1 + }, + "color": { + "1": "blue" + } + }, + "display": { + "percent": { + "type": 0 + } + }, + "modules": [ + { + "type": "os", + "key": "os", + "keyColor": "blue" + }, + { + "type": "kernel", + "key": "kernel", + "keyColor": "blue" + }, + { + "type": "uptime", + "key": "up", + "keyColor": "blue" + }, + { + "type": "packages", + "key": "pkgs", + "keyColor": "blue" + }, + { + "type": "shell", + "key": "sh", + "keyColor": "blue" + }, + { + "type": "terminal", + "key": "term", + "keyColor": "blue" + }, + { + "type": "wm", + "key": "wm", + "keyColor": "blue" + }, + { + "type": "cpu", + "key": "cpu", + "keyColor": "blue" + }, + { + "type": "gpu", + "key": "gpu", + "keyColor": "blue", + "hideType": "unknown" + }, + { + "type": "memory", + "key": "ram", + "keyColor": "blue" + }, + "break" + ] +} diff --git a/.config/fnott/fnott.ini b/.config/fnott/fnott.ini new file mode 100644 index 0000000..63748c8 --- /dev/null +++ b/.config/fnott/fnott.ini @@ -0,0 +1,26 @@ +layer=overlay + +max-width=300 +min-width=300 +max-icon-size=32 + +background=282828FF +border-color=3c3836FF +border-size=2 + +title-font=monospace:size=14 +title-color=ebdbb2FF +title-format= +summary-font=monospace:size=14 +summary-color=ebdbb2FF +body-font=monospace:size=14 +body-color=ebdbb2FF + +progress-bar-color=d3869bFF + +default-timeout=5 +idle-timeout=120 + +[critical] +border-color=fb4934FF +default-timeout=15 diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf new file mode 100644 index 0000000..e124e5a --- /dev/null +++ b/.config/fontconfig/fonts.conf @@ -0,0 +1,40 @@ + + + + + serif + + Source Serif 4 + Noto Color Emoji + FontAwesome + SymbolsNerdFont Propo + + + + sans-serif + + Source Sans 3 + Noto Color Emoji + FontAwesome + SymbolsNerdFont Propo + + + + sans + + Source Sans 3 + Noto Color Emoji + FontAwesome + SymbolsNerdFont Propo + + + + monospace + + Source Code Pro + Noto Color Emoji + FontAwesome + SymbolsNerdFont Propo + + + diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini new file mode 100644 index 0000000..36a4d99 --- /dev/null +++ b/.config/foot/foot.ini @@ -0,0 +1,46 @@ +[main] +include=/usr/share/foot/themes/gruvbox-dark +font=monospace:size=14 +font-size-adjustment=3 +gamma-correct-blending=false +resize-by-cells=false +initial-window-size-chars=80x24 + +# [cursor] +# style=beam + +#[mouse] +#hide-when-typing=true + +# [colors] +# alpha = 0.9 +#foreground=d3c6aa +#background=2b3339 +# +#regular0=374247 +#bright0=404c51 +#regular1=e67e80 +#bright1=e67e80 +#regular2=a7c080 +#bright2=a7c080 +#regular3=dbbc7f +#bright3=dbbc7f +#regular4=7fbbb3 +#bright4=7fbbb3 +#regular5=d699b6 +#bright5=d699b6 +#regular6=83c092 +#bright6=83c092 +#regular7=859289 +#bright7=9da9a0 + +[key-bindings] +clipboard-copy=Mod1+c +clipboard-paste=Mod1+v +scrollback-up-line=Mod1+k +scrollback-down-line=Mod1+j +font-increase=Mod1+Shift+k +font-decrease=Mod1+Shift+j +font-reset=Mod1+0 +show-urls-launch=Mod1+l +show-urls-copy=Mod1+y diff --git a/.config/k9s/skins/catppuccin-mocha-transparent.yaml b/.config/k9s/skins/catppuccin-mocha-transparent.yaml new file mode 100644 index 0000000..44df98c --- /dev/null +++ b/.config/k9s/skins/catppuccin-mocha-transparent.yaml @@ -0,0 +1,100 @@ +k9s: + body: + fgColor: '#cdd6f4' + bgColor: default + logoColor: '#cba6f7' + prompt: + fgColor: '#cdd6f4' + bgColor: default + suggestColor: '#89b4fa' + help: + fgColor: '#cdd6f4' + bgColor: default + sectionColor: '#a6e3a1' + keyColor: '#89b4fa' + numKeyColor: '#eba0ac' + frame: + title: + fgColor: '#94e2d5' + bgColor: default + highlightColor: '#f5c2e7' + counterColor: '#f9e2af' + filterColor: '#a6e3a1' + border: + fgColor: '#cba6f7' + focusColor: '#b4befe' + menu: + fgColor: '#cdd6f4' + keyColor: '#89b4fa' + numKeyColor: '#eba0ac' + crumbs: + fgColor: '#1e1e2e' + bgColor: default + activeColor: '#f2cdcd' + status: + newColor: '#89b4fa' + modifyColor: '#b4befe' + addColor: '#a6e3a1' + pendingColor: '#fab387' + errorColor: '#f38ba8' + highlightColor: '#89dceb' + killColor: '#cba6f7' + completedColor: '#6c7086' + info: + fgColor: '#fab387' + sectionColor: '#cdd6f4' + views: + table: + fgColor: '#cdd6f4' + bgColor: default + cursorFgColor: '#313244' + cursorBgColor: '#45475a' + markColor: '#f5e0dc' + header: + fgColor: '#f9e2af' + bgColor: default + sorterColor: '#89dceb' + xray: + fgColor: '#cdd6f4' + bgColor: default + cursorColor: '#45475a' + cursorTextColor: '#1e1e2e' + graphicColor: '#f5c2e7' + charts: + bgColor: default + chartBgColor: default + dialBgColor: default + defaultDialColors: + - '#a6e3a1' + - '#f38ba8' + defaultChartColors: + - '#a6e3a1' + - '#f38ba8' + resourceColors: + cpu: + - '#cba6f7' + - '#89b4fa' + mem: + - '#f9e2af' + - '#fab387' + yaml: + keyColor: '#89b4fa' + valueColor: '#cdd6f4' + colonColor: '#a6adc8' + logs: + fgColor: '#cdd6f4' + bgColor: default + indicator: + fgColor: '#b4befe' + bgColor: default + toggleOnColor: '#a6e3a1' + toggleOffColor: '#a6adc8' + dialog: + fgColor: '#f9e2af' + bgColor: default + buttonFgColor: '#1e1e2e' + buttonBgColor: default + buttonFocusFgColor: '#1e1e2e' + buttonFocusBgColor: '#f5c2e7' + labelFgColor: '#f5e0dc' + fieldFgColor: '#cdd6f4' diff --git a/.config/k9s/skins/everforest-dark.yaml b/.config/k9s/skins/everforest-dark.yaml new file mode 100644 index 0000000..5f29193 --- /dev/null +++ b/.config/k9s/skins/everforest-dark.yaml @@ -0,0 +1,114 @@ +# ----------------------------------------------------------------------------- +# Everforest Dark +# https://github.com/sainnhe/everforest/blob/master/palette.md#dark +# ----------------------------------------------------------------------------- +# +text: &text "#d3c6aa" +base: &base "#1e2326" +overlay: &overlay "#2e383c" +muted: &muted "#495156" +red: &red "#e67e80" +blue: &blue "#7fbbb3" +yellow: &yellow "#dbbc7f" +green: &green "#83c092" +pink: &pink "#d699b6" +orange: &orange "#e69875" + +# Skin... +k9s: + # General K9s styles + body: + fgColor: *text + bgColor: *base + logoColor: *green + # Command prompt styles + prompt: + fgColor: *text + bgColor: *base + suggestColor: *green + border: + command: *orange + default: *blue + # ClusterInfoView styles. + info: + fgColor: *green + sectionColor: *text + # Dialog styles. + dialog: + fgColor: *text + bgColor: *base + buttonFgColor: *text + buttonBgColor: *green + buttonFocusFgColor: *yellow + buttonFocusBgColor: *green + labelFgColor: *yellow + fieldFgColor: *text + frame: + # Borders styles. + border: + fgColor: *overlay + focusColor: *overlay + menu: + fgColor: *text + keyColor: *green + # Used for favorite namespaces + numKeyColor: *green + # CrumbView attributes for history navigation. + crumbs: + fgColor: *text + bgColor: *overlay + activeColor: *overlay + # Resource status and update styles + status: + newColor: *green + modifyColor: *red + addColor: *blue + errorColor: *pink + highlightcolor: *yellow + killColor: *muted + completedColor: *muted + # Border title styles. + title: + fgColor: *text + bgColor: *overlay + highlightColor: *yellow + counterColor: *green + filterColor: *green + views: + # Charts skins... + charts: + bgColor: default + defaultDialColors: + - *green + - *pink + defaultChartColors: + - *green + - *pink + # TableView attributes. + table: + fgColor: *text + bgColor: *base + # Header row styles. + header: + fgColor: *text + bgColor: *base + sorterColor: *red + # Xray view attributes. + xray: + fgColor: *text + bgColor: *base + cursorColor: *overlay + graphicColor: *green + showIcons: false + # YAML info styles. + yaml: + keyColor: *green + colonColor: *green + valueColor: *text + # Logs styles. + logs: + fgColor: *text + bgColor: *base + indicator: + fgColor: *text + bgColor: *base diff --git a/.config/k9s/skins/gruvbox.yaml b/.config/k9s/skins/gruvbox.yaml new file mode 100644 index 0000000..d3bd8e4 --- /dev/null +++ b/.config/k9s/skins/gruvbox.yaml @@ -0,0 +1,105 @@ +# ----------------------------------------------------------------------------- +# K9s Gruvbox Dark Skin +# Author: [@indiebrain](https://github.com/indiebrain) +# ----------------------------------------------------------------------------- + +# Styles... +foreground: &foreground "#ebdbb2" +background: &background "#272727" +current_line: ¤t_line "#ebdbb2" +selection: &selection "#3c3735" +comment: &comment "#bdad93" +cyan: &cyan "#689d69" +green: &green "#989719" +orange: &orange "#d79920" +magenta: &magenta "#b16185" +blue: &blue "#448488" +red: &red "#cc231c" + +k9s: + body: + fgColor: *foreground + bgColor: *background + logoColor: *blue + prompt: + fgColor: *foreground + bgColor: *background + suggestColor: *orange + info: + fgColor: *magenta + sectionColor: *foreground + help: + fgColor: *foreground + bgColor: *background + keyColor: *magenta + numKeyColor: *blue + sectionColor: *green + dialog: + fgColor: *foreground + bgColor: *background + buttonFgColor: *foreground + buttonBgColor: *magenta + buttonFocusFgColor: white + buttonFocusBgColor: *cyan + labelFgColor: *orange + fieldFgColor: *foreground + frame: + border: + fgColor: *selection + focusColor: *current_line + menu: + fgColor: *foreground + keyColor: *magenta + numKeyColor: *magenta + crumbs: + fgColor: *foreground + bgColor: *comment + activeColor: *blue + status: + newColor: *cyan + modifyColor: *blue + addColor: *green + errorColor: *red + highlightColor: *orange + killColor: *comment + completedColor: *comment + title: + fgColor: *foreground + bgColor: *background + highlightColor: *orange + counterColor: *blue + filterColor: *magenta + views: + charts: + bgColor: background + defaultDialColors: + - *blue + - *red + defaultChartColors: + - *blue + - *red + table: + fgColor: *foreground + bgColor: *background + cursorFgColor: "#fff" + cursorBgColor: *current_line + header: + fgColor: *foreground + bgColor: *background + sorterColor: *selection + xray: + fgColor: *foreground + bgColor: *background + cursorColor: *current_line + graphicColor: *blue + showIcons: false + yaml: + keyColor: *magenta + colonColor: *blue + valueColor: *foreground + logs: + fgColor: *foreground + bgColor: *background + indicator: + fgColor: *foreground + bgColor: *background diff --git a/.config/k9s/skins/nord.yaml b/.config/k9s/skins/nord.yaml new file mode 100644 index 0000000..eb498b5 --- /dev/null +++ b/.config/k9s/skins/nord.yaml @@ -0,0 +1,120 @@ +# ----------------------------------------------------------------------------- +# Nord skin +# ----------------------------------------------------------------------------- + +# Styles... +foreground: &foreground "#DADEE8" +background: &background "#30343F" +current_line: ¤t_line "#383D4A" +selection: &selection "#D9DEE8" +comment: &comment "#8891A7" +cyan: &cyan "#88C0D0" +green: &green "#A3BE8C" +orange: &orange "#D08770" +blue: &blue "#81A1C1" +magenta: &magenta "#B48EAD" +red: &red "#BF616A" +yellow: &yellow "#EBCB8B" + +# Skin... +k9s: + # General K9s styles + body: + fgColor: *foreground + bgColor: default + logoColor: *magenta + # Command prompt styles + prompt: + fgColor: *foreground + bgColor: *background + suggestColor: *orange + # ClusterInfoView styles. + info: + fgColor: *blue + sectionColor: *foreground + # Dialog styles. + dialog: + fgColor: *foreground + bgColor: default + buttonFgColor: *foreground + buttonBgColor: *magenta + buttonFocusFgColor: *yellow + buttonFocusBgColor: *blue + labelFgColor: *orange + fieldFgColor: *foreground + frame: + # Borders styles. + border: + fgColor: *selection + focusColor: *current_line + menu: + fgColor: *foreground + keyColor: *blue + # Used for favorite namespaces + numKeyColor: *blue + # CrumbView attributes for history navigation. + crumbs: + fgColor: *foreground + bgColor: *current_line + activeColor: *current_line + # Resource status and update styles + status: + newColor: *cyan + modifyColor: *magenta + addColor: *green + errorColor: *red + highlightColor: *orange + killColor: *comment + completedColor: *comment + # Border title styles. + title: + fgColor: *foreground + bgColor: *current_line + highlightColor: *orange + counterColor: *magenta + filterColor: *blue + views: + # Charts skins... + charts: + bgColor: default + defaultDialColors: + - *magenta + - *red + defaultChartColors: + - *magenta + - *red + # TableView attributes. + table: + fgColor: *foreground + bgColor: default + # Header row styles. + header: + fgColor: *foreground + bgColor: default + sorterColor: *cyan + # Xray view attributes. + xray: + fgColor: *foreground + bgColor: default + cursorColor: *current_line + graphicColor: *magenta + showIcons: false + # YAML info styles. + yaml: + keyColor: *blue + colonColor: *magenta + valueColor: *foreground + # Logs styles. + logs: + fgColor: *foreground + bgColor: default + indicator: + fgColor: *foreground + bgColor: *magenta + toggleOnColor: *magenta + toggleOffColor: *blue + help: + fgColor: *foreground + bgColor: *background + indicator: + fgColor: *red diff --git a/.config/lazygit/config.yml b/.config/lazygit/config.yml new file mode 100644 index 0000000..380f458 --- /dev/null +++ b/.config/lazygit/config.yml @@ -0,0 +1,11 @@ +git: + paging: + colorArg: always + pager: delta --dark --paging=never +keybinding: + universal: + nextBlock-alt2: + nextTab: + prevTab: +gui: + border: single diff --git a/.config/lazygit/themes.gitconfig b/.config/lazygit/themes.gitconfig new file mode 100644 index 0000000..d1b65e6 --- /dev/null +++ b/.config/lazygit/themes.gitconfig @@ -0,0 +1,667 @@ +# To use these themes, first include this file in your own gitconfig file: +# +# [include] +# path = PATH/TO/delta/themes.gitconfig +# +# Then, in your own gitconfig file, activate the chosen theme, e.g. +# +# [delta] +# features = kingfisher +# +# Please add your own themes to this file, and open a PR. +# +# Instructions: +# +# 1. The name of the theme must be the name of some sort of wild organism: +# mammal, bird, plant, mollusk -- whatever. It can be in any language. +# +# 2. Use `delta --show-config` to list all the style settings that are active in +# your current delta environment, but only include settings in your theme +# that are essential to its appearance. +# +# 3. Include either `dark = true` or `light = true` according to whether it is +# designed for a light or dark terminal background. (This marks a feature as +# a "theme", causing it to be picked up by `delta --show-themes`). +# +# 4. Feel free to include a comment line indicating who is the author of the +# theme. E.g. a link to your github user page. + +[delta "colibri"] + # author: https://github.com/pablospe + # Based on woolly-mammoth: https://github.com/Kr1ss-XD. + commit-decoration-style = 130 box + dark = true + file-decoration-style = "#606018" overline + file-added-label = [●] + file-copied-label = [C] + file-modified-label = [+] + file-removed-label = [⛌] + file-renamed-label = [→] + file-style = 232 bold 184 + hunk-header-style = syntax bold italic 237 + line-numbers = true + line-numbers-left-format = "{nm:>1}┊" + line-numbers-left-style = red + line-numbers-minus-style = red bold + line-numbers-plus-style = green bold + line-numbers-right-format = " {np:>1}┊" + line-numbers-right-style = green + line-numbers-zero-style = "#545474" italic + minus-emph-style = normal "#80002a" + minus-style = normal "#5e0000" + plus-emph-style = syntax bold "#007e5e" + plus-style = syntax "#003500" + syntax-theme = OneHalfDark + whitespace-error-style = "#80002a" reverse + zero-style = syntax + blame-format = "{author:<18} ({commit:>7}) ┊{timestamp:^16}┊ " + +[delta "collared-trogon"] + # author: https://github.com/clnoll + commit-decoration-style = bold box ul + dark = true + file-decoration-style = none + file-style = omit + hunk-header-decoration-style = "#022b45" box ul + hunk-header-file-style = "#999999" + hunk-header-line-number-style = bold "#003300" + hunk-header-style = file line-number syntax + line-numbers = true + line-numbers-left-style = "#022b45" + line-numbers-minus-style = "#80002a" + line-numbers-plus-style = "#003300" + line-numbers-right-style = "#022b45" + line-numbers-zero-style = "#999999" + minus-emph-style = normal "#80002a" + minus-style = normal "#330011" + plus-emph-style = syntax "#003300" + plus-style = syntax "#001a00" + syntax-theme = Nord + +[delta "coracias-caudatus"] + # author: https://github.com/clnoll + commit-decoration-style = ol "#7536ff" + commit-style = "#200078" + file-decoration-style = none + file-style = omit + hunk-header-decoration-style = "#cfd6ff" ul + hunk-header-file-style = "#858dff" + hunk-header-line-number-style = "#7536ff" + hunk-header-style = file line-number syntax + light = true + line-numbers = true + line-numbers-left-format = "{nm:>4} ." + line-numbers-left-style = "#e3ab02" + line-numbers-minus-style = "#ff38b6" + line-numbers-plus-style = "#00e0c2" + line-numbers-right-format = "{np:>4} " + line-numbers-right-style = white + line-numbers-zero-style = "#cccccc" + minus-emph-style = bold "#ff3838" "#ffe3f7" + minus-style = "#ff0080" + plus-emph-style = "#008a81" bold "#00ffbf" + plus-style = syntax "#cffff3" + syntax-theme = GitHub + +[delta "hoopoe"] + # author: https://github.com/dandavison + light = true + pink = "#ffe0e0" + dark-pink = "#ffc0c0" + green = "#d0ffd0" + dark-green = "#a0efa0" + dark-green-2 = "#067a00" + minus-style = normal hoopoe.pink + minus-emph-style = normal hoopoe.dark-pink + minus-non-emph-style = minus-style + plus-style = syntax hoopoe.green + plus-emph-style = syntax hoopoe.dark-green + plus-non-emph-style = plus-style + minus-empty-line-marker-style = minus-style + plus-empty-line-marker-style = plus-style + commit-decoration-style = blue ol + commit-style = raw + file-style = omit + hunk-header-decoration-style = blue box + hunk-header-file-style = red + hunk-header-line-number-style = hoopoe.dark-green-2 + hunk-header-style = file line-number syntax + syntax-theme = GitHub + zero-style = syntax + +[delta "tangara-chilensis"] + # author: https://github.com/clnoll + commit-decoration-style = bold box ul "#34fd50" + dark = true + file-decoration-style = none + file-style = omit + hunk-header-decoration-style = "#00b494" box ul + hunk-header-file-style = "#999999" + hunk-header-line-number-style = bold "#03a4ff" + hunk-header-style = file line-number syntax + line-numbers = true + line-numbers-left-style = black + line-numbers-minus-style = "#B10036" + line-numbers-plus-style = "#03a4ff" + line-numbers-right-style = black + line-numbers-zero-style = "#999999" + minus-emph-style = normal "#de004e" + minus-style = normal "#990017" + plus-emph-style = syntax "#03a4ff" + plus-style = syntax "#450eff" + side-by-side = true + syntax-theme = Vibrant Sunburst + +[delta "villsau"] + # author: https://github.com/torarnv + dark = true + file-style = omit + hunk-header-decoration-style = omit + hunk-header-file-style = magenta + hunk-header-line-number-style = dim magenta + hunk-header-style = file line-number syntax + line-numbers = false + minus-emph-style = bold red 52 + minus-empty-line-marker-style = normal "#3f0001" + minus-non-emph-style = dim red + minus-style = bold red + plus-emph-style = bold green 22 + plus-empty-line-marker-style = normal "#002800" + plus-non-emph-style = dim green + plus-style = bold green + syntax-theme = OneHalfDark + whitespace-error-style = reverse red + zero-style = dim syntax + +[delta "woolly-mammoth"] + # author: https://github.com/Kr1ss-XD + commit-decoration-style = 232 130 box + commit-style = 232 bold italic 130 + dark = true + file-added-label = [+] + file-copied-label = [C] + file-decoration-style = "#606018" overline + file-modified-label = [M] + file-removed-label = [-] + file-renamed-label = [R] + file-style = 232 bold 184 + hunk-header-decoration-style = none + hunk-header-style = syntax bold italic 237 + line-numbers = true + line-numbers-left-format = "{nm:>1}┊" + line-numbers-left-style = red + line-numbers-minus-style = red italic black + line-numbers-plus-style = green italic black + line-numbers-right-format = "{np:>1}┊" + line-numbers-right-style = green + line-numbers-zero-style = "#545474" italic + minus-emph-style = syntax bold "#780000" + minus-style = syntax "#400000" + plus-emph-style = syntax bold "#007800" + plus-style = syntax "#004000" + syntax-theme = Vibrant Sunburst + whitespace-error-style = "#280050" reverse + zero-style = syntax + blame-format = "{author:<18} ({commit:>7}) ┊{timestamp:^16}┊ " + blame-palette = "#101010 #200020 #002800 #000028 #202000 #280000 #002020 #002800 #202020" + +[delta "calochortus-lyallii"] + # author: https://github.com/manojkarthick + commit-decoration-style = none + dark = true + file-added-label = [+] + file-copied-label = [C] + file-decoration-style = none + file-modified-label = [M] + file-removed-label = [-] + file-renamed-label = [R] + file-style = 232 bold 184 + hunk-header-decoration-style = none + hunk-header-file-style = "#999999" + hunk-header-line-number-style = bold "#03a4ff" + hunk-header-style = file line-number syntax + line-numbers = true + line-numbers-left-style = black + line-numbers-minus-style = "#B10036" + line-numbers-plus-style = "#03a4ff" + line-numbers-right-style = black + line-numbers-zero-style = "#999999" + minus-emph-style = syntax bold "#780000" + minus-style = syntax "#400000" + plus-emph-style = syntax bold "#007800" + plus-style = syntax "#004000" + whitespace-error-style = "#280050" reverse + zero-style = syntax + syntax-theme = Nord + +[delta "mantis-shrimp"] + #author: https://github.com/2kabhishek + dark = true + side-by-side = true + keep-plus-minus-markers = true + hyperlinks = true + file-added-label = [+] + file-copied-label = [==] + file-modified-label = [*] + file-removed-label = [-] + file-renamed-label = [->] + file-style = omit + zero-style = syntax + syntax-theme = Monokai Extended + commit-decoration-style ="#11ce16" box + commit-style = "#ffd21a" bold italic + hunk-header-decoration-style = "#1688f0" box ul + hunk-header-file-style = "#c63bee" ul bold + hunk-header-line-number-style = "#ffd21a" box bold + hunk-header-style = file line-number syntax bold italic + line-numbers = true + line-numbers-left-format = "{nm:>1}|" + line-numbers-left-style = "#1688f0" + line-numbers-minus-style = "#ff0051" bold + line-numbers-plus-style = "#03e57f" bold + line-numbers-right-format = "{np:>1}|" + line-numbers-right-style = "#1688f0" + line-numbers-zero-style = "#aaaaaa" italic + minus-emph-style = syntax bold "#b80000" + minus-style = syntax "#5d001e" + plus-emph-style = syntax bold "#007800" + plus-style = syntax "#004433" + whitespace-error-style = "#280050" + +[delta "mantis-shrimp-lite"] + #author: https://github.com/2kabhishek + dark = true + side-by-side = true + keep-plus-minus-markers = true + file-added-label = [+] + file-copied-label = [==] + file-modified-label = [*] + file-removed-label = [-] + file-renamed-label = [->] + file-style = omit + zero-style = syntax + syntax-theme = Monokai Extended + commit-decoration-style = green box + commit-style = yellow bold italic + hunk-header-decoration-style = blue box ul + hunk-header-file-style = purple ul bold + hunk-header-line-number-style = yellow box bold + hunk-header-style = file line-number syntax bold italic + line-numbers = true + line-numbers-left-format = "{nm:>1}|" + line-numbers-left-style = blue + line-numbers-minus-style = red bold + line-numbers-plus-style = green bold + line-numbers-right-format = "{np:>1}|" + line-numbers-right-style = blue + line-numbers-zero-style = white italic + minus-emph-style = syntax bold red + plus-emph-style = syntax bold green + whitespace-error-style = purple bold + +[delta "zebra-dark"] + minus-style = syntax "#330f0f" + minus-emph-style = syntax "#4f1917" + plus-style = syntax "#0e2f19" + plus-emph-style = syntax "#174525" + map-styles = \ + bold purple => syntax "#330f29", \ + bold blue => syntax "#271344", \ + bold cyan => syntax "#0d3531", \ + bold yellow => syntax "#222f14" + zero-style = syntax + whitespace-error-style = "#aaaaaa" + +[delta "zebra-light"] + minus-style = syntax "#fbdada" + minus-emph-style = syntax "#f6b6b6" + plus-style = syntax "#d6ffd6" + plus-emph-style = syntax "#adffad" + map-styles = \ + bold purple => syntax "#feecf7", \ + bold blue => syntax "#e5dff6", \ + bold cyan => syntax "#d8fdf6", \ + bold yellow => syntax "#f4ffe0" + zero-style = syntax + whitespace-error-style = "#aaaaaa" + +[delta "chameleon"] + #author: https://github.com/AirOnSkin + dark = true + line-numbers = true + side-by-side = true + keep-plus-minus-markers = false + syntax-theme = Nord + file-style = "#434C5E" bold + file-decoration-style = "#434C5E" ul + file-added-label = [+] + file-copied-label = [==] + file-modified-label = [*] + file-removed-label = [-] + file-renamed-label = [->] + hunk-header-style = omit + line-numbers-left-format = " {nm:>3} │" + line-numbers-left-style = red + line-numbers-right-format = " {np:>3} │" + line-numbers-right-style = green + line-numbers-minus-style = red italic black + line-numbers-plus-style = green italic black + line-numbers-zero-style = "#434C5E" italic + minus-style = bold red + minus-emph-style = bold "#202020" "#FF5555" + minus-non-emph-style = bold + plus-style = bold green + plus-emph-style = bold "#202020" "#50FA7B" + plus-non-emph-style = bold + zero-style = syntax + blame-code-style = syntax + blame-format = "{author:<18} ({commit:>9}) {timestamp:^16}" + blame-palette = "#2E3440" "#3B4252" "#434C5E" "#4C566A" + merge-conflict-begin-symbol = ~ + merge-conflict-end-symbol = ~ + merge-conflict-ours-diff-header-style = "#F1FA8C" bold + merge-conflict-ours-diff-header-decoration-style = "#434C5E" box + merge-conflict-theirs-diff-header-style = "#F1FA8C" bold + merge-conflict-theirs-diff-header-decoration-style = "#434C5E" box + +[delta "gruvmax-fang"] + # author: https://github.com/maxfangx + # General appearance + dark = true + syntax-theme = gruvbox-dark + # File + file-style = "#FFFFFF" bold + file-added-label = [+] + file-copied-label = [==] + file-modified-label = [*] + file-removed-label = [-] + file-renamed-label = [->] + file-decoration-style = "#434C5E" ul + file-decoration-style = "#84786A" ul + # No hunk headers + hunk-header-style = omit + # Line numbers + line-numbers = true + line-numbers-left-style = "#84786A" + line-numbers-right-style = "#84786A" + line-numbers-minus-style = "#A02A11" + line-numbers-plus-style = "#479B36" + line-numbers-zero-style = "#84786A" + line-numbers-left-format = " {nm:>3} │" + line-numbers-right-format = " {np:>3} │" + # Diff contents + inline-hint-style = syntax + minus-style = syntax "#330011" + minus-emph-style = syntax "#80002a" + minus-non-emph-style = syntax auto + plus-style = syntax "#001a00" + plus-emph-style = syntax "#003300" + plus-non-emph-style = syntax auto + whitespace-error-style = "#FB4934" reverse + # Commit hash + commit-decoration-style = normal box + commit-style = "#ffffff" bold + # Blame + blame-code-style = syntax + blame-format = "{author:>18} ({commit:>8}) {timestamp:<13} " + blame-palette = "#000000" "#1d2021" "#282828" "#3c3836" + # Merge conflicts + merge-conflict-begin-symbol = ⌃ + merge-conflict-end-symbol = ⌄ + merge-conflict-ours-diff-header-style = "#FABD2F" bold + merge-conflict-theirs-diff-header-style = "#FABD2F" bold overline + merge-conflict-ours-diff-header-decoration-style = '' + merge-conflict-theirs-diff-header-decoration-style = '' + +[delta "discord"] + commit-style = omit + file-style = 34 ul + file-decoration-style = none + hunk-header-style = omit + minus-style = 31 + minus-non-emph-style = 31 + minus-emph-style = 40 + minus-empty-line-marker-style = 31 + zero-style = 30 + plus-style = 32 + plus-non-emph-style = 32 + plus-emph-style = 40 + grep-file-style = 34 + grep-line-number-style = 34 + whitespace-error-style = 41 + blame-code-style = omit + true-color = never + file-modified-label = changed: + right-arrow = > + hyperlinks = false + keep-plus-minus-markers = true + diff-stat-align-width = 10 + syntax-theme = none + width = variable + +[delta "mellow-barbet"] + # author: https://github.com/kvrohit + # To configure terminal colors see https://github.com/kvrohit/mellow.nvim#terminals + dark = true + syntax-theme = base16 + line-numbers = true + side-by-side = true + file-style = brightwhite + file-decoration-style = none + file-added-label = [+] + file-copied-label = [==] + file-modified-label = [*] + file-removed-label = [-] + file-renamed-label = [->] + hunk-header-decoration-style = "#3e3e43" box ul + plus-style = brightgreen black + plus-emph-style = black green + minus-style = brightred black + minus-emph-style = black red + line-numbers-minus-style = brightred + line-numbers-plus-style = brightgreen + line-numbers-left-style = "#3e3e43" + line-numbers-right-style = "#3e3e43" + line-numbers-zero-style = "#57575f" + zero-style = syntax + whitespace-error-style = black bold + blame-code-style = syntax + blame-palette = "#161617" "#1b1b1d" "#2a2a2d" "#3e3e43" + merge-conflict-begin-symbol = ~ + merge-conflict-end-symbol = ~ + merge-conflict-ours-diff-header-style = yellow bold + merge-conflict-ours-diff-header-decoration-style = "#3e3e43" box + merge-conflict-theirs-diff-header-style = yellow bold + merge-conflict-theirs-diff-header-decoration-style = "#3e3e43" box + +[delta "arctic-fox"] + # author: https://github.com/anthony-halim + dark = true + syntax-theme = Nord + file-added-label = [+] + file-copied-label = [==] + file-modified-label = [*] + file-removed-label = [-] + file-renamed-label = [->] + file-style = omit + hunk-header-decoration-style = "#5E81AC" ul + hunk-header-file-style = blue ul bold + hunk-header-line-number-style = yellow box bold + hunk-header-style = file line-number syntax bold italic + plus-style = brightgreen + plus-emph-style = black green + minus-style = brightred + minus-emph-style = black red + line-numbers = true + line-numbers-minus-style = brightred + line-numbers-plus-style = brightgreen + line-numbers-left-style = "#5E81AC" + line-numbers-right-style = "#5E81AC" + line-numbers-zero-style = "#4C566A" + zero-style = syntax + whitespace-error-style = black bold + blame-code-style = syntax + blame-format = "{author:<18} {commit:<6} {timestamp:<15}" + blame-palette = "#2E3440" "#3B4252" "#434C5E" + merge-conflict-begin-symbol = ~ + merge-conflict-end-symbol = ~ + merge-conflict-ours-diff-header-style = yellow bold + merge-conflict-ours-diff-header-decoration-style = "#5E81AC" box + merge-conflict-theirs-diff-header-style = yellow bold + merge-conflict-theirs-diff-header-decoration-style = "#5E81AC" box + +[delta "corvus"] + # author: https://github.com/evilwaveforms + dark = true + commit-style = "#949494" + file-style = omit + syntax-theme = none + hunk-header-decoration-style = "#949494" ul + hunk-header-file-style = "#949494" + hunk-header-style = "#949494" + line-numbers = true + line-numbers-left-style = "#949494" + line-numbers-right-style = "#949494" + line-numbers-left-format = "{nm:>2}|" + line-numbers-right-format = "{np:>3} " + line-numbers-plus-style = "#54c047" + line-numbers-minus-style = bold "#591102" + plus-style = "#54c047" + plus-emph-style = bold "#54c047" + plus-non-emph-style = dim "#54c047" + minus-style = normal "#591102" + minus-emph-style = normal "#591102" + minus-non-emph-style = bold "#591102" + blame-code-style = omit + blame-format = "{author:<18} {commit:<6} {timestamp:<15}" + blame-palette = "#000000" "#343434" + zero-style = dim + +[delta "platypus"] + # Author: https://github.com/sarpuser + dark = true + side-by-side = true + true-color = always + file-added-label = [+] + file-copied-label = [==] + file-modified-label = [M] + file-removed-label = [-] + file-renamed-label = [->] + file-style = "#ff9b00" ul bold + file-decoration-style = "#ea00ff" box ul + zero-style = syntax + syntax-theme = Solarized (dark) + commit-decoration-style ="#ea00ff" ul + hunk-header-decoration-style = omit + hunk-header-file-style = "#ff9b00" ul bold + hunk-header-line-number-style = "#ffd21a" bold + hunk-header-style = line-number syntax bold italic + line-numbers = true + line-numbers-left-format = "{nm:>1}|" + line-numbers-left-style = "#ea00ff" + line-numbers-minus-style = "#ff0051" bold + line-numbers-plus-style = "#1ac71e" bold + line-numbers-right-format = "{np:>1}|" + line-numbers-right-style = "#ea00ff" + line-numbers-zero-style = "#aaaaaa" italic + minus-emph-style = syntax bold "#b80000" + minus-style = syntax "#5d001e" + plus-emph-style = syntax bold "#1a861a" + plus-style = syntax "#2a5e37" + whitespace-error-style = "#280050" + wrap-max-lines = unlimited + wrap-right-percent = 1 + +[delta "weeping-willow"] + # See 'mirthful-willow' for light mode version. + # Heavily inspired by the themes above. Thank you. <3 + # author: https://github.com/lvdh + # colors: `pastel list` + dark = true + right-arrow = > + syntax-theme = Coldark-Dark + # -- git + blame-format = " ({commit:>7}) {author:<18} {timestamp:^13} " + blame-palette = "normal midnightblue indigo navy darkblue darkslateblue purple rebeccapurple darkviolet" + commit-decoration-style = none + commit-style = bold black orange + # -- grep + grep-file-style = olive + grep-line-number-style = olive + # -- diff + keep-plus-minus-markers = true + line-numbers = true + line-numbers-minus-style = red + line-numbers-plus-style = green + line-numbers-left-style = gray + line-numbers-left-format = "{nm:>1}┊" + line-numbers-right-style = gray + line-numbers-right-format = "{np:>1}┊" + line-numbers-zero-style = gray + minus-emph-style = ghostwhite crimson underline + minus-empty-line-marker-style = syntax maroon + minus-style = syntax darkred + plus-emph-style = ghostwhite olivedrab underline + plus-empty-line-marker-style = syntax seagreen + plus-style = syntax darkgreen + whitespace-error-style = black ghostwhite + zero-style = syntax + # -- decorations + file-decoration-style = olive overline + file-added-label = [+] + file-copied-label = [*] + file-modified-label = [~] + file-removed-label = [-] + file-renamed-label = [>] + file-style = orange bold + hunk-header-decoration-style = none + hunk-header-file-style = olive + hunk-header-line-number-style = orange + hunk-header-style = file line-number orchid + +[delta "mirthful-willow"] + # See 'weeping-willow' for dark mode version. + # Heavily inspired by the themes above. Thank you. <3 + # author: https://github.com/lvdh + # colors: `pastel list` + light = true + right-arrow = > + syntax-theme = Coldark-Cold + # -- git + blame-format = " ({commit:>7}) {author:<18} {timestamp:^13} " + blame-palette = "powderblue papayawhip thistle skyblue lavender plum paleturquoise lightcyan violet" + commit-decoration-style = none + commit-style = bold black orange + # -- grep + grep-file-style = darkgoldenrod + grep-line-number-style = darkgoldenrod + # -- diff + keep-plus-minus-markers = true + line-numbers = true + line-numbers-minus-style = red + line-numbers-plus-style = green + line-numbers-left-style = gray + line-numbers-left-format = "{nm:>1}┊" + line-numbers-right-style = gray + line-numbers-right-format = "{np:>1}┊" + line-numbers-zero-style = gray + minus-emph-style = ghostwhite tomato underline + minus-empty-line-marker-style = syntax orangered + minus-style = syntax lightpink + plus-emph-style = ghostwhite limegreen underline + plus-empty-line-marker-style = syntax forestgreen + plus-style = syntax lightgreen + whitespace-error-style = black ghostwhite + zero-style = syntax + # -- decorations + file-decoration-style = darkgoldenrod overline + file-added-label = [+] + file-copied-label = [*] + file-modified-label = [~] + file-removed-label = [-] + file-renamed-label = [>] + file-style = orange bold + hunk-header-decoration-style = none + hunk-header-file-style = darkgoldenrod + hunk-header-line-number-style = orange + hunk-header-style = file line-number darkviolet diff --git a/.config/mango/config.conf b/.config/mango/config.conf new file mode 100644 index 0000000..138b159 --- /dev/null +++ b/.config/mango/config.conf @@ -0,0 +1,281 @@ +# More option see https://github.com/DreamMaoMao/mango/wiki/ +# AUTOSTART +exec-once = dbus-update-activation-environment --all +exec-once = foot --server +exec-once = dwlb +exec-once = someblocks -b +exec-once = start-pipewire +exec-once = mpd +exec-once = fnott +exec-once = swayidle +exec-once = singboxwrap +exec-once = gpg-agent --daemon +exec-once = gnome-keyring-daemon --start --components=secrets +exec-once = portal +exec-once = stmpdup + +# MONITORS +monitorrule=DP-2, 0.55, 1, tile, 0,1,0,0,2560,1440,165 +monitorrule=DP-3, 0.55, 1, tile, 0,1.5,2560,0,3840,2160,165 + +# INPUT +accel_profile = 1 +# keyboard +numlockon=0 +xkb_rules_layout=us +xkb_rules_options=caps:escape +repeat_rate = 45 +repeat_delay = 300 + +windowrule=isterm:1,appid:footclient +windowrule=isfloating:1,width:1200,height:900,appid:termfilechooser + +# Window effect +blur=0 +blur_layer=0 +blur_optimized=1 +blur_params_num_passes = 2 +blur_params_radius = 5 +blur_params_noise = 0.02 +blur_params_brightness = 0.9 +blur_params_contrast = 0.9 +blur_params_saturation = 1.2 + +shadows = 0 +layer_shadows = 0 +shadow_only_floating = 1 +shadows_size = 10 +shadows_blur = 15 +shadows_position_x = 0 +shadows_position_y = 0 +shadowscolor= 0x000000ff + +border_radius=0 +no_radius_when_single=0 +focused_opacity=1.0 +unfocused_opacity=1.0 + +# Animation Configuration(support type:zoom,slide) +# tag_animation_direction: 0-horizontal,1-vertical +animations=0 +layer_animations=1 +animation_type_open=slide +animation_type_close=slide +animation_fade_in=1 +animation_fade_out=1 +tag_animation_direction=1 +zoom_initial_ratio=0.3 +zoom_end_ratio=0.8 +fadein_begin_opacity=0.5 +fadeout_begin_opacity=0.8 +animation_duration_move=500 +animation_duration_open=400 +animation_duration_tag=350 +animation_duration_close=800 +animation_duration_focus=0 +animation_curve_open=0.46,1.0,0.29,1 +animation_curve_move=0.46,1.0,0.29,1 +animation_curve_tag=0.46,1.0,0.29,1 +animation_curve_close=0.08,0.92,0,1 +animation_curve_focus=0.46,1.0,0.29,1 + +# Scroller Layout Setting +scroller_structs=20 +scroller_default_proportion=0.8 +scroller_focus_center=0 +scroller_prefer_center=0 +edge_scroller_pointer_focus=1 +scroller_default_proportion_single=1.0 +scroller_proportion_preset=0.5,0.8,1.0 + +# Master-Stack Layout Setting +new_is_master=1 +default_mfact=0.55 +default_nmaster=1 +smartgaps=0 + +# Overview Setting +hotarea_size=10 +enable_hotarea=1 +ov_tab_mode=0 +overviewgappi=5 +overviewgappo=30 + +# Misc +no_border_when_single=0 +axis_bind_apply_timeout=100 +focus_on_activate=1 +inhibit_regardless_of_visibility=0 +sloppyfocus=1 +warpcursor=0 +focus_cross_monitor=0 +focus_cross_tag=0 +enable_floating_snap=0 +snap_distance=30 +cursor_size=24 +drag_tile_to_tile=1 + + +# Trackpad +# need relogin to make it apply +disable_trackpad=0 +tap_to_click=1 +tap_and_drag=1 +drag_lock=1 +trackpad_natural_scrolling=0 +disable_while_typing=1 +left_handed=0 +middle_button_emulation=0 +swipe_min_threshold=1 + +# mouse +# need relogin to make it apply +mouse_natural_scrolling=0 + +# Appearance +gappih=0 +gappiv=0 +gappoh=0 +gappov=0 +scratchpad_width_ratio=0.8 +scratchpad_height_ratio=0.9 +borderpx=3 +rootcolor=0x201b14ff +bordercolor=0x444444ff +focuscolor=0xc9b890ff +maximizescreencolor=0x89aa61ff +urgentcolor=0xad401fff +scratchpadcolor=0x516c93ff +globalcolor=0xb153a7ff +overlaycolor=0x14a57cff + +# layout support: +# tile,scroller,grid,deck,monocle,center_tile,vertical_tile,vertical_scroller +tagrule=id:1,layout_name:tile +tagrule=id:2,layout_name:tile +tagrule=id:3,layout_name:tile +tagrule=id:4,layout_name:tile +tagrule=id:5,layout_name:tile +tagrule=id:6,layout_name:tile +tagrule=id:7,layout_name:tile +tagrule=id:8,layout_name:tile +tagrule=id:9,layout_name:tile + +# Key Bindings +# key name refer to `xev` or `wev` command output, +# mod keys name: super,ctrl,alt,shift,none + +bind=SUPER+SHIFT,R,spawn,$TERMINAL -e btop +bind=SUPER,d,spawn,mew-run +bind=SUPER+SHIFT,D,spawn,tessen +bind=SUPER,Return,spawn,$TERMINAL +bind=SUPER,w,spawn,$BROWSER +bind=SUPER,m,spawn,$TERMINAL -e rmpc +bind=SUPER,e,spawn,$TERMINAL -T neomutt -a neomutt -e neomutt +bind=SUPER,Tab,spawn,chooseprofile +bind=SUPER+Shift,Q,spawn,sysact +bind=SUPER,q,killclient, +# bind=NONE,Print,spawn,grim ~/pic-full-$(date '+%y%m%d-%H%M-%S').png +bind=SHIFT,Print,spawn,maimpick +bind=SUPER,Grave,spawn,bookmarks + +# switch window focus +bind=SUPER,h,resizewin,-50,+0 +bind=SUPER,j,focusstack,prev +bind=SUPER,k,focusstack,next +bind=SUPER,l,resizewin,+50,+0 + +# resizewin +bind=SUPER+SHIFT,K,resizewin,+0,-50 +bind=SUPER+SHIFT,J,resizewin,+50,+0 + +# swap window +bind=SUPER+SHIFT,Up,exchange_client,up +bind=SUPER+SHIFT,Down,exchange_client,down +bind=SUPER+SHIFT,Left,exchange_client,left +bind=SUPER+SHIFT,Right,exchange_client,right + +# switch window status +bind=SUPER,g,toggleglobal, +bind=ALT,Tab,toggleoverview, +bind=ALT,backslash,togglefloating, +bind=ALT,a,togglemaximizescreen, +bind=ALT,f,togglefullscreen, +bind=ALT+SHIFT,f,togglefakefullscreen, +bind=SUPER,i,minimized, +bind=SUPER,o,toggleoverlay, +bind=SUPER+SHIFT,I,restore_minimized +bind=ALT,z,toggle_scratchpad + +# scroller layout +bind=ALT,e,set_proportion,1.0 +bind=ALT,x,switch_proportion_preset, + +# switch layout +bind=SUPER,n,switch_layout + +# tag switch +bind=SUPER,Left,viewtoleft,0 +bind=CTRL,Left,viewtoleft_have_client,0 +bind=SUPER,Right,viewtoright,0 +bind=CTRL,Right,viewtoright_have_client,0 +bind=CTRL+SUPER,Left,tagtoleft,0 +bind=CTRL+SUPER,Right,tagtoright,0 + +bind=SUPER,1,view,1,0 +bind=SUPER,2,view,2,0 +bind=SUPER,3,view,3,0 +bind=SUPER,4,view,4,0 +bind=SUPER,5,view,5,0 +bind=SUPER,6,view,6,0 +bind=SUPER,7,view,7,0 +bind=SUPER,8,view,8,0 +bind=SUPER,9,view,9,0 + +# tag: move client to the tag and focus it +# tagsilent: move client to the tag and not focus it +# bind=Alt,1,tagsilent,1 +bind=SUPER+SHIFT,1,tag,1,0 +bind=SUPER+SHIFT,2,tag,2,0 +bind=SUPER+SHIFT,3,tag,3,0 +bind=SUPER+SHIFT,4,tag,4,0 +bind=SUPER+SHIFT,5,tag,5,0 +bind=SUPER+SHIFT,6,tag,6,0 +bind=SUPER+SHIFT,7,tag,7,0 +bind=SUPER+SHIFT,8,tag,8,0 +bind=SUPER+SHIFT,9,tag,9,0 + +# monitor switch +bind=alt+shift,Left,focusmon,left +bind=alt+shift,Right,focusmon,right +bind=SUPER+Alt,Left,tagmon,left +bind=SUPER+Alt,Right,tagmon,right + +# gaps +bind=ALT+SHIFT,X,incgaps,1 +bind=ALT+SHIFT,Z,incgaps,-1 +bind=ALT+SHIFT,R,togglegaps + +# movewin +bind=CTRL+SHIFT,Up,movewin,+0,-50 +bind=CTRL+SHIFT,Down,movewin,+0,+50 +bind=CTRL+SHIFT,Left,movewin,-50,+0 +bind=CTRL+SHIFT,Right,movewin,+50,+0 + + +# Mouse Button Bindings +# NONE mode key only work in ov mode +mousebind=SUPER,btn_left,moveresize,curmove +# mousebind=NONE,btn_middle,togglemaximizescreen,0 +mousebind=SUPER,btn_right,moveresize,curresize +mousebind=NONE,btn_left,toggleoverview,1 +mousebind=NONE,btn_right,killclient,0 + +# Axis Bindings +axisbind=SUPER,UP,viewtoleft_have_client +axisbind=SUPER,DOWN,viewtoright_have_client + + +# layer rule +layerrule=animation_type_open:zoom,layer_name:rofi +layerrule=animation_type_close:zoom,layer_name:rofi diff --git a/.config/mimeapps.list b/.config/mimeapps.list new file mode 100644 index 0000000..9124fce --- /dev/null +++ b/.config/mimeapps.list @@ -0,0 +1,20 @@ +[Default Applications] + +# xdg-open will use these settings to determine how to open filetypes. +# These .desktop entries can also be seen and changed in ~/.local/share/applications/ + +text/x-shellscript=text.desktop; +x-scheme-handler/magnet=torrent.desktop; +application/x-bittorrent=torrent.desktop; +x-scheme-handler/mailto=mail.desktop; +text/plain=text.desktop; +application/postscript=pdf.desktop; +application/pdf=pdf.desktop; +image/png=img.desktop; +image/jpeg=img.desktop; +image/gif=img.desktop; +application/rss+xml=rss.desktop +video/x-matroska=video.desktop +video/mp4=video.desktop +x-scheme-handler/lbry=lbry.desktop +inode/directory=file.desktop diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf new file mode 100644 index 0000000..5067671 --- /dev/null +++ b/.config/mpd/mpd.conf @@ -0,0 +1,19 @@ +music_directory "/mnt/ssd/music" +playlist_directory "~/.config/mpd/playlists" + +auto_update "yes" +bind_to_address "127.0.0.1" +restore_paused "yes" +max_output_buffer_size "16384" + +audio_output { + type "pipewire" + name "PipeWire Sound Server" +} + +audio_output { + type "fifo" + name "Visualizer feed" + path "/tmp/mpd.fifo" + format "44100:16:2" +} diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf new file mode 100644 index 0000000..d614b15 --- /dev/null +++ b/.config/mpv/input.conf @@ -0,0 +1,5 @@ +l seek 5 +h seek -5 +j seek -60 +k seek 60 +S cycle sub diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf new file mode 100644 index 0000000..2d3346a --- /dev/null +++ b/.config/mpv/mpv.conf @@ -0,0 +1,15 @@ +# uosc provides seeking & volume indicators (via flash-timeline and flash-volume commands) +# if you decide to use them, you don't need osd-bar +osd-bar=no + +# uosc will draw its own window controls and border if you disable window border +border=no + +profile=high-quality +vo=gpu-next +gpu-api=vulkan +gpu-context=waylandvk +hwdec=auto +target-colorspace-hint=yes +alang=eng +slang= diff --git a/.config/newsraft/config b/.config/newsraft/config new file mode 100644 index 0000000..ee7da16 --- /dev/null +++ b/.config/newsraft/config @@ -0,0 +1,11 @@ +open-in-browser-command linkhandler "%l" +#bind t exec qndl "%l" +#bind a exec "tsp yt-dlp --embed-metadata -xic -f bestaudio/best --restrict-filenames" +unbind d +unbind a +unbind A +unbind v +bind a mark-read; jump-to-next +bind A mark-unread; jump-to-next +bind v exec setsid -f mpv "%l" +bind d exec setsid -f dmenuhandler "%l" diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua new file mode 100644 index 0000000..51ebf0e --- /dev/null +++ b/.config/nvim/init.lua @@ -0,0 +1,173 @@ +vim.o.number = true +vim.o.relativenumber = true +vim.o.signcolumn = "yes" +vim.o.wrap = false +vim.o.tabstop = 2 +vim.o.shiftwidth = 2 +vim.o.softtabstop = 2 +vim.o.expandtab = true +vim.o.swapfile = false +vim.g.mapleader = " " +vim.o.clipboard = "unnamedplus" +vim.o.undofile = true +vim.o.cursorline = true +vim.o.cursorlineopt = "number" +vim.o.title = true +vim.opt.shortmess:append "sI" + +-- packages +vim.pack.add({ + -- { src = "https://github.com/sainnhe/everforest" }, + { src = "https://github.com/ellisonleao/gruvbox.nvim" }, + -- { src = "https://github.com/rmehri01/onenord.nvim" }, + { src = "https://github.com/mason-org/mason.nvim", }, + { src = "https://github.com/nvim-lualine/lualine.nvim" }, + { src = "https://github.com/lewis6991/gitsigns.nvim" }, + { src = "https://github.com/cappyzawa/trim.nvim" }, + { src = "https://github.com/nvim-treesitter/nvim-treesitter" }, + { src = "https://github.com/lukas-reineke/indent-blankline.nvim" }, + { src = "https://github.com/nvim-telescope/telescope.nvim" }, + { src = "https://github.com/nvim-telescope/telescope-ui-select.nvim" }, + { src = "https://github.com/nvim-lua/plenary.nvim" }, + { src = "https://github.com/hrsh7th/cmp-nvim-lsp" }, + { src = "https://github.com/hrsh7th/nvim-cmp" }, + { src = "https://github.com/L3MON4D3/LuaSnip" }, + { src = "https://github.com/saadparwaiz1/cmp_luasnip" }, + { src = "https://github.com/rafamadriz/friendly-snippets" }, + { src = "https://github.com/numToStr/Comment.nvim" }, +}) + +require("mason").setup() + +-- telescope +local telescope = require("telescope") +telescope.setup({ + defaults = { + preview = { treesitter = false }, + color_devicons = true, + sorting_strategy = "ascending", + borderchars = { + "─", -- top + "│", -- right + "─", -- bottom + "│", -- left + "┌", -- top-left + "┐", -- top-right + "┘", -- bottom-right + "└", -- bottom-left + }, + path_displays = { "smart" }, + layout_config = { + height = 100, + width = 400, + prompt_position = "top", + preview_cutoff = 40, + } + } +}) +telescope.load_extension("ui-select") +local builtin = require("telescope.builtin") + +-- binds +vim.keymap.set('n', 'lf', vim.lsp.buf.format) +vim.api.nvim_set_keymap('n', ',c', ':w! | !compiler "%:p"', { noremap = true, silent = true }) +vim.keymap.set({ "n" }, "f", builtin.find_files, { desc = "Telescope live grep" }) +vim.keymap.set({ "n" }, "g", builtin.live_grep, { desc = "Telescope live grep" }) + +-- lsp +vim.lsp.enable({ + "lua_ls", "clangd", "rust_analyzer", "bashls", + "html", "cssls", "jsonls", "helm_ls", "yamlls", + "docker_language_server" +}) + +vim.diagnostic.config({ + virtual_text = { + prefix = '', + spacing = 4, + }, + signs = { + text = { + [vim.diagnostic.severity.ERROR] = '', + [vim.diagnostic.severity.WARN] = '', + }, + -- linehl = { + -- [vim.diagnostic.severity.ERROR] = 'ErrorMsg', + -- }, + -- numhl = { + -- [vim.diagnostic.severity.WARN] = 'WarningMsg', + -- }, + }, + underline = true, + update_in_insert = true, + severity_sort = true, +}) + +-- plugins +require('Comment').setup() +require('lualine').setup({}) +require("gitsigns").setup() +require("trim").setup({}) +require("nvim-treesitter.configs").setup({ + ensure_installed = { + "bash", + "lua", + "javascript", + "c", + "cpp", + "json", + "go", + "markdown", + "meson", + "make", + "cmake", + "python", + "rust", + "yaml", + "toml", + "ron", + "helm" + }, + highlight = { enable = true }, + indent = { enable = true }, +}) +require("ibl").setup({}) + +local cmp = require 'cmp' +cmp.setup({ + snippet = { + expand = function(args) + require('luasnip').lsp_expand(args.body) + end, + }, + window = { + completion = cmp.config.window.bordered(), + documentation = cmp.config.window.bordered(), + }, + mapping = cmp.mapping.preset.insert({ + [''] = cmp.mapping.scroll_docs(-4), + [''] = cmp.mapping.scroll_docs(4), + [''] = cmp.mapping.complete(), + [''] = cmp.mapping.abort(), + [''] = cmp.mapping.confirm({ select = true }), + }), + sources = cmp.config.sources({ + { name = 'nvim_lsp' }, + { name = 'luasnip' }, + }, { + { name = 'buffer' }, + }) +}) + +vim.filetype.add({ + pattern = { + [".*/templates/.*%.yaml"] = "helm", + [".*/templates/.*%.yml"] = "helm", + }, +}) + +-- theme +-- vim.g.everforest_transparent_background = true +-- vim.cmd("colorscheme everforest") +-- vim.cmd("colorscheme onenord") +vim.cmd("colorscheme gruvbox") diff --git a/.config/nvim/lsp/ada_ls.lua b/.config/nvim/lsp/ada_ls.lua new file mode 100644 index 0000000..eae327a --- /dev/null +++ b/.config/nvim/lsp/ada_ls.lua @@ -0,0 +1,31 @@ +---@brief +--- +--- https://github.com/AdaCore/ada_language_server +--- +--- Installation instructions can be found [here](https://github.com/AdaCore/ada_language_server#Install). +--- +--- Workspace-specific [settings](https://github.com/AdaCore/ada_language_server/blob/master/doc/settings.md) such as `projectFile` can be provided in a `.als.json` file at the root of the workspace. +--- Alternatively, configuration may be passed as a "settings" object to `vim.lsp.config('ada_ls', {})`: +--- +--- ```lua +--- vim.lsp.config('ada_ls', { +--- settings = { +--- ada = { +--- projectFile = "project.gpr"; +--- scenarioVariables = { ... }; +--- } +--- } +--- }) +--- ``` + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'ada_language_server' }, + filetypes = { 'ada' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('Makefile', '.git', 'alire.toml', '*.gpr', '*.adc')(fname)) + end, +} diff --git a/.config/nvim/lsp/agda_ls.lua b/.config/nvim/lsp/agda_ls.lua new file mode 100644 index 0000000..64ca652 --- /dev/null +++ b/.config/nvim/lsp/agda_ls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/agda/agda-language-server +--- +--- Language Server for Agda. + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'als' }, + filetypes = { 'agda' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('.git', '*.agda-lib')(fname)) + end, +} diff --git a/.config/nvim/lsp/aiken.lua b/.config/nvim/lsp/aiken.lua new file mode 100644 index 0000000..8fb57b2 --- /dev/null +++ b/.config/nvim/lsp/aiken.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/aiken-lang/aiken +--- +--- A language server for Aiken Programming Language. +--- [Installation](https://aiken-lang.org/installation-instructions) +--- +--- It can be i + +---@type vim.lsp.Config +return { + cmd = { 'aiken', 'lsp' }, + filetypes = { 'aiken' }, + root_markers = { 'aiken.toml', '.git' }, +} diff --git a/.config/nvim/lsp/air.lua b/.config/nvim/lsp/air.lua new file mode 100644 index 0000000..47dbfc1 --- /dev/null +++ b/.config/nvim/lsp/air.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/posit-dev/air +--- +--- Air is an R formatter and language server, written in Rust. +--- +--- Refer to the [documentation](https://posit-dev.github.io/air/editors.html) for more details. + +---@type vim.lsp.Config +return { + cmd = { 'air', 'language-server' }, + filetypes = { 'r' }, + root_markers = { 'air.toml', '.air.toml', '.git' }, +} diff --git a/.config/nvim/lsp/alloy_ls.lua b/.config/nvim/lsp/alloy_ls.lua new file mode 100644 index 0000000..9fdf6da --- /dev/null +++ b/.config/nvim/lsp/alloy_ls.lua @@ -0,0 +1,30 @@ +---@brief +--- +--- https://github.com/AlloyTools/org.alloytools.alloy +--- +--- Alloy is a formal specification language for describing structures and a tool for exploring them. +--- +--- You may also need to configure the filetype for Alloy (*.als) files: +--- +--- ``` +--- autocmd BufNewFile,BufRead *.als set filetype=alloy +--- ``` +--- +--- or +--- +--- ```lua +--- vim.filetype.add({ +--- pattern = { +--- ['.*/*.als'] = 'alloy', +--- }, +--- }) +--- ``` +--- +--- Alternatively, you may use a syntax plugin like https://github.com/runoshun/vim-alloy. + +---@type vim.lsp.Config +return { + cmd = { 'alloy', 'lsp' }, + filetypes = { 'alloy' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/anakin_language_server.lua b/.config/nvim/lsp/anakin_language_server.lua new file mode 100644 index 0000000..6673683 --- /dev/null +++ b/.config/nvim/lsp/anakin_language_server.lua @@ -0,0 +1,71 @@ +---@brief +--- +--- https://pypi.org/project/anakin-language-server/ +--- +--- `anakin-language-server` is yet another Jedi Python language server. +--- +--- Available options: +--- +--- * Initialization: https://github.com/muffinmad/anakin-language-server#initialization-option +--- * Configuration: https://github.com/muffinmad/anakin-language-server#configuration-options + +---@type vim.lsp.Config +return { + cmd = { 'anakinls' }, + filetypes = { 'python' }, + root_markers = { + 'pyproject.toml', + 'setup.py', + 'setup.cfg', + 'requirements.txt', + 'Pipfile', + '.git', + }, + settings = { + anakinls = { + pyflakes_errors = { + -- Full list: https://github.com/PyCQA/pyflakes/blob/master/pyflakes/messages.py + + 'ImportStarNotPermitted', + + 'UndefinedExport', + 'UndefinedLocal', + 'UndefinedName', + + 'DuplicateArgument', + 'MultiValueRepeatedKeyLiteral', + 'MultiValueRepeatedKeyVariable', + + 'FutureFeatureNotDefined', + 'LateFutureImport', + + 'ReturnOutsideFunction', + 'YieldOutsideFunction', + 'ContinueOutsideLoop', + 'BreakOutsideLoop', + + 'TwoStarredExpressions', + 'TooManyExpressionsInStarredAssignment', + + 'ForwardAnnotationSyntaxError', + 'RaiseNotImplemented', + + 'StringDotFormatExtraPositionalArguments', + 'StringDotFormatExtraNamedArguments', + 'StringDotFormatMissingArgument', + 'StringDotFormatMixingAutomatic', + 'StringDotFormatInvalidFormat', + + 'PercentFormatInvalidFormat', + 'PercentFormatMixedPositionalAndNamed', + 'PercentFormatUnsupportedFormat', + 'PercentFormatPositionalCountMismatch', + 'PercentFormatExtraNamedArguments', + 'PercentFormatMissingArgument', + 'PercentFormatExpectedMapping', + 'PercentFormatExpectedSequence', + 'PercentFormatStarRequiresSequence', + }, + }, + }, +} diff --git a/.config/nvim/lsp/angularls.lua b/.config/nvim/lsp/angularls.lua new file mode 100644 index 0000000..80b9d11 --- /dev/null +++ b/.config/nvim/lsp/angularls.lua @@ -0,0 +1,85 @@ +---@brief +--- +--- https://github.com/angular/vscode-ng-language-service +--- `angular-language-server` can be installed via npm `npm install -g @angular/language-server`. +--- +--- ```lua +--- local project_library_path = "/path/to/project/lib" +--- local cmd = {"ngserver", "--stdio", "--tsProbeLocations", project_library_path , "--ngProbeLocations", project_library_path} +--- +--- vim.lsp.config('angularls', { +--- cmd = cmd, +--- }) +--- ``` + +-- Angular requires a node_modules directory to probe for @angular/language-service and typescript +-- in order to use your projects configured versions. +local root_dir = vim.fn.getcwd() +local node_modules_dir = vim.fs.find('node_modules', { path = root_dir, upward = true })[1] +local project_root = node_modules_dir and vim.fs.dirname(node_modules_dir) or '?' + +local function get_probe_dir() + return project_root and (project_root .. '/node_modules') or '' +end + +local function get_angular_core_version() + if not project_root then + return '' + end + + local package_json = project_root .. '/package.json' + if not vim.uv.fs_stat(package_json) then + return '' + end + + local contents = io.open(package_json):read '*a' + local json = vim.json.decode(contents) + if not json.dependencies then + return '' + end + + local angular_core_version = json.dependencies['@angular/core'] + + angular_core_version = angular_core_version and angular_core_version:match('%d+%.%d+%.%d+') + + return angular_core_version +end + +local default_probe_dir = get_probe_dir() +local default_angular_core_version = get_angular_core_version() + +-- structure should be like +-- - $EXTENSION_PATH +-- - @angular +-- - language-server +-- - bin +-- - ngserver +-- - typescript +local ngserver_exe = vim.fn.exepath('ngserver') +local ngserver_path = #(ngserver_exe or '') > 0 and vim.fs.dirname(vim.uv.fs_realpath(ngserver_exe)) or '?' +local extension_path = vim.fs.normalize(vim.fs.joinpath(ngserver_path, '../../../')) + +-- angularls will get module by `require.resolve(PROBE_PATH, MODULE_NAME)` of nodejs +local ts_probe_dirs = vim.iter({ extension_path, default_probe_dir }):join(',') +local ng_probe_dirs = vim + .iter({ extension_path, default_probe_dir }) + :map(function(p) + return vim.fs.joinpath(p, '/@angular/language-server/node_modules') + end) + :join(',') + +---@type vim.lsp.Config +return { + cmd = { + 'ngserver', + '--stdio', + '--tsProbeLocations', + ts_probe_dirs, + '--ngProbeLocations', + ng_probe_dirs, + '--angularCoreVersion', + default_angular_core_version, + }, + filetypes = { 'typescript', 'html', 'typescriptreact', 'typescript.tsx', 'htmlangular' }, + root_markers = { 'angular.json', 'nx.json' }, +} diff --git a/.config/nvim/lsp/ansiblels.lua b/.config/nvim/lsp/ansiblels.lua new file mode 100644 index 0000000..db292c3 --- /dev/null +++ b/.config/nvim/lsp/ansiblels.lua @@ -0,0 +1,38 @@ +---@brief +--- +--- https://github.com/ansible/vscode-ansible +--- +--- Language server for the ansible configuration management tool. +--- +--- `ansible-language-server` can be installed via `npm`: +--- +--- ```sh +--- npm install -g @ansible/ansible-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'ansible-language-server', '--stdio' }, + settings = { + ansible = { + python = { + interpreterPath = 'python', + }, + ansible = { + path = 'ansible', + }, + executionEnvironment = { + enabled = false, + }, + validation = { + enabled = true, + lint = { + enabled = true, + path = 'ansible-lint', + }, + }, + }, + }, + filetypes = { 'yaml.ansible' }, + root_markers = { 'ansible.cfg', '.ansible-lint' }, +} diff --git a/.config/nvim/lsp/antlersls.lua b/.config/nvim/lsp/antlersls.lua new file mode 100644 index 0000000..28777bf --- /dev/null +++ b/.config/nvim/lsp/antlersls.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://www.npmjs.com/package/antlers-language-server +--- +--- `antlersls` can be installed via `npm`: +--- ```sh +--- npm install -g antlers-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'antlersls', '--stdio' }, + filetypes = { 'html', 'antlers' }, + root_markers = { 'composer.json' }, +} diff --git a/.config/nvim/lsp/apex_ls.lua b/.config/nvim/lsp/apex_ls.lua new file mode 100644 index 0000000..01616c9 --- /dev/null +++ b/.config/nvim/lsp/apex_ls.lua @@ -0,0 +1,59 @@ +--- @brief +--- +--- https://github.com/forcedotcom/salesforcedx-vscode +--- +--- Language server for Apex. +--- +--- For manual installation, download the JAR file from the [VSCode +--- extension](https://github.com/forcedotcom/salesforcedx-vscode/tree/develop/packages/salesforcedx-vscode-apex) and adjust the `apex_jar_path` appropriately. +--- +--- ```lua +--- vim.lsp.config('apex_ls', { +--- apex_jar_path = '/path/to/apex-jorje-lsp.jar', +--- apex_enable_semantic_errors = false, -- Whether to allow Apex Language Server to surface semantic errors +--- apex_enable_completion_statistics = false, -- Whether to allow Apex Language Server to collect telemetry on code completion usage +--- } +---``` +--- +--- Example configuration using Mason: +--- +---```lua +--- vim.lsp.config('apex_ls', { +--- apex_jar_path = vim.fn.stdpath('data') .. '/mason/share/apex-language-server/apex-jorje-lsp.jar', +--- } +---``` +--- +--- For a complete experience, you may need to ensure the treesitter parsers for 'apex' are installed (:TSInstall apex) as well as configure the filetype for apex (*.cls) files: +--- +--- ```lua +--- vim.filetype.add({ +--- pattern = { +--- ['.*/*.cls'] = 'apex', +--- }, +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = function(dispatchers, config) + local local_cmd = { + vim.env.JAVA_HOME and (vim.env.JAVA_HOME .. '/bin/java') or 'java', + '-cp', + config.apex_jar_path, + '-Ddebug.internal.errors=true', + '-Ddebug.semantic.errors=' .. tostring(config.apex_enable_semantic_errors or false), + '-Ddebug.completion.statistics=' .. tostring(config.apex_enable_completion_statistics or false), + '-Dlwc.typegeneration.disabled=true', + } + if config.apex_jvm_max_heap then + table.insert(local_cmd, '-Xmx' .. config.apex_jvm_max_heap) + end + table.insert(local_cmd, 'apex.jorje.lsp.ApexLanguageServerLauncher') + + return vim.lsp.rpc.start(local_cmd, dispatchers) + end, + filetypes = { 'apex', 'apexcode' }, + root_markers = { + 'sfdx-project.json', + }, +} diff --git a/.config/nvim/lsp/arduino_language_server.lua b/.config/nvim/lsp/arduino_language_server.lua new file mode 100644 index 0000000..0feccd5 --- /dev/null +++ b/.config/nvim/lsp/arduino_language_server.lua @@ -0,0 +1,91 @@ +---@brief +--- +--- https://github.com/arduino/arduino-language-server +--- +--- Language server for Arduino +--- +--- The `arduino-language-server` can be installed by running: +--- +--- ``` +--- go install github.com/arduino/arduino-language-server@latest +--- ``` +--- +--- The `arduino-cli` tool must also be installed. Follow [these +--- installation instructions](https://arduino.github.io/arduino-cli/latest/installation/) for +--- your platform. +--- +--- After installing `arduino-cli`, follow [these +--- instructions](https://arduino.github.io/arduino-cli/latest/getting-started/#create-a-configuration-file) +--- for generating a configuration file if you haven't done so already, and make +--- sure you [install any relevant platforms +--- libraries](https://arduino.github.io/arduino-cli/latest/getting-started/#install-the-core-for-your-board). +--- +--- The language server also requires `clangd` to be installed. Follow [these +--- installation instructions](https://clangd.llvm.org/installation) for your +--- platform. +--- +--- If you don't have a sketch yet create one. +--- +--- ```sh +--- $ arduino-cli sketch new test +--- $ cd test +--- ``` +--- +--- You will need a `sketch.yaml` file in order for the language server to understand your project. It will also save you passing options to `arduino-cli` each time you compile or upload a file. You can generate the file by using the following commands. +--- +--- +--- First gather some information about your board. Make sure your board is connected and run the following: +--- +--- ```sh +--- $ arduino-cli board list +--- Port Protocol Type Board Name FQBN Core +--- /dev/ttyACM0 serial Serial Port (USB) Arduino Uno arduino:avr:uno arduino:avr +--- ``` +--- +--- Then generate the file: +--- +--- ```sh +--- arduino-cli board attach -p /dev/ttyACM0 -b arduino:avr:uno test.ino +--- ``` +--- +--- The resulting file should look like this: +--- +--- ```yaml +--- default_fqbn: arduino:avr:uno +--- default_port: /dev/ttyACM0 +--- ``` +--- +--- Your folder structure should look like this: +--- +--- ``` +--- . +--- ├── test.ino +--- └── sketch.yaml +--- ``` +--- +--- For further instructions about configuration options, run `arduino-language-server --help`. +--- +--- Note that an upstream bug makes keywords in some cases become undefined by the language server. +--- Ref: https://github.com/arduino/arduino-ide/issues/159 + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + filetypes = { 'arduino' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('*.ino')(fname)) + end, + cmd = { + 'arduino-language-server', + }, + capabilities = { + textDocument = { + semanticTokens = vim.NIL, + }, + workspace = { + semanticTokens = vim.NIL, + }, + }, +} diff --git a/.config/nvim/lsp/asm_lsp.lua b/.config/nvim/lsp/asm_lsp.lua new file mode 100644 index 0000000..28678c0 --- /dev/null +++ b/.config/nvim/lsp/asm_lsp.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/bergercookie/asm-lsp +--- +--- Language Server for NASM/GAS/GO Assembly +--- +--- `asm-lsp` can be installed via cargo: +--- cargo install asm-lsp + +---@type vim.lsp.Config +return { + cmd = { 'asm-lsp' }, + filetypes = { 'asm', 'vmasm' }, + root_markers = { '.asm-lsp.toml', '.git' }, +} diff --git a/.config/nvim/lsp/ast_grep.lua b/.config/nvim/lsp/ast_grep.lua new file mode 100644 index 0000000..0cf9e72 --- /dev/null +++ b/.config/nvim/lsp/ast_grep.lua @@ -0,0 +1,50 @@ +---@brief +--- +--- https://ast-grep.github.io/ +--- +--- ast-grep(sg) is a fast and polyglot tool for code structural search, lint, rewriting at large scale. +--- ast-grep LSP only works in projects that have `sgconfig.y[a]ml` in their root directories. +--- ```sh +--- npm install [-g] @ast-grep/cli +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'ast-grep', 'lsp' }, + workspace_required = true, + reuse_client = function(client, config) + config.cmd_cwd = config.root_dir + return client.config.cmd_cwd == config.cmd_cwd + end, + filetypes = { -- https://ast-grep.github.io/reference/languages.html + 'bash', + 'c', + 'cpp', + 'csharp', + 'css', + 'elixir', + 'go', + 'haskell', + 'html', + 'java', + 'javascript', + 'javascriptreact', + 'javascript.jsx', + 'json', + 'kotlin', + 'lua', + 'nix', + 'php', + 'python', + 'ruby', + 'rust', + 'scala', + 'solidity', + 'swift', + 'typescript', + 'typescriptreact', + 'typescript.tsx', + 'yaml', + }, + root_markers = { 'sgconfig.yaml', 'sgconfig.yml' }, +} diff --git a/.config/nvim/lsp/astro.lua b/.config/nvim/lsp/astro.lua new file mode 100644 index 0000000..a85aae3 --- /dev/null +++ b/.config/nvim/lsp/astro.lua @@ -0,0 +1,25 @@ +---@brief +--- +--- https://github.com/withastro/language-tools/tree/main/packages/language-server +--- +--- `astro-ls` can be installed via `npm`: +--- ```sh +--- npm install -g @astrojs/language-server +--- ``` + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'astro-ls', '--stdio' }, + filetypes = { 'astro' }, + root_markers = { 'package.json', 'tsconfig.json', 'jsconfig.json', '.git' }, + init_options = { + typescript = {}, + }, + before_init = function(_, config) + if config.init_options and config.init_options.typescript and not config.init_options.typescript.tsdk then + config.init_options.typescript.tsdk = util.get_typescript_server_path(config.root_dir) + end + end, +} diff --git a/.config/nvim/lsp/atlas.lua b/.config/nvim/lsp/atlas.lua new file mode 100644 index 0000000..e54dbea --- /dev/null +++ b/.config/nvim/lsp/atlas.lua @@ -0,0 +1,66 @@ +---@brief +--- +--- https://github.com/ariga/atlas +--- +--- Language server for Atlas config and schema files. +--- +--- You may also need to configure the filetype for *.hcl files: +--- +--- ```vim +--- autocmd BufNewFile,BufRead atlas.hcl set filetype=atlas-config +--- autocmd BufNewFile,BufRead *.my.hcl set filetype=atlas-schema-mysql +--- autocmd BufNewFile,BufRead *.pg.hcl set filetype=atlas-schema-postgresql +--- autocmd BufNewFile,BufRead *.lt.hcl set filetype=atlas-schema-sqlite +--- autocmd BufNewFile,BufRead *.ch.hcl set filetype=atlas-schema-clickhouse +--- autocmd BufNewFile,BufRead *.ms.hcl set filetype=atlas-schema-mssql +--- autocmd BufNewFile,BufRead *.rs.hcl set filetype=atlas-schema-redshift +--- autocmd BufNewFile,BufRead *.test.hcl set filetype=atlas-test +--- autocmd BufNewFile,BufRead *.plan.hcl set filetype=atlas-plan +--- autocmd BufNewFile,BufRead *.rule.hcl set filetype=atlas-rule +--- ``` +--- +--- or +--- +--- ```lua +--- vim.filetype.add({ +--- filename = { +--- ['atlas.hcl'] = 'atlas-config', +--- }, +--- pattern = { +--- ['.*/*.my.hcl'] = 'atlas-schema-mysql', +--- ['.*/*.pg.hcl'] = 'atlas-schema-postgresql', +--- ['.*/*.lt.hcl'] = 'atlas-schema-sqlite', +--- ['.*/*.ch.hcl'] = 'atlas-schema-clickhouse', +--- ['.*/*.ms.hcl'] = 'atlas-schema-mssql', +--- ['.*/*.rs.hcl'] = 'atlas-schema-redshift', +--- ['.*/*.test.hcl'] = 'atlas-test', +--- ['.*/*.plan.hcl'] = 'atlas-plan', +--- ['.*/*.rule.hcl'] = 'atlas-rule', +--- }, +--- }) +--- ``` +--- +--- Optionally, tell treesitter to treat Atlas filetypes as HCL for better syntax highlighting: +--- +--- ```lua +--- vim.treesitter.language.register('hcl', 'atlas-config') +--- vim.treesitter.language.register('hcl', 'atlas-schema-mysql') +--- vim.treesitter.language.register('hcl', 'atlas-schema-postgresql') +--- vim.treesitter.language.register('hcl', 'atlas-schema-sqlite') +--- vim.treesitter.language.register('hcl', 'atlas-schema-clickhouse') +--- vim.treesitter.language.register('hcl', 'atlas-schema-mssql') +--- vim.treesitter.language.register('hcl', 'atlas-schema-redshift') +--- vim.treesitter.language.register('hcl', 'atlas-test') +--- vim.treesitter.language.register('hcl', 'atlas-plan') +--- vim.treesitter.language.register('hcl', 'atlas-rule') +--- ``` +--- + +---@type vim.lsp.Config +return { + cmd = { 'atlas', 'tool', 'lsp', '--stdio' }, + filetypes = { + 'atlas-*', + }, + root_markers = { 'atlas.hcl' }, +} diff --git a/.config/nvim/lsp/atopile.lua b/.config/nvim/lsp/atopile.lua new file mode 100644 index 0000000..6548b7e --- /dev/null +++ b/.config/nvim/lsp/atopile.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://atopile.io/ +--- +--- A language server for atopile Programming Language. +--- +--- It comes with the atopile compiler, for installation see: [Installing atopile](https://docs.atopile.io/atopile/guides/install) + +---@type vim.lsp.Config +return { + cmd = { 'ato', 'lsp', 'start' }, + filetypes = { 'ato' }, + root_markers = { 'ato.yaml', '.ato', '.git' }, +} diff --git a/.config/nvim/lsp/autohotkey_lsp.lua b/.config/nvim/lsp/autohotkey_lsp.lua new file mode 100644 index 0000000..cb92330 --- /dev/null +++ b/.config/nvim/lsp/autohotkey_lsp.lua @@ -0,0 +1,51 @@ +---@brief +--- +--- https://github.com/thqby/vscode-autohotkey2-lsp +--- +--- AutoHotkey v2.0 LSP implementation +--- +--- NOTE: AutoHotkey is Windows-only. + +local function get_autohotkey_path() + local path = vim.fn.exepath('autohotkey.exe') + return #path > 0 and path or '' +end + +---@type vim.lsp.Config +return { + cmd = { 'autohotkey_lsp', '--stdio' }, + filetypes = { 'autohotkey' }, + root_markers = { 'package.json' }, + flags = { debounce_text_changes = 500 }, + --capabilities = capabilities, + --on_attach = custom_attach, + init_options = { + locale = 'en-us', + InterpreterPath = get_autohotkey_path(), + AutoLibInclude = 'All', + CommentTags = '^;;\\s*(?.+)', + CompleteFunctionParens = false, + SymbolFoldinFromOpenBrace = false, + Diagnostics = { + ClassStaticMemberCheck = true, + ParamsCheck = true, + }, + ActionWhenV1IsDetected = 'Continue', + FormatOptions = { + array_style = 'expand', + break_chained_methods = false, + ignore_comment = false, + indent_string = '\t', + max_preserve_newlines = 2, + brace_style = 'One True Brace', + object_style = 'none', + preserve_newlines = true, + space_after_double_colon = true, + space_before_conditional = true, + space_in_empty_paren = false, + space_in_other = true, + space_in_paren = false, + wrap_line_length = 0, + }, + }, +} diff --git a/.config/nvim/lsp/autotools_ls.lua b/.config/nvim/lsp/autotools_ls.lua new file mode 100644 index 0000000..721c24c --- /dev/null +++ b/.config/nvim/lsp/autotools_ls.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/Freed-Wu/autotools-language-server +--- +--- `autotools-language-server` can be installed via `pip`: +--- ```sh +--- pip install autotools-language-server +--- ``` +--- +--- Language server for autoconf, automake and make using tree sitter in python. + +local util = require 'lspconfig.util' + +local root_files = { 'configure.ac', 'Makefile', 'Makefile.am', '*.mk' } + +---@type vim.lsp.Config +return { + cmd = { 'autotools-language-server' }, + filetypes = { 'config', 'automake', 'make' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern(unpack(root_files))(fname)) + end, +} diff --git a/.config/nvim/lsp/awk_ls.lua b/.config/nvim/lsp/awk_ls.lua new file mode 100644 index 0000000..7932913 --- /dev/null +++ b/.config/nvim/lsp/awk_ls.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/Beaglefoot/awk-language-server/ +--- +--- `awk-language-server` can be installed via `npm`: +--- ```sh +--- npm install -g awk-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'awk-language-server' }, + filetypes = { 'awk' }, +} diff --git a/.config/nvim/lsp/azure_pipelines_ls.lua b/.config/nvim/lsp/azure_pipelines_ls.lua new file mode 100644 index 0000000..2313ca4 --- /dev/null +++ b/.config/nvim/lsp/azure_pipelines_ls.lua @@ -0,0 +1,39 @@ +---@brief +--- +--- https://github.com/microsoft/azure-pipelines-language-server +--- +--- An Azure Pipelines language server +--- +--- `azure-pipelines-ls` can be installed via `npm`: +--- +--- ```sh +--- npm install -g azure-pipelines-language-server +--- ``` +--- +--- By default `azure-pipelines-ls` will only work in files named `azure-pipelines.yml`, this can be changed by providing additional settings like so: +--- ```lua +--- vim.lsp.config('azure_pipelines_ls', { +--- ... -- other configuration +--- settings = { +--- yaml = { +--- schemas = { +--- ["https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/master/service-schema.json"] = { +--- "/azure-pipeline*.y*l", +--- "/*.azure*", +--- "Azure-Pipelines/**/*.y*l", +--- "Pipelines/*.y*l", +--- }, +--- }, +--- }, +--- }, +--- }) +--- ``` +--- The Azure Pipelines LSP is a fork of `yaml-language-server` and as such the same settings can be passed to it as `yaml-language-server`. + +---@type vim.lsp.Config +return { + cmd = { 'azure-pipelines-language-server', '--stdio' }, + filetypes = { 'yaml' }, + root_markers = { 'azure-pipelines.yml' }, + settings = {}, +} diff --git a/.config/nvim/lsp/bacon_ls.lua b/.config/nvim/lsp/bacon_ls.lua new file mode 100644 index 0000000..44c5697 --- /dev/null +++ b/.config/nvim/lsp/bacon_ls.lua @@ -0,0 +1,47 @@ +---@brief +--- +--- https://github.com/crisidev/bacon-ls +--- +--- A Language Server Protocol wrapper for [bacon](https://dystroy.org/bacon/). +--- It offers textDocument/diagnostic and workspace/diagnostic capabilities for Rust +--- workspaces using the Bacon export locations file. +--- +--- It requires `bacon` and `bacon-ls` to be installed on the system using +--- [mason.nvim](https://github.com/williamboman/mason.nvim) or manually +--- +--- ```sh +--- $ cargo install --locked bacon bacon-ls +--- ``` +--- +--- Settings can be changed using the `init_options` dictionary:util +--- +--- ```lua +--- init_options = { +--- -- Bacon export filename (default: .bacon-locations). +--- locationsFile = ".bacon-locations", +--- -- Try to update diagnostics every time the file is saved (default: true). +--- updateOnSave = true, +--- -- How many milliseconds to wait before updating diagnostics after a save (default: 1000). +--- updateOnSaveWaitMillis = 1000, +--- -- Try to update diagnostics every time the file changes (default: true). +--- updateOnChange = true, +--- -- Try to validate that bacon preferences are setup correctly to work with bacon-ls (default: true). +--- validateBaconPreferences = true, +--- -- f no bacon preferences file is found, create a new preferences file with the bacon-ls job definition (default: true). +--- createBaconPreferencesFile = true, +--- -- Run bacon in background for the bacon-ls job (default: true) +--- runBaconInBackground = true, +--- -- Command line arguments to pass to bacon running in background (default "--headless -j bacon-ls") +--- runBaconInBackgroundCommandArguments = "--headless -j bacon-ls", +--- -- How many milliseconds to wait between background diagnostics check to synchronize all open files (default: 2000). +--- synchronizeAllOpenFilesWaitMillis = 2000, +--- } +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'bacon-ls' }, + filetypes = { 'rust' }, + root_markers = { '.bacon-locations', 'Cargo.toml' }, + init_options = {}, +} diff --git a/.config/nvim/lsp/ballerina.lua b/.config/nvim/lsp/ballerina.lua new file mode 100644 index 0000000..dbe8a7e --- /dev/null +++ b/.config/nvim/lsp/ballerina.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- Ballerina language server +--- +--- The Ballerina language's CLI tool comes with its own language server implementation. +--- The `bal` command line tool must be installed and available in your system's PATH. + +---@type vim.lsp.Config +return { + cmd = { 'bal', 'start-language-server' }, + filetypes = { 'ballerina' }, + root_markers = { 'Ballerina.toml' }, +} diff --git a/.config/nvim/lsp/basedpyright.lua b/.config/nvim/lsp/basedpyright.lua new file mode 100644 index 0000000..5f54c3d --- /dev/null +++ b/.config/nvim/lsp/basedpyright.lua @@ -0,0 +1,66 @@ +---@brief +--- +--- https://detachhead.github.io/basedpyright +--- +--- `basedpyright`, a static type checker and language server for python + +local function set_python_path(command) + local path = command.args + local clients = vim.lsp.get_clients { + bufnr = vim.api.nvim_get_current_buf(), + name = 'basedpyright', + } + for _, client in ipairs(clients) do + if client.settings then + client.settings.python = vim.tbl_deep_extend('force', client.settings.python or {}, { pythonPath = path }) + else + client.config.settings = vim.tbl_deep_extend('force', client.config.settings, { python = { pythonPath = path } }) + end + client:notify('workspace/didChangeConfiguration', { settings = nil }) + end +end + +---@type vim.lsp.Config +return { + cmd = { 'basedpyright-langserver', '--stdio' }, + filetypes = { 'python' }, + root_markers = { + 'pyproject.toml', + 'setup.py', + 'setup.cfg', + 'requirements.txt', + 'Pipfile', + 'pyrightconfig.json', + '.git', + }, + settings = { + basedpyright = { + analysis = { + autoSearchPaths = true, + useLibraryCodeForTypes = true, + diagnosticMode = 'openFilesOnly', + }, + }, + }, + on_attach = function(client, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspPyrightOrganizeImports', function() + local params = { + command = 'basedpyright.organizeimports', + arguments = { vim.uri_from_bufnr(bufnr) }, + } + + -- Using client.request() directly because "basedpyright.organizeimports" is private + -- (not advertised via capabilities), which client:exec_cmd() refuses to call. + -- https://github.com/neovim/neovim/blob/c333d64663d3b6e0dd9aa440e433d346af4a3d81/runtime/lua/vim/lsp/client.lua#L1024-L1030 + client.request('workspace/executeCommand', params, nil, bufnr) + end, { + desc = 'Organize Imports', + }) + + vim.api.nvim_buf_create_user_command(bufnr, 'LspPyrightSetPythonPath', set_python_path, { + desc = 'Reconfigure basedpyright with the provided python path', + nargs = 1, + complete = 'file', + }) + end, +} diff --git a/.config/nvim/lsp/bashls.lua b/.config/nvim/lsp/bashls.lua new file mode 100644 index 0000000..fbd396a --- /dev/null +++ b/.config/nvim/lsp/bashls.lua @@ -0,0 +1,29 @@ +---@brief +--- +--- https://github.com/bash-lsp/bash-language-server +--- +--- `bash-language-server` can be installed via `npm`: +--- ```sh +--- npm i -g bash-language-server +--- ``` +--- +--- Language server for bash, written using tree sitter in typescript. + +---@type vim.lsp.Config +return { + cmd = { 'bash-language-server', 'start' }, + settings = { + bashIde = { + -- Glob pattern for finding and parsing shell script files in the workspace. + -- Used by the background analysis features across files. + + -- Prevent recursive scanning which will cause issues when opening a file + -- directly in the home directory (e.g. ~/foo.sh). + -- + -- Default upstream pattern is "**/*@(.sh|.inc|.bash|.command)". + globPattern = vim.env.GLOB_PATTERN or '*@(.sh|.inc|.bash|.command)', + }, + }, + filetypes = { 'bash', 'sh' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/basics_ls.lua b/.config/nvim/lsp/basics_ls.lua new file mode 100644 index 0000000..1810a92 --- /dev/null +++ b/.config/nvim/lsp/basics_ls.lua @@ -0,0 +1,27 @@ +---@brief +--- +--- https://github.com/antonk52/basics-language-server/ +--- +--- Buffer, path, and snippet completion +--- +--- ```sh +--- npm install -g basics-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'basics-language-server' }, + settings = { + buffer = { + enable = true, + minCompletionLength = 4, + }, + path = { + enable = true, + }, + snippet = { + enable = false, + sources = {}, + }, + }, +} diff --git a/.config/nvim/lsp/bazelrc_lsp.lua b/.config/nvim/lsp/bazelrc_lsp.lua new file mode 100644 index 0000000..6e6b89f --- /dev/null +++ b/.config/nvim/lsp/bazelrc_lsp.lua @@ -0,0 +1,22 @@ +---@brief +--- +--- https://github.com/salesforce-misc/bazelrc-lsp +--- +--- `bazelrc-lsp` is a LSP for `.bazelrc` configuration files. +--- +--- The `.bazelrc` file type is not detected automatically, you can register it manually (see below) or override the filetypes: +--- +--- ```lua +--- vim.filetype.add { +--- pattern = { +--- ['.*.bazelrc'] = 'bazelrc', +--- }, +--- } +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'bazelrc-lsp', 'lsp' }, + filetypes = { 'bazelrc' }, + root_markers = { 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel' }, +} diff --git a/.config/nvim/lsp/beancount.lua b/.config/nvim/lsp/beancount.lua new file mode 100644 index 0000000..bb53a76 --- /dev/null +++ b/.config/nvim/lsp/beancount.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/polarmutex/beancount-language-server#installation +--- +--- See https://github.com/polarmutex/beancount-language-server#configuration for configuration options + +---@type vim.lsp.Config +return { + cmd = { 'beancount-language-server', '--stdio' }, + filetypes = { 'beancount', 'bean' }, + root_markers = { '.git' }, + init_options = {}, +} diff --git a/.config/nvim/lsp/bicep.lua b/.config/nvim/lsp/bicep.lua new file mode 100644 index 0000000..4e6e215 --- /dev/null +++ b/.config/nvim/lsp/bicep.lua @@ -0,0 +1,40 @@ +---@brief +--- +--- https://github.com/azure/bicep +--- Bicep language server +--- +--- Bicep language server can be installed by downloading and extracting a release of bicep-langserver.zip from [Bicep GitHub releases](https://github.com/Azure/bicep/releases). +--- +--- Bicep language server requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed. +--- +--- Neovim does not have built-in support for the bicep filetype which is required for lspconfig to automatically launch the language server. +--- +--- Filetype detection can be added via an autocmd: +--- ```lua +--- vim.cmd [[ autocmd BufNewFile,BufRead *.bicep set filetype=bicep ]] +--- ``` +--- +--- **By default, bicep language server does not have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary. +--- +--- ```lua +--- local bicep_lsp_bin = "/path/to/bicep-langserver/Bicep.LangServer.dll" +--- vim.lsp.config('bicep', { +--- cmd = { "dotnet", bicep_lsp_bin }; +--- ... +--- }) +--- ``` +--- +--- To download the latest release and place in /usr/local/bin/bicep-langserver: +--- ```bash +--- (cd $(mktemp -d) \ +--- && curl -fLO https://github.com/Azure/bicep/releases/latest/download/bicep-langserver.zip \ +--- && rm -rf /usr/local/bin/bicep-langserver \ +--- && unzip -d /usr/local/bin/bicep-langserver bicep-langserver.zip) +--- ``` + +---@type vim.lsp.Config +return { + filetypes = { 'bicep', 'bicep-params' }, + root_markers = { '.git' }, + init_options = {}, +} diff --git a/.config/nvim/lsp/biome.lua b/.config/nvim/lsp/biome.lua new file mode 100644 index 0000000..a134347 --- /dev/null +++ b/.config/nvim/lsp/biome.lua @@ -0,0 +1,72 @@ +---@brief +--- https://biomejs.dev +--- +--- Toolchain of the web. [Successor of Rome](https://biomejs.dev/blog/annoucing-biome). +--- +--- ```sh +--- npm install [-g] @biomejs/biome +--- ``` +--- +--- ### Monorepo support +--- +--- `biome` supports monorepos by default. It will automatically find the `biome.json` corresponding to the package you are working on, as described in the [documentation](https://biomejs.dev/guides/big-projects/#monorepo). This works without the need of spawning multiple instances of `biome`, saving memory. + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = function(dispatchers, config) + local cmd = 'biome' + local local_cmd = (config or {}).root_dir and config.root_dir .. '/node_modules/.bin/biome' + if local_cmd and vim.fn.executable(local_cmd) == 1 then + cmd = local_cmd + end + return vim.lsp.rpc.start({ cmd, 'lsp-proxy' }, dispatchers) + end, + filetypes = { + 'astro', + 'css', + 'graphql', + 'html', + 'javascript', + 'javascriptreact', + 'json', + 'jsonc', + 'svelte', + 'typescript', + 'typescript.tsx', + 'typescriptreact', + 'vue', + }, + workspace_required = true, + root_dir = function(bufnr, on_dir) + -- The project root is where the LSP can be started from + -- As stated in the documentation above, this LSP supports monorepos and simple projects. + -- We select then from the project root, which is identified by the presence of a package + -- manager lock file. + local root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' } + -- Give the root markers equal priority by wrapping them in a table + root_markers = vim.fn.has('nvim-0.11.3') == 1 and { root_markers, { '.git' } } + or vim.list_extend(root_markers, { '.git' }) + -- We fallback to the current working directory if no project root is found + local project_root = vim.fs.root(bufnr, root_markers) or vim.fn.getcwd() + + -- We know that the buffer is using Biome if it has a config file + -- in its directory tree. + local filename = vim.api.nvim_buf_get_name(bufnr) + local biome_config_files = { 'biome.json', 'biome.jsonc' } + biome_config_files = util.insert_package_json(biome_config_files, 'biome', filename) + local is_buffer_using_biome = vim.fs.find(biome_config_files, { + path = filename, + type = 'file', + limit = 1, + upward = true, + stop = vim.fs.dirname(project_root), + })[1] + if not is_buffer_using_biome then + return + end + + on_dir(project_root) + end, +} diff --git a/.config/nvim/lsp/bitbake_language_server.lua b/.config/nvim/lsp/bitbake_language_server.lua new file mode 100644 index 0000000..846db07 --- /dev/null +++ b/.config/nvim/lsp/bitbake_language_server.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/Freed-Wu/bitbake-language-server +--- +--- `bitbake-language-server` can be installed via `pip`: +--- ```sh +--- pip install bitbake-language-server +--- ``` +--- +--- Language server for bitbake. + +---@type vim.lsp.Config +return { + cmd = { 'bitbake-language-server' }, + filetypes = { 'bitbake' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/blueprint_ls.lua b/.config/nvim/lsp/blueprint_ls.lua new file mode 100644 index 0000000..3721f6a --- /dev/null +++ b/.config/nvim/lsp/blueprint_ls.lua @@ -0,0 +1,22 @@ +---@brief +--- +--- https://gitlab.gnome.org/jwestman/blueprint-compiler +--- +--- `blueprint-compiler` can be installed via your system package manager. +--- +--- Language server for the blueprint markup language, written in python and part +--- of the blueprint-compiler. + +---@type vim.lsp.Config +return { + cmd = { 'blueprint-compiler', 'lsp' }, + cmd_env = { + -- Prevent recursive scanning which will cause issues when opening a file + -- directly in the home directory (e.g. ~/foo.sh). + -- + -- Default upstream pattern is "**/*@(.sh|.inc|.bash|.command)". + GLOB_PATTERN = vim.env.GLOB_PATTERN or '*@(.blp)', + }, + filetypes = { 'blueprint' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/bqls.lua b/.config/nvim/lsp/bqls.lua new file mode 100644 index 0000000..cad3cd2 --- /dev/null +++ b/.config/nvim/lsp/bqls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/kitagry/bqls +--- +--- The `bqls` BigQuery language server can be installed by running: +--- +--- ```sh +--- $ go install github.com/kitagry/bqls@latest +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'bqls' }, + filetypes = { 'sql' }, + root_markers = { '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/bright_script.lua b/.config/nvim/lsp/bright_script.lua new file mode 100644 index 0000000..0f56417 --- /dev/null +++ b/.config/nvim/lsp/bright_script.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/RokuCommunity/brighterscript +--- +--- `brightscript` can be installed via `npm`: +--- ```sh +--- npm install -g brighterscript +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'bsc', '--lsp', '--stdio' }, + filetypes = { 'brs' }, + root_markers = { 'makefile', 'Makefile', '.git' }, +} diff --git a/.config/nvim/lsp/bsl_ls.lua b/.config/nvim/lsp/bsl_ls.lua new file mode 100644 index 0000000..1ab35f5 --- /dev/null +++ b/.config/nvim/lsp/bsl_ls.lua @@ -0,0 +1,11 @@ +---@brief +--- +--- https://github.com/1c-syntax/bsl-language-server +--- +--- Language Server Protocol implementation for 1C (BSL) - 1C:Enterprise 8 and OneScript languages. + +---@type vim.lsp.Config +return { + filetypes = { 'bsl', 'os' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/buck2.lua b/.config/nvim/lsp/buck2.lua new file mode 100644 index 0000000..7bc5d25 --- /dev/null +++ b/.config/nvim/lsp/buck2.lua @@ -0,0 +1,18 @@ +---@brief +--- +--- https://github.com/facebook/buck2 +--- +--- Build system, successor to Buck +--- +--- To better detect Buck2 project files, the following can be added: +--- +--- ``` +--- vim.cmd [[ autocmd BufRead,BufNewFile *.bxl,BUCK,TARGETS set filetype=bzl ]] +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'buck2', 'lsp' }, + filetypes = { 'bzl' }, + root_markers = { '.buckconfig' }, +} diff --git a/.config/nvim/lsp/buddy_ls.lua b/.config/nvim/lsp/buddy_ls.lua new file mode 100644 index 0000000..dc82439 --- /dev/null +++ b/.config/nvim/lsp/buddy_ls.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/buddy-compiler/buddy-mlir#buddy-lsp-server +--- The Language Server for the buddy-mlir, a drop-in replacement for mlir-lsp-server, +--- supporting new dialects defined in buddy-mlir. +--- `buddy-lsp-server` can be installed at the buddy-mlir repository (buddy-compiler/buddy-mlir) + +---@type vim.lsp.Config +return { + cmd = { 'buddy-lsp-server' }, + filetypes = { 'mlir' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/buf_ls.lua b/.config/nvim/lsp/buf_ls.lua new file mode 100644 index 0000000..75c0b44 --- /dev/null +++ b/.config/nvim/lsp/buf_ls.lua @@ -0,0 +1,13 @@ +--- @brief +--- https://github.com/bufbuild/buf +--- +--- buf beta lsp included in the cli itself +--- +--- buf beta lsp is a Protobuf language server compatible with Buf modules and workspaces + +---@type vim.lsp.Config +return { + cmd = { 'buf', 'beta', 'lsp', '--timeout=0', '--log-format=text' }, + filetypes = { 'proto' }, + root_markers = { 'buf.yaml', '.git' }, +} diff --git a/.config/nvim/lsp/bufls.lua b/.config/nvim/lsp/bufls.lua new file mode 100644 index 0000000..e7dc52f --- /dev/null +++ b/.config/nvim/lsp/bufls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/bufbuild/buf-language-server +--- +--- `buf-language-server` can be installed via `go install`: +--- ```sh +--- go install github.com/bufbuild/buf-language-server/cmd/bufls@latest +--- ``` +--- +--- bufls is a Protobuf language server compatible with Buf modules and workspaces + +---@type vim.lsp.Config +return { + cmd = { 'bufls', 'serve' }, + filetypes = { 'proto' }, + root_markers = { 'buf.work.yaml', '.git' }, +} diff --git a/.config/nvim/lsp/bzl.lua b/.config/nvim/lsp/bzl.lua new file mode 100644 index 0000000..7dc1dfe --- /dev/null +++ b/.config/nvim/lsp/bzl.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://bzl.io/ +--- +--- https://docs.stack.build/docs/cli/installation +--- +--- https://docs.stack.build/docs/vscode/starlark-language-server + +---@type vim.lsp.Config +return { + cmd = { 'bzl', 'lsp', 'serve' }, + filetypes = { 'bzl' }, + -- https://docs.bazel.build/versions/5.4.1/build-ref.html#workspace + root_markers = { 'WORKSPACE', 'WORKSPACE.bazel' }, +} diff --git a/.config/nvim/lsp/c3_lsp.lua b/.config/nvim/lsp/c3_lsp.lua new file mode 100644 index 0000000..0ea9522 --- /dev/null +++ b/.config/nvim/lsp/c3_lsp.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/pherrymason/c3-lsp +--- +--- Language Server for c3. + +---@type vim.lsp.Config +return { + cmd = { 'c3lsp' }, + root_markers = { 'project.json', 'manifest.json', '.git' }, + filetypes = { 'c3', 'c3i' }, +} diff --git a/.config/nvim/lsp/cairo_ls.lua b/.config/nvim/lsp/cairo_ls.lua new file mode 100644 index 0000000..7489245 --- /dev/null +++ b/.config/nvim/lsp/cairo_ls.lua @@ -0,0 +1,20 @@ +---@brief +--- +--- [Cairo Language Server](https://github.com/starkware-libs/cairo/tree/main/crates/cairo-lang-language-server) +--- +--- First, install Cairo following [this tutorial](https://book.cairo-lang.org/ch01-01-installation.html) +--- +--- Then enable Cairo Language Server in your Lua configuration. +--- ```lua +--- vim.lsp.enable('cairo_ls') +--- ``` +--- +--- *cairo-language-server is still under active development, some features might not work yet !* + +---@type vim.lsp.Config +return { + init_options = { hostInfo = 'neovim' }, + cmd = { 'scarb', 'cairo-language-server', '/C', '--node-ipc' }, + filetypes = { 'cairo' }, + root_markers = { 'Scarb.toml', 'cairo_project.toml', '.git' }, +} diff --git a/.config/nvim/lsp/ccls.lua b/.config/nvim/lsp/ccls.lua new file mode 100644 index 0000000..44268df --- /dev/null +++ b/.config/nvim/lsp/ccls.lua @@ -0,0 +1,53 @@ +---@brief +--- +--- https://github.com/MaskRay/ccls/wiki +--- +--- ccls relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) specified +--- as compile_commands.json or, for simpler projects, a .ccls. +--- For details on how to automatically generate one using CMake look [here](https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html). Alternatively, you can use [Bear](https://github.com/rizsotto/Bear). +--- +--- Customization options are passed to ccls at initialization time via init_options, a list of available options can be found [here](https://github.com/MaskRay/ccls/wiki/Customization#initialization-options). For example: +--- +--- ```lua +--- vim.lsp.config("ccls", { +--- init_options = { +--- compilationDatabaseDirectory = "build"; +--- index = { +--- threads = 0; +--- }; +--- clang = { +--- excludeArgs = { "-frounding-math"} ; +--- }; +--- } +--- }) +--- ``` + +local function switch_source_header(client, bufnr) + local method_name = 'textDocument/switchSourceHeader' + local params = vim.lsp.util.make_text_document_params(bufnr) + client:request(method_name, params, function(err, result) + if err then + error(tostring(err)) + end + if not result then + vim.notify('corresponding file cannot be determined') + return + end + vim.cmd.edit(vim.uri_to_fname(result)) + end, bufnr) +end + +---@type vim.lsp.Config +return { + cmd = { 'ccls' }, + filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' }, + root_markers = { 'compile_commands.json', '.ccls', '.git' }, + offset_encoding = 'utf-32', + -- ccls does not support sending a null root directory + workspace_required = true, + on_attach = function(client, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspCclsSwitchSourceHeader', function() + switch_source_header(client, bufnr) + end, { desc = 'Switch between source/header' }) + end, +} diff --git a/.config/nvim/lsp/cds_lsp.lua b/.config/nvim/lsp/cds_lsp.lua new file mode 100644 index 0000000..12bfab7 --- /dev/null +++ b/.config/nvim/lsp/cds_lsp.lua @@ -0,0 +1,20 @@ +---@brief +--- +--- https://cap.cloud.sap/docs/ +--- +--- `cds-lsp` can be installed via `npm`: +--- +--- ```sh +--- npm i -g @sap/cds-lsp +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'cds-lsp', '--stdio' }, + filetypes = { 'cds' }, + -- init_options = { provideFormatter = true }, -- needed to enable formatting capabilities + root_markers = { 'package.json', 'db', 'srv' }, + settings = { + cds = { validate = true }, + }, +} diff --git a/.config/nvim/lsp/cir_lsp_server.lua b/.config/nvim/lsp/cir_lsp_server.lua new file mode 100644 index 0000000..15b887f --- /dev/null +++ b/.config/nvim/lsp/cir_lsp_server.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://llvm.github.io/clangir +--- +--- The Language Server for the LLVM ClangIR language +--- +--- `cir-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project) + +---@type vim.lsp.Config +return { + cmd = { 'cir-lsp-server' }, + filetypes = { 'cir' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/circom-lsp.lua b/.config/nvim/lsp/circom-lsp.lua new file mode 100644 index 0000000..c3bb8a4 --- /dev/null +++ b/.config/nvim/lsp/circom-lsp.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- [Circom Language Server](https://github.com/rubydusa/circom-lsp) +--- +--- `circom-lsp`, the language server for the Circom language. + +---@type vim.lsp.Config +return { + cmd = { 'circom-lsp' }, + filetypes = { 'circom' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/clangd.lua b/.config/nvim/lsp/clangd.lua new file mode 100644 index 0000000..c06cefa --- /dev/null +++ b/.config/nvim/lsp/clangd.lua @@ -0,0 +1,103 @@ +---@brief +--- +--- https://clangd.llvm.org/installation.html +--- +--- - **NOTE:** Clang >= 11 is recommended! See [#23](https://github.com/neovim/nvim-lspconfig/issues/23). +--- - If `compile_commands.json` lives in a build directory, you should +--- symlink it to the root of your source tree. +--- ``` +--- ln -s /path/to/myproject/build/compile_commands.json /path/to/myproject/ +--- ``` +--- - clangd relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) +--- specified as compile_commands.json, see https://clangd.llvm.org/installation#compile_commandsjson + +-- https://clangd.llvm.org/extensions.html#switch-between-sourceheader +local function switch_source_header(bufnr, client) + local method_name = 'textDocument/switchSourceHeader' + ---@diagnostic disable-next-line:param-type-mismatch + if not client or not client:supports_method(method_name) then + return vim.notify(('method %s is not supported by any servers active on the current buffer'):format(method_name)) + end + local params = vim.lsp.util.make_text_document_params(bufnr) + ---@diagnostic disable-next-line:param-type-mismatch + client:request(method_name, params, function(err, result) + if err then + error(tostring(err)) + end + if not result then + vim.notify('corresponding file cannot be determined') + return + end + vim.cmd.edit(vim.uri_to_fname(result)) + end, bufnr) +end + +local function symbol_info(bufnr, client) + local method_name = 'textDocument/symbolInfo' + ---@diagnostic disable-next-line:param-type-mismatch + if not client or not client:supports_method(method_name) then + return vim.notify('Clangd client not found', vim.log.levels.ERROR) + end + local win = vim.api.nvim_get_current_win() + local params = vim.lsp.util.make_position_params(win, client.offset_encoding) + ---@diagnostic disable-next-line:param-type-mismatch + client:request(method_name, params, function(err, res) + if err or #res == 0 then + -- Clangd always returns an error, there is no reason to parse it + return + end + local container = string.format('container: %s', res[1].containerName) ---@type string + local name = string.format('name: %s', res[1].name) ---@type string + vim.lsp.util.open_floating_preview({ name, container }, '', { + height = 2, + width = math.max(string.len(name), string.len(container)), + focusable = false, + focus = false, + title = 'Symbol Info', + }) + end, bufnr) +end + +---@class ClangdInitializeResult: lsp.InitializeResult +---@field offsetEncoding? string + +---@type vim.lsp.Config +return { + cmd = { + "clangd", + "--fallback-style=gnu" + }, + filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' }, + root_markers = { + '.clangd', + '.clang-tidy', + '.clang-format', + 'compile_commands.json', + 'compile_flags.txt', + 'configure.ac', -- AutoTools + '.git', + }, + capabilities = { + textDocument = { + completion = { + editsNearCursor = true, + }, + }, + offsetEncoding = { 'utf-8', 'utf-16' }, + }, + ---@param init_result ClangdInitializeResult + on_init = function(client, init_result) + if init_result.offsetEncoding then + client.offset_encoding = init_result.offsetEncoding + end + end, + on_attach = function(client, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspClangdSwitchSourceHeader', function() + switch_source_header(bufnr, client) + end, { desc = 'Switch between source/header' }) + + vim.api.nvim_buf_create_user_command(bufnr, 'LspClangdShowSymbolInfo', function() + symbol_info(bufnr, client) + end, { desc = 'Show symbol info' }) + end, +} diff --git a/.config/nvim/lsp/clarinet.lua b/.config/nvim/lsp/clarinet.lua new file mode 100644 index 0000000..be93d8a --- /dev/null +++ b/.config/nvim/lsp/clarinet.lua @@ -0,0 +1,11 @@ +---@brief +--- https://github.com/hirosystems/clarinet +--- +--- Clarinet is the fastest way to build, test, and deploy smart contracts on the Stacks blockchain. + +---@type vim.lsp.Config +return { + cmd = { 'clarinet', 'lsp' }, + filetypes = { 'clar', 'clarity' }, + root_markers = { 'Clarinet.toml' }, +} diff --git a/.config/nvim/lsp/clojure_lsp.lua b/.config/nvim/lsp/clojure_lsp.lua new file mode 100644 index 0000000..f60ee38 --- /dev/null +++ b/.config/nvim/lsp/clojure_lsp.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/clojure-lsp/clojure-lsp +--- +--- Clojure Language Server + +---@type vim.lsp.Config +return { + cmd = { 'clojure-lsp' }, + filetypes = { 'clojure', 'edn' }, + root_markers = { 'project.clj', 'deps.edn', 'build.boot', 'shadow-cljs.edn', '.git', 'bb.edn' }, +} diff --git a/.config/nvim/lsp/cmake.lua b/.config/nvim/lsp/cmake.lua new file mode 100644 index 0000000..38fa06a --- /dev/null +++ b/.config/nvim/lsp/cmake.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/regen100/cmake-language-server +--- +--- CMake LSP Implementation + +---@type vim.lsp.Config +return { + cmd = { 'cmake-language-server' }, + filetypes = { 'cmake' }, + root_markers = { 'CMakePresets.json', 'CTestConfig.cmake', '.git', 'build', 'cmake' }, + init_options = { + buildDirectory = 'build', + }, +} diff --git a/.config/nvim/lsp/cobol_ls.lua b/.config/nvim/lsp/cobol_ls.lua new file mode 100644 index 0000000..a763ed6 --- /dev/null +++ b/.config/nvim/lsp/cobol_ls.lua @@ -0,0 +1,10 @@ +---@brief +--- +--- Cobol language support + +---@type vim.lsp.Config +return { + cmd = { 'cobol-language-support' }, + filetypes = { 'cobol' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/codebook.lua b/.config/nvim/lsp/codebook.lua new file mode 100644 index 0000000..dea265c --- /dev/null +++ b/.config/nvim/lsp/codebook.lua @@ -0,0 +1,37 @@ +---@brief +--- +--- https://github.com/blopker/codebook +--- +--- An unholy spell checker for code. +--- +--- `codebook-lsp` can be installed by following the instructions [here](https://github.com/blopker/codebook/blob/main/README.md#installation). +--- +--- The default `cmd` assumes that the `codebook-lsp` binary can be found in `$PATH`. +--- + +---@type vim.lsp.Config +return { + cmd = { 'codebook-lsp', 'serve' }, + filetypes = { + 'c', + 'css', + 'gitcommit', + 'go', + 'haskell', + 'html', + 'java', + 'javascript', + 'javascriptreact', + 'lua', + 'markdown', + 'php', + 'python', + 'ruby', + 'rust', + 'toml', + 'text', + 'typescript', + 'typescriptreact', + }, + root_markers = { '.git', 'codebook.toml', '.codebook.toml' }, +} diff --git a/.config/nvim/lsp/coffeesense.lua b/.config/nvim/lsp/coffeesense.lua new file mode 100644 index 0000000..aeaa2c2 --- /dev/null +++ b/.config/nvim/lsp/coffeesense.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- https://github.com/phil294/coffeesense +--- +--- CoffeeSense Language Server +--- `coffeesense-language-server` can be installed via `npm`: +--- ```sh +--- npm install -g coffeesense-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'coffeesense-language-server', '--stdio' }, + filetypes = { 'coffee' }, + root_markers = { 'package.json' }, +} diff --git a/.config/nvim/lsp/contextive.lua b/.config/nvim/lsp/contextive.lua new file mode 100644 index 0000000..3cca333 --- /dev/null +++ b/.config/nvim/lsp/contextive.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/dev-cycles/contextive +--- +--- Language Server for Contextive. +--- +--- Contextive allows you to define terms in a central file and provides auto-completion suggestions and hover panels for these terms wherever they're used. +--- +--- To install the language server, you need to download the appropriate [GitHub release asset](https://github.com/dev-cycles/contextive/releases/) for your operating system and architecture. +--- +--- After the download unzip the Contextive.LanguageServer binary and copy the file into a folder that is included in your system's PATH. + +---@type vim.lsp.Config +return { + cmd = { 'Contextive.LanguageServer' }, + root_markers = { '.contextive', '.git' }, +} diff --git a/.config/nvim/lsp/copilot.lua b/.config/nvim/lsp/copilot.lua new file mode 100644 index 0000000..66c2dd5 --- /dev/null +++ b/.config/nvim/lsp/copilot.lua @@ -0,0 +1,135 @@ +---@brief +--- +--- https://www.npmjs.com/package/@github/copilot-language-server +--- +--- The Copilot Language Server enables any editor or IDE +--- to integrate with GitHub Copilot via +--- [the language server protocol](https://microsoft.github.io/language-server-protocol/). +--- +--- **[GitHub Copilot](https://github.com/features/copilot)** +--- is an AI pair programmer tool that helps you write code faster and smarter. +--- +--- **Sign up for [GitHub Copilot Free](https://github.com/settings/copilot)!** +--- +--- Please see [terms of use for GitHub Copilot](https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features#github-copilot) +--- +--- You need to enable `:help lsp-inline-completion` to receive suggestions. For example, you can enable it in the LspAttach event: +--- +--- ```lua +--- vim.api.nvim_create_autocmd('LspAttach', { +--- callback = function(args) +--- local bufnr = args.buf +--- local client = assert(vim.lsp.get_client_by_id(args.data.client_id)) +--- +--- if client:supports_method(vim.lsp.protocol.Methods.textDocument_inlineCompletion, bufnr) then +--- vim.lsp.inline_completion.enable(true, { bufnr = bufnr }) +--- +--- vim.keymap.set( +--- 'i', +--- '', +--- vim.lsp.inline_completion.get, +--- { desc = 'LSP: accept inline completion', buffer = bufnr } +--- ) +--- vim.keymap.set( +--- 'i', +--- '', +--- vim.lsp.inline_completion.select, +--- { desc = 'LSP: switch inline completion', buffer = bufnr } +--- ) +--- end +--- end +--- }) +--- ``` + +---@param bufnr integer, +---@param client vim.lsp.Client +local function sign_in(bufnr, client) + client:request( + ---@diagnostic disable-next-line: param-type-mismatch + 'signIn', + vim.empty_dict(), + function(err, result) + if err then + vim.notify(err.message, vim.log.levels.ERROR) + return + end + if result.command then + local code = result.userCode + local command = result.command + vim.fn.setreg('+', code) + vim.fn.setreg('*', code) + local continue = vim.fn.confirm( + 'Copied your one-time code to clipboard.\n' .. 'Open the browser to complete the sign-in process?', + '&Yes\n&No' + ) + if continue == 1 then + client:exec_cmd(command, { bufnr = bufnr }, function(cmd_err, cmd_result) + if cmd_err then + vim.notify(err.message, vim.log.levels.ERROR) + return + end + if cmd_result.status == 'OK' then + vim.notify('Signed in as ' .. cmd_result.user .. '.') + end + end) + end + end + + if result.status == 'PromptUserDeviceFlow' then + vim.notify('Enter your one-time code ' .. result.userCode .. ' in ' .. result.verificationUri) + elseif result.status == 'AlreadySignedIn' then + vim.notify('Already signed in as ' .. result.user .. '.') + end + end + ) +end + +---@param client vim.lsp.Client +local function sign_out(_, client) + client:request( + ---@diagnostic disable-next-line: param-type-mismatch + 'signOut', + vim.empty_dict(), + function(err, result) + if err then + vim.notify(err.message, vim.log.levels.ERROR) + return + end + if result.status == 'NotSignedIn' then + vim.notify('Not signed in.') + end + end + ) +end + +---@type vim.lsp.Config +return { + cmd = { + 'copilot-language-server', + '--stdio', + }, + root_markers = { '.git' }, + init_options = { + editorInfo = { + name = 'Neovim', + version = tostring(vim.version()), + }, + editorPluginInfo = { + name = 'Neovim', + version = tostring(vim.version()), + }, + }, + settings = { + telemetry = { + telemetryLevel = 'all', + }, + }, + on_attach = function(client, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspCopilotSignIn', function() + sign_in(bufnr, client) + end, { desc = 'Sign in Copilot with GitHub' }) + vim.api.nvim_buf_create_user_command(bufnr, 'LspCopilotSignOut', function() + sign_out(bufnr, client) + end, { desc = 'Sign out Copilot with GitHub' }) + end, +} diff --git a/.config/nvim/lsp/coq_lsp.lua b/.config/nvim/lsp/coq_lsp.lua new file mode 100644 index 0000000..e8dc76f --- /dev/null +++ b/.config/nvim/lsp/coq_lsp.lua @@ -0,0 +1,10 @@ +---@brief +--- +--- https://github.com/ejgallego/coq-lsp/ + +---@type vim.lsp.Config +return { + cmd = { 'coq-lsp' }, + filetypes = { 'coq' }, + root_markers = { '_CoqProject', '.git' }, +} diff --git a/.config/nvim/lsp/crystalline.lua b/.config/nvim/lsp/crystalline.lua new file mode 100644 index 0000000..f682f7d --- /dev/null +++ b/.config/nvim/lsp/crystalline.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/elbywan/crystalline +--- +--- Crystal language server. + +---@type vim.lsp.Config +return { + cmd = { 'crystalline' }, + filetypes = { 'crystal' }, + root_markers = { 'shard.yml', '.git' }, +} diff --git a/.config/nvim/lsp/csharp_ls.lua b/.config/nvim/lsp/csharp_ls.lua new file mode 100644 index 0000000..7764592 --- /dev/null +++ b/.config/nvim/lsp/csharp_ls.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/razzmatazz/csharp-language-server +--- +--- Language Server for C#. +--- +--- csharp-ls requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed. +--- +--- The preferred way to install csharp-ls is with `dotnet tool install --global csharp-ls`. + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'csharp-ls' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern '*.sln'(fname) or util.root_pattern '*.slnx'(fname) or util.root_pattern '*.csproj'(fname)) + end, + filetypes = { 'cs' }, + init_options = { + AutomaticWorkspaceInit = true, + }, +} diff --git a/.config/nvim/lsp/cspell_ls.lua b/.config/nvim/lsp/cspell_ls.lua new file mode 100644 index 0000000..d1598dd --- /dev/null +++ b/.config/nvim/lsp/cspell_ls.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- [cspell language server](https://github.com/vlabo/cspell-lsp) +--- + +---@type vim.lsp.Config +return { + cmd = { 'cspell-lsp', '--stdio' }, + root_markers = { + '.git', + 'cspell.json', + '.cspell.json', + 'cspell.json', + '.cSpell.json', + 'cSpell.json', + 'cspell.config.js', + 'cspell.config.cjs', + 'cspell.config.json', + 'cspell.config.yaml', + 'cspell.config.yml', + 'cspell.yaml', + 'cspell.yml', + }, +} diff --git a/.config/nvim/lsp/css_variables.lua b/.config/nvim/lsp/css_variables.lua new file mode 100644 index 0000000..f9cdbcd --- /dev/null +++ b/.config/nvim/lsp/css_variables.lua @@ -0,0 +1,39 @@ +---@brief +--- +--- https://github.com/vunguyentuan/vscode-css-variables/tree/master/packages/css-variables-language-server +--- +--- CSS variables autocompletion and go-to-definition +--- +--- `css-variables-language-server` can be installed via `npm`: +--- +--- ```sh +--- npm i -g css-variables-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'css-variables-language-server', '--stdio' }, + filetypes = { 'css', 'scss', 'less' }, + root_markers = { 'package.json', '.git' }, + -- Same as inlined defaults that don't seem to work without hardcoding them in the lua config + -- https://github.com/vunguyentuan/vscode-css-variables/blob/763a564df763f17aceb5f3d6070e0b444a2f47ff/packages/css-variables-language-server/src/CSSVariableManager.ts#L31-L50 + settings = { + cssVariables = { + lookupFiles = { '**/*.less', '**/*.scss', '**/*.sass', '**/*.css' }, + blacklistFolders = { + '**/.cache', + '**/.DS_Store', + '**/.git', + '**/.hg', + '**/.next', + '**/.svn', + '**/bower_components', + '**/CVS', + '**/dist', + '**/node_modules', + '**/tests', + '**/tmp', + }, + }, + }, +} diff --git a/.config/nvim/lsp/cssls.lua b/.config/nvim/lsp/cssls.lua new file mode 100644 index 0000000..5f825b4 --- /dev/null +++ b/.config/nvim/lsp/cssls.lua @@ -0,0 +1,34 @@ +---@brief +--- +--- https://github.com/hrsh7th/vscode-langservers-extracted +--- +--- `css-languageserver` can be installed via `npm`: +--- +--- ```sh +--- npm i -g vscode-langservers-extracted +--- ``` +--- +--- Neovim does not currently include built-in snippets. `vscode-css-language-server` only provides completions when snippet support is enabled. To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup. +--- +--- ```lua +--- --Enable (broadcasting) snippet capability for completion +--- local capabilities = vim.lsp.protocol.make_client_capabilities() +--- capabilities.textDocument.completion.completionItem.snippetSupport = true +--- +--- vim.lsp.config('cssls', { +--- capabilities = capabilities, +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'vscode-css-language-server', '--stdio' }, + filetypes = { 'css', 'scss', 'less' }, + init_options = { provideFormatter = true }, -- needed to enable formatting capabilities + root_markers = { 'package.json', '.git' }, + settings = { + css = { validate = true }, + scss = { validate = true }, + less = { validate = true }, + }, +} diff --git a/.config/nvim/lsp/cssmodules_ls.lua b/.config/nvim/lsp/cssmodules_ls.lua new file mode 100644 index 0000000..35a5c59 --- /dev/null +++ b/.config/nvim/lsp/cssmodules_ls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/antonk52/cssmodules-language-server +--- +--- Language server for autocompletion and go-to-definition functionality for CSS modules. +--- +--- You can install cssmodules-language-server via npm: +--- ```sh +--- npm install -g cssmodules-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'cssmodules-language-server' }, + filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' }, + root_markers = { 'package.json' }, +} diff --git a/.config/nvim/lsp/cucumber_language_server.lua b/.config/nvim/lsp/cucumber_language_server.lua new file mode 100644 index 0000000..82bfcff --- /dev/null +++ b/.config/nvim/lsp/cucumber_language_server.lua @@ -0,0 +1,19 @@ +---@brief +--- +--- https://cucumber.io +--- https://github.com/cucumber/common +--- https://www.npmjs.com/package/@cucumber/language-server +--- +--- Language server for Cucumber. +--- +--- `cucumber-language-server` can be installed via `npm`: +--- ```sh +--- npm install -g @cucumber/language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'cucumber-language-server', '--stdio' }, + filetypes = { 'cucumber' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/cue.lua b/.config/nvim/lsp/cue.lua new file mode 100644 index 0000000..22941a0 --- /dev/null +++ b/.config/nvim/lsp/cue.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/cue-lang/cue +--- +--- CUE makes it easy to validate data, write schemas, and ensure configurations align with policies. + +---@type vim.lsp.Config +return { + cmd = { 'cue', 'lsp' }, + filetypes = { 'cue' }, + root_markers = { 'cue.mod', '.git' }, +} diff --git a/.config/nvim/lsp/custom_elements_ls.lua b/.config/nvim/lsp/custom_elements_ls.lua new file mode 100644 index 0000000..684786b --- /dev/null +++ b/.config/nvim/lsp/custom_elements_ls.lua @@ -0,0 +1,32 @@ +---@brief +--- +--- https://github.com/Matsuuu/custom-elements-language-server +--- +--- `custom-elements-languageserver` depends on `typescript`. Both packages can be installed via `npm`: +--- ```sh +--- npm install -g typescript custom-elements-languageserver +--- ``` +--- To configure typescript language server, add a +--- [`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) or +--- [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to the root of your +--- project. +--- Here's an example that disables type checking in JavaScript files. +--- ```json +--- { +--- "compilerOptions": { +--- "module": "commonjs", +--- "target": "es6", +--- "checkJs": false +--- }, +--- "exclude": [ +--- "node_modules" +--- ] +--- } +--- ``` + +---@type vim.lsp.Config +return { + init_options = { hostInfo = 'neovim' }, + cmd = { 'custom-elements-languageserver', '--stdio' }, + root_markers = { 'tsconfig.json', 'package.json', 'jsconfig.json', '.git' }, +} diff --git a/.config/nvim/lsp/cypher_ls.lua b/.config/nvim/lsp/cypher_ls.lua new file mode 100644 index 0000000..8058b1c --- /dev/null +++ b/.config/nvim/lsp/cypher_ls.lua @@ -0,0 +1,18 @@ +---@brief +--- +--- https://github.com/neo4j/cypher-language-support/tree/main/packages/language-server +--- +--- `cypher-language-server`, language server for Cypher query language. +--- Part of the umbrella project cypher-language-support: https://github.com/neo4j/cypher-language-support +--- +--- `cypher-language-server` can be installed via `npm`: +--- ```sh +--- npm i -g @neo4j-cypher/language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'cypher-language-server', '--stdio' }, + filetypes = { 'cypher' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/daedalus_ls.lua b/.config/nvim/lsp/daedalus_ls.lua new file mode 100644 index 0000000..b3adef8 --- /dev/null +++ b/.config/nvim/lsp/daedalus_ls.lua @@ -0,0 +1,27 @@ +--- @brief +--- +--- DaedalusLanguageServer + +---@type vim.lsp.Config +return { + cmd = { 'DaedalusLanguageServer' }, + filetypes = { 'd' }, + root_markers = { + 'Gothic.src', + 'Camera.src', + 'Menu.src', + 'Music.src', + 'ParticleFX.src', + 'SFX.src', + 'VisualFX.src', + }, + settings = { + DaedalusLanguageServer = { + loglevel = 'debug', + inlayHints = { constants = true }, + numParserThreads = 16, + fileEncoding = 'Windows-1252', + srcFileEncoding = 'Windows-1252', + }, + }, +} diff --git a/.config/nvim/lsp/dafny.lua b/.config/nvim/lsp/dafny.lua new file mode 100644 index 0000000..39e65d9 --- /dev/null +++ b/.config/nvim/lsp/dafny.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- Support for the Dafny language server. + +-- The default `cmd` uses "dafny server", which works on Dafny 4.0.0+. For +-- older versions of Dafny, you can compile the language server from source at +-- [dafny-lang/language-server-csharp](https://github.com/dafny-lang/language-server-csharp) +-- and set `cmd = {"dotnet", ""}`. + +---@type vim.lsp.Config +return { + cmd = { 'dafny', 'server' }, + filetypes = { 'dfy', 'dafny' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/dagger.lua b/.config/nvim/lsp/dagger.lua new file mode 100644 index 0000000..714e79a --- /dev/null +++ b/.config/nvim/lsp/dagger.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/dagger/cuelsp +--- +--- Dagger's lsp server for cuelang. + +---@type vim.lsp.Config +return { + cmd = { 'cuelsp' }, + filetypes = { 'cue' }, + root_markers = { 'cue.mod', '.git' }, +} diff --git a/.config/nvim/lsp/dartls.lua b/.config/nvim/lsp/dartls.lua new file mode 100644 index 0000000..3731d07 --- /dev/null +++ b/.config/nvim/lsp/dartls.lua @@ -0,0 +1,25 @@ +---@brief +--- +--- https://github.com/dart-lang/sdk/tree/master/pkg/analysis_server/tool/lsp_spec +--- +--- Language server for dart. + +---@type vim.lsp.Config +return { + cmd = { 'dart', 'language-server', '--protocol=lsp' }, + filetypes = { 'dart' }, + root_markers = { 'pubspec.yaml' }, + init_options = { + onlyAnalyzeProjectsWithOpenFiles = true, + suggestFromUnimportedLibraries = true, + closingLabels = true, + outline = true, + flutterOutline = true, + }, + settings = { + dart = { + completeFunctionCalls = true, + showTodos = true, + }, + }, +} diff --git a/.config/nvim/lsp/dcmls.lua b/.config/nvim/lsp/dcmls.lua new file mode 100644 index 0000000..90f98db --- /dev/null +++ b/.config/nvim/lsp/dcmls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://dcm.dev/ +--- +--- Language server for DCM analyzer. + +---@type vim.lsp.Config +return { + cmd = { 'dcm', 'start-server', '--client=neovim' }, + filetypes = { 'dart' }, + root_markers = { 'pubspec.yaml' }, +} diff --git a/.config/nvim/lsp/debputy.lua b/.config/nvim/lsp/debputy.lua new file mode 100644 index 0000000..6d7dce5 --- /dev/null +++ b/.config/nvim/lsp/debputy.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://salsa.debian.org/debian/debputy +--- +--- Language Server for Debian packages. + +---@type vim.lsp.Config +return { + cmd = { 'debputy', 'lsp', 'server' }, + filetypes = { 'debcontrol', 'debcopyright', 'debchangelog', 'autopkgtest', 'make', 'yaml' }, + root_markers = { 'debian' }, +} diff --git a/.config/nvim/lsp/denols.lua b/.config/nvim/lsp/denols.lua new file mode 100644 index 0000000..8c051fb --- /dev/null +++ b/.config/nvim/lsp/denols.lua @@ -0,0 +1,111 @@ +---@brief +--- +--- https://github.com/denoland/deno +--- +--- Deno's built-in language server +--- +--- To appropriately highlight codefences returned from denols, you will need to augment vim.g.markdown_fenced languages +--- in your init.lua. Example: +--- +--- ```lua +--- vim.g.markdown_fenced_languages = { +--- "ts=typescript" +--- } +--- ``` + +local lsp = vim.lsp + +local function virtual_text_document_handler(uri, res, client) + if not res then + return nil + end + + local lines = vim.split(res.result, '\n') + local bufnr = vim.uri_to_bufnr(uri) + + local current_buf = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false) + if #current_buf ~= 0 then + return nil + end + + vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines) + vim.api.nvim_set_option_value('readonly', true, { buf = bufnr }) + vim.api.nvim_set_option_value('modified', false, { buf = bufnr }) + vim.api.nvim_set_option_value('modifiable', false, { buf = bufnr }) + lsp.buf_attach_client(bufnr, client.id) +end + +local function virtual_text_document(uri, client) + local params = { + textDocument = { + uri = uri, + }, + } + local result = client:request_sync('deno/virtualTextDocument', params) + virtual_text_document_handler(uri, result, client) +end + +local function denols_handler(err, result, ctx, config) + if not result or vim.tbl_isempty(result) then + return nil + end + + local client = vim.lsp.get_client_by_id(ctx.client_id) + for _, res in pairs(result) do + local uri = res.uri or res.targetUri + if uri:match '^deno:' then + virtual_text_document(uri, client) + res['uri'] = uri + res['targetUri'] = uri + end + end + + lsp.handlers[ctx.method](err, result, ctx, config) +end + +---@type vim.lsp.Config +return { + cmd = { 'deno', 'lsp' }, + cmd_env = { NO_COLOR = true }, + filetypes = { + 'javascript', + 'javascriptreact', + 'javascript.jsx', + 'typescript', + 'typescriptreact', + 'typescript.tsx', + }, + root_markers = { 'deno.json', 'deno.jsonc', '.git' }, + settings = { + deno = { + enable = true, + suggest = { + imports = { + hosts = { + ['https://deno.land'] = true, + }, + }, + }, + }, + }, + handlers = { + ['textDocument/definition'] = denols_handler, + ['textDocument/typeDefinition'] = denols_handler, + ['textDocument/references'] = denols_handler, + }, + on_attach = function(client, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspDenolsCache', function() + client:exec_cmd({ + command = 'deno.cache', + arguments = { {}, vim.uri_from_bufnr(bufnr) }, + }, { bufnr = bufnr }, function(err, _, ctx) + if err then + local uri = ctx.params.arguments[2] + vim.notify('cache command failed for' .. vim.uri_to_fname(uri), vim.log.levels.ERROR) + end + end) + end, { + desc = 'Cache a module and all of its dependencies.', + }) + end, +} diff --git a/.config/nvim/lsp/dhall_lsp_server.lua b/.config/nvim/lsp/dhall_lsp_server.lua new file mode 100644 index 0000000..4953fba --- /dev/null +++ b/.config/nvim/lsp/dhall_lsp_server.lua @@ -0,0 +1,18 @@ +---@brief +--- +--- https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server +--- +--- language server for dhall +--- +--- `dhall-lsp-server` can be installed via cabal: +--- ```sh +--- cabal install dhall-lsp-server +--- ``` +--- prebuilt binaries can be found [here](https://github.com/dhall-lang/dhall-haskell/releases). + +---@type vim.lsp.Config +return { + cmd = { 'dhall-lsp-server' }, + filetypes = { 'dhall' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/diagnosticls.lua b/.config/nvim/lsp/diagnosticls.lua new file mode 100644 index 0000000..8c717ea --- /dev/null +++ b/.config/nvim/lsp/diagnosticls.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/iamcco/diagnostic-languageserver +--- +--- Diagnostic language server integrate with linters. + +---@type vim.lsp.Config +return { + -- Configuration from https://github.com/iamcco/diagnostic-languageserver#config--document + cmd = { 'diagnostic-languageserver', '--stdio' }, + root_markers = { '.git' }, + -- Empty by default, override to add filetypes. + filetypes = {}, +} diff --git a/.config/nvim/lsp/digestif.lua b/.config/nvim/lsp/digestif.lua new file mode 100644 index 0000000..863b772 --- /dev/null +++ b/.config/nvim/lsp/digestif.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- https://github.com/astoff/digestif +--- +--- Digestif is a code analyzer, and a language server, for LaTeX, ConTeXt et caterva. It provides +--- +--- context-sensitive completion, documentation, code navigation, and related functionality to any +--- +--- text editor that speaks the LSP protocol. + +---@type vim.lsp.Config +return { + cmd = { 'digestif' }, + filetypes = { 'tex', 'plaintex', 'context' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/djls.lua b/.config/nvim/lsp/djls.lua new file mode 100644 index 0000000..7ef8d5f --- /dev/null +++ b/.config/nvim/lsp/djls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/joshuadavidthomas/django-language-server +--- +--- `djls`, a language server for the Django web framework. + +---@type vim.lsp.Config +return { + cmd = { 'djls', 'serve' }, + filetypes = { 'htmldjango', 'html', 'python' }, + root_markers = { 'manage.py', 'pyproject.toml', '.git' }, +} diff --git a/.config/nvim/lsp/djlsp.lua b/.config/nvim/lsp/djlsp.lua new file mode 100644 index 0000000..120dbe4 --- /dev/null +++ b/.config/nvim/lsp/djlsp.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/fourdigits/django-template-lsp +--- +--- `djlsp`, a language server for Django templates. + +---@type vim.lsp.Config +return { + cmd = { 'djlsp' }, + filetypes = { 'html', 'htmldjango' }, + root_markers = { '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/docker_compose_language_service.lua b/.config/nvim/lsp/docker_compose_language_service.lua new file mode 100644 index 0000000..f5bbf78 --- /dev/null +++ b/.config/nvim/lsp/docker_compose_language_service.lua @@ -0,0 +1,19 @@ +---@brief +--- +--- https://github.com/microsoft/compose-language-service +--- This project contains a language service for Docker Compose. +--- +--- `compose-language-service` can be installed via `npm`: +--- +--- ```sh +--- npm install @microsoft/compose-language-service +--- ``` +--- +--- Note: If the docker-compose-langserver doesn't startup when entering a `docker-compose.yaml` file, make sure that the filetype is `yaml.docker-compose`. You can set with: `:set filetype=yaml.docker-compose`. + +---@type vim.lsp.Config +return { + cmd = { 'docker-compose-langserver', '--stdio' }, + filetypes = { 'yaml.docker-compose' }, + root_markers = { 'docker-compose.yaml', 'docker-compose.yml', 'compose.yaml', 'compose.yml' }, +} diff --git a/.config/nvim/lsp/docker_language_server.lua b/.config/nvim/lsp/docker_language_server.lua new file mode 100644 index 0000000..695d51a --- /dev/null +++ b/.config/nvim/lsp/docker_language_server.lua @@ -0,0 +1,32 @@ +---@brief +--- +--- https://github.com/docker/docker-language-server +--- +--- `docker-langserver-server` can be installed via `go`: +--- ```sh +--- go install github.com/docker/docker-language-server/cmd/docker-language-server@latest +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'docker-language-server', 'start', '--stdio' }, + filetypes = { 'dockerfile', 'yaml.docker-compose' }, + get_language_id = function(_, ftype) + if ftype == 'yaml.docker-compose' or ftype:lower():find('ya?ml') then + return 'dockercompose' + else + return ftype + end + end, + root_markers = { + 'Dockerfile', + 'docker-compose.yaml', + 'docker-compose.yml', + 'compose.yaml', + 'compose.yml', + 'docker-bake.json', + 'docker-bake.hcl', + 'docker-bake.override.json', + 'docker-bake.override.hcl', + }, +} diff --git a/.config/nvim/lsp/dockerls.lua b/.config/nvim/lsp/dockerls.lua new file mode 100644 index 0000000..ee17ed1 --- /dev/null +++ b/.config/nvim/lsp/dockerls.lua @@ -0,0 +1,30 @@ +---@brief +--- +--- https://github.com/rcjsuen/dockerfile-language-server-nodejs +--- +--- `docker-langserver` can be installed via `npm`: +--- ```sh +--- npm install -g dockerfile-language-server-nodejs +--- ``` +--- +--- Additional configuration can be applied in the following way: +--- ```lua +--- vim.lsp.config('dockerls', { +--- settings = { +--- docker = { +--- languageserver = { +--- formatter = { +--- ignoreMultilineInstructions = true, +--- }, +--- }, +--- } +--- } +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'docker-langserver', '--stdio' }, + filetypes = { 'dockerfile' }, + root_markers = { 'Dockerfile' }, +} diff --git a/.config/nvim/lsp/dolmenls.lua b/.config/nvim/lsp/dolmenls.lua new file mode 100644 index 0000000..de240da --- /dev/null +++ b/.config/nvim/lsp/dolmenls.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/Gbury/dolmen/blob/master/doc/lsp.md +--- +--- `dolmenls` can be installed via `opam` +--- ```sh +--- opam install dolmen_lsp +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'dolmenls' }, + filetypes = { 'smt2', 'tptp', 'p', 'cnf', 'icnf', 'zf' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/dotls.lua b/.config/nvim/lsp/dotls.lua new file mode 100644 index 0000000..51fca6e --- /dev/null +++ b/.config/nvim/lsp/dotls.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/nikeee/dot-language-server +--- +--- `dot-language-server` can be installed via `npm`: +--- ```sh +--- npm install -g dot-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'dot-language-server', '--stdio' }, + filetypes = { 'dot' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/dprint.lua b/.config/nvim/lsp/dprint.lua new file mode 100644 index 0000000..31acacd --- /dev/null +++ b/.config/nvim/lsp/dprint.lua @@ -0,0 +1,26 @@ +---@brief +--- +--- https://github.com/dprint/dprint +--- +--- Pluggable and configurable code formatting platform written in Rust. + +---@type vim.lsp.Config +return { + cmd = { 'dprint', 'lsp' }, + filetypes = { + 'javascript', + 'javascriptreact', + 'typescript', + 'typescriptreact', + 'json', + 'jsonc', + 'markdown', + 'python', + 'toml', + 'rust', + 'roslyn', + 'graphql', + }, + root_markers = { 'dprint.json', '.dprint.json', 'dprint.jsonc', '.dprint.jsonc' }, + settings = {}, +} diff --git a/.config/nvim/lsp/ds_pinyin_lsp.lua b/.config/nvim/lsp/ds_pinyin_lsp.lua new file mode 100644 index 0000000..68a99fa --- /dev/null +++ b/.config/nvim/lsp/ds_pinyin_lsp.lua @@ -0,0 +1,67 @@ +---@brief +--- +--- https://github.com/iamcco/ds-pinyin-lsp +--- Dead simple Pinyin language server for input Chinese without IME(input method). +--- To install, download the latest [release](https://github.com/iamcco/ds-pinyin-lsp/releases) and ensure `ds-pinyin-lsp` is on your path. +--- And make ensure the database file `dict.db3` is also downloaded. And put the path to `dict.dbs` in the following code. +--- +--- ```lua +--- +--- vim.lsp.config('ds_pinyin_lsp', { +--- init_options = { +--- db_path = "your_path_to_database" +--- } +--- }) +--- +--- ``` + +local bin_name = 'ds-pinyin-lsp' +if vim.fn.has 'win32' == 1 then + bin_name = bin_name .. '.exe' +end + +local function ds_pinyin_lsp_off(bufnr) + local ds_pinyin_lsp_client = vim.lsp.get_clients({ bufnr = bufnr, name = 'ds_pinyin_lsp' })[1] + if ds_pinyin_lsp_client then + ds_pinyin_lsp_client:notify('$/turn/completion', { + ['completion_on'] = false, + }) + else + vim.notify 'notification $/turn/completion is not supported by any servers active on the current buffer' + end +end + +local function ds_pinyin_lsp_on(bufnr) + local ds_pinyin_lsp_client = vim.lsp.get_clients({ bufnr = bufnr, name = 'ds_pinyin_lsp' })[1] + if ds_pinyin_lsp_client then + ds_pinyin_lsp_client:notify('$/turn/completion', { + ['completion_on'] = true, + }) + else + vim.notify 'notification $/turn/completion is not supported by any servers active on the current buffer' + end +end + +---@type vim.lsp.Config +return { + cmd = { bin_name }, + filetypes = { 'markdown', 'org' }, + root_markers = { '.git' }, + init_options = { + completion_on = true, + show_symbols = true, + show_symbols_only_follow_by_hanzi = false, + show_symbols_by_n_times = 0, + match_as_same_as_input = true, + match_long_input = true, + max_suggest = 15, + }, + on_attach = function(_, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspDsPinyinCompletionOff', function() + ds_pinyin_lsp_off(bufnr) + end, { desc = 'Turn off the ds-pinyin-lsp completion' }) + vim.api.nvim_buf_create_user_command(bufnr, 'LspDsPinyinCompletionOn', function() + ds_pinyin_lsp_on(bufnr) + end, { desc = 'Turn on the ds-pinyin-lsp completion' }) + end, +} diff --git a/.config/nvim/lsp/dts_lsp.lua b/.config/nvim/lsp/dts_lsp.lua new file mode 100644 index 0000000..dd9c4a8 --- /dev/null +++ b/.config/nvim/lsp/dts_lsp.lua @@ -0,0 +1,22 @@ +---@brief +--- +--- `dts-lsp` is an LSP for Devicetree files built on top of tree-sitter-devicetree grammar. +--- Language servers can be used in many editors, such as Visual Studio Code, Emacs +--- or Vim +--- +--- Install `dts-lsp` from https://github.com/igor-prusov/dts-lsp and add it to path +--- +--- `dts-lsp` doesn't require any configuration. +--- +--- More about Devicetree: +--- https://www.devicetree.org/ +--- https://docs.zephyrproject.org/latest/build/dts/index.html + +---@type vim.lsp.Config +return { + name = 'dts_lsp', + cmd = { 'dts-lsp' }, + filetypes = { 'dts', 'dtsi', 'overlay' }, + root_markers = { '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/earthlyls.lua b/.config/nvim/lsp/earthlyls.lua new file mode 100644 index 0000000..3beb399 --- /dev/null +++ b/.config/nvim/lsp/earthlyls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/glehmann/earthlyls +--- +--- A fast language server for earthly. + +---@type vim.lsp.Config +return { + cmd = { 'earthlyls' }, + filetypes = { 'earthfile' }, + root_markers = { 'Earthfile' }, +} diff --git a/.config/nvim/lsp/ecsact.lua b/.config/nvim/lsp/ecsact.lua new file mode 100644 index 0000000..b59aad4 --- /dev/null +++ b/.config/nvim/lsp/ecsact.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/ecsact-dev/ecsact_lsp_server +--- +--- Language server for Ecsact. +--- +--- The default cmd assumes `ecsact_lsp_server` is in your PATH. Typically from the +--- Ecsact SDK: https://ecsact.dev/start + +---@type vim.lsp.Config +return { + cmd = { 'ecsact_lsp_server', '--stdio' }, + filetypes = { 'ecsact' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/efm.lua b/.config/nvim/lsp/efm.lua new file mode 100644 index 0000000..d421669 --- /dev/null +++ b/.config/nvim/lsp/efm.lua @@ -0,0 +1,25 @@ +--- @brief +--- +--- https://github.com/mattn/efm-langserver +--- +--- General purpose Language Server that can use specified error message format generated from specified command. +--- +--- Requires at minimum EFM version [v0.0.38](https://github.com/mattn/efm-langserver/releases/tag/v0.0.38) to support +--- launching the language server on single files. +--- +--- Note: In order for neovim's built-in language server client to send the appropriate `languageId` to EFM, **you must +--- specify `filetypes` in your call to `vim.lsp.config`**. Otherwise the server will be launch on the `BufEnter` instead +--- of the `FileType` autocommand, and the `filetype` variable used to populate the `languageId` will not yet be set. +--- +--- ```lua +--- vim.lsp.config('efm', { +--- filetypes = { 'python','cpp','lua' } +--- settings = ..., -- You must populate this according to the EFM readme +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'efm-langserver' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/elixirls.lua b/.config/nvim/lsp/elixirls.lua new file mode 100644 index 0000000..da7b7b3 --- /dev/null +++ b/.config/nvim/lsp/elixirls.lua @@ -0,0 +1,46 @@ +---@brief +--- +--- https://github.com/elixir-lsp/elixir-ls +--- +--- `elixir-ls` can be installed by following the instructions [here](https://github.com/elixir-lsp/elixir-ls#building-and-running). +--- +--- 1. Download the zip from https://github.com/elixir-lsp/elixir-ls/releases/latest/ +--- 2. Unzip it and make it executable. +--- ```bash +--- unzip elixir-ls.zip -d /path/to/elixir-ls +--- # Unix +--- chmod +x /path/to/elixir-ls/language_server.sh +--- ``` +--- +--- **By default, elixir-ls doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about +--- your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and +--- ~ are not expanded) of your unzipped elixir-ls. +--- +--- ```lua +--- vim.lsp.config('elixirls', { +--- -- Unix +--- cmd = { "/path/to/elixir-ls/language_server.sh" }; +--- -- Windows +--- cmd = { "/path/to/elixir-ls/language_server.bat" }; +--- ... +--- }) +--- ``` +--- +--- 'root_dir' is chosen like this: if two or more directories containing `mix.exs` were found when searching +--- directories upward, the second one (higher up) is chosen, with the assumption that it is the root of an umbrella +--- app. Otherwise the directory containing the single mix.exs that was found is chosen. + +---@type vim.lsp.Config +return { + filetypes = { 'elixir', 'eelixir', 'heex', 'surface' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + --- Elixir workspaces may have multiple `mix.exs` files, for an "umbrella" layout or monorepo. + --- So we specify `limit=2` and treat the highest one (if any) as the root of an umbrella app. + local matches = vim.fs.find({ 'mix.exs' }, { upward = true, limit = 2, path = fname }) + local child_or_root_path, maybe_umbrella_path = unpack(matches) + local root_dir = vim.fs.dirname(maybe_umbrella_path or child_or_root_path) + + on_dir(root_dir) + end, +} diff --git a/.config/nvim/lsp/elmls.lua b/.config/nvim/lsp/elmls.lua new file mode 100644 index 0000000..8a76f81 --- /dev/null +++ b/.config/nvim/lsp/elmls.lua @@ -0,0 +1,35 @@ +---@brief +--- +--- https://github.com/elm-tooling/elm-language-server#installation +--- +--- If you don't want to use Nvim to install it, then you can use: +--- ```sh +--- npm install -g elm elm-test elm-format @elm-tooling/elm-language-server +--- ``` + +local api = vim.api + +---@type vim.lsp.Config +return { + cmd = { 'elm-language-server' }, + -- TODO(ashkan) if we comment this out, it will allow elmls to operate on elm.json. It seems like it could do that, but no other editor allows it right now. + filetypes = { 'elm' }, + root_dir = function(bufnr, on_dir) + local fname = api.nvim_buf_get_name(bufnr) + local filetype = vim.bo[bufnr].filetype + if filetype == 'elm' or (filetype == 'json' and fname:match 'elm%.json$') then + on_dir(vim.fs.root(fname, 'elm.json')) + return + end + on_dir(nil) + end, + init_options = { + elmReviewDiagnostics = 'off', -- 'off' | 'warning' | 'error' + skipInstallPackageConfirmation = false, + disableElmLSDiagnostics = false, + onlyUpdateDiagnosticsOnSave = false, + }, + capabilities = { + offsetEncoding = { 'utf-8', 'utf-16' }, + }, +} diff --git a/.config/nvim/lsp/elp.lua b/.config/nvim/lsp/elp.lua new file mode 100644 index 0000000..38c0716 --- /dev/null +++ b/.config/nvim/lsp/elp.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://whatsapp.github.io/erlang-language-platform +--- +--- ELP integrates Erlang into modern IDEs via the language server protocol and was +--- inspired by rust-analyzer. + +---@type vim.lsp.Config +return { + cmd = { 'elp', 'server' }, + filetypes = { 'erlang' }, + root_markers = { 'rebar.config', 'erlang.mk', '.git' }, +} diff --git a/.config/nvim/lsp/ember.lua b/.config/nvim/lsp/ember.lua new file mode 100644 index 0000000..9d1ec2a --- /dev/null +++ b/.config/nvim/lsp/ember.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- https://github.com/ember-tooling/ember-language-server +--- +--- `ember-language-server` can be installed via `npm`: +--- +--- ```sh +--- npm install -g @ember-tooling/ember-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'ember-language-server', '--stdio' }, + filetypes = { 'handlebars', 'typescript', 'javascript', 'typescript.glimmer', 'javascript.glimmer' }, + root_markers = { 'ember-cli-build.js', '.git' }, +} diff --git a/.config/nvim/lsp/emmet_language_server.lua b/.config/nvim/lsp/emmet_language_server.lua new file mode 100644 index 0000000..89c5f4b --- /dev/null +++ b/.config/nvim/lsp/emmet_language_server.lua @@ -0,0 +1,31 @@ +---@brief +--- +--- https://github.com/olrtg/emmet-language-server +--- +--- Package can be installed via `npm`: +--- ```sh +--- npm install -g @olrtg/emmet-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'emmet-language-server', '--stdio' }, + filetypes = { + 'astro', + 'css', + 'eruby', + 'html', + 'htmlangular', + 'htmldjango', + 'javascriptreact', + 'less', + 'pug', + 'sass', + 'scss', + 'svelte', + 'templ', + 'typescriptreact', + 'vue', + }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/emmet_ls.lua b/.config/nvim/lsp/emmet_ls.lua new file mode 100644 index 0000000..7bfede0 --- /dev/null +++ b/.config/nvim/lsp/emmet_ls.lua @@ -0,0 +1,31 @@ +---@brief +--- +--- https://github.com/aca/emmet-ls +--- +--- Package can be installed via `npm`: +--- ```sh +--- npm install -g emmet-ls +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'emmet-ls', '--stdio' }, + filetypes = { + 'astro', + 'css', + 'eruby', + 'html', + 'htmlangular', + 'htmldjango', + 'javascriptreact', + 'less', + 'pug', + 'sass', + 'scss', + 'svelte', + 'templ', + 'typescriptreact', + 'vue', + }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/emmylua_ls.lua b/.config/nvim/lsp/emmylua_ls.lua new file mode 100644 index 0000000..5621469 --- /dev/null +++ b/.config/nvim/lsp/emmylua_ls.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/EmmyLuaLs/emmylua-analyzer-rust +--- +--- Emmylua Analyzer Rust. Language Server for Lua. +--- +--- `emmylua_ls` can be installed using `cargo` by following the instructions[here] +--- (https://github.com/EmmyLuaLs/emmylua-analyzer-rust?tab=readme-ov-file#install). +--- +--- The default `cmd` assumes that the `emmylua_ls` binary can be found in `$PATH`. +--- It might require you to provide cargo binaries installation path in it. + +---@type vim.lsp.Config +return { + cmd = { 'emmylua_ls' }, + filetypes = { 'lua' }, + root_markers = { + '.luarc.json', + '.emmyrc.json', + '.luacheckrc', + '.git', + }, + workspace_required = false, +} diff --git a/.config/nvim/lsp/erg_language_server.lua b/.config/nvim/lsp/erg_language_server.lua new file mode 100644 index 0000000..4537072 --- /dev/null +++ b/.config/nvim/lsp/erg_language_server.lua @@ -0,0 +1,19 @@ +---@brief +--- +--- https://github.com/erg-lang/erg#flags ELS +--- +--- ELS (erg-language-server) is a language server for the Erg programming language. +--- +--- erg-language-server can be installed via `cargo` and used as follows: +--- +--- ```sh +--- cargo install erg --features els +--- erg --language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'erg', '--language-server' }, + filetypes = { 'erg' }, + root_markers = { 'package.er', '.git' }, +} diff --git a/.config/nvim/lsp/erlangls.lua b/.config/nvim/lsp/erlangls.lua new file mode 100644 index 0000000..d209d83 --- /dev/null +++ b/.config/nvim/lsp/erlangls.lua @@ -0,0 +1,21 @@ +---@brief +--- +--- https://erlang-ls.github.io +--- +--- Language Server for Erlang. +--- +--- Clone [erlang_ls](https://github.com/erlang-ls/erlang_ls) +--- Compile the project with `make` and copy resulting binaries somewhere in your $PATH eg. `cp _build/*/bin/* ~/local/bin` +--- +--- Installation instruction can be found [here](https://github.com/erlang-ls/erlang_ls). +--- +--- Installation requirements: +--- - [Erlang OTP 21+](https://github.com/erlang/otp) +--- - [rebar3 3.9.1+](https://github.com/erlang/rebar3) + +---@type vim.lsp.Config +return { + cmd = { 'erlang_ls' }, + filetypes = { 'erlang' }, + root_markers = { 'rebar.config', 'erlang.mk', '.git' }, +} diff --git a/.config/nvim/lsp/esbonio.lua b/.config/nvim/lsp/esbonio.lua new file mode 100644 index 0000000..3b1fcee --- /dev/null +++ b/.config/nvim/lsp/esbonio.lua @@ -0,0 +1,51 @@ +---@brief +--- +--- https://github.com/swyddfa/esbonio +--- +--- Esbonio is a language server for [Sphinx](https://www.sphinx-doc.org/en/master/) documentation projects. +--- The language server can be installed via pip +--- +--- ``` +--- pip install esbonio +--- ``` +--- +--- Since Sphinx is highly extensible you will get best results if you install the language server in the same +--- Python environment as the one used to build your documentation. To ensure that the correct Python environment +--- is picked up, you can either launch `nvim` with the correct environment activated. +--- +--- ``` +--- source env/bin/activate +--- nvim +--- ``` +--- +--- Or you can modify the default `cmd` to include the full path to the Python interpreter. +--- +--- ```lua +--- vim.lsp.config('esbonio', { +--- cmd = { '/path/to/virtualenv/bin/python', '-m', 'esbonio' } +--- }) +--- ``` +--- +--- Esbonio supports a number of config values passed as `init_options` on startup, for example. +--- +--- ```lua +--- vim.lsp.config('esbonio', { +--- init_options = { +--- server = { +--- logLevel = "debug" +--- }, +--- sphinx = { +--- confDir = "/path/to/docs", +--- srcDir = "${confDir}/../docs-src" +--- } +--- }) +--- ``` +--- +--- A full list and explanation of the available options can be found [here](https://docs.esbon.io/en/esbonio-language-server-v0.16.4/lsp/getting-started.html?editor=neovim-lspconfig#configuration) + +---@type vim.lsp.Config +return { + cmd = { 'python3', '-m', 'esbonio' }, + filetypes = { 'rst' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/eslint.lua b/.config/nvim/lsp/eslint.lua new file mode 100644 index 0000000..24fac5c --- /dev/null +++ b/.config/nvim/lsp/eslint.lua @@ -0,0 +1,225 @@ +--- @brief +--- +--- https://github.com/hrsh7th/vscode-langservers-extracted +--- +--- `vscode-eslint-language-server` is a linting engine for JavaScript / Typescript. +--- It can be installed via `npm`: +--- +--- ```sh +--- npm i -g vscode-langservers-extracted +--- ``` +--- +--- The default `on_attach` config provides the `LspEslintFixAll` command that can be used to format a document on save: +--- ```lua +--- local base_on_attach = vim.lsp.config.eslint.on_attach +--- vim.lsp.config("eslint", { +--- on_attach = function(client, bufnr) +--- if not base_on_attach then return end +--- +--- base_on_attach(client, bufnr) +--- vim.api.nvim_create_autocmd("BufWritePre", { +--- buffer = bufnr, +--- command = "LspEslintFixAll", +--- }) +--- end, +--- }) +--- ``` +--- +--- See [vscode-eslint](https://github.com/microsoft/vscode-eslint/blob/55871979d7af184bf09af491b6ea35ebd56822cf/server/src/eslintServer.ts#L216-L229) for configuration options. +--- +--- Messages handled in lspconfig: `eslint/openDoc`, `eslint/confirmESLintExecution`, `eslint/probeFailed`, `eslint/noLibrary` +--- +--- Additional messages you can handle: `eslint/noConfig` +--- +--- ### Monorepo support +--- +--- `vscode-eslint-language-server` supports monorepos by default. It will automatically find the config file corresponding to the package you are working on. You can use different configs in different packages. +--- This works without the need of spawning multiple instances of `vscode-eslint-language-server`. +--- You can use a different version of ESLint in each package, but it is recommended to use the same version of ESLint in all packages. The location of the ESLint binary will be determined automatically. +--- +--- /!\ When using flat config files, you need to use them across all your packages in your monorepo, as it's a global setting for the server. + +local util = require 'lspconfig.util' +local lsp = vim.lsp + +local eslint_config_files = { + '.eslintrc', + '.eslintrc.js', + '.eslintrc.cjs', + '.eslintrc.yaml', + '.eslintrc.yml', + '.eslintrc.json', + 'eslint.config.js', + 'eslint.config.mjs', + 'eslint.config.cjs', + 'eslint.config.ts', + 'eslint.config.mts', + 'eslint.config.cts', +} + +---@type vim.lsp.Config +return { + cmd = { 'vscode-eslint-language-server', '--stdio' }, + filetypes = { + 'javascript', + 'javascriptreact', + 'javascript.jsx', + 'typescript', + 'typescriptreact', + 'typescript.tsx', + 'vue', + 'svelte', + 'astro', + 'htmlangular', + }, + workspace_required = true, + on_attach = function(client, bufnr) + vim.api.nvim_buf_create_user_command(0, 'LspEslintFixAll', function() + client:request_sync('workspace/executeCommand', { + command = 'eslint.applyAllFixes', + arguments = { + { + uri = vim.uri_from_bufnr(bufnr), + version = lsp.util.buf_versions[bufnr], + }, + }, + }, nil, bufnr) + end, {}) + end, + root_dir = function(bufnr, on_dir) + -- The project root is where the LSP can be started from + -- As stated in the documentation above, this LSP supports monorepos and simple projects. + -- We select then from the project root, which is identified by the presence of a package + -- manager lock file. + local root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' } + -- Give the root markers equal priority by wrapping them in a table + root_markers = vim.fn.has('nvim-0.11.3') == 1 and { root_markers, { '.git' } } + or vim.list_extend(root_markers, { '.git' }) + -- We fallback to the current working directory if no project root is found + local project_root = vim.fs.root(bufnr, root_markers) or vim.fn.getcwd() + + -- We know that the buffer is using ESLint if it has a config file + -- in its directory tree. + -- + -- Eslint used to support package.json files as config files, but it doesn't anymore. + -- We keep this for backward compatibility. + local filename = vim.api.nvim_buf_get_name(bufnr) + local eslint_config_files_with_package_json = + util.insert_package_json(eslint_config_files, 'eslintConfig', filename) + local is_buffer_using_eslint = vim.fs.find(eslint_config_files_with_package_json, { + path = filename, + type = 'file', + limit = 1, + upward = true, + stop = vim.fs.dirname(project_root), + })[1] + if not is_buffer_using_eslint then + return + end + + on_dir(project_root) + end, + -- Refer to https://github.com/Microsoft/vscode-eslint#settings-options for documentation. + settings = { + validate = 'on', + packageManager = nil, + useESLintClass = false, + experimental = { + useFlatConfig = false, + }, + codeActionOnSave = { + enable = false, + mode = 'all', + }, + format = true, + quiet = false, + onIgnoredFiles = 'off', + rulesCustomizations = {}, + run = 'onType', + problems = { + shortenToSingleLine = false, + }, + -- nodePath configures the directory in which the eslint server should start its node_modules resolution. + -- This path is relative to the workspace folder (root dir) of the server instance. + nodePath = '', + -- use the workspace folder location or the file location (if no workspace folder is open) as the working directory + workingDirectory = { mode = 'auto' }, + codeAction = { + disableRuleComment = { + enable = true, + location = 'separateLine', + }, + showDocumentation = { + enable = true, + }, + }, + }, + before_init = function(_, config) + -- The "workspaceFolder" is a VSCode concept. It limits how far the + -- server will traverse the file system when locating the ESLint config + -- file (e.g., .eslintrc). + local root_dir = config.root_dir + + if root_dir then + config.settings = config.settings or {} + config.settings.workspaceFolder = { + uri = root_dir, + name = vim.fn.fnamemodify(root_dir, ':t'), + } + + -- Support flat config files + -- They contain 'config' in the file name + local flat_config_files = vim.tbl_filter(function(file) + return file:match('config') + end, eslint_config_files) + + for _, file in ipairs(flat_config_files) do + local found_files = vim.fn.globpath(root_dir, file, true, true) + + -- Filter out files inside node_modules + local filtered_files = {} + for _, found_file in ipairs(found_files) do + if string.find(found_file, '[/\\]node_modules[/\\]') == nil then + table.insert(filtered_files, found_file) + end + end + + if #filtered_files > 0 then + config.settings.experimental = config.settings.experimental or {} + config.settings.experimental.useFlatConfig = true + break + end + end + + -- Support Yarn2 (PnP) projects + local pnp_cjs = root_dir .. '/.pnp.cjs' + local pnp_js = root_dir .. '/.pnp.js' + if vim.uv.fs_stat(pnp_cjs) or vim.uv.fs_stat(pnp_js) then + local cmd = config.cmd + config.cmd = vim.list_extend({ 'yarn', 'exec' }, cmd) + end + end + end, + handlers = { + ['eslint/openDoc'] = function(_, result) + if result then + vim.ui.open(result.url) + end + return {} + end, + ['eslint/confirmESLintExecution'] = function(_, result) + if not result then + return + end + return 4 -- approved + end, + ['eslint/probeFailed'] = function() + vim.notify('[lspconfig] ESLint probe failed.', vim.log.levels.WARN) + return {} + end, + ['eslint/noLibrary'] = function() + vim.notify('[lspconfig] Unable to find ESLint library.', vim.log.levels.WARN) + return {} + end, + }, +} diff --git a/.config/nvim/lsp/expert.lua b/.config/nvim/lsp/expert.lua new file mode 100644 index 0000000..f7146a6 --- /dev/null +++ b/.config/nvim/lsp/expert.lua @@ -0,0 +1,26 @@ +---@brief +--- +--- https://github.com/elixir-lang/expert +--- +--- Expert is the official language server implementation for the Elixir programming language. +--- +--- 'root_dir' is chosen like this: if two or more directories containing `mix.exs` were found when +--- searching directories upward, the second one (higher up) is chosen, with the assumption that it +--- is the root of an umbrella app. Otherwise the directory containing the single mix.exs that was +--- found is chosen. + +---@type vim.lsp.Config +return { + filetypes = { 'elixir', 'eelixir', 'heex', 'surface' }, + cmd = { 'expert' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + --- Elixir workspaces may have multiple `mix.exs` files, for an "umbrella" layout or monorepo. + --- So we specify `limit=2` and treat the highest one (if any) as the root of an umbrella app. + local matches = vim.fs.find({ 'mix.exs' }, { upward = true, limit = 2, path = fname }) + local child_or_root_path, maybe_umbrella_path = unpack(matches) + local root_dir = vim.fs.dirname(maybe_umbrella_path or child_or_root_path) + + on_dir(root_dir) + end, +} diff --git a/.config/nvim/lsp/facility_language_server.lua b/.config/nvim/lsp/facility_language_server.lua new file mode 100644 index 0000000..7a03b87 --- /dev/null +++ b/.config/nvim/lsp/facility_language_server.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/FacilityApi/FacilityLanguageServer +--- +--- Facility language server protocol (LSP) support. + +---@type vim.lsp.Config +return { + cmd = { 'facility-language-server' }, + filetypes = { 'fsd' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/fennel_language_server.lua b/.config/nvim/lsp/fennel_language_server.lua new file mode 100644 index 0000000..8ddf799 --- /dev/null +++ b/.config/nvim/lsp/fennel_language_server.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/rydesun/fennel-language-server +--- +--- Fennel language server protocol (LSP) support. + +---@type vim.lsp.Config +return { + cmd = { 'fennel-language-server' }, + filetypes = { 'fennel' }, + root_markers = { '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/fennel_ls.lua b/.config/nvim/lsp/fennel_ls.lua new file mode 100644 index 0000000..acd9341 --- /dev/null +++ b/.config/nvim/lsp/fennel_ls.lua @@ -0,0 +1,26 @@ +---@brief +--- +--- https://sr.ht/~xerool/fennel-ls/ +--- +--- A language server for fennel. +--- +--- fennel-ls is configured using the closest file to your working directory named `flsproject.fnl`. +--- All fennel-ls configuration options [can be found here](https://git.sr.ht/~xerool/fennel-ls/tree/HEAD/docs/manual.md#configuration). + +---@type vim.lsp.Config +return { + cmd = { 'fennel-ls' }, + filetypes = { 'fennel' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + local has_fls_project_cfg = function(path) + local fnlpath = vim.fs.joinpath(path, 'flsproject.fnl') + return (vim.uv.fs_stat(fnlpath) or {}).type == 'file' + end + on_dir(vim.iter(vim.fs.parents(fname)):find(has_fls_project_cfg) or vim.fs.root(0, '.git')) + end, + settings = {}, + capabilities = { + offsetEncoding = { 'utf-8', 'utf-16' }, + }, +} diff --git a/.config/nvim/lsp/fish_lsp.lua b/.config/nvim/lsp/fish_lsp.lua new file mode 100644 index 0000000..05d5cf9 --- /dev/null +++ b/.config/nvim/lsp/fish_lsp.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/ndonfris/fish-lsp +--- +--- A Language Server Protocol (LSP) tailored for the fish shell. +--- This project aims to enhance the coding experience for fish, +--- by introducing a suite of intelligent features like auto-completion, +--- scope aware symbol analysis, per-token hover generation, and many others. +--- +--- [homepage](https://www.fish-lsp.dev/) + +---@type vim.lsp.Config +return { + cmd = { 'fish-lsp', 'start' }, + filetypes = { 'fish' }, + root_markers = { 'config.fish', '.git' }, +} diff --git a/.config/nvim/lsp/flow.lua b/.config/nvim/lsp/flow.lua new file mode 100644 index 0000000..5056831 --- /dev/null +++ b/.config/nvim/lsp/flow.lua @@ -0,0 +1,20 @@ +---@brief +--- +--- https://flow.org/ +--- https://github.com/facebook/flow +--- +--- See below for how to setup Flow itself. +--- https://flow.org/en/docs/install/ +--- +--- See below for lsp command options. +--- +--- ```sh +--- npx flow lsp --help +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'npx', '--no-install', 'flow', 'lsp' }, + filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx' }, + root_markers = { '.flowconfig' }, +} diff --git a/.config/nvim/lsp/flux_lsp.lua b/.config/nvim/lsp/flux_lsp.lua new file mode 100644 index 0000000..c21319a --- /dev/null +++ b/.config/nvim/lsp/flux_lsp.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/influxdata/flux-lsp +--- `flux-lsp` can be installed via `cargo`: +--- ```sh +--- cargo install --git https://github.com/influxdata/flux-lsp +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'flux-lsp' }, + filetypes = { 'flux' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/foam_ls.lua b/.config/nvim/lsp/foam_ls.lua new file mode 100644 index 0000000..636b066 --- /dev/null +++ b/.config/nvim/lsp/foam_ls.lua @@ -0,0 +1,29 @@ +---@brief +--- +--- https://github.com/FoamScience/foam-language-server +--- +--- `foam-language-server` can be installed via `npm` +--- ```sh +--- npm install -g foam-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'foam-ls', '--stdio' }, + filetypes = { 'foam', 'OpenFOAM' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + for path in vim.fs.parents(fname) do + if vim.uv.fs_stat(path .. '/system/controlDict') then + on_dir(path) + return + end + end + local git_root = vim.fs.root(bufnr, { '.git' }) + if git_root then + on_dir(git_root) + return + end + on_dir(vim.fs.dirname(fname)) + end, +} diff --git a/.config/nvim/lsp/fortls.lua b/.config/nvim/lsp/fortls.lua new file mode 100644 index 0000000..c85f4a5 --- /dev/null +++ b/.config/nvim/lsp/fortls.lua @@ -0,0 +1,27 @@ +---@brief +--- +--- https://fortls.fortran-lang.org/index.html +--- +--- fortls is a Fortran Language Server, the server can be installed via pip +--- +--- ```sh +--- pip install fortls +--- ``` +--- +--- Settings to the server can be passed either through the `cmd` option or through +--- a local configuration file e.g. `.fortls`. For more information +--- see the `fortls` [documentation](https://fortls.fortran-lang.org/options.html). + +---@type vim.lsp.Config +return { + cmd = { + 'fortls', + '--notify_init', + '--hover_signature', + '--hover_language=fortran', + '--use_signature_help', + }, + filetypes = { 'fortran' }, + root_markers = { '.fortls', '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/fsautocomplete.lua b/.config/nvim/lsp/fsautocomplete.lua new file mode 100644 index 0000000..7e0376b --- /dev/null +++ b/.config/nvim/lsp/fsautocomplete.lua @@ -0,0 +1,54 @@ +---@brief +--- +--- https://github.com/fsharp/FsAutoComplete +--- +--- Language Server for F# provided by FsAutoComplete (FSAC). +--- +--- FsAutoComplete requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed. +--- +--- The preferred way to install FsAutoComplete is with `dotnet tool install --global fsautocomplete`. +--- +--- Instructions to compile from source are found on the main [repository](https://github.com/fsharp/FsAutoComplete). +--- +--- You may also need to configure the filetype as Vim defaults to Forth for `*.fs` files: +--- +--- `autocmd BufNewFile,BufRead *.fs,*.fsx,*.fsi set filetype=fsharp` +--- +--- This is automatically done by plugins such as [PhilT/vim-fsharp](https://github.com/PhilT/vim-fsharp), [fsharp/vim-fsharp](https://github.com/fsharp/vim-fsharp), and [adelarsq/neofsharp.vim](https://github.com/adelarsq/neofsharp.vim). +--- + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'fsautocomplete', '--adaptive-lsp-server-enabled' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('*.sln', '*.fsproj', '.git')(fname)) + end, + filetypes = { 'fsharp' }, + init_options = { + AutomaticWorkspaceInit = true, + }, + -- this recommended settings values taken from https://github.com/ionide/FsAutoComplete?tab=readme-ov-file#settings + settings = { + FSharp = { + keywordsAutocomplete = true, + ExternalAutocomplete = false, + Linter = true, + UnionCaseStubGeneration = true, + UnionCaseStubGenerationBody = 'failwith "Not Implemented"', + RecordStubGeneration = true, + RecordStubGenerationBody = 'failwith "Not Implemented"', + InterfaceStubGeneration = true, + InterfaceStubGenerationObjectIdentifier = 'this', + InterfaceStubGenerationMethodBody = 'failwith "Not Implemented"', + UnusedOpensAnalyzer = true, + UnusedDeclarationsAnalyzer = true, + UseSdkScripts = true, + SimplifyNameAnalyzer = true, + ResolveNamespaces = true, + EnableReferenceCodeLens = true, + }, + }, +} diff --git a/.config/nvim/lsp/fsharp_language_server.lua b/.config/nvim/lsp/fsharp_language_server.lua new file mode 100644 index 0000000..b1de1f7 --- /dev/null +++ b/.config/nvim/lsp/fsharp_language_server.lua @@ -0,0 +1,30 @@ +---@brief +--- +--- F# Language Server +--- https://github.com/faldor20/fsharp-language-server +--- +--- An implementation of the language server protocol using the F# Compiler Service. +--- +--- Build the project from source and override the command path to location of DLL. +--- +--- If filetype determination is not already performed by an available plugin ([PhilT/vim-fsharp](https://github.com/PhilT/vim-fsharp), [fsharp/vim-fsharp](https://github.com/fsharp/vim-fsharp), and [adelarsq/neofsharp.vim](https://github.com/adelarsq/neofsharp.vim). +--- ), then the following must be added to initialization configuration: +--- +--- +--- `autocmd BufNewFile,BufRead *.fs,*.fsx,*.fsi set filetype=fsharp` + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'dotnet', 'FSharpLanguageServer.dll' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('*.sln', '*.fsproj', '.git')(fname)) + end, + filetypes = { 'fsharp' }, + init_options = { + AutomaticWorkspaceInit = true, + }, + settings = {}, +} diff --git a/.config/nvim/lsp/fstar.lua b/.config/nvim/lsp/fstar.lua new file mode 100644 index 0000000..749460f --- /dev/null +++ b/.config/nvim/lsp/fstar.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/FStarLang/FStar +--- +--- LSP support is included in FStar. Make sure `fstar.exe` is in your PATH. + +---@type vim.lsp.Config +return { + cmd = { 'fstar.exe', '--lsp' }, + filetypes = { 'fstar' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/futhark_lsp.lua b/.config/nvim/lsp/futhark_lsp.lua new file mode 100644 index 0000000..351dda3 --- /dev/null +++ b/.config/nvim/lsp/futhark_lsp.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/diku-dk/futhark +--- +--- Futhark Language Server +--- +--- This language server comes with the futhark compiler and is run with the command +--- ``` +--- futhark lsp +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'futhark', 'lsp' }, + filetypes = { 'futhark', 'fut' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/gdscript.lua b/.config/nvim/lsp/gdscript.lua new file mode 100644 index 0000000..d0d25b2 --- /dev/null +++ b/.config/nvim/lsp/gdscript.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/godotengine/godot +--- +--- Language server for GDScript, used by Godot Engine. + +local port = os.getenv 'GDScript_Port' or '6005' +local cmd = vim.lsp.rpc.connect('127.0.0.1', tonumber(port)) + +---@type vim.lsp.Config +return { + cmd = cmd, + filetypes = { 'gd', 'gdscript', 'gdscript3' }, + root_markers = { 'project.godot', '.git' }, +} diff --git a/.config/nvim/lsp/gdshader_lsp.lua b/.config/nvim/lsp/gdshader_lsp.lua new file mode 100644 index 0000000..38a5637 --- /dev/null +++ b/.config/nvim/lsp/gdshader_lsp.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/godofavacyn/gdshader-lsp +--- +--- A language server for the Godot Shading language. + +---@type vim.lsp.Config +return { + cmd = { 'gdshader-lsp', '--stdio' }, + filetypes = { 'gdshader', 'gdshaderinc' }, + root_markers = { 'project.godot' }, +} diff --git a/.config/nvim/lsp/gh_actions_ls.lua b/.config/nvim/lsp/gh_actions_ls.lua new file mode 100644 index 0000000..f029ea7 --- /dev/null +++ b/.config/nvim/lsp/gh_actions_ls.lua @@ -0,0 +1,57 @@ +---@brief +--- https://github.com/lttb/gh-actions-language-server +--- +--- Language server for GitHub Actions. +--- +--- The projects [forgejo](https://forgejo.org/) and [gitea](https://about.gitea.com/) +--- design their actions to be as compatible to github as possible +--- with only [a few differences](https://docs.gitea.com/usage/actions/comparison#unsupported-workflows-syntax) between the systems. +--- The `gh_actions_ls` is therefore enabled for those `yaml` files as well. +--- +--- The `gh-actions-language-server` can be installed via `npm`: +--- +--- ```sh +--- npm install -g gh-actions-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'gh-actions-language-server', '--stdio' }, + filetypes = { 'yaml' }, + + -- `root_dir` ensures that the LSP does not attach to all yaml files + root_dir = function(bufnr, on_dir) + local parent = vim.fs.dirname(vim.api.nvim_buf_get_name(bufnr)) + if + vim.endswith(parent, '/.github/workflows') + or vim.endswith(parent, '/.forgejo/workflows') + or vim.endswith(parent, '/.gitea/workflows') + then + on_dir(parent) + end + end, + handlers = { + ['actions/readFile'] = function(_, result) + if type(result.path) ~= 'string' then + return nil, nil + end + local file_path = vim.uri_to_fname(result.path) + if vim.fn.filereadable(file_path) == 1 then + local f = assert(io.open(file_path, 'r')) + local text = f:read('*a') + f:close() + + return text, nil + end + return nil, nil + end, + }, + init_options = {}, -- needs to be present https://github.com/neovim/nvim-lspconfig/pull/3713#issuecomment-2857394868 + capabilities = { + workspace = { + didChangeWorkspaceFolders = { + dynamicRegistration = true, + }, + }, + }, +} diff --git a/.config/nvim/lsp/ghcide.lua b/.config/nvim/lsp/ghcide.lua new file mode 100644 index 0000000..39d4e47 --- /dev/null +++ b/.config/nvim/lsp/ghcide.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/digital-asset/ghcide +--- +--- A library for building Haskell IDE tooling. +--- "ghcide" isn't for end users now. Use "haskell-language-server" instead of "ghcide". + +---@type vim.lsp.Config +return { + cmd = { 'ghcide', '--lsp' }, + filetypes = { 'haskell', 'lhaskell' }, + root_markers = { 'stack.yaml', 'hie-bios', 'BUILD.bazel', 'cabal.config', 'package.yaml' }, +} diff --git a/.config/nvim/lsp/ghdl_ls.lua b/.config/nvim/lsp/ghdl_ls.lua new file mode 100644 index 0000000..3927cfe --- /dev/null +++ b/.config/nvim/lsp/ghdl_ls.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/ghdl/ghdl-language-server +--- +--- A language server for VHDL, using ghdl as its backend. +--- +--- `ghdl-ls` is part of pyghdl, for installation instructions see +--- [the upstream README](https://github.com/ghdl/ghdl/tree/master/pyGHDL/lsp). + +---@type vim.lsp.Config +return { + cmd = { 'ghdl-ls' }, + filetypes = { 'vhdl' }, + root_markers = { 'hdl-prj.json', '.git' }, +} diff --git a/.config/nvim/lsp/ginko_ls.lua b/.config/nvim/lsp/ginko_ls.lua new file mode 100644 index 0000000..d9d95df --- /dev/null +++ b/.config/nvim/lsp/ginko_ls.lua @@ -0,0 +1,17 @@ +---@brief +--- +---`ginko_ls` is meant to be a feature-complete language server for device-trees. +--- Language servers can be used in many editors, such as Visual Studio Code, Emacs +--- or Vim +--- +--- Install `ginko_ls` from https://github.com/Schottkyc137/ginko and add it to path +--- +--- `ginko_ls` doesn't require any configuration. + +---@type vim.lsp.Config +return { + cmd = { 'ginko_ls' }, + filetypes = { 'dts' }, + root_markers = { '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/gitlab_ci_ls.lua b/.config/nvim/lsp/gitlab_ci_ls.lua new file mode 100644 index 0000000..d2f80ab --- /dev/null +++ b/.config/nvim/lsp/gitlab_ci_ls.lua @@ -0,0 +1,26 @@ +---@brief +--- +--- https://github.com/alesbrelih/gitlab-ci-ls +--- +--- Language Server for Gitlab CI +--- +--- `gitlab-ci-ls` can be installed via cargo: +--- cargo install gitlab-ci-ls + +local util = require 'lspconfig.util' + +local cache_dir = vim.uv.os_homedir() .. '/.cache/gitlab-ci-ls/' + +---@type vim.lsp.Config +return { + cmd = { 'gitlab-ci-ls' }, + filetypes = { 'yaml.gitlab' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('.git', '.gitlab*')(fname)) + end, + init_options = { + cache_path = cache_dir, + log_path = cache_dir .. '/log/gitlab-ci-ls.log', + }, +} diff --git a/.config/nvim/lsp/glasgow.lua b/.config/nvim/lsp/glasgow.lua new file mode 100644 index 0000000..5f003b5 --- /dev/null +++ b/.config/nvim/lsp/glasgow.lua @@ -0,0 +1,30 @@ +---@brief +--- +--- https://github.com/nolanderc/glasgow +--- +--- Provides language features for WGSL (WebGPU Shading Language): +--- - Completions: +--- - Local functions/variables/types. +--- - Fields and swizzles. +--- - Builtin types and functions (`dot`, `reflect`, `textureSample`, `vec3`, `mat4x2`, etc.) +--- - Hover Documentation: +--- - Function signatures. +--- - Variable types. +--- - Includes builtin types and functions. Text is taken from the WGSL specification. +--- - Goto Definition +--- - Find all References +--- - Rename +--- - Formatter +--- +--- `glasgow` can be installed via `cargo`: +--- ```sh +--- cargo install glasgow +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'glasgow' }, + filetypes = { 'wgsl' }, + root_markers = { '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/gleam.lua b/.config/nvim/lsp/gleam.lua new file mode 100644 index 0000000..6a560e8 --- /dev/null +++ b/.config/nvim/lsp/gleam.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/gleam-lang/gleam +--- +--- A language server for Gleam Programming Language. +--- +--- It comes with the Gleam compiler, for installation see: [Installing Gleam](https://gleam.run/getting-started/installing/) + +---@type vim.lsp.Config +return { + cmd = { 'gleam', 'lsp' }, + filetypes = { 'gleam' }, + root_markers = { 'gleam.toml', '.git' }, +} diff --git a/.config/nvim/lsp/glint.lua b/.config/nvim/lsp/glint.lua new file mode 100644 index 0000000..7da9414 --- /dev/null +++ b/.config/nvim/lsp/glint.lua @@ -0,0 +1,54 @@ +---@brief +--- +--- https://github.com/typed-ember/glint +--- https://typed-ember.gitbook.io/glint/ +--- `glint-language-server` is installed when adding `@glint/core` to your project's devDependencies: +--- +--- ```sh +--- npm install @glint/core --save-dev +--- yarn add -D @glint/core +--- +--- This configuration uses the local installation of `glint-language-server` +--- (found in the `node_modules` directory of your project). +--- +--- To use a global installation of `glint-language-server`, +--- set the `init_options.glint.useGlobal` to `true`. +--- +--- vim.lsp.config('glint', { +--- init_options = { +--- glint = { +--- useGlobal = true, +--- }, +--- }, +--- }) + +---@type vim.lsp.Config +return { + cmd = function(dispatchers, config) + local cmd = (config.init_options.glint.useGlobal or not config.root_dir) and { 'glint-language-server' } + or { config.root_dir .. '/node_modules/.bin/glint-language-server' } + return vim.lsp.rpc.start(cmd, dispatchers) + end, + init_options = { + glint = { + useGlobal = false, + }, + }, + filetypes = { + 'html.handlebars', + 'handlebars', + 'typescript', + 'typescript.glimmer', + 'javascript', + 'javascript.glimmer', + }, + root_markers = { + '.glintrc.yml', + '.glintrc', + '.glintrc.json', + '.glintrc.js', + 'glint.config.js', + 'package.json', + }, + workspace_required = true, +} diff --git a/.config/nvim/lsp/glsl_analyzer.lua b/.config/nvim/lsp/glsl_analyzer.lua new file mode 100644 index 0000000..5cb96d2 --- /dev/null +++ b/.config/nvim/lsp/glsl_analyzer.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/nolanderc/glsl_analyzer +--- +--- Language server for GLSL + +---@type vim.lsp.Config +return { + cmd = { 'glsl_analyzer' }, + filetypes = { 'glsl', 'vert', 'tesc', 'tese', 'frag', 'geom', 'comp' }, + root_markers = { '.git' }, + capabilities = {}, +} diff --git a/.config/nvim/lsp/glslls.lua b/.config/nvim/lsp/glslls.lua new file mode 100644 index 0000000..d5a0af5 --- /dev/null +++ b/.config/nvim/lsp/glslls.lua @@ -0,0 +1,23 @@ +---@brief +--- +--- https://github.com/svenstaro/glsl-language-server +--- +--- Language server implementation for GLSL +--- +--- `glslls` can be compiled and installed manually, or, if your distribution has access to the AUR, +--- via the `glsl-language-server` AUR package + +---@type vim.lsp.Config +return { + cmd = { 'glslls', '--stdin' }, + filetypes = { 'glsl', 'vert', 'tesc', 'tese', 'frag', 'geom', 'comp' }, + root_markers = { '.git' }, + capabilities = { + textDocument = { + completion = { + editsNearCursor = true, + }, + }, + offsetEncoding = { 'utf-8', 'utf-16' }, + }, +} diff --git a/.config/nvim/lsp/gnls.lua b/.config/nvim/lsp/gnls.lua new file mode 100644 index 0000000..be39e44 --- /dev/null +++ b/.config/nvim/lsp/gnls.lua @@ -0,0 +1,21 @@ +---@brief +--- +--- https://github.com/microsoft/gnls +--- +--- Microsoft's language server for GN build files. +--- +--- Assuming there is a `gnls` script somewhere in your `$PATH`, containing +--- for example: +--- +--- ```shell +--- GNLS_SRC_DIR= +--- +--- exec node ${GNLS_SRC_DIR}/build/server.js $@ +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'gnls', '--stdio' }, + filetypes = { 'gn' }, + root_markers = { '.gn', '.git' }, +} diff --git a/.config/nvim/lsp/golangci_lint_ls.lua b/.config/nvim/lsp/golangci_lint_ls.lua new file mode 100644 index 0000000..8a95035 --- /dev/null +++ b/.config/nvim/lsp/golangci_lint_ls.lua @@ -0,0 +1,52 @@ +---@brief +--- +--- Combination of both lint server and client +--- +--- https://github.com/nametake/golangci-lint-langserver +--- https://github.com/golangci/golangci-lint +--- +--- +--- Installation of binaries needed is done via +--- +--- ``` +--- go install github.com/nametake/golangci-lint-langserver@latest +--- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'golangci-lint-langserver' }, + filetypes = { 'go', 'gomod' }, + init_options = { + command = { 'golangci-lint', 'run', '--output.json.path=stdout', '--show-stats=false' }, + }, + root_markers = { + '.golangci.yml', + '.golangci.yaml', + '.golangci.toml', + '.golangci.json', + 'go.work', + 'go.mod', + '.git', + }, + before_init = function(_, config) + -- Add support for golangci-lint V1 (in V2 `--out-format=json` was replaced by + -- `--output.json.path=stdout`). + local v1, v2 = false, false + -- PERF: `golangci-lint version` is very slow (about 0.1 sec) so let's find + -- version using `go version -m $(which golangci-lint) | grep '^\smod'`. + if vim.fn.executable 'go' == 1 then + local exe = vim.fn.exepath 'golangci-lint' + local version = vim.system({ 'go', 'version', '-m', exe }):wait() + v1 = string.match(version.stdout, '\tmod\tgithub.com/golangci/golangci%-lint\t') + v2 = string.match(version.stdout, '\tmod\tgithub.com/golangci/golangci%-lint/v2\t') + end + if not v1 and not v2 then + local version = vim.system({ 'golangci-lint', 'version' }):wait() + v1 = string.match(version.stdout, 'version v?1%.') + end + if v1 then + config.init_options.command = { 'golangci-lint', 'run', '--out-format', 'json' } + end + end, +} diff --git a/.config/nvim/lsp/gopls.lua b/.config/nvim/lsp/gopls.lua new file mode 100644 index 0000000..558f0a9 --- /dev/null +++ b/.config/nvim/lsp/gopls.lua @@ -0,0 +1,99 @@ +---@brief +--- +--- https://github.com/golang/tools/tree/master/gopls +--- +--- Google's lsp server for golang. + +--- @class go_dir_custom_args +--- +--- @field envvar_id string +--- +--- @field custom_subdir string? + +local mod_cache = nil +local std_lib = nil + +---@param custom_args go_dir_custom_args +---@param on_complete fun(dir: string | nil) +local function identify_go_dir(custom_args, on_complete) + local cmd = { 'go', 'env', custom_args.envvar_id } + vim.system(cmd, { text = true }, function(output) + local res = vim.trim(output.stdout or '') + if output.code == 0 and res ~= '' then + if custom_args.custom_subdir and custom_args.custom_subdir ~= '' then + res = res .. custom_args.custom_subdir + end + on_complete(res) + else + vim.schedule(function() + vim.notify( + ('[gopls] identify ' .. custom_args.envvar_id .. ' dir cmd failed with code %d: %s\n%s'):format( + output.code, + vim.inspect(cmd), + output.stderr + ) + ) + end) + on_complete(nil) + end + end) +end + +---@return string? +local function get_std_lib_dir() + if std_lib and std_lib ~= '' then + return std_lib + end + + identify_go_dir({ envvar_id = 'GOROOT', custom_subdir = '/src' }, function(dir) + if dir then + std_lib = dir + end + end) + return std_lib +end + +---@return string? +local function get_mod_cache_dir() + if mod_cache and mod_cache ~= '' then + return mod_cache + end + + identify_go_dir({ envvar_id = 'GOMODCACHE' }, function(dir) + if dir then + mod_cache = dir + end + end) + return mod_cache +end + +---@param fname string +---@return string? +local function get_root_dir(fname) + if mod_cache and fname:sub(1, #mod_cache) == mod_cache then + local clients = vim.lsp.get_clients({ name = 'gopls' }) + if #clients > 0 then + return clients[#clients].config.root_dir + end + end + if std_lib and fname:sub(1, #std_lib) == std_lib then + local clients = vim.lsp.get_clients({ name = 'gopls' }) + if #clients > 0 then + return clients[#clients].config.root_dir + end + end + return vim.fs.root(fname, 'go.work') or vim.fs.root(fname, 'go.mod') or vim.fs.root(fname, '.git') +end + +---@type vim.lsp.Config +return { + cmd = { 'gopls' }, + filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + get_mod_cache_dir() + get_std_lib_dir() + -- see: https://github.com/neovim/nvim-lspconfig/issues/804 + on_dir(get_root_dir(fname)) + end, +} diff --git a/.config/nvim/lsp/gradle_ls.lua b/.config/nvim/lsp/gradle_ls.lua new file mode 100644 index 0000000..1974d77 --- /dev/null +++ b/.config/nvim/lsp/gradle_ls.lua @@ -0,0 +1,28 @@ +---@brief +--- +--- https://github.com/microsoft/vscode-gradle +--- +--- Microsoft's lsp server for gradle files +--- +--- If you're setting this up manually, build vscode-gradle using `./gradlew installDist` and point `cmd` to the `gradle-language-server` generated in the build directory + +local bin_name = 'gradle-language-server' +if vim.fn.has 'win32' == 1 then + bin_name = bin_name .. '.bat' +end + +---@type vim.lsp.Config +return { + filetypes = { 'groovy' }, + root_markers = { + 'settings.gradle', -- Gradle (multi-project) + 'build.gradle', -- Gradle + }, + cmd = { bin_name }, + -- gradle-language-server expects init_options.settings to be defined + init_options = { + settings = { + gradleWrapperEnabled = true, + }, + }, +} diff --git a/.config/nvim/lsp/grammarly.lua b/.config/nvim/lsp/grammarly.lua new file mode 100644 index 0000000..a8ebcd0 --- /dev/null +++ b/.config/nvim/lsp/grammarly.lua @@ -0,0 +1,26 @@ +---@brief +--- +--- https://github.com/znck/grammarly +--- +--- `grammarly-languageserver` can be installed via `npm`: +--- +--- ```sh +--- npm i -g grammarly-languageserver +--- ``` +--- +--- WARNING: Since this language server uses Grammarly's API, any document you open with it running is shared with them. Please evaluate their [privacy policy](https://www.grammarly.com/privacy-policy) before using this. + +---@type vim.lsp.Config +return { + cmd = { 'grammarly-languageserver', '--stdio' }, + filetypes = { 'markdown' }, + root_markers = { '.git' }, + handlers = { + ['$/updateDocumentState'] = function() + return '' + end, + }, + init_options = { + clientId = 'client_BaDkMgx4X19X9UxxYRCXZo', + }, +} diff --git a/.config/nvim/lsp/graphql.lua b/.config/nvim/lsp/graphql.lua new file mode 100644 index 0000000..27a8603 --- /dev/null +++ b/.config/nvim/lsp/graphql.lua @@ -0,0 +1,23 @@ +---@brief +--- +--- https://github.com/graphql/graphiql/tree/main/packages/graphql-language-service-cli +--- +--- `graphql-lsp` can be installed via `npm`: +--- +--- ```sh +--- npm install -g graphql-language-service-cli +--- ``` +--- +--- Note that you must also have [the graphql package](https://github.com/graphql/graphql-js) installed within your project and create a [GraphQL config file](https://the-guild.dev/graphql/config/docs). + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'graphql-lsp', 'server', '-m', 'stream' }, + filetypes = { 'graphql', 'typescriptreact', 'javascriptreact' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('.graphqlrc*', '.graphql.config.*', 'graphql.config.*')(fname)) + end, +} diff --git a/.config/nvim/lsp/groovyls.lua b/.config/nvim/lsp/groovyls.lua new file mode 100644 index 0000000..e1cb8f6 --- /dev/null +++ b/.config/nvim/lsp/groovyls.lua @@ -0,0 +1,30 @@ +---@brief +--- +--- https://github.com/prominic/groovy-language-server.git +--- +--- Requirements: +--- - Linux/macOS (for now) +--- - Java 11+ +--- +--- `groovyls` can be installed by following the instructions [here](https://github.com/prominic/groovy-language-server.git#build). +--- +--- If you have installed groovy language server, you can set the `cmd` custom path as follow: +--- +--- ```lua +--- vim.lsp.config('groovyls', { +--- -- Unix +--- cmd = { "java", "-jar", "path/to/groovyls/groovy-language-server-all.jar" }, +--- ... +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { + 'java', + '-jar', + 'groovy-language-server-all.jar', + }, + filetypes = { 'groovy' }, + root_markers = { 'Jenkinsfile', '.git' }, +} diff --git a/.config/nvim/lsp/guile_ls.lua b/.config/nvim/lsp/guile_ls.lua new file mode 100644 index 0000000..58bb6c7 --- /dev/null +++ b/.config/nvim/lsp/guile_ls.lua @@ -0,0 +1,21 @@ +---@brief +--- +--- https://codeberg.org/rgherdt/scheme-lsp-server +--- +--- The recommended way is to install guile-lsp-server is using Guix. Unfortunately it is still not available at the official Guix channels, but you can use the provided channel guix.scm in the repo: +--- ```sh +--- guix package -f guix.scm +--- ``` +--- +--- Checkout the repo for more info. +--- +--- Note: This LSP will start on `scheme.guile` filetype. You can set this file type using `:help modeline` or adding https://gitlab.com/HiPhish/guile.vim to your plugins to automatically set it. + +---@type vim.lsp.Config +return { + cmd = { 'guile-lsp-server' }, + filetypes = { + 'scheme.guile', + }, + root_markers = { 'guix.scm', '.git' }, +} diff --git a/.config/nvim/lsp/harper_ls.lua b/.config/nvim/lsp/harper_ls.lua new file mode 100644 index 0000000..ca157fb --- /dev/null +++ b/.config/nvim/lsp/harper_ls.lua @@ -0,0 +1,51 @@ +---@brief +--- +--- https://github.com/automattic/harper +--- +--- The language server for Harper, the slim, clean language checker for developers. +--- +--- See our [documentation](https://writewithharper.com/docs/integrations/neovim) for more information on settings. +--- +--- In short, they should look something like this: +--- ```lua +--- vim.lsp.config('harper_ls', { +--- settings = { +--- ["harper-ls"] = { +--- userDictPath = "~/dict.txt" +--- } +--- }, +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'harper-ls', '--stdio' }, + filetypes = { + 'c', + 'cpp', + 'cs', + 'gitcommit', + 'go', + 'html', + 'java', + 'javascript', + 'lua', + 'markdown', + 'nix', + 'python', + 'ruby', + 'rust', + 'swift', + 'toml', + 'typescript', + 'typescriptreact', + 'haskell', + 'cmake', + 'typst', + 'php', + 'dart', + 'clojure', + 'sh', + }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/hdl_checker.lua b/.config/nvim/lsp/hdl_checker.lua new file mode 100644 index 0000000..bd0912c --- /dev/null +++ b/.config/nvim/lsp/hdl_checker.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/suoto/hdl_checker +--- Language server for hdl-checker. +--- Install using: `pip install hdl-checker --upgrade` + +---@type vim.lsp.Config +return { + cmd = { 'hdl_checker', '--lsp' }, + filetypes = { 'vhdl', 'verilog', 'systemverilog' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/helm_ls.lua b/.config/nvim/lsp/helm_ls.lua new file mode 100644 index 0000000..a2deb89 --- /dev/null +++ b/.config/nvim/lsp/helm_ls.lua @@ -0,0 +1,25 @@ +---@brief +--- +--- https://github.com/mrjosh/helm-ls +--- +--- Helm Language server. (This LSP is in early development) +--- +--- `helm Language server` can be installed by following the instructions [here](https://github.com/mrjosh/helm-ls). +--- +--- The default `cmd` assumes that the `helm_ls` binary can be found in `$PATH`. +--- +--- If need Helm file highlight use [vim-helm](https://github.com/towolf/vim-helm) plugin. + +---@type vim.lsp.Config +return { + cmd = { 'helm_ls', 'serve' }, + filetypes = { 'helm', 'yaml.helm-values' }, + root_markers = { 'Chart.yaml' }, + capabilities = { + workspace = { + didChangeWatchedFiles = { + dynamicRegistration = true, + }, + }, + }, +} diff --git a/.config/nvim/lsp/herb_ls.lua b/.config/nvim/lsp/herb_ls.lua new file mode 100644 index 0000000..637eb56 --- /dev/null +++ b/.config/nvim/lsp/herb_ls.lua @@ -0,0 +1,29 @@ +---@brief +--- +--- https://www.npmjs.com/package/@herb-tools/language-server +--- https://github.com/marcoroth/herb +--- +--- HTML+ERB (HTML + Embedded Ruby) +--- Powerful and seamless HTML-aware ERB parsing and tooling. +--- +--- Herb is designed from the ground up to deeply understand `.html.erb` files, +--- preserving both HTML and embedded Ruby structure without losing any details. +--- +--- `herb-language-server` can be installed via `npm`: +--- +--- ```sh +--- npm install -g @herb-tools/language-server +--- ``` +--- +--- or via `yarn`: +--- +--- ```sh +--- yarn global add @herb-tools/language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'herb-language-server', '--stdio' }, + filetypes = { 'html', 'eruby' }, + root_markers = { 'Gemfile', '.git' }, +} diff --git a/.config/nvim/lsp/hhvm.lua b/.config/nvim/lsp/hhvm.lua new file mode 100644 index 0000000..2016614 --- /dev/null +++ b/.config/nvim/lsp/hhvm.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- Language server for programs written in Hack +--- https://hhvm.com/ +--- https://github.com/facebook/hhvm +--- See below for how to setup HHVM & typechecker: +--- https://docs.hhvm.com/hhvm/getting-started/getting-started + +---@type vim.lsp.Config +return { + cmd = { 'hh_client', 'lsp' }, + filetypes = { 'php', 'hack' }, + root_markers = { '.hhconfig' }, +} diff --git a/.config/nvim/lsp/hie.lua b/.config/nvim/lsp/hie.lua new file mode 100644 index 0000000..8d6acac --- /dev/null +++ b/.config/nvim/lsp/hie.lua @@ -0,0 +1,25 @@ +---@brief +--- +--- https://github.com/haskell/haskell-ide-engine +--- +--- the following init_options are supported (see https://github.com/haskell/haskell-ide-engine#configuration): +--- ```lua +--- init_options = { +--- languageServerHaskell = { +--- hlintOn = bool; +--- maxNumberOfProblems = number; +--- diagnosticsDebounceDuration = number; +--- liquidOn = bool (default false); +--- completionSnippetsOn = bool (default true); +--- formatOnImportOn = bool (default true); +--- formattingProvider = string (default "brittany", alternate "floskell"); +--- } +--- } +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'hie-wrapper', '--lsp' }, + filetypes = { 'haskell' }, + root_markers = { 'stack.yaml', 'package.yaml', '.git' }, +} diff --git a/.config/nvim/lsp/hlasm.lua b/.config/nvim/lsp/hlasm.lua new file mode 100644 index 0000000..9ca794d --- /dev/null +++ b/.config/nvim/lsp/hlasm.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- `hlasm_language_server` is a language server for the High Level Assembler language used on IBM SystemZ mainframes. +--- +--- To learn how to configure the HLASM language server, see the [HLASM Language Support documentation](https://github.com/eclipse-che4z/che-che4z-lsp-for-hlasm). + +---@type vim.lsp.Config +return { + cmd = { 'hlasm_language_server' }, + filetypes = { 'hlasm' }, + root_markers = { '.hlasmplugin' }, +} diff --git a/.config/nvim/lsp/hls.lua b/.config/nvim/lsp/hls.lua new file mode 100644 index 0000000..705a97d --- /dev/null +++ b/.config/nvim/lsp/hls.lua @@ -0,0 +1,31 @@ +---@brief +--- +--- https://github.com/haskell/haskell-language-server +--- +--- Haskell Language Server +--- +--- If you are using HLS 1.9.0.0, enable the language server to launch on Cabal files as well: +--- +--- ```lua +--- vim.lsp.config('hls', { +--- filetypes = { 'haskell', 'lhaskell', 'cabal' }, +--- }) +--- ``` + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'haskell-language-server-wrapper', '--lsp' }, + filetypes = { 'haskell', 'lhaskell' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('hie.yaml', 'stack.yaml', 'cabal.project', '*.cabal', 'package.yaml')(fname)) + end, + settings = { + haskell = { + formattingProvider = 'ormolu', + cabalFormattingProvider = 'cabalfmt', + }, + }, +} diff --git a/.config/nvim/lsp/hoon_ls.lua b/.config/nvim/lsp/hoon_ls.lua new file mode 100644 index 0000000..165c803 --- /dev/null +++ b/.config/nvim/lsp/hoon_ls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/urbit/hoon-language-server +--- +--- A language server for Hoon. +--- +--- The language server can be installed via `npm install -g @hoon-language-server` +--- +--- Start a fake ~zod with `urbit -F zod`. +--- Start the language server at the Urbit Dojo prompt with: `|start %language-server` + +---@type vim.lsp.Config +return { + cmd = { 'hoon-language-server' }, + filetypes = { 'hoon' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/html.lua b/.config/nvim/lsp/html.lua new file mode 100644 index 0000000..2b53d32 --- /dev/null +++ b/.config/nvim/lsp/html.lua @@ -0,0 +1,36 @@ +---@brief +--- +--- https://github.com/hrsh7th/vscode-langservers-extracted +--- +--- `vscode-html-language-server` can be installed via `npm`: +--- ```sh +--- npm i -g vscode-langservers-extracted +--- ``` +--- +--- Neovim does not currently include built-in snippets. `vscode-html-language-server` only provides completions when snippet support is enabled. +--- To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup. +--- +--- The code-formatting feature of the lsp can be controlled with the `provideFormatter` option. +--- +--- ```lua +--- --Enable (broadcasting) snippet capability for completion +--- local capabilities = vim.lsp.protocol.make_client_capabilities() +--- capabilities.textDocument.completion.completionItem.snippetSupport = true +--- +--- vim.lsp.config('html', { +--- capabilities = capabilities, +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'vscode-html-language-server', '--stdio' }, + filetypes = { 'html', 'templ' }, + root_markers = { 'package.json', '.git' }, + settings = {}, + init_options = { + provideFormatter = true, + embeddedLanguages = { css = true, javascript = true }, + configurationSection = { 'html', 'css', 'javascript' }, + }, +} diff --git a/.config/nvim/lsp/htmx.lua b/.config/nvim/lsp/htmx.lua new file mode 100644 index 0000000..87b0429 --- /dev/null +++ b/.config/nvim/lsp/htmx.lua @@ -0,0 +1,64 @@ +---@brief +--- +--- https://github.com/ThePrimeagen/htmx-lsp +--- +--- `htmx-lsp` can be installed via `cargo`: +--- ```sh +--- cargo install htmx-lsp +--- ``` +--- +--- Lsp is still very much work in progress and experimental. Use at your own risk. + +---@type vim.lsp.Config +return { + cmd = { 'htmx-lsp' }, + filetypes = { -- filetypes copied and adjusted from tailwindcss-intellisense + -- html + 'aspnetcorerazor', + 'astro', + 'astro-markdown', + 'blade', + 'clojure', + 'django-html', + 'htmldjango', + 'edge', + 'eelixir', -- vim ft + 'elixir', + 'ejs', + 'erb', + 'eruby', -- vim ft + 'gohtml', + 'gohtmltmpl', + 'haml', + 'handlebars', + 'hbs', + 'html', + 'htmlangular', + 'html-eex', + 'heex', + 'jade', + 'leaf', + 'liquid', + 'markdown', + 'mdx', + 'mustache', + 'njk', + 'nunjucks', + 'php', + 'razor', + 'slim', + 'twig', + -- js + 'javascript', + 'javascriptreact', + 'reason', + 'rescript', + 'typescript', + 'typescriptreact', + -- mixed + 'vue', + 'svelte', + 'templ', + }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/hydra_lsp.lua b/.config/nvim/lsp/hydra_lsp.lua new file mode 100644 index 0000000..b443433 --- /dev/null +++ b/.config/nvim/lsp/hydra_lsp.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/Retsediv/hydra-lsp +--- +--- LSP for Hydra Python package config files. + +---@type vim.lsp.Config +return { + cmd = { 'hydra-lsp' }, + filetypes = { 'yaml' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/hyprls.lua b/.config/nvim/lsp/hyprls.lua new file mode 100644 index 0000000..64d7cda --- /dev/null +++ b/.config/nvim/lsp/hyprls.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/hyprland-community/hyprls +--- +--- `hyprls` can be installed via `go`: +--- ```sh +--- go install github.com/hyprland-community/hyprls/cmd/hyprls@latest +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'hyprls', '--stdio' }, + filetypes = { 'hyprlang' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/idris2_lsp.lua b/.config/nvim/lsp/idris2_lsp.lua new file mode 100644 index 0000000..d7f153e --- /dev/null +++ b/.config/nvim/lsp/idris2_lsp.lua @@ -0,0 +1,42 @@ +---@brief +--- +--- https://github.com/idris-community/idris2-lsp +--- +--- The Idris 2 language server. +--- +--- Plugins for the Idris 2 filetype include +--- [Idris2-Vim](https://github.com/edwinb/idris2-vim) (fewer features, stable) and +--- [Nvim-Idris2](https://github.com/ShinKage/nvim-idris2) (cutting-edge, +--- experimental). +--- +--- Idris2-Lsp requires a build of Idris 2 that includes the "Idris 2 API" package. +--- Package managers with known support for this build include the +--- [AUR](https://aur.archlinux.org/packages/idris2/) and +--- [Homebrew](https://formulae.brew.sh/formula/idris2#default). +--- +--- If your package manager does not support the Idris 2 API, you will need to build +--- Idris 2 from source. Refer to the +--- [the Idris 2 installation instructions](https://github.com/idris-lang/Idris2/blob/main/INSTALL.md) +--- for details. Steps 5 and 8 are listed as "optional" in that guide, but they are +--- necessary in order to make the Idris 2 API available. +--- +--- You need to install a version of Idris2-Lsp that is compatible with your +--- version of Idris 2. There should be a branch corresponding to every released +--- Idris 2 version after v0.4.0. Use the latest commit on that branch. For example, +--- if you have Idris v0.5.1, you should use the v0.5.1 branch of Idris2-Lsp. +--- +--- If your Idris 2 version is newer than the newest Idris2-Lsp branch, use the +--- latest commit on the `master` branch, and set a reminder to check the Idris2-Lsp +--- repo for the release of a compatible versioned branch. + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'idris2-lsp' }, + filetypes = { 'idris2' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern '*.ipkg'(fname)) + end, +} diff --git a/.config/nvim/lsp/intelephense.lua b/.config/nvim/lsp/intelephense.lua new file mode 100644 index 0000000..8a91c40 --- /dev/null +++ b/.config/nvim/lsp/intelephense.lua @@ -0,0 +1,33 @@ +---@brief +--- +--- https://intelephense.com/ +--- +--- `intelephense` can be installed via `npm`: +--- ```sh +--- npm install -g intelephense +--- ``` +--- +--- ```lua +--- -- See https://github.com/bmewburn/intelephense-docs/blob/master/installation.md#initialisation-options +--- init_options = { +--- storagePath = …, -- Optional absolute path to storage dir. Defaults to os.tmpdir(). +--- globalStoragePath = …, -- Optional absolute path to a global storage dir. Defaults to os.homedir(). +--- licenceKey = …, -- Optional licence key or absolute path to a text file containing the licence key. +--- clearCache = …, -- Optional flag to clear server state. State can also be cleared by deleting {storagePath}/intelephense +--- } +--- -- See https://github.com/bmewburn/intelephense-docs +--- settings = { +--- intelephense = { +--- files = { +--- maxSize = 1000000; +--- }; +--- }; +--- } +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'intelephense', '--stdio' }, + filetypes = { 'php' }, + root_markers = { '.git', 'composer.json' }, +} diff --git a/.config/nvim/lsp/janet_lsp.lua b/.config/nvim/lsp/janet_lsp.lua new file mode 100644 index 0000000..7d444e4 --- /dev/null +++ b/.config/nvim/lsp/janet_lsp.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/CFiggers/janet-lsp +--- +--- A Language Server Protocol implementation for Janet. + +---@type vim.lsp.Config +return { + cmd = { + 'janet-lsp', + '--stdio', + }, + filetypes = { 'janet' }, + root_markers = { 'project.janet', '.git' }, +} diff --git a/.config/nvim/lsp/java_language_server.lua b/.config/nvim/lsp/java_language_server.lua new file mode 100644 index 0000000..1458254 --- /dev/null +++ b/.config/nvim/lsp/java_language_server.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/georgewfraser/java-language-server +--- +--- Java language server +--- +--- Point `cmd` to `lang_server_linux.sh` or the equivalent script for macOS/Windows provided by java-language-server + +---@type vim.lsp.Config +return { + filetypes = { 'java' }, + root_markers = { 'build.gradle', 'build.gradle.kts', 'pom.xml', '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/jdtls.lua b/.config/nvim/lsp/jdtls.lua new file mode 100644 index 0000000..4026047 --- /dev/null +++ b/.config/nvim/lsp/jdtls.lua @@ -0,0 +1,102 @@ +---@brief +--- +--- https://projects.eclipse.org/projects/eclipse.jdt.ls +--- +--- Language server for Java. +--- +--- IMPORTANT: If you want all the features jdtls has to offer, [nvim-jdtls](https://github.com/mfussenegger/nvim-jdtls) +--- is highly recommended. If all you need is diagnostics, completion, imports, gotos and formatting and some code actions +--- you can keep reading here. +--- +--- For manual installation you can download precompiled binaries from the +--- [official downloads site](http://download.eclipse.org/jdtls/snapshots/?d) +--- and ensure that the `PATH` variable contains the `bin` directory of the extracted archive. +--- +--- ```lua +--- -- init.lua +--- vim.lsp.enable('jdtls') +--- ``` +--- +--- You can also pass extra custom jvm arguments with the JDTLS_JVM_ARGS environment variable as a space separated list of arguments, +--- that will be converted to multiple --jvm-arg= args when passed to the jdtls script. This will allow for example tweaking +--- the jvm arguments or integration with external tools like lombok: +--- +--- ```sh +--- export JDTLS_JVM_ARGS="-javaagent:$HOME/.local/share/java/lombok.jar" +--- ``` +--- +--- For automatic installation you can use the following unofficial installers/launchers under your own risk: +--- - [jdtls-launcher](https://github.com/eruizc-dev/jdtls-launcher) (Includes lombok support by default) +--- ```lua +--- -- init.lua +--- vim.lsp.config('jdtls', { cmd = { 'jdtls' } }) +--- ``` + +local function get_jdtls_cache_dir() + return vim.fn.stdpath('cache') .. '/jdtls' +end + +local function get_jdtls_workspace_dir() + return get_jdtls_cache_dir() .. '/workspace' +end + +local function get_jdtls_jvm_args() + local env = os.getenv('JDTLS_JVM_ARGS') + local args = {} + for a in string.gmatch((env or ''), '%S+') do + local arg = string.format('--jvm-arg=%s', a) + table.insert(args, arg) + end + return unpack(args) +end + +local root_markers1 = { + -- Multi-module projects + 'mvnw', + 'gradlew', + 'build.gradle', + 'build.gradle.kts', + -- Use git directory as last resort for multi-module maven projects + -- In multi-module maven projects it is not really possible to determine what is the parent directory + -- and what is submodule directory. And jdtls does not break if the parent directory is at higher level than + -- actual parent pom.xml so propagating all the way to root git directory is fine + '.git', +} +local root_markers2 = { + -- Single-module projects + 'build.xml', -- Ant + 'pom.xml', -- Maven + 'settings.gradle', -- Gradle + 'settings.gradle.kts', -- Gradle +} + +---@type vim.lsp.Config +return { + ---@param dispatchers? vim.lsp.rpc.Dispatchers + ---@param config vim.lsp.ClientConfig + cmd = function(dispatchers, config) + local workspace_dir = get_jdtls_workspace_dir() + local data_dir = workspace_dir + + if config.root_dir then + data_dir = data_dir .. '/' .. vim.fn.fnamemodify(config.root_dir, ':p:h:t') + end + + local config_cmd = { + 'jdtls', + '-data', + data_dir, + get_jdtls_jvm_args(), + } + + return vim.lsp.rpc.start(config_cmd, dispatchers, { + cwd = config.cmd_cwd, + env = config.cmd_env, + detached = config.detached, + }) + end, + filetypes = { 'java' }, + root_markers = vim.fn.has('nvim-0.11.3') == 1 and { root_markers1, root_markers2 } + or vim.list_extend(root_markers1, root_markers2), + init_options = {}, +} diff --git a/.config/nvim/lsp/jedi_language_server.lua b/.config/nvim/lsp/jedi_language_server.lua new file mode 100644 index 0000000..99427a4 --- /dev/null +++ b/.config/nvim/lsp/jedi_language_server.lua @@ -0,0 +1,19 @@ +---@brief +--- +--- https://github.com/pappasam/jedi-language-server +--- +--- `jedi-language-server`, a language server for Python, built on top of jedi + +---@type vim.lsp.Config +return { + cmd = { 'jedi-language-server' }, + filetypes = { 'python' }, + root_markers = { + 'pyproject.toml', + 'setup.py', + 'setup.cfg', + 'requirements.txt', + 'Pipfile', + '.git', + }, +} diff --git a/.config/nvim/lsp/jinja_lsp.lua b/.config/nvim/lsp/jinja_lsp.lua new file mode 100644 index 0000000..c3a034f --- /dev/null +++ b/.config/nvim/lsp/jinja_lsp.lua @@ -0,0 +1,23 @@ +---@brief +--- +--- jinja-lsp enhances minijinja development experience by providing Helix/Nvim users with advanced features such as autocomplete, syntax highlighting, hover, goto definition, code actions and linting. +--- +--- The file types are not detected automatically, you can register them manually (see below) or override the filetypes: +--- +--- ```lua +--- vim.filetype.add { +--- extension = { +--- jinja = 'jinja', +--- jinja2 = 'jinja', +--- j2 = 'jinja', +--- }, +--- } +--- ``` + +---@type vim.lsp.Config +return { + name = 'jinja_lsp', + cmd = { 'jinja-lsp' }, + filetypes = { 'jinja' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/jqls.lua b/.config/nvim/lsp/jqls.lua new file mode 100644 index 0000000..2fcdeb3 --- /dev/null +++ b/.config/nvim/lsp/jqls.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/wader/jq-lsp +--- Language server for jq, written using Go. +--- You can install the server easily using go install: +--- ```sh +--- # install directly +--- go install github.com/wader/jq-lsp@master +--- # copy binary to $PATH +--- cp $(go env GOPATH)/bin/jq-lsp /usr/local/bin +--- +--- ``` +--- Note: To activate properly nvim needs to know the jq filetype. +--- You can add it via: +--- ```lua +--- vim.cmd([[au BufRead,BufNewFile *.jq setfiletype jq]]) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'jq-lsp' }, + filetypes = { 'jq' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/jsonls.lua b/.config/nvim/lsp/jsonls.lua new file mode 100644 index 0000000..93ae1db --- /dev/null +++ b/.config/nvim/lsp/jsonls.lua @@ -0,0 +1,32 @@ +---@brief +--- +--- https://github.com/hrsh7th/vscode-langservers-extracted +--- +--- vscode-json-language-server, a language server for JSON and JSON schema +--- +--- `vscode-json-language-server` can be installed via `npm`: +--- ```sh +--- npm i -g vscode-langservers-extracted +--- ``` +--- +--- `vscode-json-language-server` only provides completions when snippet support is enabled. If you use Neovim older than v0.10 you need to enable completion, install a snippet plugin and add the following override to your language client capabilities during setup. +--- +--- ```lua +--- --Enable (broadcasting) snippet capability for completion +--- local capabilities = vim.lsp.protocol.make_client_capabilities() +--- capabilities.textDocument.completion.completionItem.snippetSupport = true +--- +--- vim.lsp.config('jsonls', { +--- capabilities = capabilities, +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'vscode-json-language-server', '--stdio' }, + filetypes = { 'json', 'jsonc' }, + init_options = { + provideFormatter = true, + }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/jsonnet_ls.lua b/.config/nvim/lsp/jsonnet_ls.lua new file mode 100644 index 0000000..c5b0dee --- /dev/null +++ b/.config/nvim/lsp/jsonnet_ls.lua @@ -0,0 +1,20 @@ +--- @brief +--- +--- https://github.com/grafana/jsonnet-language-server +--- +--- A Language Server Protocol (LSP) server for Jsonnet. +--- +--- The language server can be installed with `go`: +--- ```sh +--- go install github.com/grafana/jsonnet-language-server@latest +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'jsonnet-language-server' }, + filetypes = { + 'jsonnet', + 'libsonnet', + }, + root_markers = { 'jsonnetfile.json', '.git' }, +} diff --git a/.config/nvim/lsp/julials.lua b/.config/nvim/lsp/julials.lua new file mode 100644 index 0000000..949a7e8 --- /dev/null +++ b/.config/nvim/lsp/julials.lua @@ -0,0 +1,131 @@ +---@brief +--- +--- https://github.com/julia-vscode/julia-vscode +--- +--- LanguageServer.jl can be installed with `julia` and `Pkg`: +--- ```sh +--- julia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.add("LanguageServer")' +--- ``` +--- where `~/.julia/environments/nvim-lspconfig` is the location where +--- the default configuration expects LanguageServer.jl to be installed. +--- +--- To update an existing install, use the following command: +--- ```sh +--- julia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.update()' +--- ``` +--- +--- Note: In order to have LanguageServer.jl pick up installed packages or dependencies in a +--- Julia project, you must make sure that the project is instantiated: +--- ```sh +--- julia --project=/path/to/my/project -e 'using Pkg; Pkg.instantiate()' +--- ``` +--- +--- Note: The julia programming language searches for global environments within the `environments/` +--- folder of `$JULIA_DEPOT_PATH` entries. By default this simply `~/.julia/environments` + +local root_files = { 'Project.toml', 'JuliaProject.toml' } + +local function activate_env(path) + assert(vim.fn.has 'nvim-0.10' == 1, 'requires Nvim 0.10 or newer') + local bufnr = vim.api.nvim_get_current_buf() + local julials_clients = vim.lsp.get_clients { bufnr = bufnr, name = 'julials' } + assert( + #julials_clients > 0, + 'method julia/activateenvironment is not supported by any servers active on the current buffer' + ) + local function _activate_env(environment) + if environment then + for _, julials_client in ipairs(julials_clients) do + julials_client:notify('julia/activateenvironment', { envPath = environment }) + end + vim.notify('Julia environment activated: \n`' .. environment .. '`', vim.log.levels.INFO) + end + end + if path then + path = vim.fs.normalize(vim.fn.fnamemodify(vim.fn.expand(path), ':p')) + local found_env = false + for _, project_file in ipairs(root_files) do + local file = vim.uv.fs_stat(vim.fs.joinpath(path, project_file)) + if file and file.type then + found_env = true + break + end + end + if not found_env then + vim.notify('Path is not a julia environment: \n`' .. path .. '`', vim.log.levels.WARN) + return + end + _activate_env(path) + else + local depot_paths = vim.env.JULIA_DEPOT_PATH + and vim.split(vim.env.JULIA_DEPOT_PATH, vim.fn.has 'win32' == 1 and ';' or ':') + or { vim.fn.expand '~/.julia' } + local environments = {} + vim.list_extend(environments, vim.fs.find(root_files, { type = 'file', upward = true, limit = math.huge })) + for _, depot_path in ipairs(depot_paths) do + local depot_env = vim.fs.joinpath(vim.fs.normalize(depot_path), 'environments') + vim.list_extend( + environments, + vim.fs.find(function(name, env_path) + return vim.tbl_contains(root_files, name) and string.sub(env_path, #depot_env + 1):match '^/[^/]*$' + end, { path = depot_env, type = 'file', limit = math.huge }) + ) + end + environments = vim.tbl_map(vim.fs.dirname, environments) + vim.ui.select(environments, { prompt = 'Select a Julia environment' }, _activate_env) + end +end + +local cmd = { + 'julia', + '--startup-file=no', + '--history-file=no', + '-e', + [[ + # Load LanguageServer.jl: attempt to load from ~/.julia/environments/nvim-lspconfig + # with the regular load path as a fallback + ls_install_path = joinpath( + get(DEPOT_PATH, 1, joinpath(homedir(), ".julia")), + "environments", "nvim-lspconfig" + ) + pushfirst!(LOAD_PATH, ls_install_path) + using LanguageServer + popfirst!(LOAD_PATH) + depot_path = get(ENV, "JULIA_DEPOT_PATH", "") + project_path = let + dirname(something( + ## 1. Finds an explicitly set project (JULIA_PROJECT) + Base.load_path_expand(( + p = get(ENV, "JULIA_PROJECT", nothing); + p === nothing ? nothing : isempty(p) ? nothing : p + )), + ## 2. Look for a Project.toml file in the current working directory, + ## or parent directories, with $HOME as an upper boundary + Base.current_project(), + ## 3. First entry in the load path + get(Base.load_path(), 1, nothing), + ## 4. Fallback to default global environment, + ## this is more or less unreachable + Base.load_path_expand("@v#.#"), + )) + end + @info "Running language server" VERSION pwd() project_path depot_path + server = LanguageServer.LanguageServerInstance(stdin, stdout, project_path, depot_path) + server.runlinter = true + run(server) + ]], +} + +---@type vim.lsp.Config +return { + cmd = cmd, + filetypes = { 'julia' }, + root_markers = root_files, + on_attach = function(_, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspJuliaActivateEnv', activate_env, { + desc = 'Activate a Julia environment', + nargs = '?', + complete = 'file', + }) + end, +} diff --git a/.config/nvim/lsp/just.lua b/.config/nvim/lsp/just.lua new file mode 100644 index 0000000..a5db058 --- /dev/null +++ b/.config/nvim/lsp/just.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/terror/just-lsp +--- +--- `just-lsp` is an LSP for just built on top of the tree-sitter-just parser. + +---@type vim.lsp.Config +return { + cmd = { 'just-lsp' }, + filetypes = { 'just' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/kcl.lua b/.config/nvim/lsp/kcl.lua new file mode 100644 index 0000000..08041fc --- /dev/null +++ b/.config/nvim/lsp/kcl.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/kcl-lang/kcl.nvim +--- +--- Language server for the KCL configuration and policy language. +--- + +---@type vim.lsp.Config +return { + cmd = { 'kcl-language-server' }, + filetypes = { 'kcl' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/koka.lua b/.config/nvim/lsp/koka.lua new file mode 100644 index 0000000..c5a3df3 --- /dev/null +++ b/.config/nvim/lsp/koka.lua @@ -0,0 +1,11 @@ +---@brief +--- +--- https://koka-lang.github.io/koka/doc/index.html +--- Koka is a functional programming language with effect types and handlers. + +---@type vim.lsp.Config +return { + cmd = { 'koka', '--language-server', '--lsstdio' }, + filetypes = { 'koka' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/kotlin_language_server.lua b/.config/nvim/lsp/kotlin_language_server.lua new file mode 100644 index 0000000..b5446e2 --- /dev/null +++ b/.config/nvim/lsp/kotlin_language_server.lua @@ -0,0 +1,42 @@ +---@brief +--- +--- A kotlin language server which was developed for internal usage and +--- released afterwards. Maintaining is not done by the original author, +--- but by fwcd. +--- +--- It is built via gradle and developed on github. +--- Source and additional description: +--- https://github.com/fwcd/kotlin-language-server +--- +--- This server requires vim to be aware of the kotlin-filetype. +--- You could refer for this capability to: +--- https://github.com/udalov/kotlin-vim (recommended) +--- Note that there is no LICENSE specified yet. +--- +--- For faster startup, you can setup caching by specifying a storagePath +--- in the init_options. The default is your home directory. + +--- The presence of one of these files indicates a project root directory +-- +-- These are configuration files for the various build systems supported by +-- Kotlin. I am not sure whether the language server supports Ant projects, +-- but I'm keeping it here as well since Ant does support Kotlin. +local root_files = { + 'settings.gradle', -- Gradle (multi-project) + 'settings.gradle.kts', -- Gradle (multi-project) + 'build.xml', -- Ant + 'pom.xml', -- Maven + 'build.gradle', -- Gradle + 'build.gradle.kts', -- Gradle +} + +---@type vim.lsp.Config +return { + filetypes = { 'kotlin' }, + root_markers = root_files, + cmd = { 'kotlin-language-server' }, + init_options = { + -- Enables caching and use project root to store cache data. + storagePath = vim.fs.root(vim.fn.expand '%:p:h', root_files), + }, +} diff --git a/.config/nvim/lsp/kotlin_lsp.lua b/.config/nvim/lsp/kotlin_lsp.lua new file mode 100644 index 0000000..cd9e772 --- /dev/null +++ b/.config/nvim/lsp/kotlin_lsp.lua @@ -0,0 +1,23 @@ +---@brief +---Pre-alpha official Kotlin support for Visual Studio Code and an implementation of Language Server Protocol for the Kotlin language. +--- +---The server is based on IntelliJ IDEA and the IntelliJ IDEA Kotlin Plugin implementation. + +--- The presence of one of these files indicates a project root directory +-- +-- These are configuration files for the various build systems supported by +-- Kotlin. + +---@type vim.lsp.Config +return { + filetypes = { 'kotlin' }, + cmd = { 'kotlin-lsp', '--stdio' }, + root_markers = { + 'settings.gradle', -- Gradle (multi-project) + 'settings.gradle.kts', -- Gradle (multi-project) + 'pom.xml', -- Maven + 'build.gradle', -- Gradle + 'build.gradle.kts', -- Gradle + 'workspace.json', -- Used to integrate your own build system + }, +} diff --git a/.config/nvim/lsp/kulala_ls.lua b/.config/nvim/lsp/kulala_ls.lua new file mode 100644 index 0000000..e56a2cf --- /dev/null +++ b/.config/nvim/lsp/kulala_ls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/mistweaverco/kulala-ls +--- +--- A minimal language server for HTTP syntax. + +---@type vim.lsp.Config +return { + cmd = { 'kulala-ls', '--stdio' }, + filetypes = { 'http' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/laravel_ls.lua b/.config/nvim/lsp/laravel_ls.lua new file mode 100644 index 0000000..59d986f --- /dev/null +++ b/.config/nvim/lsp/laravel_ls.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/laravel-ls/laravel-ls +--- +--- `laravel-ls`, language server for laravel +--- +--- The default `cmd` assumes that the `laravel-ls` binary can be found in `$PATH`. + +---@type vim.lsp.Config +return { + cmd = { 'laravel-ls' }, + filetypes = { 'php', 'blade' }, + root_markers = { 'artisan' }, +} diff --git a/.config/nvim/lsp/lean3ls.lua b/.config/nvim/lsp/lean3ls.lua new file mode 100644 index 0000000..aefbbe9 --- /dev/null +++ b/.config/nvim/lsp/lean3ls.lua @@ -0,0 +1,40 @@ +---@brief +--- +--- https://github.com/leanprover/lean-client-js/tree/master/lean-language-server +--- +--- Lean installation instructions can be found +--- [here](https://leanprover-community.github.io/get_started.html#regular-install). +--- +--- Once Lean is installed, you can install the Lean 3 language server by running +--- ```sh +--- npm install -g lean-language-server +--- ``` +--- +--- Note: that if you're using [lean.nvim](https://github.com/Julian/lean.nvim), +--- that plugin fully handles the setup of the Lean language server, +--- and you shouldn't set up `lean3ls` both with it and `lspconfig`. + +---@type vim.lsp.Config +return { + cmd = { 'lean-language-server', '--stdio', '--', '-M', '4096', '-T', '100000' }, + filetypes = { 'lean3' }, + offset_encoding = 'utf-32', + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + fname = vim.fs.normalize(fname) + -- check if inside elan stdlib + local stdlib_dir + do + local _, endpos = fname:find '/lean/library' + if endpos then + stdlib_dir = fname:sub(1, endpos) + end + end + + on_dir( + vim.fs.root(fname, { 'leanpkg.toml', 'leanpkg.path' }) + or stdlib_dir + or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) + ) + end, +} diff --git a/.config/nvim/lsp/leanls.lua b/.config/nvim/lsp/leanls.lua new file mode 100644 index 0000000..e5c03fd --- /dev/null +++ b/.config/nvim/lsp/leanls.lua @@ -0,0 +1,45 @@ +---@brief +--- https://github.com/leanprover/lean4 +--- +--- Lean installation instructions can be found +--- [here](https://leanprover-community.github.io/get_started.html#regular-install). +--- +--- The Lean language server is included in any Lean installation and +--- does not require any additional packages. +--- +--- Note: that if you're using [lean.nvim](https://github.com/Julian/lean.nvim), +--- that plugin fully handles the setup of the Lean language server, +--- and you shouldn't set up `leanls` both with it and `lspconfig`. + +---@type vim.lsp.Config +return { + cmd = function(dispatchers, config) + local local_cmd = { 'lake', 'serve', '--', config.root_dir } + return vim.lsp.rpc.start(local_cmd, dispatchers) + end, + filetypes = { 'lean' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + fname = vim.fs.normalize(fname) + -- check if inside lean stdlib + local stdlib_dir + do + local _, endpos = fname:find '/lean/library' + if endpos then + stdlib_dir = fname:sub(1, endpos) + end + end + if not stdlib_dir then + local _, endpos = fname:find '/lib/lean' + if endpos then + stdlib_dir = fname:sub(1, endpos) + end + end + + on_dir( + vim.fs.root(fname, { 'lakefile.toml', 'lakefile.lean', 'lean-toolchain' }) + or stdlib_dir + or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) + ) + end, +} diff --git a/.config/nvim/lsp/lelwel_ls.lua b/.config/nvim/lsp/lelwel_ls.lua new file mode 100644 index 0000000..0b04eb1 --- /dev/null +++ b/.config/nvim/lsp/lelwel_ls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/0x2a-42/lelwel +--- +--- Language server for lelwel grammars. +--- +--- You can install `lelwel-ls` via cargo: +--- ```sh +--- cargo install --features="lsp" lelwel +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'lelwel-ls' }, + filetypes = { 'llw' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/lemminx.lua b/.config/nvim/lsp/lemminx.lua new file mode 100644 index 0000000..4aac3a8 --- /dev/null +++ b/.config/nvim/lsp/lemminx.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/eclipse/lemminx +--- +--- The easiest way to install the server is to get a binary from https://github.com/redhat-developer/vscode-xml/releases and place it on your PATH. +--- +--- NOTE to macOS users: Binaries from unidentified developers are blocked by default. If you trust the downloaded binary, run it once, cancel the prompt, then remove the binary from Gatekeeper quarantine with `xattr -d com.apple.quarantine lemminx`. It should now run without being blocked. + +---@type vim.lsp.Config +return { + cmd = { 'lemminx' }, + filetypes = { 'xml', 'xsd', 'xsl', 'xslt', 'svg' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/lexical.lua b/.config/nvim/lsp/lexical.lua new file mode 100644 index 0000000..ee6d595 --- /dev/null +++ b/.config/nvim/lsp/lexical.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- https://github.com/lexical-lsp/lexical +--- +--- Lexical is a next-generation language server for the Elixir programming language. +--- +--- Follow the [Detailed Installation Instructions](https://github.com/lexical-lsp/lexical/blob/main/pages/installation.md) +--- +--- **By default, `lexical` doesn't have a `cmd` set.** +--- This is because nvim-lspconfig does not make assumptions about your path. + +---@type vim.lsp.Config +return { + filetypes = { 'elixir', 'eelixir', 'heex', 'surface' }, + root_markers = { 'mix.exs', '.git' }, +} diff --git a/.config/nvim/lsp/lsp_ai.lua b/.config/nvim/lsp/lsp_ai.lua new file mode 100644 index 0000000..ef853e2 --- /dev/null +++ b/.config/nvim/lsp/lsp_ai.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/SilasMarvin/lsp-ai +--- +--- LSP-AI is an open source language server that serves as a backend for AI-powered functionality in your favorite code +--- editors. It offers features like in-editor chatting with LLMs and code completions. +--- +--- +--- You will need to provide configuration for the inference backends and models you want to use, as well as configure +--- completion/code actions. See the [wiki docs](https://github.com/SilasMarvin/lsp-ai/wiki/Configuration) and +--- [examples](https://github.com/SilasMarvin/lsp-ai/blob/main/examples/nvim) for more information. + +---@type vim.lsp.Config +return { + cmd = { 'lsp-ai' }, + filetypes = {}, + root_dir = nil, + init_options = { + memory = { + file_store = vim.empty_dict(), + }, + models = vim.empty_dict(), + }, +} diff --git a/.config/nvim/lsp/ltex.lua b/.config/nvim/lsp/ltex.lua new file mode 100644 index 0000000..9b3bb24 --- /dev/null +++ b/.config/nvim/lsp/ltex.lua @@ -0,0 +1,85 @@ +---@brief +--- +--- https://github.com/valentjn/ltex-ls +--- +--- LTeX Language Server: LSP language server for LanguageTool 🔍✔️ with support for LaTeX 🎓, Markdown 📝, and others +--- +--- To install, download the latest [release](https://github.com/valentjn/ltex-ls/releases) and ensure `ltex-ls` is on your path. +--- +--- This server accepts configuration via the `settings` key. +--- +--- ```lua +--- settings = { +--- ltex = { +--- language = "en-GB", +--- }, +--- }, +--- ``` +--- +--- To support org files or R sweave, users can define a custom filetype autocommand (or use a plugin which defines these filetypes): +--- +--- ```lua +--- vim.cmd [[ autocmd BufRead,BufNewFile *.org set filetype=org ]] +--- ``` + +local language_id_mapping = { + bib = 'bibtex', + plaintex = 'tex', + rnoweb = 'rsweave', + rst = 'restructuredtext', + tex = 'latex', + pandoc = 'markdown', + text = 'plaintext', +} + +local filetypes = { + 'bib', + 'gitcommit', + 'markdown', + 'org', + 'plaintex', + 'rst', + 'rnoweb', + 'tex', + 'pandoc', + 'quarto', + 'rmd', + 'context', + 'html', + 'xhtml', + 'mail', + 'text', +} + +local function get_language_id(_, filetype) + local language_id = language_id_mapping[filetype] + if language_id then + return language_id + else + return filetype + end +end +local enabled_ids = {} +do + local enabled_keys = {} + for _, ft in ipairs(filetypes) do + local id = get_language_id({}, ft) + if not enabled_keys[id] then + enabled_keys[id] = true + table.insert(enabled_ids, id) + end + end +end + +---@type vim.lsp.Config +return { + cmd = { 'ltex-ls' }, + filetypes = filetypes, + root_markers = { '.git' }, + get_language_id = get_language_id, + settings = { + ltex = { + enabled = enabled_ids, + }, + }, +} diff --git a/.config/nvim/lsp/ltex_plus.lua b/.config/nvim/lsp/ltex_plus.lua new file mode 100644 index 0000000..c241cb7 --- /dev/null +++ b/.config/nvim/lsp/ltex_plus.lua @@ -0,0 +1,87 @@ +---@brief +--- +--- https://github.com/ltex-plus/ltex-ls-plus +--- +--- LTeX Language Server: LSP language server for LanguageTool 🔍✔️ with support for LaTeX 🎓, Markdown 📝, and others +--- +--- To install, download the latest [release](https://github.com/ltex-plus/ltex-ls-plus) and ensure `ltex-ls-plus` is on your path. +--- +--- This server accepts configuration via the `settings` key. +--- +--- ```lua +--- settings = { +--- ltex = { +--- language = "en-GB", +--- }, +--- }, +--- ``` +--- +--- To support org files or R sweave, users can define a custom filetype autocommand (or use a plugin which defines these filetypes): +--- +--- ```lua +--- vim.cmd [[ autocmd BufRead,BufNewFile *.org set filetype=org ]] +--- ``` + +local language_id_mapping = { + bib = 'bibtex', + pandoc = 'markdown', + plaintex = 'tex', + rnoweb = 'rsweave', + rst = 'restructuredtext', + tex = 'latex', + text = 'plaintext', +} + +---@type vim.lsp.Config +return { + cmd = { 'ltex-ls-plus' }, + filetypes = { + 'bib', + 'context', + 'gitcommit', + 'html', + 'markdown', + 'org', + 'pandoc', + 'plaintex', + 'quarto', + 'mail', + 'mdx', + 'rmd', + 'rnoweb', + 'rst', + 'tex', + 'text', + 'typst', + 'xhtml', + }, + root_markers = { '.git' }, + get_language_id = function(_, filetype) + return language_id_mapping[filetype] or filetype + end, + settings = { + ltex = { + enabled = { + 'bib', + 'context', + 'gitcommit', + 'html', + 'markdown', + 'org', + 'pandoc', + 'plaintex', + 'quarto', + 'mail', + 'mdx', + 'rmd', + 'rnoweb', + 'rst', + 'tex', + 'latex', + 'text', + 'typst', + 'xhtml', + }, + }, + }, +} diff --git a/.config/nvim/lsp/lua_ls.lua b/.config/nvim/lsp/lua_ls.lua new file mode 100644 index 0000000..c8a46c1 --- /dev/null +++ b/.config/nvim/lsp/lua_ls.lua @@ -0,0 +1,92 @@ +---@brief +--- +--- https://github.com/luals/lua-language-server +--- +--- Lua language server. +--- +--- `lua-language-server` can be installed by following the instructions [here](https://luals.github.io/#neovim-install). +--- +--- The default `cmd` assumes that the `lua-language-server` binary can be found in `$PATH`. +--- +--- If you primarily use `lua-language-server` for Neovim, and want to provide completions, +--- analysis, and location handling for plugins on runtime path, you can use the following +--- settings. +--- +--- ```lua +--- vim.lsp.config('lua_ls', { +--- on_init = function(client) +--- if client.workspace_folders then +--- local path = client.workspace_folders[1].name +--- if +--- path ~= vim.fn.stdpath('config') +--- and (vim.uv.fs_stat(path .. '/.luarc.json') or vim.uv.fs_stat(path .. '/.luarc.jsonc')) +--- then +--- return +--- end +--- end +--- +--- client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, { +--- runtime = { +--- -- Tell the language server which version of Lua you're using (most +--- -- likely LuaJIT in the case of Neovim) +--- version = 'LuaJIT', +--- -- Tell the language server how to find Lua modules same way as Neovim +--- -- (see `:h lua-module-load`) +--- path = { +--- 'lua/?.lua', +--- 'lua/?/init.lua', +--- }, +--- }, +--- -- Make the server aware of Neovim runtime files +--- workspace = { +--- checkThirdParty = false, +--- library = { +--- vim.env.VIMRUNTIME +--- -- Depending on the usage, you might want to add additional paths +--- -- here. +--- -- '${3rd}/luv/library' +--- -- '${3rd}/busted/library' +--- } +--- -- Or pull in all of 'runtimepath'. +--- -- NOTE: this is a lot slower and will cause issues when working on +--- -- your own configuration. +--- -- See https://github.com/neovim/nvim-lspconfig/issues/3189 +--- -- library = { +--- -- vim.api.nvim_get_runtime_file('', true), +--- -- } +--- } +--- }) +--- end, +--- settings = { +--- Lua = {} +--- } +--- }) +--- ``` +--- +--- See `lua-language-server`'s [documentation](https://luals.github.io/wiki/settings/) for an explanation of the above fields: +--- * [Lua.runtime.path](https://luals.github.io/wiki/settings/#runtimepath) +--- * [Lua.workspace.library](https://luals.github.io/wiki/settings/#workspacelibrary) +--- + +---@type vim.lsp.Config +return { + cmd = { 'lua-language-server' }, + filetypes = { 'lua' }, + root_markers = { + '.luarc.json', + '.luarc.jsonc', + '.luacheckrc', + '.stylua.toml', + 'stylua.toml', + 'selene.toml', + 'selene.yml', + '.git', + }, + settings = { + Lua = { + workspace = { + library = vim.api.nvim_get_runtime_file("", true), + } + } + } +} diff --git a/.config/nvim/lsp/luau_lsp.lua b/.config/nvim/lsp/luau_lsp.lua new file mode 100644 index 0000000..8686501 --- /dev/null +++ b/.config/nvim/lsp/luau_lsp.lua @@ -0,0 +1,20 @@ +---@brief +--- +--- https://github.com/JohnnyMorganz/luau-lsp +--- +--- Language server for the [Luau](https://luau-lang.org/) language. +--- +--- `luau-lsp` can be installed by downloading one of the release assets available at https://github.com/JohnnyMorganz/luau-lsp. +--- +--- You might also have to set up automatic filetype detection for Luau files, for example like so: +--- +--- ```vim +--- autocmd BufRead,BufNewFile *.luau setf luau +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'luau-lsp', 'lsp' }, + filetypes = { 'luau' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/lwc_ls.lua b/.config/nvim/lsp/lwc_ls.lua new file mode 100644 index 0000000..2e4ded3 --- /dev/null +++ b/.config/nvim/lsp/lwc_ls.lua @@ -0,0 +1,30 @@ +---@brief +--- +--- https://github.com/forcedotcom/lightning-language-server/ +--- +--- Language server for Lightning Web Components. +--- +--- For manual installation, utilize the official [NPM package](https://www.npmjs.com/package/@salesforce/lwc-language-server). +--- Then, configure `cmd` to run the Node script at the unpacked location: +--- +--- ```lua +--- vim.lsp.config('lwc_ls', { +--- cmd = { +--- 'node', +--- '/path/to/node_modules/@salesforce/lwc-language-server/bin/lwc-language-server.js', +--- '--stdio' +--- } +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'lwc-language-server', '--stdio' }, + filetypes = { 'javascript', 'html' }, + root_markers = { 'sfdx-project.json' }, + init_options = { + embeddedLanguages = { + javascript = true, + }, + }, +} diff --git a/.config/nvim/lsp/m68k.lua b/.config/nvim/lsp/m68k.lua new file mode 100644 index 0000000..e54559a --- /dev/null +++ b/.config/nvim/lsp/m68k.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/grahambates/m68k-lsp +--- +--- Language server for Motorola 68000 family assembly +--- +--- `m68k-lsp-server` can be installed via `npm`: +--- +--- ```sh +--- npm install -g m68k-lsp-server +--- ``` +--- +--- Ensure you are using the 68k asm syntax variant in Neovim. +--- +--- ```lua +--- vim.g.asmsyntax = 'asm68k' +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'm68k-lsp-server', '--stdio' }, + filetypes = { 'asm68k' }, + root_markers = { 'Makefile', '.git' }, +} diff --git a/.config/nvim/lsp/markdown_oxide.lua b/.config/nvim/lsp/markdown_oxide.lua new file mode 100644 index 0000000..cb61d23 --- /dev/null +++ b/.config/nvim/lsp/markdown_oxide.lua @@ -0,0 +1,37 @@ +---@brief +--- +--- https://github.com/Feel-ix-343/markdown-oxide +--- +--- Editor Agnostic PKM: you bring the text editor and we +--- bring the PKM. +--- +--- Inspired by and compatible with Obsidian. +--- +--- Check the readme to see how to properly setup. + +---@param client vim.lsp.Client +---@param bufnr integer +---@param cmd string +local function command_factory(client, bufnr, cmd) + return client:exec_cmd({ + title = ('Markdown-Oxide-%s'):format(cmd), + command = 'jump', + arguments = { cmd }, + }, { bufnr = bufnr }) +end + +---@type vim.lsp.Config +return { + root_markers = { '.git', '.obsidian', '.moxide.toml' }, + filetypes = { 'markdown' }, + cmd = { 'markdown-oxide' }, + on_attach = function(client, bufnr) + for _, cmd in ipairs({ 'today', 'tomorrow', 'yesterday' }) do + vim.api.nvim_buf_create_user_command(bufnr, 'Lsp' .. ('%s'):format(cmd:gsub('^%l', string.upper)), function() + command_factory(client, bufnr, cmd) + end, { + desc = ('Open %s daily note'):format(cmd), + }) + end + end, +} diff --git a/.config/nvim/lsp/marko-js.lua b/.config/nvim/lsp/marko-js.lua new file mode 100644 index 0000000..fba69bd --- /dev/null +++ b/.config/nvim/lsp/marko-js.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/marko-js/language-server +--- +--- Using the Language Server Protocol to improve Marko's developer experience. +--- +--- Can be installed via npm: +--- ``` +--- npm i -g @marko/language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'marko-language-server', '--stdio' }, + filetypes = { 'marko' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/marksman.lua b/.config/nvim/lsp/marksman.lua new file mode 100644 index 0000000..fc1e048 --- /dev/null +++ b/.config/nvim/lsp/marksman.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- https://github.com/artempyanykh/marksman +--- +--- Marksman is a Markdown LSP server providing completion, cross-references, diagnostics, and more. +--- +--- Marksman works on MacOS, Linux, and Windows and is distributed as a self-contained binary for each OS. +--- +--- Pre-built binaries can be downloaded from https://github.com/artempyanykh/marksman/releases + +---@type vim.lsp.Config +return { + cmd = { 'marksman', 'server' }, + filetypes = { 'markdown', 'markdown.mdx' }, + root_markers = { '.marksman.toml', '.git' }, +} diff --git a/.config/nvim/lsp/matlab_ls.lua b/.config/nvim/lsp/matlab_ls.lua new file mode 100644 index 0000000..6da14a0 --- /dev/null +++ b/.config/nvim/lsp/matlab_ls.lua @@ -0,0 +1,34 @@ +---@brief +--- +--- https://github.com/mathworks/MATLAB-language-server +--- +--- MATLAB® language server implements the Microsoft® Language Server Protocol for the MATLAB language. +--- +--- Make sure to set `MATLAB.installPath` to your MATLAB path, e.g.: +--- ```lua +--- settings = { +--- MATLAB = { +--- ... +--- installPath = '/usr/local/MATLAB/R2023a', +--- ... +--- }, +--- }, +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'matlab-language-server', '--stdio' }, + filetypes = { 'matlab' }, + root_dir = function(bufnr, on_dir) + local root_dir = vim.fs.root(bufnr, '.git') + on_dir(root_dir or vim.fn.getcwd()) + end, + settings = { + MATLAB = { + indexWorkspace = true, + installPath = '', -- NOTE: Set this to your MATLAB installation path. + matlabConnectionTiming = 'onStart', + telemetry = true, + }, + }, +} diff --git a/.config/nvim/lsp/mdx_analyzer.lua b/.config/nvim/lsp/mdx_analyzer.lua new file mode 100644 index 0000000..3ff8136 --- /dev/null +++ b/.config/nvim/lsp/mdx_analyzer.lua @@ -0,0 +1,22 @@ +---@brief +--- https://github.com/mdx-js/mdx-analyzer +--- +--- `mdx-analyzer`, a language server for MDX + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'mdx-language-server', '--stdio' }, + filetypes = { 'mdx' }, + root_markers = { 'package.json' }, + settings = {}, + init_options = { + typescript = {}, + }, + before_init = function(_, config) + if config.init_options and config.init_options.typescript and not config.init_options.typescript.tsdk then + config.init_options.typescript.tsdk = util.get_typescript_server_path(config.root_dir) + end + end, +} diff --git a/.config/nvim/lsp/mesonlsp.lua b/.config/nvim/lsp/mesonlsp.lua new file mode 100644 index 0000000..dc10550 --- /dev/null +++ b/.config/nvim/lsp/mesonlsp.lua @@ -0,0 +1,38 @@ +---@brief +--- +--- https://github.com/JCWasmx86/mesonlsp +--- +--- An unofficial, unendorsed language server for meson written in C++ + +---Checks if a given path contains a valid Meson project root file +---Looks for 'meson.build' file which contains 'project()' function +local meson_matcher = function(_, path) + local pattern = 'meson.build' + local f = vim.fn.glob(table.concat({ path, pattern }, '/')) + if f == '' then + return false + end + for line in io.lines(f) do + -- skip meson comments + if not line:match '^%s*#.*' then + local str = line:gsub('%s+', '') + if str ~= '' then + if str:match '^project%(' then + return true + else + break + end + end + end + end + return false +end + +---@type vim.lsp.Config +return { + cmd = { 'mesonlsp', '--lsp' }, + filetypes = { 'meson' }, + root_dir = function(bufnr, on_dir) + on_dir(vim.fs.root(bufnr, meson_matcher) or vim.fs.root(bufnr, '.git')) + end, +} diff --git a/.config/nvim/lsp/metals.lua b/.config/nvim/lsp/metals.lua new file mode 100644 index 0000000..c76ce64 --- /dev/null +++ b/.config/nvim/lsp/metals.lua @@ -0,0 +1,32 @@ +---@brief +--- +--- https://scalameta.org/metals/ +--- +--- Scala language server with rich IDE features. +--- +--- See full instructions in the Metals documentation: +--- +--- https://scalameta.org/metals/docs/editors/vim#using-an-alternative-lsp-client +--- +--- Note: that if you're using [nvim-metals](https://github.com/scalameta/nvim-metals), that plugin fully handles the setup and installation of Metals, and you shouldn't set up Metals both with it and `lspconfig`. +--- +--- To install Metals, make sure to have [coursier](https://get-coursier.io/docs/cli-installation) installed, and once you do you can install the latest Metals with `cs install metals`. + +---@type vim.lsp.Config +return { + cmd = { 'metals' }, + filetypes = { 'scala' }, + root_markers = { 'build.sbt', 'build.sc', 'build.gradle', 'pom.xml' }, + init_options = { + statusBarProvider = 'show-message', + isHttpEnabled = true, + compilerOptions = { + snippetAutoIndent = false, + }, + }, + capabilities = { + workspace = { + configuration = false, + }, + }, +} diff --git a/.config/nvim/lsp/millet.lua b/.config/nvim/lsp/millet.lua new file mode 100644 index 0000000..87207b1 --- /dev/null +++ b/.config/nvim/lsp/millet.lua @@ -0,0 +1,19 @@ +---@brief +--- +--- https://github.com/azdavis/millet +--- +--- Millet, a language server for Standard ML +--- +--- To use with nvim: +--- +--- 1. Install a Rust toolchain: https://rustup.rs +--- 2. Clone the repo +--- 3. Run `cargo build --release --bin millet-ls` +--- 4. Move `target/release/millet-ls` to somewhere on your $PATH as `millet` + +---@type vim.lsp.Config +return { + cmd = { 'millet' }, + filetypes = { 'sml' }, + root_markers = { 'millet.toml' }, +} diff --git a/.config/nvim/lsp/mint.lua b/.config/nvim/lsp/mint.lua new file mode 100644 index 0000000..fdcc238 --- /dev/null +++ b/.config/nvim/lsp/mint.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://www.mint-lang.com +--- +--- Install Mint using the [instructions](https://www.mint-lang.com/install). +--- The language server is included since version 0.12.0. + +---@type vim.lsp.Config +return { + cmd = { 'mint', 'ls' }, + filetypes = { 'mint' }, + root_markers = { 'mint.json', '.git' }, +} diff --git a/.config/nvim/lsp/mlir_lsp_server.lua b/.config/nvim/lsp/mlir_lsp_server.lua new file mode 100644 index 0000000..65365f2 --- /dev/null +++ b/.config/nvim/lsp/mlir_lsp_server.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://mlir.llvm.org/docs/Tools/MLIRLSP/#mlir-lsp-language-server--mlir-lsp-server= +--- +--- The Language Server for the LLVM MLIR language +--- +--- `mlir-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project) + +---@type vim.lsp.Config +return { + cmd = { 'mlir-lsp-server' }, + filetypes = { 'mlir' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/mlir_pdll_lsp_server.lua b/.config/nvim/lsp/mlir_pdll_lsp_server.lua new file mode 100644 index 0000000..a3b6d88 --- /dev/null +++ b/.config/nvim/lsp/mlir_pdll_lsp_server.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://mlir.llvm.org/docs/Tools/MLIRLSP/#pdll-lsp-language-server--mlir-pdll-lsp-server +--- +--- The Language Server for the LLVM PDLL language +--- +--- `mlir-pdll-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project) + +---@type vim.lsp.Config +return { + cmd = { 'mlir-pdll-lsp-server' }, + filetypes = { 'pdll' }, + root_markers = { 'pdll_compile_commands.yml', '.git' }, +} diff --git a/.config/nvim/lsp/mm0_ls.lua b/.config/nvim/lsp/mm0_ls.lua new file mode 100644 index 0000000..079a08d --- /dev/null +++ b/.config/nvim/lsp/mm0_ls.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/digama0/mm0 +--- +--- Language Server for the metamath-zero theorem prover. +--- +--- Requires [mm0-rs](https://github.com/digama0/mm0/tree/master/mm0-rs) to be installed +--- and available on the `PATH`. + +---@type vim.lsp.Config +return { + cmd = { 'mm0-rs', 'server' }, + root_markers = { '.git' }, + filetypes = { 'metamath-zero' }, +} diff --git a/.config/nvim/lsp/mojo.lua b/.config/nvim/lsp/mojo.lua new file mode 100644 index 0000000..b0a9af9 --- /dev/null +++ b/.config/nvim/lsp/mojo.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/modularml/mojo +--- +--- `mojo-lsp-server` can be installed [via Modular](https://developer.modular.com/download) +--- +--- Mojo is a new programming language that bridges the gap between research and production by combining Python syntax and ecosystem with systems programming and metaprogramming features. + +---@type vim.lsp.Config +return { + cmd = { 'mojo-lsp-server' }, + filetypes = { 'mojo' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/motoko_lsp.lua b/.config/nvim/lsp/motoko_lsp.lua new file mode 100644 index 0000000..f4cd7e4 --- /dev/null +++ b/.config/nvim/lsp/motoko_lsp.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/dfinity/vscode-motoko +--- +--- Language server for the Motoko programming language. + +---@type vim.lsp.Config +return { + cmd = { 'motoko-lsp', '--stdio' }, + filetypes = { 'motoko' }, + root_markers = { 'dfx.json', '.git' }, + init_options = { + formatter = 'auto', + }, +} diff --git a/.config/nvim/lsp/move_analyzer.lua b/.config/nvim/lsp/move_analyzer.lua new file mode 100644 index 0000000..6670882 --- /dev/null +++ b/.config/nvim/lsp/move_analyzer.lua @@ -0,0 +1,20 @@ +---@brief +--- +--- https://github.com/move-language/move/tree/main/language/move-analyzer +--- +--- Language server for Move +--- +--- The `move-analyzer` can be installed by running: +--- +--- ``` +--- cargo install --git https://github.com/move-language/move move-analyzer +--- ``` +--- +--- See [`move-analyzer`'s doc](https://github.com/move-language/move/blob/1b258a06e3c7d2bc9174578aac92cca3ac19de71/language/move-analyzer/editors/code/README.md#how-to-install) for details. + +---@type vim.lsp.Config +return { + cmd = { 'move-analyzer' }, + filetypes = { 'move' }, + root_markers = { 'Move.toml' }, +} diff --git a/.config/nvim/lsp/msbuild_project_tools_server.lua b/.config/nvim/lsp/msbuild_project_tools_server.lua new file mode 100644 index 0000000..0f85e51 --- /dev/null +++ b/.config/nvim/lsp/msbuild_project_tools_server.lua @@ -0,0 +1,47 @@ +---@brief +--- +--- https://github.com/tintoy/msbuild-project-tools-server/ +--- +--- MSBuild Project Tools Server can be installed by following the README.MD on the above repository. +--- +--- Example config: +--- ```lua +--- vim.lsp.config('msbuild_project_tools_server', { +--- cmd = {'dotnet', '/path/to/server/MSBuildProjectTools.LanguageServer.Host.dll'} +--- }) +--- ``` +--- +--- There's no builtin filetypes for msbuild files, would require some filetype aliases: +--- +--- ```lua +--- vim.filetype.add({ +--- extension = { +--- props = 'msbuild', +--- tasks = 'msbuild', +--- targets = 'msbuild', +--- }, +--- pattern = { +--- [ [[.*\..*proj]] ] = 'msbuild', +--- }, +--- }) +--- ``` +--- +--- Optionally tell treesitter to treat `msbuild` as `xml` so you can get syntax highlighting if you have the treesitter-xml-parser installed. +--- +--- ```lua +--- vim.treesitter.language.register('xml', { 'msbuild' }) +--- ``` + +local host_dll_name = 'MSBuildProjectTools.LanguageServer.Host.dll' +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + filetypes = { 'msbuild' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('*.sln', '*.slnx', '*.*proj', '.git')(fname)) + end, + init_options = {}, + cmd = { 'dotnet', host_dll_name }, +} diff --git a/.config/nvim/lsp/muon.lua b/.config/nvim/lsp/muon.lua new file mode 100644 index 0000000..160878c --- /dev/null +++ b/.config/nvim/lsp/muon.lua @@ -0,0 +1,25 @@ +---@brief +--- +--- https://muon.build + +---@type vim.lsp.Config +return { + cmd = { 'muon', 'analyze', 'lsp' }, + filetypes = { 'meson' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + local cmd = { 'muon', 'analyze', 'root-for', fname } + vim.system(cmd, { text = true }, function(output) + if output.code == 0 then + if output.stdout then + on_dir(vim.trim(output.stdout)) + return + end + + on_dir(nil) + else + vim.notify(('[muon] cmd failed with code %d: %s\n%s'):format(output.code, cmd, output.stderr)) + end + end) + end, +} diff --git a/.config/nvim/lsp/mutt_ls.lua b/.config/nvim/lsp/mutt_ls.lua new file mode 100644 index 0000000..050b411 --- /dev/null +++ b/.config/nvim/lsp/mutt_ls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/neomutt/mutt-language-server +--- +--- A language server for (neo)mutt's muttrc. It can be installed via pip. +--- +--- ```sh +--- pip install mutt-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'mutt-language-server' }, + filetypes = { 'muttrc', 'neomuttrc' }, + root_markers = { '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/nelua_lsp.lua b/.config/nvim/lsp/nelua_lsp.lua new file mode 100644 index 0000000..e0feff5 --- /dev/null +++ b/.config/nvim/lsp/nelua_lsp.lua @@ -0,0 +1,31 @@ +--- @brief +--- +--- https://github.com/codehz/nelua-lsp +--- +--- nelua-lsp is an experimental nelua language server. +--- +--- You need [nelua.vim](https://github.com/stefanos82/nelua.vim/blob/main/ftdetect/nelua.vim) for nelua files to be recognized or add this to your config: +--- +--- in vimscript: +--- ```vimscript +--- au BufNewFile,BufRead *.nelua setf nelua +--- ``` +--- +--- in lua: +--- ```lua +--- vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, { pattern = { "*.nelua" }, command = "setf nelua"}) +--- ``` +--- +--- **By default, nelua-lsp doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary. +--- +--- ```lua +--- vim.lsp.config('nelua_lsp', { +--- cmd = { "nelua", "-L", "/path/to/nelua-lsp/", "--script", "/path/to/nelua-lsp/nelua-lsp.lua" }, +--- }) +--- ``` + +---@type vim.lsp.Config +return { + filetypes = { 'nelua' }, + root_markers = { 'Makefile', '.git', '*.nelua' }, +} diff --git a/.config/nvim/lsp/neocmake.lua b/.config/nvim/lsp/neocmake.lua new file mode 100644 index 0000000..cd08efb --- /dev/null +++ b/.config/nvim/lsp/neocmake.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/neocmakelsp/neocmakelsp +--- +--- CMake LSP Implementation +--- +--- Neovim does not currently include built-in snippets. `neocmakelsp` only provides completions when snippet support is enabled. To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup. +--- +--- ```lua +--- --Enable (broadcasting) snippet capability for completion +--- local capabilities = vim.lsp.protocol.make_client_capabilities() +--- capabilities.textDocument.completion.completionItem.snippetSupport = true +--- +--- vim.lsp.config('neocmake', { +--- capabilities = capabilities, +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'neocmakelsp', '--stdio' }, + filetypes = { 'cmake' }, + root_markers = { '.git', 'build', 'cmake' }, +} diff --git a/.config/nvim/lsp/nextflow_ls.lua b/.config/nvim/lsp/nextflow_ls.lua new file mode 100644 index 0000000..f263511 --- /dev/null +++ b/.config/nvim/lsp/nextflow_ls.lua @@ -0,0 +1,38 @@ +---@brief +--- +--- https://github.com/nextflow-io/language-server +--- +--- Requirements: +--- - Java 17+ +--- +--- `nextflow_ls` can be installed by following the instructions [here](https://github.com/nextflow-io/language-server#development). +--- +--- If you have installed nextflow language server, you can set the `cmd` custom path as follow: +--- +--- ```lua +--- vim.lsp.config('nextflow_ls', { +--- cmd = { 'java', '-jar', 'nextflow-language-server-all.jar' }, +--- filetypes = { 'nextflow' }, +--- settings = { +--- nextflow = { +--- files = { +--- exclude = { '.git', '.nf-test', 'work' }, +--- }, +--- }, +--- }, +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'java', '-jar', 'nextflow-language-server-all.jar' }, + filetypes = { 'nextflow' }, + root_markers = { 'nextflow.config', '.git' }, + settings = { + nextflow = { + files = { + exclude = { '.git', '.nf-test', 'work' }, + }, + }, + }, +} diff --git a/.config/nvim/lsp/nextls.lua b/.config/nvim/lsp/nextls.lua new file mode 100644 index 0000000..26f6001 --- /dev/null +++ b/.config/nvim/lsp/nextls.lua @@ -0,0 +1,11 @@ +---@brief +--- +--- https://github.com/elixir-tools/next-ls +--- +--- **By default, next-ls does not set its `cmd`. Please see the following [detailed instructions](https://www.elixir-tools.dev/docs/next-ls/installation/) for possible installation methods.** + +---@type vim.lsp.Config +return { + filetypes = { 'elixir', 'eelixir', 'heex', 'surface' }, + root_markers = { 'mix.exs', '.git' }, +} diff --git a/.config/nvim/lsp/nginx_language_server.lua b/.config/nvim/lsp/nginx_language_server.lua new file mode 100644 index 0000000..4a8c0e8 --- /dev/null +++ b/.config/nvim/lsp/nginx_language_server.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- https://pypi.org/project/nginx-language-server/ +--- +--- `nginx-language-server` can be installed via pip: +--- +--- ```sh +--- pip install -U nginx-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'nginx-language-server' }, + filetypes = { 'nginx' }, + root_markers = { 'nginx.conf', '.git' }, +} diff --git a/.config/nvim/lsp/nickel_ls.lua b/.config/nvim/lsp/nickel_ls.lua new file mode 100644 index 0000000..74fe33c --- /dev/null +++ b/.config/nvim/lsp/nickel_ls.lua @@ -0,0 +1,32 @@ +---@brief +--- +--- Nickel Language Server +--- +--- https://github.com/tweag/nickel +--- +--- `nls` can be installed with nix, or cargo, from the Nickel repository. +--- ```sh +--- git clone https://github.com/tweag/nickel.git +--- ``` +--- +--- Nix: +--- ```sh +--- cd nickel +--- nix-env -f . -i +--- ``` +--- +--- cargo: +--- ```sh +--- cd nickel/lsp/nls +--- cargo install --path . +--- ``` +--- +--- In order to have lspconfig detect Nickel filetypes (a prerequisite for autostarting a server), +--- install the [Nickel vim plugin](https://github.com/nickel-lang/vim-nickel). + +---@type vim.lsp.Config +return { + cmd = { 'nls' }, + filetypes = { 'ncl', 'nickel' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/nil_ls.lua b/.config/nvim/lsp/nil_ls.lua new file mode 100644 index 0000000..da8ee63 --- /dev/null +++ b/.config/nvim/lsp/nil_ls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/oxalica/nil +--- +--- A new language server for Nix Expression Language. +--- +--- If you are using Nix with Flakes support, run `nix profile install github:oxalica/nil` to install. +--- Check the repository README for more information. +--- +--- _See an example config at https://github.com/oxalica/nil/blob/main/dev/nvim-lsp.nix._ + +---@type vim.lsp.Config +return { + cmd = { 'nil' }, + filetypes = { 'nix' }, + root_markers = { 'flake.nix', '.git' }, +} diff --git a/.config/nvim/lsp/nim_langserver.lua b/.config/nvim/lsp/nim_langserver.lua new file mode 100644 index 0000000..441ee24 --- /dev/null +++ b/.config/nvim/lsp/nim_langserver.lua @@ -0,0 +1,23 @@ +---@brief +--- +--- https://github.com/nim-lang/langserver +--- +--- +--- `nim-langserver` can be installed via the `nimble` package manager: +--- ```sh +--- nimble install nimlangserver +--- ``` + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'nimlangserver' }, + filetypes = { 'nim' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir( + util.root_pattern '*.nimble'(fname) or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) + ) + end, +} diff --git a/.config/nvim/lsp/nimls.lua b/.config/nvim/lsp/nimls.lua new file mode 100644 index 0000000..ad5b7a0 --- /dev/null +++ b/.config/nvim/lsp/nimls.lua @@ -0,0 +1,23 @@ +---@brief +--- +--- https://github.com/PMunch/nimlsp +--- +--- `nimlsp` can be installed via the `nimble` package manager: +--- +--- ```sh +--- nimble install nimlsp +--- ``` + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'nimlsp' }, + filetypes = { 'nim' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir( + util.root_pattern '*.nimble'(fname) or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) + ) + end, +} diff --git a/.config/nvim/lsp/nixd.lua b/.config/nvim/lsp/nixd.lua new file mode 100644 index 0000000..64ff08e --- /dev/null +++ b/.config/nvim/lsp/nixd.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/nix-community/nixd +--- +--- Nix language server, based on nix libraries. +--- +--- If you are using Nix with Flakes support, run `nix profile install github:nix-community/nixd` to install. +--- Check the repository README for more information. + +---@type vim.lsp.Config +return { + cmd = { 'nixd' }, + filetypes = { 'nix' }, + root_markers = { 'flake.nix', '.git' }, +} diff --git a/.config/nvim/lsp/nomad_lsp.lua b/.config/nvim/lsp/nomad_lsp.lua new file mode 100644 index 0000000..2388683 --- /dev/null +++ b/.config/nvim/lsp/nomad_lsp.lua @@ -0,0 +1,34 @@ +---@brief +--- +--- https://github.com/juliosueiras/nomad-lsp +--- +--- Written in Go, compilation is needed for `nomad_lsp` to be used. Please see the [original repository](https://github.com/juliosuieras/nomad-lsp). +--- +--- Add the executable to your system or vim PATH and it will be set to go. +--- +--- No configuration option is needed unless you choose not to add `nomad-lsp` executable to the PATH. You should know what you are doing if you choose so. +--- +--- ```lua +--- vim.lsp.enable('nomad_lsp') +--- ``` +--- +--- However, a `hcl.nomad` or `nomad` filetype should be defined. +--- +--- Description of your jobs should be written in `.nomad` files for the LSP client to configure the server's `root_dir` configuration option. + +local util = require 'lspconfig.util' +local bin_name = 'nomad-lsp' + +if vim.fn.has 'win32' == 1 then + bin_name = bin_name .. '.exe' +end + +---@type vim.lsp.Config +return { + cmd = { bin_name }, + filetypes = { 'hcl.nomad', 'nomad' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern '*.nomad'(fname)) + end, +} diff --git a/.config/nvim/lsp/ntt.lua b/.config/nvim/lsp/ntt.lua new file mode 100644 index 0000000..6fcbb28 --- /dev/null +++ b/.config/nvim/lsp/ntt.lua @@ -0,0 +1,20 @@ +---@brief +--- +--- https://github.com/nokia/ntt +--- Installation instructions can be found [here](https://github.com/nokia/ntt#Install). +--- Can be configured by passing a "settings" object to vim.lsp.config('ntt'): +--- ```lua +--- vim.lsp.config('ntt', { +--- settings = { +--- ntt = { +--- } +--- } +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'ntt', 'langserver' }, + filetypes = { 'ttcn' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/nushell.lua b/.config/nvim/lsp/nushell.lua new file mode 100644 index 0000000..0cd85e7 --- /dev/null +++ b/.config/nvim/lsp/nushell.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/nushell/nushell +--- +--- Nushell built-in language server. + +---@type vim.lsp.Config +return { + cmd = { 'nu', '--lsp' }, + filetypes = { 'nu' }, + root_dir = function(bufnr, on_dir) + on_dir(vim.fs.root(bufnr, { '.git' }) or vim.fs.dirname(vim.api.nvim_buf_get_name(bufnr))) + end, +} diff --git a/.config/nvim/lsp/nxls.lua b/.config/nvim/lsp/nxls.lua new file mode 100644 index 0000000..1fb9755 --- /dev/null +++ b/.config/nvim/lsp/nxls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/nrwl/nx-console/tree/master/apps/nxls +--- +--- nxls, a language server for Nx Workspaces +--- +--- `nxls` can be installed via `npm`: +--- ```sh +--- npm i -g nxls +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'nxls', '--stdio' }, + filetypes = { 'json', 'jsonc' }, + root_markers = { 'nx.json', '.git' }, +} diff --git a/.config/nvim/lsp/ocamllsp.lua b/.config/nvim/lsp/ocamllsp.lua new file mode 100644 index 0000000..d7a2726 --- /dev/null +++ b/.config/nvim/lsp/ocamllsp.lua @@ -0,0 +1,88 @@ +---@brief +--- +--- https://github.com/ocaml/ocaml-lsp +--- +--- `ocaml-lsp` can be installed as described in [installation guide](https://github.com/ocaml/ocaml-lsp#installation). +--- +--- To install the lsp server in a particular opam switch: +--- ```sh +--- opam install ocaml-lsp-server +--- ``` + +-- https://github.com/ocaml/ocaml-lsp/blob/master/ocaml-lsp-server/docs/ocamllsp/switchImplIntf-spec.md +local function switch_impl_intf(bufnr, client) + local method_name = 'ocamllsp/switchImplIntf' + ---@diagnostic disable-next-line:param-type-mismatch + if not client or not client:supports_method(method_name) then + return vim.notify(('method %s is not supported by any servers active on the current buffer'):format(method_name)) + end + local uri = vim.lsp.util.make_given_range_params(nil, nil, bufnr, client.offset_encoding).textDocument.uri + if not uri then + return vim.notify('could not get URI for current buffer') + end + local params = { uri } + ---@diagnostic disable-next-line:param-type-mismatch + client:request(method_name, params, function(err, result) + if err then + error(tostring(err)) + end + if not result or #result == 0 then + vim.notify('corresponding file cannot be determined') + elseif #result == 1 then + vim.cmd.edit(vim.uri_to_fname(result[1])) + else + vim.ui.select( + result, + { prompt = 'Select an implementation/interface:', format_item = vim.uri_to_fname }, + function(choice) + if choice then + vim.cmd.edit(vim.uri_to_fname(choice)) + end + end + ) + end + end, bufnr) +end + +local language_id_of = { + menhir = 'ocaml.menhir', + ocaml = 'ocaml', + ocamlinterface = 'ocaml.interface', + ocamllex = 'ocaml.ocamllex', + reason = 'reason', + dune = 'dune', +} + +local language_id_of_ext = { + mll = language_id_of.ocamllex, + mly = language_id_of.menhir, + mli = language_id_of.ocamlinterface, +} + +local get_language_id = function(bufnr, ftype) + if ftype == 'ocaml' then + local path = vim.api.nvim_buf_get_name(bufnr) + local ext = vim.fn.fnamemodify(path, ':e') + return language_id_of_ext[ext] or language_id_of.ocaml + else + return language_id_of[ftype] + end +end + +local root_markers1 = { 'dune-project', 'dune-workspace' } +local root_markers2 = { '*.opam', 'opam', 'esy.json', 'package.json' } +local root_markers3 = { '.git' } + +---@type vim.lsp.Config +return { + cmd = { 'ocamllsp' }, + filetypes = { 'ocaml', 'menhir', 'ocamlinterface', 'ocamllex', 'reason', 'dune' }, + root_markers = vim.fn.has('nvim-0.11.3') == 1 and { root_markers1, root_markers2, root_markers3 } + or vim.list_extend(vim.list_extend(root_markers1, root_markers2), root_markers3), + get_language_id = get_language_id, + on_attach = function(client, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspOcamllspSwitchImplIntf', function() + switch_impl_intf(bufnr, client) + end, { desc = 'Switch between implementation/interface' }) + end, +} diff --git a/.config/nvim/lsp/ols.lua b/.config/nvim/lsp/ols.lua new file mode 100644 index 0000000..aad2a5e --- /dev/null +++ b/.config/nvim/lsp/ols.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/DanielGavin/ols +--- +--- `Odin Language Server`. + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'ols' }, + filetypes = { 'odin' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('ols.json', '.git', '*.odin')(fname)) + end, +} diff --git a/.config/nvim/lsp/omnisharp.lua b/.config/nvim/lsp/omnisharp.lua new file mode 100644 index 0000000..cfc9ba1 --- /dev/null +++ b/.config/nvim/lsp/omnisharp.lua @@ -0,0 +1,92 @@ +---@brief +--- +--- https://github.com/omnisharp/omnisharp-roslyn +--- OmniSharp server based on Roslyn workspaces +--- +--- `omnisharp-roslyn` can be installed by downloading and extracting a release from [here](https://github.com/OmniSharp/omnisharp-roslyn/releases). +--- OmniSharp can also be built from source by following the instructions [here](https://github.com/omnisharp/omnisharp-roslyn#downloading-omnisharp). +--- +--- OmniSharp requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed. +--- +--- **By default, omnisharp-roslyn doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary. +--- +--- For `go_to_definition` to work fully, extended `textDocument/definition` handler is needed, for example see [omnisharp-extended-lsp.nvim](https://github.com/Hoffs/omnisharp-extended-lsp.nvim) +--- +--- + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { + vim.fn.executable('OmniSharp') == 1 and 'OmniSharp' or 'omnisharp', + '-z', -- https://github.com/OmniSharp/omnisharp-vscode/pull/4300 + '--hostPID', + tostring(vim.fn.getpid()), + 'DotNet:enablePackageRestore=false', + '--encoding', + 'utf-8', + '--languageserver', + }, + filetypes = { 'cs', 'vb' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir( + util.root_pattern '*.sln'(fname) + or util.root_pattern '*.csproj'(fname) + or util.root_pattern 'omnisharp.json'(fname) + or util.root_pattern 'function.json'(fname) + ) + end, + init_options = {}, + capabilities = { + workspace = { + workspaceFolders = false, -- https://github.com/OmniSharp/omnisharp-roslyn/issues/909 + }, + }, + settings = { + FormattingOptions = { + -- Enables support for reading code style, naming convention and analyzer + -- settings from .editorconfig. + EnableEditorConfigSupport = true, + -- Specifies whether 'using' directives should be grouped and sorted during + -- document formatting. + OrganizeImports = nil, + }, + MsBuild = { + -- If true, MSBuild project system will only load projects for files that + -- were opened in the editor. This setting is useful for big C# codebases + -- and allows for faster initialization of code navigation features only + -- for projects that are relevant to code that is being edited. With this + -- setting enabled OmniSharp may load fewer projects and may thus display + -- incomplete reference lists for symbols. + LoadProjectsOnDemand = nil, + }, + RoslynExtensionsOptions = { + -- Enables support for roslyn analyzers, code fixes and rulesets. + EnableAnalyzersSupport = nil, + -- Enables support for showing unimported types and unimported extension + -- methods in completion lists. When committed, the appropriate using + -- directive will be added at the top of the current file. This option can + -- have a negative impact on initial completion responsiveness, + -- particularly for the first few completion sessions after opening a + -- solution. + EnableImportCompletion = nil, + -- Only run analyzers against open files when 'enableRoslynAnalyzers' is + -- true + AnalyzeOpenDocumentsOnly = nil, + -- Enables the possibility to see the code in external nuget dependencies + EnableDecompilationSupport = nil, + }, + RenameOptions = { + RenameInComments = nil, + RenameOverloads = nil, + RenameInStrings = nil, + }, + Sdk = { + -- Specifies whether to include preview versions of the .NET SDK when + -- determining which version to use for project loading. + IncludePrereleases = true, + }, + }, +} diff --git a/.config/nvim/lsp/opencl_ls.lua b/.config/nvim/lsp/opencl_ls.lua new file mode 100644 index 0000000..53cf67e --- /dev/null +++ b/.config/nvim/lsp/opencl_ls.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/Galarius/opencl-language-server +--- +--- Build instructions can be found [here](https://github.com/Galarius/opencl-language-server/blob/main/_dev/build.md). +--- +--- Prebuilt binaries are available for Linux, macOS and Windows [here](https://github.com/Galarius/opencl-language-server/releases). + +---@type vim.lsp.Config +return { + cmd = { 'opencl-language-server' }, + filetypes = { 'opencl' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/openscad_ls.lua b/.config/nvim/lsp/openscad_ls.lua new file mode 100644 index 0000000..f0f4e1b --- /dev/null +++ b/.config/nvim/lsp/openscad_ls.lua @@ -0,0 +1,27 @@ +---@brief +--- +--- https://github.com/dzhu/openscad-language-server +--- +--- A Language Server Protocol server for OpenSCAD +--- +--- You can build and install `openscad-language-server` binary with `cargo`: +--- ```sh +--- cargo install openscad-language-server +--- ``` +--- +--- Vim does not have built-in syntax for the `openscad` filetype currently. +--- +--- This can be added via an autocmd: +--- +--- ```lua +--- vim.cmd [[ autocmd BufRead,BufNewFile *.scad set filetype=openscad ]] +--- ``` +--- +--- or by installing a filetype plugin such as https://github.com/sirtaj/vim-openscad + +---@type vim.lsp.Config +return { + cmd = { 'openscad-language-server' }, + filetypes = { 'openscad' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/openscad_lsp.lua b/.config/nvim/lsp/openscad_lsp.lua new file mode 100644 index 0000000..a9b8da0 --- /dev/null +++ b/.config/nvim/lsp/openscad_lsp.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/Leathong/openscad-LSP +--- +--- A Language Server Protocol server for OpenSCAD +--- +--- You can build and install `openscad-lsp` binary with `cargo`: +--- ```sh +--- cargo install openscad-lsp +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'openscad-lsp', '--stdio' }, + filetypes = { 'openscad' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/oxlint.lua b/.config/nvim/lsp/oxlint.lua new file mode 100644 index 0000000..4585a98 --- /dev/null +++ b/.config/nvim/lsp/oxlint.lua @@ -0,0 +1,31 @@ +--- @brief +--- +--- https://github.com/oxc-project/oxc +--- +--- `oxc` is a linter / formatter for JavaScript / Typescript supporting over 500 rules from ESLint and its popular plugins +--- It can be installed via `npm`: +--- +--- ```sh +--- npm i -g oxlint +--- ``` + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'oxc_language_server' }, + filetypes = { + 'javascript', + 'javascriptreact', + 'javascript.jsx', + 'typescript', + 'typescriptreact', + 'typescript.tsx', + }, + workspace_required = true, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + local root_markers = util.insert_package_json({ '.oxlintrc.json' }, 'oxlint', fname) + on_dir(vim.fs.dirname(vim.fs.find(root_markers, { path = fname, upward = true })[1])) + end, +} diff --git a/.config/nvim/lsp/pact_ls.lua b/.config/nvim/lsp/pact_ls.lua new file mode 100644 index 0000000..bb5c392 --- /dev/null +++ b/.config/nvim/lsp/pact_ls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/kadena-io/pact-lsp +--- +--- The Pact language server + +---@type vim.lsp.Config +return { + cmd = { 'pact-lsp' }, + filetypes = { 'pact' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/pasls.lua b/.config/nvim/lsp/pasls.lua new file mode 100644 index 0000000..14f9c80 --- /dev/null +++ b/.config/nvim/lsp/pasls.lua @@ -0,0 +1,28 @@ +---@brief +--- +--- https://github.com/genericptr/pascal-language-server +--- +--- An LSP server implementation for Pascal variants that are supported by Free Pascal, including Object Pascal. It uses CodeTools from Lazarus as backend. +--- +--- First set `cmd` to the Pascal lsp binary. +--- +--- Customization options are passed to pasls as environment variables for example in your `.bashrc`: +--- ```bash +--- export FPCDIR='/usr/lib/fpc/src' # FPC source directory (This is the only required option for the server to work). +--- export PP='/usr/lib/fpc/3.2.2/ppcx64' # Path to the Free Pascal compiler executable. +--- export LAZARUSDIR='/usr/lib/lazarus' # Path to the Lazarus sources. +--- export FPCTARGET='' # Target operating system for cross compiling. +--- export FPCTARGETCPU='x86_64' # Target CPU for cross compiling. +--- ``` + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'pasls' }, + filetypes = { 'pascal' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('*.lpi', '*.lpk', '.git')(fname)) + end, +} diff --git a/.config/nvim/lsp/pbls.lua b/.config/nvim/lsp/pbls.lua new file mode 100644 index 0000000..d6dba22 --- /dev/null +++ b/.config/nvim/lsp/pbls.lua @@ -0,0 +1,19 @@ +---@brief +--- +--- https://git.sr.ht/~rrc/pbls +--- +--- Prerequisites: Ensure protoc is on your $PATH. +--- +--- `pbls` can be installed via `cargo install`: +--- ```sh +--- cargo install --git https://git.sr.ht/~rrc/pbls +--- ``` +--- +--- pbls is a Language Server for protobuf + +---@type vim.lsp.Config +return { + cmd = { 'pbls' }, + filetypes = { 'proto' }, + root_markers = { '.pbls.toml', '.git' }, +} diff --git a/.config/nvim/lsp/perlls.lua b/.config/nvim/lsp/perlls.lua new file mode 100644 index 0000000..9c664af --- /dev/null +++ b/.config/nvim/lsp/perlls.lua @@ -0,0 +1,30 @@ +---@brief +--- +--- https://github.com/richterger/Perl-LanguageServer/tree/master/clients/vscode/perl +--- +--- `Perl-LanguageServer`, a language server for Perl. +--- +--- To use the language server, ensure that you have Perl::LanguageServer installed and perl command is on your path. + +---@type vim.lsp.Config +return { + cmd = { + 'perl', + '-MPerl::LanguageServer', + '-e', + 'Perl::LanguageServer::run', + '--', + '--port 13603', + '--nostdio 0', + }, + settings = { + perl = { + perlCmd = 'perl', + perlInc = ' ', + fileFilter = { '.pm', '.pl' }, + ignoreDirs = '.git', + }, + }, + filetypes = { 'perl' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/perlnavigator.lua b/.config/nvim/lsp/perlnavigator.lua new file mode 100644 index 0000000..e33b48e --- /dev/null +++ b/.config/nvim/lsp/perlnavigator.lua @@ -0,0 +1,28 @@ +---@brief +--- +--- https://github.com/bscan/PerlNavigator +--- +--- A Perl language server. It can be installed via npm: +--- +--- ```sh +--- npm i -g perlnavigator-server +--- ``` +--- +--- At minimum, you will need `perl` in your path. If you want to use a non-standard `perl` you will need to set your configuration like so: +--- ```lua +--- settings = { +--- perlnavigator = { +--- perlPath = '/some/odd/location/my-perl' +--- } +--- } +--- ``` +--- +--- The `contributes.configuration.properties` section of `perlnavigator`'s `package.json` has all available configuration settings. All +--- settings have a reasonable default, but, at minimum, you may want to point `perlnavigator` at your `perltidy` and `perlcritic` configurations. + +---@type vim.lsp.Config +return { + cmd = { 'perlnavigator' }, + filetypes = { 'perl' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/perlpls.lua b/.config/nvim/lsp/perlpls.lua new file mode 100644 index 0000000..00be114 --- /dev/null +++ b/.config/nvim/lsp/perlpls.lua @@ -0,0 +1,21 @@ +---@brief +--- +--- https://github.com/FractalBoy/perl-language-server +--- https://metacpan.org/pod/PLS +--- +--- `PLS`, another language server for Perl. +--- +--- To use the language server, ensure that you have PLS installed and that it is in your path + +---@type vim.lsp.Config +return { + cmd = { 'pls' }, + settings = { + perl = { + perlcritic = { enabled = false }, + syntax = { enabled = true }, + }, + }, + filetypes = { 'perl' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/pest_ls.lua b/.config/nvim/lsp/pest_ls.lua new file mode 100644 index 0000000..6da7f92 --- /dev/null +++ b/.config/nvim/lsp/pest_ls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/pest-parser/pest-ide-tools +--- +--- Language server for pest grammars. + +---@type vim.lsp.Config +return { + cmd = { 'pest-language-server' }, + filetypes = { 'pest' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/phan.lua b/.config/nvim/lsp/phan.lua new file mode 100644 index 0000000..b9e6ce3 --- /dev/null +++ b/.config/nvim/lsp/phan.lua @@ -0,0 +1,32 @@ +---@brief +--- +--- https://github.com/phan/phan +--- +--- Installation: https://github.com/phan/phan#getting-started + +local cmd = { + 'phan', + '-m', + 'json', + '--no-color', + '--no-progress-bar', + '-x', + '-u', + '-S', + '--language-server-on-stdin', + '--allow-polyfill-parser', +} + +---@type vim.lsp.Config +return { + cmd = cmd, + filetypes = { 'php' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + local cwd = assert(vim.uv.cwd()) + local root = vim.fs.root(fname, { 'composer.json', '.git' }) + + -- prefer cwd if root is a descendant + on_dir(root and vim.fs.relpath(cwd, root) and cwd) + end, +} diff --git a/.config/nvim/lsp/phpactor.lua b/.config/nvim/lsp/phpactor.lua new file mode 100644 index 0000000..5832f54 --- /dev/null +++ b/.config/nvim/lsp/phpactor.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/phpactor/phpactor +--- +--- Installation: https://phpactor.readthedocs.io/en/master/usage/standalone.html#global-installation + +---@type vim.lsp.Config +return { + cmd = { 'phpactor', 'language-server' }, + filetypes = { 'php' }, + root_markers = { '.git', 'composer.json', '.phpactor.json', '.phpactor.yml' }, + workspace_required = true, +} diff --git a/.config/nvim/lsp/phptools.lua b/.config/nvim/lsp/phptools.lua new file mode 100644 index 0000000..e20e00a --- /dev/null +++ b/.config/nvim/lsp/phptools.lua @@ -0,0 +1,36 @@ +---@brief +--- +--- https://www.devsense.com/ +--- +--- `devsense-php-ls` can be installed via `npm`: +--- ```sh +--- npm install -g devsense-php-ls +--- ``` +--- +--- ```lua +--- -- See https://www.npmjs.com/package/devsense-php-ls +--- init_options = { +--- } +--- -- See https://docs.devsense.com/vscode/configuration/ +--- settings = { +--- php = { +--- }; +--- } +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'devsense-php-ls', '--stdio' }, + filetypes = { 'php' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + local cwd = assert(vim.uv.cwd()) + local root = vim.fs.root(fname, { 'composer.json', '.git' }) + + -- prefer cwd if root is a descendant + on_dir(root and vim.fs.relpath(cwd, root) and cwd) + end, + init_options = { + ['0'] = '{}', --optional premium license validation from https://www.devsense.com/purchase/validation + }, +} diff --git a/.config/nvim/lsp/pico8_ls.lua b/.config/nvim/lsp/pico8_ls.lua new file mode 100644 index 0000000..85bb0b2 --- /dev/null +++ b/.config/nvim/lsp/pico8_ls.lua @@ -0,0 +1,18 @@ +---@brief +--- +--- https://github.com/japhib/pico8-ls +--- +--- Full language support for the PICO-8 dialect of Lua. + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'pico8-ls', '--stdio' }, + filetypes = { 'p8' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('*.p8')(fname)) + end, + settings = {}, +} diff --git a/.config/nvim/lsp/please.lua b/.config/nvim/lsp/please.lua new file mode 100644 index 0000000..1d25c44 --- /dev/null +++ b/.config/nvim/lsp/please.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/thought-machine/please +--- +--- High-performance extensible build system for reproducible multi-language builds. +--- +--- The `plz` binary will automatically install the LSP for you on first run + +---@type vim.lsp.Config +return { + cmd = { 'plz', 'tool', 'lps' }, + filetypes = { 'bzl' }, + root_markers = { '.plzconfig' }, +} diff --git a/.config/nvim/lsp/pli.lua b/.config/nvim/lsp/pli.lua new file mode 100644 index 0000000..e7e72ca --- /dev/null +++ b/.config/nvim/lsp/pli.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- `pli_language_server` is a language server for the PL/I language used on IBM SystemZ mainframes. +--- +--- To learn how to configure the PL/I language server, see the [PL/I Language Support documentation](https://github.com/zowe/zowe-pli-language-support). + +---@type vim.lsp.Config +return { + cmd = { 'pli_language_server' }, + filetypes = { 'pli' }, + root_markers = { '.pliplugin' }, +} diff --git a/.config/nvim/lsp/poryscript_pls.lua b/.config/nvim/lsp/poryscript_pls.lua new file mode 100644 index 0000000..e8e59b0 --- /dev/null +++ b/.config/nvim/lsp/poryscript_pls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/huderlem/poryscript-pls +--- +--- Language server for poryscript (a high level scripting language for GBA-era Pokémon decompilation projects) + +---@type vim.lsp.Config +return { + cmd = { 'poryscript-pls' }, + filetypes = { 'pory' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/postgres_lsp.lua b/.config/nvim/lsp/postgres_lsp.lua new file mode 100644 index 0000000..398123c --- /dev/null +++ b/.config/nvim/lsp/postgres_lsp.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://pgtools.dev +--- +--- A collection of language tools and a Language Server Protocol (LSP) implementation for Postgres, focusing on developer experience and reliable SQL tooling. + +---@type vim.lsp.Config +return { + cmd = { 'postgrestools', 'lsp-proxy' }, + filetypes = { + 'sql', + }, + root_markers = { 'postgrestools.jsonc' }, +} diff --git a/.config/nvim/lsp/powershell_es.lua b/.config/nvim/lsp/powershell_es.lua new file mode 100644 index 0000000..a011d59 --- /dev/null +++ b/.config/nvim/lsp/powershell_es.lua @@ -0,0 +1,56 @@ +--- @brief +--- +--- https://github.com/PowerShell/PowerShellEditorServices +--- +--- Language server for PowerShell. +--- +--- To install, download and extract PowerShellEditorServices.zip +--- from the [releases](https://github.com/PowerShell/PowerShellEditorServices/releases). +--- To configure the language server, set the property `bundle_path` to the root +--- of the extracted PowerShellEditorServices.zip. +--- +--- ```lua +--- vim.lsp.config('powershell_es', { +--- bundle_path = 'c:/w/PowerShellEditorServices', +--- }) +--- ``` +--- +--- By default the language server is started in `pwsh` (PowerShell Core). This can be changed by specifying `shell`. +--- +--- ```lua +--- vim.lsp.config('powershell_es', { +--- bundle_path = 'c:/w/PowerShellEditorServices', +--- shell = 'powershell.exe', +--- }) +--- ``` +--- +--- Note that the execution policy needs to be set to `Unrestricted` for the languageserver run under PowerShell +--- +--- If necessary, specific `cmd` can be defined instead of `bundle_path`. +--- See [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices#standard-input-and-output) +--- to learn more. +--- +--- ```lua +--- vim.lsp.config('powershell_es', { +--- cmd = {'pwsh', '-NoLogo', '-NoProfile', '-Command', "c:/PSES/Start-EditorServices.ps1 ..."}, +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = function(dispatchers) + local temp_path = vim.fn.stdpath('cache') + local bundle_path = vim.lsp.config.powershell_es.bundle_path + + local shell = vim.lsp.config.powershell_es.shell or 'pwsh' + + local command_fmt = + [[& '%s/PowerShellEditorServices/Start-EditorServices.ps1' -BundledModulesPath '%s' -LogPath '%s/powershell_es.log' -SessionDetailsPath '%s/powershell_es.session.json' -FeatureFlags @() -AdditionalModules @() -HostName nvim -HostProfileId 0 -HostVersion 1.0.0 -Stdio -LogLevel Normal]] + local command = command_fmt:format(bundle_path, bundle_path, temp_path, temp_path) + local cmd = { shell, '-NoLogo', '-NoProfile', '-Command', command } + + return vim.lsp.rpc.start(cmd, dispatchers) + end, + filetypes = { 'ps1' }, + root_markers = { 'PSScriptAnalyzerSettings.psd1', '.git' }, +} diff --git a/.config/nvim/lsp/prismals.lua b/.config/nvim/lsp/prismals.lua new file mode 100644 index 0000000..ff234da --- /dev/null +++ b/.config/nvim/lsp/prismals.lua @@ -0,0 +1,20 @@ +---@brief +--- +--- Language Server for the Prisma JavaScript and TypeScript ORM +--- +--- `@prisma/language-server` can be installed via npm +--- ```sh +--- npm install -g @prisma/language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'prisma-language-server', '--stdio' }, + filetypes = { 'prisma' }, + settings = { + prisma = { + prismaFmtBinPath = '', + }, + }, + root_markers = { '.git', 'package.json' }, +} diff --git a/.config/nvim/lsp/prolog_ls.lua b/.config/nvim/lsp/prolog_ls.lua new file mode 100644 index 0000000..aa70d8c --- /dev/null +++ b/.config/nvim/lsp/prolog_ls.lua @@ -0,0 +1,22 @@ +---@brief +--- +--- https://github.com/jamesnvc/lsp_server +--- +--- Language Server Protocol server for SWI-Prolog + +---@type vim.lsp.Config +return { + cmd = { + 'swipl', + '-g', + 'use_module(library(lsp_server)).', + '-g', + 'lsp_server:main', + '-t', + 'halt', + '--', + 'stdio', + }, + filetypes = { 'prolog' }, + root_markers = { 'pack.pl' }, +} diff --git a/.config/nvim/lsp/prosemd_lsp.lua b/.config/nvim/lsp/prosemd_lsp.lua new file mode 100644 index 0000000..32d1d64 --- /dev/null +++ b/.config/nvim/lsp/prosemd_lsp.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/kitten/prosemd-lsp +--- +--- An experimental LSP for Markdown. +--- +--- Please see the manual installation instructions: https://github.com/kitten/prosemd-lsp#manual-installation + +---@type vim.lsp.Config +return { + cmd = { 'prosemd-lsp', '--stdio' }, + filetypes = { 'markdown' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/protols.lua b/.config/nvim/lsp/protols.lua new file mode 100644 index 0000000..87dc084 --- /dev/null +++ b/.config/nvim/lsp/protols.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/coder3101/protols +--- +--- `protols` can be installed via `cargo`: +--- ```sh +--- cargo install protols +--- ``` +--- +--- A Language Server for proto3 files. It uses tree-sitter and runs in single file mode. + +---@type vim.lsp.Config +return { + cmd = { 'protols' }, + filetypes = { 'proto' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/psalm.lua b/.config/nvim/lsp/psalm.lua new file mode 100644 index 0000000..8764981 --- /dev/null +++ b/.config/nvim/lsp/psalm.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/vimeo/psalm +--- +--- Can be installed with composer. +--- ```sh +--- composer global require vimeo/psalm +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'psalm', '--language-server' }, + filetypes = { 'php' }, + root_markers = { 'psalm.xml', 'psalm.xml.dist' }, +} diff --git a/.config/nvim/lsp/pug.lua b/.config/nvim/lsp/pug.lua new file mode 100644 index 0000000..d04f48f --- /dev/null +++ b/.config/nvim/lsp/pug.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/opa-oz/pug-lsp +--- +--- An implementation of the Language Protocol Server for [Pug.js](http://pugjs.org) +--- +--- PugLSP can be installed via `go install github.com/opa-oz/pug-lsp@latest`, or manually downloaded from [releases page](https://github.com/opa-oz/pug-lsp/releases) + +---@type vim.lsp.Config +return { + cmd = { 'pug-lsp' }, + filetypes = { 'pug' }, + root_markers = { 'package.json' }, +} diff --git a/.config/nvim/lsp/puppet.lua b/.config/nvim/lsp/puppet.lua new file mode 100644 index 0000000..85cd93a --- /dev/null +++ b/.config/nvim/lsp/puppet.lua @@ -0,0 +1,28 @@ +---@brief +--- +--- LSP server for Puppet. +--- +--- Installation: +--- +--- - Clone the editor-services repository: +--- https://github.com/puppetlabs/puppet-editor-services +--- +--- - Navigate into that directory and run: `bundle install` +--- +--- - Install the 'puppet-lint' gem: `gem install puppet-lint` +--- +--- - Add that repository to $PATH. +--- +--- - Ensure you can run `puppet-languageserver` from outside the editor-services directory. + +---@type vim.lsp.Config +return { + cmd = { 'puppet-languageserver', '--stdio' }, + filetypes = { 'puppet' }, + root_markers = { + 'manifests', + '.puppet-lint.rc', + 'hiera.yaml', + '.git', + }, +} diff --git a/.config/nvim/lsp/purescriptls.lua b/.config/nvim/lsp/purescriptls.lua new file mode 100644 index 0000000..acbd338 --- /dev/null +++ b/.config/nvim/lsp/purescriptls.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/nwolverson/purescript-language-server +--- +--- The `purescript-language-server` can be added to your project and `$PATH` via +--- +--- * JavaScript package manager such as npm, pnpm, Yarn, et al. +--- * Nix under the `nodePackages` and `nodePackages_latest` package sets + +---@type vim.lsp.Config +return { + cmd = { 'purescript-language-server', '--stdio' }, + filetypes = { 'purescript' }, + root_markers = { 'bower.json', 'flake.nix', 'psc-package.json', 'shell.nix', 'spago.dhall', 'spago.yaml' }, +} diff --git a/.config/nvim/lsp/pylsp.lua b/.config/nvim/lsp/pylsp.lua new file mode 100644 index 0000000..a17f767 --- /dev/null +++ b/.config/nvim/lsp/pylsp.lua @@ -0,0 +1,41 @@ +---@brief +--- +--- https://github.com/python-lsp/python-lsp-server +--- +--- A Python 3.6+ implementation of the Language Server Protocol. +--- +--- See the [project's README](https://github.com/python-lsp/python-lsp-server) for installation instructions. +--- +--- Configuration options are documented [here](https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md). +--- In order to configure an option, it must be translated to a nested Lua table and included in the `settings` argument to the `config('pylsp', {})` function. +--- For example, in order to set the `pylsp.plugins.pycodestyle.ignore` option: +--- ```lua +--- vim.lsp.config('pylsp', { +--- settings = { +--- pylsp = { +--- plugins = { +--- pycodestyle = { +--- ignore = {'W391'}, +--- maxLineLength = 100 +--- } +--- } +--- } +--- } +--- }) +--- ``` +--- +--- Note: This is a community fork of `pyls`. + +---@type vim.lsp.Config +return { + cmd = { 'pylsp' }, + filetypes = { 'python' }, + root_markers = { + 'pyproject.toml', + 'setup.py', + 'setup.cfg', + 'requirements.txt', + 'Pipfile', + '.git', + }, +} diff --git a/.config/nvim/lsp/pylyzer.lua b/.config/nvim/lsp/pylyzer.lua new file mode 100644 index 0000000..e0086a6 --- /dev/null +++ b/.config/nvim/lsp/pylyzer.lua @@ -0,0 +1,35 @@ +---@brief +--- +--- https://github.com/mtshiba/pylyzer +--- +--- `pylyzer`, a fast static code analyzer & language server for Python. +--- +--- `pylyzer` requires Erg as dependency, and finds it via `ERG_PATH` environment variable. +--- This config sets `ERG_PATH="~/.erg"`. Set `cmd_env` if you want to change it. +--- To install Erg, simply extract tarball/zip from [Erg releases](https://github.com/erg-lang/erg/releases/latest) +--- to the the path where you want to install it, e.g. `~/.erg`. + +---@type vim.lsp.Config +return { + cmd = { 'pylyzer', '--server' }, + filetypes = { 'python' }, + root_markers = { + 'setup.py', + 'tox.ini', + 'requirements.txt', + 'Pipfile', + 'pyproject.toml', + '.git', + }, + settings = { + python = { + diagnostics = true, + inlayHints = true, + smartCompletion = true, + checkOnType = false, + }, + }, + cmd_env = { + ERG_PATH = vim.env.ERG_PATH or vim.fs.joinpath(vim.uv.os_homedir(), '.erg'), + }, +} diff --git a/.config/nvim/lsp/pyre.lua b/.config/nvim/lsp/pyre.lua new file mode 100644 index 0000000..a25c8e1 --- /dev/null +++ b/.config/nvim/lsp/pyre.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://pyre-check.org/ +--- +--- `pyre` a static type checker for Python 3. +--- +--- `pyre` offers an extremely limited featureset. It currently only supports diagnostics, +--- which are triggered on save. +--- +--- Do not report issues for missing features in `pyre` to `lspconfig`. + +---@type vim.lsp.Config +return { + cmd = { 'pyre', 'persistent' }, + filetypes = { 'python' }, + root_markers = { '.pyre_configuration' }, +} diff --git a/.config/nvim/lsp/pyrefly.lua b/.config/nvim/lsp/pyrefly.lua new file mode 100644 index 0000000..e4758d1 --- /dev/null +++ b/.config/nvim/lsp/pyrefly.lua @@ -0,0 +1,26 @@ +---@brief +--- +--- https://pyrefly.org/ +--- +---`pyrefly`, a faster Python type checker written in Rust. +-- +-- `pyrefly` is still in development, so please report any errors to +-- our issues page at https://github.com/facebook/pyrefly/issues. + +---@type vim.lsp.Config +return { + cmd = { 'pyrefly', 'lsp' }, + filetypes = { 'python' }, + root_markers = { + 'pyrefly.toml', + 'pyproject.toml', + 'setup.py', + 'setup.cfg', + 'requirements.txt', + 'Pipfile', + '.git', + }, + on_exit = function(code, _, _) + vim.notify('Closing Pyrefly LSP exited with code: ' .. code, vim.log.levels.INFO) + end, +} diff --git a/.config/nvim/lsp/pyright.lua b/.config/nvim/lsp/pyright.lua new file mode 100644 index 0000000..edc802e --- /dev/null +++ b/.config/nvim/lsp/pyright.lua @@ -0,0 +1,65 @@ +---@brief +--- +--- https://github.com/microsoft/pyright +--- +--- `pyright`, a static type checker and language server for python + +local function set_python_path(command) + local path = command.args + local clients = vim.lsp.get_clients { + bufnr = vim.api.nvim_get_current_buf(), + name = 'pyright', + } + for _, client in ipairs(clients) do + if client.settings then + client.settings.python = vim.tbl_deep_extend('force', client.settings.python, { pythonPath = path }) + else + client.config.settings = vim.tbl_deep_extend('force', client.config.settings, { python = { pythonPath = path } }) + end + client:notify('workspace/didChangeConfiguration', { settings = nil }) + end +end + +---@type vim.lsp.Config +return { + cmd = { 'pyright-langserver', '--stdio' }, + filetypes = { 'python' }, + root_markers = { + 'pyproject.toml', + 'setup.py', + 'setup.cfg', + 'requirements.txt', + 'Pipfile', + 'pyrightconfig.json', + '.git', + }, + settings = { + python = { + analysis = { + autoSearchPaths = true, + useLibraryCodeForTypes = true, + diagnosticMode = 'openFilesOnly', + }, + }, + }, + on_attach = function(client, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspPyrightOrganizeImports', function() + local params = { + command = 'pyright.organizeimports', + arguments = { vim.uri_from_bufnr(bufnr) }, + } + + -- Using client.request() directly because "pyright.organizeimports" is private + -- (not advertised via capabilities), which client:exec_cmd() refuses to call. + -- https://github.com/neovim/neovim/blob/c333d64663d3b6e0dd9aa440e433d346af4a3d81/runtime/lua/vim/lsp/client.lua#L1024-L1030 + client.request('workspace/executeCommand', params, nil, bufnr) + end, { + desc = 'Organize Imports', + }) + vim.api.nvim_buf_create_user_command(bufnr, 'LspPyrightSetPythonPath', set_python_path, { + desc = 'Reconfigure pyright with the provided python path', + nargs = 1, + complete = 'file', + }) + end, +} diff --git a/.config/nvim/lsp/qmlls.lua b/.config/nvim/lsp/qmlls.lua new file mode 100644 index 0000000..ef5d5c1 --- /dev/null +++ b/.config/nvim/lsp/qmlls.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://doc.qt.io/qt-6/qtqml-tooling-qmlls.html +--- +--- > QML Language Server is a tool shipped with Qt that helps you write code in your favorite (LSP-supporting) editor. +--- +--- Source in the [QtDeclarative repository](https://code.qt.io/cgit/qt/qtdeclarative.git/) + +---@type vim.lsp.Config +return { + cmd = { 'qmlls' }, + filetypes = { 'qml', 'qmljs' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/quick_lint_js.lua b/.config/nvim/lsp/quick_lint_js.lua new file mode 100644 index 0000000..d1cf87d --- /dev/null +++ b/.config/nvim/lsp/quick_lint_js.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://quick-lint-js.com/ +--- +--- quick-lint-js finds bugs in JavaScript programs. +--- +--- See installation [instructions](https://quick-lint-js.com/install/) + +---@type vim.lsp.Config +return { + cmd = { 'quick-lint-js', '--lsp-server' }, + filetypes = { 'javascript', 'typescript' }, + root_markers = { 'package.json', 'jsconfig.json', '.git' }, +} diff --git a/.config/nvim/lsp/r_language_server.lua b/.config/nvim/lsp/r_language_server.lua new file mode 100644 index 0000000..d393e37 --- /dev/null +++ b/.config/nvim/lsp/r_language_server.lua @@ -0,0 +1,20 @@ +---@brief +--- +--- [languageserver](https://github.com/REditorSupport/languageserver) is an +--- implementation of the Microsoft's Language Server Protocol for the R +--- language. +--- +--- It is released on CRAN and can be easily installed by +--- +--- ```r +--- install.packages("languageserver") +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'R', '--no-echo', '-e', 'languageserver::run()' }, + filetypes = { 'r', 'rmd', 'quarto' }, + root_dir = function(bufnr, on_dir) + on_dir(vim.fs.root(bufnr, '.git') or vim.uv.os_homedir()) + end, +} diff --git a/.config/nvim/lsp/racket_langserver.lua b/.config/nvim/lsp/racket_langserver.lua new file mode 100644 index 0000000..f7b98ba --- /dev/null +++ b/.config/nvim/lsp/racket_langserver.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- [https://github.com/jeapostrophe/racket-langserver](https://github.com/jeapostrophe/racket-langserver) +--- +--- The Racket language server. This project seeks to use +--- [DrRacket](https://github.com/racket/drracket)'s public API to provide +--- functionality that mimics DrRacket's code tools as closely as possible. +--- +--- Install via `raco`: `raco pkg install racket-langserver` + +---@type vim.lsp.Config +return { + cmd = { 'racket', '--lib', 'racket-langserver' }, + filetypes = { 'racket', 'scheme' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/raku_navigator.lua b/.config/nvim/lsp/raku_navigator.lua new file mode 100644 index 0000000..4ffbe94 --- /dev/null +++ b/.config/nvim/lsp/raku_navigator.lua @@ -0,0 +1,28 @@ +---@brief +--- +--- https://github.com/bscan/RakuNavigator +--- A Raku language server +--- **By default, raku_navigator doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. +--- You have to install the language server manually. +--- Clone the RakuNavigator repo, install based on the [instructions](https://github.com/bscan/raku_Navigator#installation-for-other-editors), +--- and point `cmd` to `server.js` inside the `server/out` directory: +--- ```lua +--- cmd = {'node', '/server/out/server.js', '--stdio'} +--- ``` +--- At minimum, you will need `raku` in your path. If you want to use a non-standard `raku` you will need to set your configuration like so: +--- ```lua +--- settings = { +--- raku_navigator = { +--- rakuPath = '/some/odd/location/my-raku' +--- } +--- } +--- ``` +--- The `contributes.configuration.properties` section of `raku_navigator`'s `package.json` has all available configuration settings. All +--- settings have a reasonable default, but, at minimum, you may want to point `raku_navigator` at your `raku_tidy` and `raku_critic` configurations. + +---@type vim.lsp.Config +return { + cmd = {}, + filetypes = { 'raku' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/reason_ls.lua b/.config/nvim/lsp/reason_ls.lua new file mode 100644 index 0000000..c2ac030 --- /dev/null +++ b/.config/nvim/lsp/reason_ls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- Reason language server +--- +--- You can install reason language server from [reason-language-server](https://github.com/jaredly/reason-language-server) repository. + +---@type vim.lsp.Config +return { + cmd = { 'reason-language-server' }, + filetypes = { 'reason' }, + root_markers = { 'bsconfig.json', '.git' }, +} diff --git a/.config/nvim/lsp/regal.lua b/.config/nvim/lsp/regal.lua new file mode 100644 index 0000000..f55b07e --- /dev/null +++ b/.config/nvim/lsp/regal.lua @@ -0,0 +1,22 @@ +---@brief +--- +--- https://github.com/StyraInc/regal +--- +--- A linter for Rego, with support for running as an LSP server. +--- +--- `regal` can be installed by running: +--- ```sh +--- go install github.com/StyraInc/regal@latest +--- ``` + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'regal', 'language-server' }, + filetypes = { 'rego' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern '*.rego'(fname) or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])) + end, +} diff --git a/.config/nvim/lsp/regols.lua b/.config/nvim/lsp/regols.lua new file mode 100644 index 0000000..e695f3b --- /dev/null +++ b/.config/nvim/lsp/regols.lua @@ -0,0 +1,22 @@ +---@brief +--- +--- https://github.com/kitagry/regols +--- +--- OPA Rego language server. +--- +--- `regols` can be installed by running: +--- ```sh +--- go install github.com/kitagry/regols@latest +--- ``` + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'regols' }, + filetypes = { 'rego' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern '*.rego'(fname) or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])) + end, +} diff --git a/.config/nvim/lsp/remark_ls.lua b/.config/nvim/lsp/remark_ls.lua new file mode 100644 index 0000000..97541d9 --- /dev/null +++ b/.config/nvim/lsp/remark_ls.lua @@ -0,0 +1,46 @@ +---@brief +--- +--- https://github.com/remarkjs/remark-language-server +--- +--- `remark-language-server` can be installed via `npm`: +--- ```sh +--- npm install -g remark-language-server +--- ``` +--- +--- `remark-language-server` uses the same +--- [configuration files](https://github.com/remarkjs/remark/tree/main/packages/remark-cli#example-config-files-json-yaml-js) +--- as `remark-cli`. +--- +--- This uses a plugin based system. Each plugin needs to be installed locally using `npm` or `yarn`. +--- +--- For example, given the following `.remarkrc.json`: +--- +--- ```json +--- { +--- "presets": [ +--- "remark-preset-lint-recommended" +--- ] +--- } +--- ``` +--- +--- `remark-preset-lint-recommended` needs to be installed in the local project: +--- +--- ```sh +--- npm install remark-preset-lint-recommended +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'remark-language-server', '--stdio' }, + filetypes = { 'markdown' }, + root_markers = { + '.remarkrc', + '.remarkrc.json', + '.remarkrc.js', + '.remarkrc.cjs', + '.remarkrc.mjs', + '.remarkrc.yml', + '.remarkrc.yaml', + '.remarkignore', + }, +} diff --git a/.config/nvim/lsp/rescriptls.lua b/.config/nvim/lsp/rescriptls.lua new file mode 100644 index 0000000..f099d03 --- /dev/null +++ b/.config/nvim/lsp/rescriptls.lua @@ -0,0 +1,58 @@ +---@brief +--- +--- https://github.com/rescript-lang/rescript-vscode/tree/master/server +--- +--- ReScript Language Server can be installed via npm: +--- ```sh +--- npm install -g @rescript/language-server +--- ``` +--- +--- See [package.json](https://github.com/rescript-lang/rescript-vscode/blob/master/package.json#L139) +--- for init_options supported. +--- +--- For example, in order to disable the `inlayHints` option: +--- ```lua +--- vim.lsp.config('rescriptls', { +--- settings = { +--- rescript = { +--- settings = { +--- inlayHints = { enable = false }, +--- }, +--- }, +--- }) +--- } +--- ``` +--- +--- Detect file changes: While using @rescript/language-server >= 1.63.0 you have to detect file changes by registering the didChangeWatchedFiles hook. +--- ```lua +--- capabilities = { +--- workspace = { +--- didChangeWatchedFiles = { +--- dynamicRegistration = true, +--- }, +--- }, +--- } +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'rescript-language-server', '--stdio' }, + filetypes = { 'rescript' }, + root_markers = { 'bsconfig.json', 'rescript.json', '.git' }, + settings = {}, + init_options = { + extensionConfiguration = { + -- buggy, prompts much too often, superseded by incrementalTypechecking, below + askToStartBuild = false, + + allowBuiltInFormatter = true, -- lower latency + incrementalTypechecking = { -- removes the need for external build process + enabled = true, + acrossFiles = true, + }, + cache = { projectConfig = { enabled = true } }, -- speed up latency dramatically + codeLens = true, + inlayHints = { enable = true }, + }, + }, +} diff --git a/.config/nvim/lsp/rls.lua b/.config/nvim/lsp/rls.lua new file mode 100644 index 0000000..3c48254 --- /dev/null +++ b/.config/nvim/lsp/rls.lua @@ -0,0 +1,35 @@ +---@brief +--- +--- https://github.com/rust-lang/rls +--- +--- rls, a language server for Rust +--- +--- See https://github.com/rust-lang/rls#setup to setup rls itself. +--- See https://github.com/rust-lang/rls#configuration for rls-specific settings. +--- All settings listed on the rls configuration section of the readme +--- must be set under settings.rust as follows: +--- +--- ```lua +--- vim.lsp.config('rls', { +--- settings = { +--- rust = { +--- unstable_features = true, +--- build_on_save = false, +--- all_features = true, +--- }, +--- }, +--- }) +--- ``` +--- +--- If you want to use rls for a particular build, eg nightly, set cmd as follows: +--- +--- ```lua +--- cmd = {"rustup", "run", "nightly", "rls"} +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'rls' }, + filetypes = { 'rust' }, + root_markers = { 'Cargo.toml' }, +} diff --git a/.config/nvim/lsp/rnix.lua b/.config/nvim/lsp/rnix.lua new file mode 100644 index 0000000..0260e68 --- /dev/null +++ b/.config/nvim/lsp/rnix.lua @@ -0,0 +1,20 @@ +---@brief +--- +--- https://github.com/nix-community/rnix-lsp +--- +--- A language server for Nix providing basic completion and formatting via nixpkgs-fmt. +--- +--- To install manually, run `cargo install rnix-lsp`. If you are using nix, rnix-lsp is in nixpkgs. +--- +--- This server accepts configuration via the `settings` key. + +---@type vim.lsp.Config +return { + cmd = { 'rnix-lsp' }, + filetypes = { 'nix' }, + root_dir = function(bufnr, on_dir) + on_dir(vim.fs.root(bufnr, '.git') or vim.uv.os_homedir()) + end, + settings = {}, + init_options = {}, +} diff --git a/.config/nvim/lsp/robotcode.lua b/.config/nvim/lsp/robotcode.lua new file mode 100644 index 0000000..a30722e --- /dev/null +++ b/.config/nvim/lsp/robotcode.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://robotcode.io +--- +--- RobotCode - Language Server Protocol implementation for Robot Framework. + +---@type vim.lsp.Config +return { + cmd = { 'robotcode', 'language-server' }, + filetypes = { 'robot', 'resource' }, + root_markers = { 'robot.toml', 'pyproject.toml', 'Pipfile', '.git' }, + get_language_id = function(_, _) + return 'robotframework' + end, +} diff --git a/.config/nvim/lsp/robotframework_ls.lua b/.config/nvim/lsp/robotframework_ls.lua new file mode 100644 index 0000000..53a9f4f --- /dev/null +++ b/.config/nvim/lsp/robotframework_ls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/robocorp/robotframework-lsp +--- +--- Language Server Protocol implementation for Robot Framework. + +---@type vim.lsp.Config +return { + cmd = { 'robotframework_ls' }, + filetypes = { 'robot' }, + root_markers = { 'robotidy.toml', 'pyproject.toml', 'conda.yaml', 'robot.yaml', '.git' }, +} diff --git a/.config/nvim/lsp/roc_ls.lua b/.config/nvim/lsp/roc_ls.lua new file mode 100644 index 0000000..fd0c00b --- /dev/null +++ b/.config/nvim/lsp/roc_ls.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/roc-lang/roc/tree/main/crates/language_server#roc_language_server +--- +--- The built-in language server for the Roc programming language. +--- [Installation](https://github.com/roc-lang/roc/tree/main/crates/language_server#installing) + +---@type vim.lsp.Config +return { + cmd = { 'roc_language_server' }, + filetypes = { 'roc' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/rome.lua b/.config/nvim/lsp/rome.lua new file mode 100644 index 0000000..d6c787e --- /dev/null +++ b/.config/nvim/lsp/rome.lua @@ -0,0 +1,25 @@ +---@brief +--- +--- https://rome.tools +--- +--- Language server for the Rome Frontend Toolchain. +--- +--- (Unmaintained, use [Biome](https://biomejs.dev/blog/annoucing-biome) instead.) +--- +--- ```sh +--- npm install [-g] rome +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'rome', 'lsp-proxy' }, + filetypes = { + 'javascript', + 'javascriptreact', + 'json', + 'typescript', + 'typescript.tsx', + 'typescriptreact', + }, + root_markers = { 'package.json', 'node_modules', '.git' }, +} diff --git a/.config/nvim/lsp/roslyn_ls.lua b/.config/nvim/lsp/roslyn_ls.lua new file mode 100644 index 0000000..e332443 --- /dev/null +++ b/.config/nvim/lsp/roslyn_ls.lua @@ -0,0 +1,237 @@ +---@brief +--- +--- https://github.com/dotnet/roslyn +-- +-- To install the server, compile from source or download as nuget package. +-- Go to `https://dev.azure.com/azure-public/vside/_artifacts/feed/vs-impl/NuGet/Microsoft.CodeAnalysis.LanguageServer./overview` +-- replace `` with one of the following `linux-x64`, `osx-x64`, `win-x64`, `neutral` (for more info on the download location see https://github.com/dotnet/roslyn/issues/71474#issuecomment-2177303207). +-- Download and extract it (nuget's are zip files). +-- - if you chose `neutral` nuget version, then you have to change the `cmd` like so: +-- cmd = { +-- 'dotnet', +-- '/Microsoft.CodeAnalysis.LanguageServer.dll', +-- '--logLevel', -- this property is required by the server +-- 'Information', +-- '--extensionLogDirectory', -- this property is required by the server +-- fs.joinpath(uv.os_tmpdir(), 'roslyn_ls/logs'), +-- '--stdio', +-- }, +-- where `` has to be the folder you extracted the nuget package to. +-- - for all other platforms put the extracted folder to neovim's PATH (`vim.env.PATH`) + +local uv = vim.uv +local fs = vim.fs + +local group = vim.api.nvim_create_augroup('lspconfig.roslyn_ls', { clear = true }) + +---@param client vim.lsp.Client +---@param target string +local function on_init_sln(client, target) + vim.notify('Initializing: ' .. target, vim.log.levels.TRACE, { title = 'roslyn_ls' }) + ---@diagnostic disable-next-line: param-type-mismatch + client:notify('solution/open', { + solution = vim.uri_from_fname(target), + }) +end + +---@param client vim.lsp.Client +---@param project_files string[] +local function on_init_project(client, project_files) + vim.notify('Initializing: projects', vim.log.levels.TRACE, { title = 'roslyn_ls' }) + ---@diagnostic disable-next-line: param-type-mismatch + client:notify('project/open', { + projects = vim.tbl_map(function(file) + return vim.uri_from_fname(file) + end, project_files), + }) +end + +---@param client vim.lsp.Client +local function refresh_diagnostics(client) + local buffers = vim.lsp.get_buffers_by_client_id(client.id) + for _, buf in ipairs(buffers) do + if vim.api.nvim_buf_is_loaded(buf) then + client:request( + vim.lsp.protocol.Methods.textDocument_diagnostic, + { textDocument = vim.lsp.util.make_text_document_params(buf) }, + nil, + buf + ) + end + end +end + +local function roslyn_handlers() + return { + ['workspace/projectInitializationComplete'] = function(_, _, ctx) + vim.notify('Roslyn project initialization complete', vim.log.levels.INFO, { title = 'roslyn_ls' }) + local client = assert(vim.lsp.get_client_by_id(ctx.client_id)) + refresh_diagnostics(client) + return vim.NIL + end, + ['workspace/_roslyn_projectNeedsRestore'] = function(_, result, ctx) + local client = assert(vim.lsp.get_client_by_id(ctx.client_id)) + + ---@diagnostic disable-next-line: param-type-mismatch + client:request('workspace/_roslyn_restore', result, function(err, response) + if err then + vim.notify(err.message, vim.log.levels.ERROR, { title = 'roslyn_ls' }) + end + if response then + for _, v in ipairs(response) do + vim.notify(v.message, vim.log.levels.INFO, { title = 'roslyn_ls' }) + end + end + end) + + return vim.NIL + end, + ['razor/provideDynamicFileInfo'] = function(_, _, _) + vim.notify( + 'Razor is not supported.\nPlease use https://github.com/tris203/rzls.nvim', + vim.log.levels.WARN, + { title = 'roslyn_ls' } + ) + return vim.NIL + end, + } +end + +---@type vim.lsp.Config +return { + name = 'roslyn_ls', + offset_encoding = 'utf-8', + cmd = { + 'Microsoft.CodeAnalysis.LanguageServer', + '--logLevel', + 'Information', + '--extensionLogDirectory', + fs.joinpath(uv.os_tmpdir(), 'roslyn_ls/logs'), + '--stdio', + }, + filetypes = { 'cs' }, + handlers = roslyn_handlers(), + + commands = { + ['roslyn.client.completionComplexEdit'] = function(command, ctx) + local client = assert(vim.lsp.get_client_by_id(ctx.client_id)) + local args = command.arguments or {} + local uri, edit = args[1], args[2] + + if uri and edit and edit.newText and edit.range then + local workspace_edit = { + changes = { + [uri.uri] = { + { + range = edit.range, + newText = edit.newText, + }, + }, + }, + } + vim.lsp.util.apply_workspace_edit(workspace_edit, client.offset_encoding) + else + vim.notify('roslyn_ls: completionComplexEdit args not understood: ' .. vim.inspect(args), vim.log.levels.WARN) + end + end, + }, + + root_dir = function(bufnr, cb) + local bufname = vim.api.nvim_buf_get_name(bufnr) + -- don't try to find sln or csproj for files from libraries + -- outside of the project + if not bufname:match('^' .. fs.joinpath('/tmp/MetadataAsSource/')) then + -- try find solutions root first + local root_dir = fs.root(bufnr, function(fname, _) + return fname:match('%.sln[x]?$') ~= nil + end) + + if not root_dir then + -- try find projects root + root_dir = fs.root(bufnr, function(fname, _) + return fname:match('%.csproj$') ~= nil + end) + end + + if root_dir then + cb(root_dir) + end + end + end, + on_init = { + function(client) + local root_dir = client.config.root_dir + + -- try load first solution we find + for entry, type in fs.dir(root_dir) do + if type == 'file' and (vim.endswith(entry, '.sln') or vim.endswith(entry, '.slnx')) then + on_init_sln(client, fs.joinpath(root_dir, entry)) + return + end + end + + -- if no solution is found load project + for entry, type in fs.dir(root_dir) do + if type == 'file' and vim.endswith(entry, '.csproj') then + on_init_project(client, { fs.joinpath(root_dir, entry) }) + end + end + end, + }, + + on_attach = function(client, bufnr) + -- avoid duplicate autocmds for same buffer + if vim.api.nvim_get_autocmds({ buffer = bufnr, group = group })[1] then + return + end + + vim.api.nvim_create_autocmd({ 'BufWritePost', 'InsertLeave' }, { + group = group, + buffer = bufnr, + callback = function() + refresh_diagnostics(client) + end, + desc = 'roslyn_ls: refresh diagnostics', + }) + end, + + capabilities = { + -- HACK: Doesn't show any diagnostics if we do not set this to true + textDocument = { + diagnostic = { + dynamicRegistration = true, + }, + }, + }, + settings = { + ['csharp|background_analysis'] = { + dotnet_analyzer_diagnostics_scope = 'fullSolution', + dotnet_compiler_diagnostics_scope = 'fullSolution', + }, + ['csharp|inlay_hints'] = { + csharp_enable_inlay_hints_for_implicit_object_creation = true, + csharp_enable_inlay_hints_for_implicit_variable_types = true, + csharp_enable_inlay_hints_for_lambda_parameter_types = true, + csharp_enable_inlay_hints_for_types = true, + dotnet_enable_inlay_hints_for_indexer_parameters = true, + dotnet_enable_inlay_hints_for_literal_parameters = true, + dotnet_enable_inlay_hints_for_object_creation_parameters = true, + dotnet_enable_inlay_hints_for_other_parameters = true, + dotnet_enable_inlay_hints_for_parameters = true, + dotnet_suppress_inlay_hints_for_parameters_that_differ_only_by_suffix = true, + dotnet_suppress_inlay_hints_for_parameters_that_match_argument_name = true, + dotnet_suppress_inlay_hints_for_parameters_that_match_method_intent = true, + }, + ['csharp|symbol_search'] = { + dotnet_search_reference_assemblies = true, + }, + ['csharp|completion'] = { + dotnet_show_name_completion_suggestions = true, + dotnet_show_completion_items_from_unimported_namespaces = true, + dotnet_provide_regex_completions = true, + }, + ['csharp|code_lens'] = { + dotnet_enable_references_code_lens = true, + }, + }, +} diff --git a/.config/nvim/lsp/rpmspec.lua b/.config/nvim/lsp/rpmspec.lua new file mode 100644 index 0000000..b953f75 --- /dev/null +++ b/.config/nvim/lsp/rpmspec.lua @@ -0,0 +1,19 @@ +---@brief +--- +--- https://github.com/dcermak/rpm-spec-language-server +--- +--- Language server protocol (LSP) support for RPM Spec files. +--- +--- `rpm-spec-language-server` can be installed by running, +--- +--- ```sh +--- pip install rpm-spec-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'rpm_lsp_server', '--stdio' }, + filetypes = { 'spec' }, + root_markers = { '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/rubocop.lua b/.config/nvim/lsp/rubocop.lua new file mode 100644 index 0000000..e24e616 --- /dev/null +++ b/.config/nvim/lsp/rubocop.lua @@ -0,0 +1,10 @@ +---@brief +--- +--- https://github.com/rubocop/rubocop + +---@type vim.lsp.Config +return { + cmd = { 'rubocop', '--lsp' }, + filetypes = { 'ruby' }, + root_markers = { 'Gemfile', '.git' }, +} diff --git a/.config/nvim/lsp/ruby_lsp.lua b/.config/nvim/lsp/ruby_lsp.lua new file mode 100644 index 0000000..87e2f59 --- /dev/null +++ b/.config/nvim/lsp/ruby_lsp.lua @@ -0,0 +1,27 @@ +---@brief +--- +--- https://shopify.github.io/ruby-lsp/ +--- +--- This gem is an implementation of the language server protocol specification for +--- Ruby, used to improve editor features. +--- +--- Install the gem. There's no need to require it, since the server is used as a +--- standalone executable. +--- +--- ```sh +--- gem install ruby-lsp +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'ruby-lsp' }, + filetypes = { 'ruby', 'eruby' }, + root_markers = { 'Gemfile', '.git' }, + init_options = { + formatter = 'auto', + }, + reuse_client = function(client, config) + config.cmd_cwd = config.root_dir + return client.config.cmd_cwd == config.cmd_cwd + end, +} diff --git a/.config/nvim/lsp/ruff.lua b/.config/nvim/lsp/ruff.lua new file mode 100644 index 0000000..7fb61ea --- /dev/null +++ b/.config/nvim/lsp/ruff.lua @@ -0,0 +1,35 @@ +---@brief +--- +--- https://github.com/astral-sh/ruff +--- +--- A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code formatter, written in Rust. It can be installed via `pip`. +--- +--- ```sh +--- pip install ruff +--- ``` +--- +--- **Available in Ruff `v0.4.5` in beta and stabilized in Ruff `v0.5.3`.** +--- +--- This is the new built-in language server written in Rust. It supports the same feature set as `ruff-lsp`, but with superior performance and no installation required. Note that the `ruff-lsp` server will continue to be maintained until further notice. +--- +--- Server settings can be provided via: +--- +--- ```lua +--- vim.lsp.config('ruff', { +--- init_options = { +--- settings = { +--- -- Server settings should go here +--- } +--- } +--- }) +--- ``` +--- +--- Refer to the [documentation](https://docs.astral.sh/ruff/editors/) for more details. + +---@type vim.lsp.Config +return { + cmd = { 'ruff', 'server' }, + filetypes = { 'python' }, + root_markers = { 'pyproject.toml', 'ruff.toml', '.ruff.toml', '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/ruff_lsp.lua b/.config/nvim/lsp/ruff_lsp.lua new file mode 100644 index 0000000..59b093e --- /dev/null +++ b/.config/nvim/lsp/ruff_lsp.lua @@ -0,0 +1,30 @@ +---@brief +--- +--- https://github.com/astral-sh/ruff-lsp +--- +--- A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code transformation tool, written in Rust. It can be installed via pip. +--- +--- ```sh +--- pip install ruff-lsp +--- ``` +--- +--- Extra CLI arguments for `ruff` can be provided via +--- +--- ```lua +--- vim.lsp.config('ruff_lsp', { +--- init_options = { +--- settings = { +--- -- Any extra CLI arguments for `ruff` go here. +--- args = {}, +--- } +--- } +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'ruff-lsp' }, + filetypes = { 'python' }, + root_markers = { 'pyproject.toml', 'ruff.toml', '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/rune_languageserver.lua b/.config/nvim/lsp/rune_languageserver.lua new file mode 100644 index 0000000..d893375 --- /dev/null +++ b/.config/nvim/lsp/rune_languageserver.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://crates.io/crates/rune-languageserver +--- +--- A language server for the [Rune](https://rune-rs.github.io/) Language, +--- an embeddable dynamic programming language for Rust + +---@type vim.lsp.Config +return { + cmd = { 'rune-languageserver' }, + filetypes = { 'rune' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/rust_analyzer.lua b/.config/nvim/lsp/rust_analyzer.lua new file mode 100644 index 0000000..a699c7f --- /dev/null +++ b/.config/nvim/lsp/rust_analyzer.lua @@ -0,0 +1,121 @@ +---@brief +--- +--- https://github.com/rust-lang/rust-analyzer +--- +--- rust-analyzer (aka rls 2.0), a language server for Rust +--- +--- +--- See [docs](https://rust-analyzer.github.io/book/configuration.html) for extra settings. The settings can be used like this: +--- ```lua +--- vim.lsp.config('rust_analyzer', { +--- settings = { +--- ['rust-analyzer'] = { +--- diagnostics = { +--- enable = false; +--- } +--- } +--- } +--- }) +--- ``` +--- +--- Note: do not set `init_options` for this LS config, it will be automatically populated by the contents of settings["rust-analyzer"] per +--- https://github.com/rust-lang/rust-analyzer/blob/eb5da56d839ae0a9e9f50774fa3eb78eb0964550/docs/dev/lsp-extensions.md?plain=1#L26. + +local function reload_workspace(bufnr) + local clients = vim.lsp.get_clients { bufnr = bufnr, name = 'rust_analyzer' } + for _, client in ipairs(clients) do + vim.notify 'Reloading Cargo Workspace' + ---@diagnostic disable-next-line:param-type-mismatch + client:request('rust-analyzer/reloadWorkspace', nil, function(err) + if err then + error(tostring(err)) + end + vim.notify 'Cargo workspace reloaded' + end, 0) + end +end + +local function is_library(fname) + local user_home = vim.fs.normalize(vim.env.HOME) + local cargo_home = os.getenv 'CARGO_HOME' or user_home .. '/.cargo' + local registry = cargo_home .. '/registry/src' + local git_registry = cargo_home .. '/git/checkouts' + + local rustup_home = os.getenv 'RUSTUP_HOME' or user_home .. '/.rustup' + local toolchains = rustup_home .. '/toolchains' + + for _, item in ipairs { toolchains, registry, git_registry } do + if vim.fs.relpath(item, fname) then + local clients = vim.lsp.get_clients { name = 'rust_analyzer' } + return #clients > 0 and clients[#clients].config.root_dir or nil + end + end +end + +---@type vim.lsp.Config +return { + cmd = { 'rust-analyzer' }, + filetypes = { 'rust' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + local reused_dir = is_library(fname) + if reused_dir then + on_dir(reused_dir) + return + end + + local cargo_crate_dir = vim.fs.root(fname, { 'Cargo.toml' }) + local cargo_workspace_root + + if cargo_crate_dir == nil then + on_dir( + vim.fs.root(fname, { 'rust-project.json' }) + or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) + ) + return + end + + local cmd = { + 'cargo', + 'metadata', + '--no-deps', + '--format-version', + '1', + '--manifest-path', + cargo_crate_dir .. '/Cargo.toml', + } + + vim.system(cmd, { text = true }, function(output) + if output.code == 0 then + if output.stdout then + local result = vim.json.decode(output.stdout) + if result['workspace_root'] then + cargo_workspace_root = vim.fs.normalize(result['workspace_root']) + end + end + + on_dir(cargo_workspace_root or cargo_crate_dir) + else + vim.schedule(function() + vim.notify(('[rust_analyzer] cmd failed with code %d: %s\n%s'):format(output.code, cmd, output.stderr)) + end) + end + end) + end, + capabilities = { + experimental = { + serverStatusNotification = true, + }, + }, + before_init = function(init_params, config) + -- See https://github.com/rust-lang/rust-analyzer/blob/eb5da56d839ae0a9e9f50774fa3eb78eb0964550/docs/dev/lsp-extensions.md?plain=1#L26 + if config.settings and config.settings['rust-analyzer'] then + init_params.initializationOptions = config.settings['rust-analyzer'] + end + end, + on_attach = function(_, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspCargoReload', function() + reload_workspace(bufnr) + end, { desc = 'Reload current cargo workspace' }) + end, +} diff --git a/.config/nvim/lsp/salt_ls.lua b/.config/nvim/lsp/salt_ls.lua new file mode 100644 index 0000000..6bbb1d2 --- /dev/null +++ b/.config/nvim/lsp/salt_ls.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- Language server for Salt configuration files. +--- https://github.com/dcermak/salt-lsp +--- +--- The language server can be installed with `pip`: +--- ```sh +--- pip install salt-lsp +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'salt_lsp_server' }, + filetypes = { 'sls' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/scheme_langserver.lua b/.config/nvim/lsp/scheme_langserver.lua new file mode 100644 index 0000000..131dcd6 --- /dev/null +++ b/.config/nvim/lsp/scheme_langserver.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/ufo5260987423/scheme-langserver +--- `scheme-langserver`, a language server protocol implementation for scheme. +--- And for nvim user, please add .sls to scheme file extension list. + +---@type vim.lsp.Config +return { + cmd = { 'scheme-langserver', '~/.scheme-langserver.log', 'enable', 'disable' }, + filetypes = { 'scheme' }, + root_markers = { + 'Akku.manifest', + '.git', + }, +} diff --git a/.config/nvim/lsp/scry.lua b/.config/nvim/lsp/scry.lua new file mode 100644 index 0000000..77431d7 --- /dev/null +++ b/.config/nvim/lsp/scry.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/crystal-lang-tools/scry +--- +--- Crystal language server. + +---@type vim.lsp.Config +return { + cmd = { 'scry' }, + filetypes = { 'crystal' }, + root_markers = { 'shard.yml', '.git' }, +} diff --git a/.config/nvim/lsp/selene3p_ls.lua b/.config/nvim/lsp/selene3p_ls.lua new file mode 100644 index 0000000..0413b11 --- /dev/null +++ b/.config/nvim/lsp/selene3p_ls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/antonk52/lua-3p-language-servers +--- +--- 3rd party Language Server for Selene lua linter + +---@type vim.lsp.Config +return { + cmd = { 'selene-3p-language-server' }, + filetypes = { 'lua' }, + root_markers = { 'selene.toml' }, +} diff --git a/.config/nvim/lsp/serve_d.lua b/.config/nvim/lsp/serve_d.lua new file mode 100644 index 0000000..d0e00c6 --- /dev/null +++ b/.config/nvim/lsp/serve_d.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/Pure-D/serve-d +--- +--- Microsoft language server protocol implementation for D using workspace-d. +--- Download a binary from https://github.com/Pure-D/serve-d/releases and put it in your $PATH. + +---@type vim.lsp.Config +return { + cmd = { 'serve-d' }, + filetypes = { 'd' }, + root_markers = { 'dub.json', 'dub.sdl', '.git' }, +} diff --git a/.config/nvim/lsp/shopify_theme_ls.lua b/.config/nvim/lsp/shopify_theme_ls.lua new file mode 100644 index 0000000..8dc7b47 --- /dev/null +++ b/.config/nvim/lsp/shopify_theme_ls.lua @@ -0,0 +1,26 @@ +---@brief +--- +--- https://shopify.dev/docs/api/shopify-cli +--- +--- [Language Server](https://shopify.dev/docs/themes/tools/cli/language-server) and Theme Check (linter) for Shopify themes. +--- +--- `shopify` can be installed via npm `npm install -g @shopify/cli`. +--- +--- Note: This LSP already includes Theme Check so you don't need to use the `theme_check` server configuration as well. + +---@type vim.lsp.Config +return { + cmd = { + 'shopify', + 'theme', + 'language-server', + }, + filetypes = { 'liquid' }, + root_markers = { + '.shopifyignore', + '.theme-check.yml', + '.theme-check.yaml', + 'shopify.theme.toml', + }, + settings = {}, +} diff --git a/.config/nvim/lsp/sixtyfps.lua b/.config/nvim/lsp/sixtyfps.lua new file mode 100644 index 0000000..90cf478 --- /dev/null +++ b/.config/nvim/lsp/sixtyfps.lua @@ -0,0 +1,25 @@ +---@brief +--- +--- https://github.com/sixtyfpsui/sixtyfps +--- `SixtyFPS`'s language server +--- +--- You can build and install `sixtyfps-lsp` binary with `cargo`: +--- ```sh +--- cargo install sixtyfps-lsp +--- ``` +--- +--- Vim does not have built-in syntax for the `sixtyfps` filetype currently. +--- +--- This can be added via an autocmd: +--- +--- ```lua +--- vim.cmd [[ autocmd BufRead,BufNewFile *.60 set filetype=sixtyfps ]] +--- ``` +--- +--- or by installing a filetype plugin such as https://github.com/RustemB/sixtyfps-vim + +---@type vim.lsp.Config +return { + cmd = { 'sixtyfps-lsp' }, + filetypes = { 'sixtyfps' }, +} diff --git a/.config/nvim/lsp/slangd.lua b/.config/nvim/lsp/slangd.lua new file mode 100644 index 0000000..022a347 --- /dev/null +++ b/.config/nvim/lsp/slangd.lua @@ -0,0 +1,37 @@ +---@brief +--- +--- https://github.com/shader-slang/slang +--- +--- The `slangd` binary can be downloaded as part of [slang releases](https://github.com/shader-slang/slang/releases) or +--- by [building `slang` from source](https://github.com/shader-slang/slang/blob/master/docs/building.md). +--- +--- The server can be configured by passing a "settings" object to vim.lsp.config('slangd'): +--- +--- ```lua +--- vim.lsp.config('slangd', { +--- settings = { +--- slang = { +--- predefinedMacros = {"MY_VALUE_MACRO=1"}, +--- inlayHints = { +--- deducedTypes = true, +--- parameterNames = true, +--- } +--- } +--- } +--- }) +--- ``` +--- Available options are documented [here](https://github.com/shader-slang/slang-vscode-extension/tree/main?tab=readme-ov-file#configurations) +--- or in more detail [here](https://github.com/shader-slang/slang-vscode-extension/blob/main/package.json#L70). + +local bin_name = 'slangd' + +if vim.fn.has 'win32' == 1 then + bin_name = 'slangd.exe' +end + +---@type vim.lsp.Config +return { + cmd = { bin_name }, + filetypes = { 'hlsl', 'shaderslang' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/slint_lsp.lua b/.config/nvim/lsp/slint_lsp.lua new file mode 100644 index 0000000..dedc147 --- /dev/null +++ b/.config/nvim/lsp/slint_lsp.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/slint-ui/slint +--- `Slint`'s language server +--- +--- You can build and install `slint-lsp` binary with `cargo`: +--- ```sh +--- cargo install slint-lsp +--- ``` +--- +--- Vim does not have built-in syntax for the `slint` filetype at this time. +--- +--- This can be added via an autocmd: +--- +--- ```lua +--- vim.cmd [[ autocmd BufRead,BufNewFile *.slint set filetype=slint ]] +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'slint-lsp' }, + filetypes = { 'slint' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/smarty_ls.lua b/.config/nvim/lsp/smarty_ls.lua new file mode 100644 index 0000000..ab7012f --- /dev/null +++ b/.config/nvim/lsp/smarty_ls.lua @@ -0,0 +1,36 @@ +---@brief +--- +--- https://github.com/landeaux/vscode-smarty-langserver-extracted +--- +--- Language server for Smarty. +--- +--- `smarty-language-server` can be installed via `npm`: +--- +--- ```sh +--- npm i -g vscode-smarty-langserver-extracted +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'smarty-language-server', '--stdio' }, + filetypes = { 'smarty' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + local cwd = assert(vim.uv.cwd()) + local root = vim.fs.root(fname, { 'composer.json', '.git' }) + + -- prefer cwd if root is a descendant + on_dir(root and vim.fs.relpath(cwd, root) and cwd) + end, + settings = { + smarty = { + pluginDirs = {}, + }, + css = { + validate = true, + }, + }, + init_options = { + storageDir = nil, + }, +} diff --git a/.config/nvim/lsp/smithy_ls.lua b/.config/nvim/lsp/smithy_ls.lua new file mode 100644 index 0000000..7118e05 --- /dev/null +++ b/.config/nvim/lsp/smithy_ls.lua @@ -0,0 +1,44 @@ +---@brief +--- +--- https://github.com/awslabs/smithy-language-server +--- +--- "Smithy Language Server", a Language server for the Smithy IDL. +--- +--- smithy-language-server has no docs that say how to actually install it(?), so look at: +--- https://github.com/smithy-lang/smithy-vscode/blob/600cfcf0db65edce85f02e6d50f5fa2b0862bc8d/src/extension.ts#L78 +--- +--- Maven package: https://central.sonatype.com/artifact/software.amazon.smithy/smithy-language-server +--- +--- Installation: +--- 1. Install coursier, or any tool that can install maven packages. +--- ``` +--- brew install coursier +--- ``` +--- 2. The LS is auto-installed and launched by: +--- ``` +--- coursier launch software.amazon.smithy:smithy-language-server:0.7.0 +--- ``` + +---@type vim.lsp.Config +return { + -- pass 0 as the first argument to use STDIN/STDOUT for communication + cmd = { + 'coursier', + 'launch', + 'software.amazon.smithy:smithy-language-server:0.7.0', + '-M', + 'software.amazon.smithy.lsp.Main', + '--', + '0', + }, + filetypes = { 'smithy' }, + root_markers = { 'smithy-build.json', 'build.gradle', 'build.gradle.kts', '.git' }, + message_level = vim.lsp.protocol.MessageType.Log, + init_options = { + statusBarProvider = 'show-message', + isHttpEnabled = true, + compilerOptions = { + snippetAutoIndent = false, + }, + }, +} diff --git a/.config/nvim/lsp/snakeskin_ls.lua b/.config/nvim/lsp/snakeskin_ls.lua new file mode 100644 index 0000000..82a3eef --- /dev/null +++ b/.config/nvim/lsp/snakeskin_ls.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://www.npmjs.com/package/@snakeskin/cli +--- +--- `snakeskin cli` can be installed via `npm`: +--- ```sh +--- npm install -g @snakeskin/cli +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'snakeskin-cli', 'lsp', '--stdio' }, + filetypes = { 'ss' }, + root_markers = { 'package.json' }, +} diff --git a/.config/nvim/lsp/snyk_ls.lua b/.config/nvim/lsp/snyk_ls.lua new file mode 100644 index 0000000..32d0183 --- /dev/null +++ b/.config/nvim/lsp/snyk_ls.lua @@ -0,0 +1,29 @@ +---@brief +--- +--- https://github.com/snyk/snyk-ls +--- +--- LSP for Snyk Open Source, Snyk Infrastructure as Code, and Snyk Code. + +---@type vim.lsp.Config +return { + cmd = { 'snyk-ls' }, + root_markers = { '.git', '.snyk' }, + filetypes = { + 'go', + 'gomod', + 'javascript', + 'typescript', + 'json', + 'python', + 'requirements', + 'helm', + 'yaml', + 'terraform', + 'terraform-vars', + }, + settings = {}, + -- Configuration from https://github.com/snyk/snyk-ls#configuration-1 + init_options = { + activateSnykCode = 'true', + }, +} diff --git a/.config/nvim/lsp/solang.lua b/.config/nvim/lsp/solang.lua new file mode 100644 index 0000000..ab65531 --- /dev/null +++ b/.config/nvim/lsp/solang.lua @@ -0,0 +1,19 @@ +---@brief +--- +---A language server for Solidity +--- +--- See the [documentation](https://solang.readthedocs.io/en/latest/installing.html) for installation instructions. +--- +--- The language server only provides the following capabilities: +--- * Syntax highlighting +--- * Diagnostics +--- * Hover +--- +--- There is currently no support for completion, goto definition, references, or other functionality. + +---@type vim.lsp.Config +return { + cmd = { 'solang', 'language-server', '--target', 'evm' }, + filetypes = { 'solidity' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/solargraph.lua b/.config/nvim/lsp/solargraph.lua new file mode 100644 index 0000000..6f52195 --- /dev/null +++ b/.config/nvim/lsp/solargraph.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://solargraph.org/ +--- +--- solargraph, a language server for Ruby +--- +--- You can install solargraph via gem install. +--- +--- ```sh +--- gem install --user-install solargraph +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'solargraph', 'stdio' }, + settings = { + solargraph = { + diagnostics = true, + }, + }, + init_options = { formatting = true }, + filetypes = { 'ruby' }, + root_markers = { 'Gemfile', '.git' }, +} diff --git a/.config/nvim/lsp/solc.lua b/.config/nvim/lsp/solc.lua new file mode 100644 index 0000000..aaa2dd1 --- /dev/null +++ b/.config/nvim/lsp/solc.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://docs.soliditylang.org/en/latest/installing-solidity.html +--- +--- solc is the native language server for the Solidity language. + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'solc', '--lsp' }, + filetypes = { 'solidity' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('hardhat.config.*', '.git')(fname)) + end, +} diff --git a/.config/nvim/lsp/solidity.lua b/.config/nvim/lsp/solidity.lua new file mode 100644 index 0000000..cdcdbb5 --- /dev/null +++ b/.config/nvim/lsp/solidity.lua @@ -0,0 +1,42 @@ +---@brief +--- +--- https://github.com/qiuxiang/solidity-ls +--- +--- npm i solidity-ls -g +--- +--- Make sure that solc is installed and it's the same version of the file. solc-select is recommended. +--- +--- Solidity language server is a LSP with autocomplete, go to definition and diagnostics. +--- +--- If you use brownie, use this root_markers: +--- root_markers = { 'brownie-config.yaml', '.git' } +--- +--- on includePath, you can add an extra path to search for external libs, on remapping you can remap lib <> path, like: +--- +--- ```lua +--- { solidity = { includePath = '/Users/your_user/.brownie/packages/', remapping = { ["@OpenZeppelin/"] = 'OpenZeppelin/openzeppelin-contracts@4.6.0/' } } } +--- ``` +--- +--- **For brownie users** +--- Change the root_markers to: +--- +--- ```lua +--- root_markers = { 'brownie-config.yaml', '.git' } +--- ``` +--- +--- The best way of using it is to have a package.json in your project folder with the packages that you will use. +--- After installing with package.json, just create a `remappings.txt` with: +--- +--- ``` +--- @OpenZeppelin/=node_modules/OpenZeppelin/openzeppelin-contracts@4.6.0/ +--- ``` +--- +--- You can omit the node_modules as well. + +---@type vim.lsp.Config +return { + cmd = { 'solidity-ls', '--stdio' }, + filetypes = { 'solidity' }, + root_markers = { '.git', 'package.json' }, + settings = { solidity = { includePath = '', remapping = {} } }, +} diff --git a/.config/nvim/lsp/solidity_ls.lua b/.config/nvim/lsp/solidity_ls.lua new file mode 100644 index 0000000..207ff9b --- /dev/null +++ b/.config/nvim/lsp/solidity_ls.lua @@ -0,0 +1,28 @@ +---@brief +--- +--- https://github.com/juanfranblanco/vscode-solidity +--- +--- `vscode-solidity-server` can be installed via `npm`: +--- +--- ```sh +--- npm install -g vscode-solidity-server +--- ``` +--- +--- `vscode-solidity-server` is a language server for the Solidity language ported from the VSCode "solidity" extension. + +---@type vim.lsp.Config +return { + cmd = { 'vscode-solidity-server', '--stdio' }, + filetypes = { 'solidity' }, + root_markers = { + 'hardhat.config.js', + 'hardhat.config.ts', + 'foundry.toml', + 'remappings.txt', + 'truffle.js', + 'truffle-config.js', + 'ape-config.yaml', + '.git', + 'package.json', + }, +} diff --git a/.config/nvim/lsp/solidity_ls_nomicfoundation.lua b/.config/nvim/lsp/solidity_ls_nomicfoundation.lua new file mode 100644 index 0000000..7b14c13 --- /dev/null +++ b/.config/nvim/lsp/solidity_ls_nomicfoundation.lua @@ -0,0 +1,28 @@ +---@brief +--- +--- https://github.com/NomicFoundation/hardhat-vscode/blob/development/server/README.md +--- +--- `nomicfoundation-solidity-language-server` can be installed via `npm`: +--- +--- ```sh +--- npm install -g @nomicfoundation/solidity-language-server +--- ``` +--- +--- A language server for the Solidity programming language, built by the Nomic Foundation for the Ethereum community. + +---@type vim.lsp.Config +return { + cmd = { 'nomicfoundation-solidity-language-server', '--stdio' }, + filetypes = { 'solidity' }, + root_markers = { + 'hardhat.config.js', + 'hardhat.config.ts', + 'foundry.toml', + 'remappings.txt', + 'truffle.js', + 'truffle-config.js', + 'ape-config.yaml', + '.git', + 'package.json', + }, +} diff --git a/.config/nvim/lsp/somesass_ls.lua b/.config/nvim/lsp/somesass_ls.lua new file mode 100644 index 0000000..6f17952 --- /dev/null +++ b/.config/nvim/lsp/somesass_ls.lua @@ -0,0 +1,30 @@ +---@brief +--- +--- https://github.com/wkillerud/some-sass/tree/main/packages/language-server +--- +--- `some-sass-language-server` can be installed via `npm`: +--- +--- ```sh +--- npm i -g some-sass-language-server +--- ``` +--- +--- The language server provides: +--- +--- - Full support for @use and @forward, including aliases, prefixes and hiding. +--- - Workspace-wide code navigation and refactoring, such as Rename Symbol. +--- - Rich documentation through SassDoc. +--- - Language features for %placeholder-selectors, both when using them and writing them. +--- - Suggestions and hover info for built-in Sass modules, when used with @use. + +---@type vim.lsp.Config +return { + name = 'somesass_ls', + cmd = { 'some-sass-language-server', '--stdio' }, + filetypes = { 'scss', 'sass' }, + root_markers = { '.git', '.package.json' }, + settings = { + somesass = { + suggestAllFromOpenDocument = true, + }, + }, +} diff --git a/.config/nvim/lsp/sorbet.lua b/.config/nvim/lsp/sorbet.lua new file mode 100644 index 0000000..fe4dee6 --- /dev/null +++ b/.config/nvim/lsp/sorbet.lua @@ -0,0 +1,19 @@ +---@brief +--- +--- https://sorbet.org +--- +--- Sorbet is a fast, powerful type checker designed for Ruby. +--- +--- You can install Sorbet via gem install. You might also be interested in how to set +--- Sorbet up for new projects: https://sorbet.org/docs/adopting. +--- +--- ```sh +--- gem install sorbet +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'srb', 'tc', '--lsp' }, + filetypes = { 'ruby' }, + root_markers = { 'Gemfile', '.git' }, +} diff --git a/.config/nvim/lsp/sourcekit.lua b/.config/nvim/lsp/sourcekit.lua new file mode 100644 index 0000000..11d7b02 --- /dev/null +++ b/.config/nvim/lsp/sourcekit.lua @@ -0,0 +1,40 @@ +---@brief +--- +--- https://github.com/swiftlang/sourcekit-lsp +--- +--- Language server for Swift and C/C++/Objective-C. + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'sourcekit-lsp' }, + filetypes = { 'swift', 'objc', 'objcpp', 'c', 'cpp' }, + root_dir = function(bufnr, on_dir) + local filename = vim.api.nvim_buf_get_name(bufnr) + on_dir( + util.root_pattern 'buildServer.json'(filename) + or util.root_pattern('*.xcodeproj', '*.xcworkspace')(filename) + -- better to keep it at the end, because some modularized apps contain multiple Package.swift files + or util.root_pattern('compile_commands.json', 'Package.swift')(filename) + or vim.fs.dirname(vim.fs.find('.git', { path = filename, upward = true })[1]) + ) + end, + get_language_id = function(_, ftype) + local t = { objc = 'objective-c', objcpp = 'objective-cpp' } + return t[ftype] or ftype + end, + capabilities = { + workspace = { + didChangeWatchedFiles = { + dynamicRegistration = true, + }, + }, + textDocument = { + diagnostic = { + dynamicRegistration = true, + relatedDocumentSupport = true, + }, + }, + }, +} diff --git a/.config/nvim/lsp/spectral.lua b/.config/nvim/lsp/spectral.lua new file mode 100644 index 0000000..599a773 --- /dev/null +++ b/.config/nvim/lsp/spectral.lua @@ -0,0 +1,22 @@ +---@brief +--- +--- https://github.com/luizcorreia/spectral-language-server +--- `A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v2 & v3.` +--- +--- `spectral-language-server` can be installed via `npm`: +--- ```sh +--- npm i -g spectral-language-server +--- ``` +--- See [vscode-spectral](https://github.com/stoplightio/vscode-spectral#extension-settings) for configuration options. + +---@type vim.lsp.Config +return { + cmd = { 'spectral-language-server', '--stdio' }, + filetypes = { 'yaml', 'json', 'yml' }, + root_markers = { '.spectral.yaml', '.spectral.yml', '.spectral.json', '.spectral.js' }, + settings = { + enable = true, + run = 'onType', + validateLanguages = { 'yaml', 'json', 'yml' }, + }, +} diff --git a/.config/nvim/lsp/spyglassmc_language_server.lua b/.config/nvim/lsp/spyglassmc_language_server.lua new file mode 100644 index 0000000..61d7205 --- /dev/null +++ b/.config/nvim/lsp/spyglassmc_language_server.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/SpyglassMC/Spyglass/tree/main/packages/language-server +--- +--- Language server for Minecraft datapacks. +--- +--- `spyglassmc-language-server` can be installed via `npm`: +--- +--- ```sh +--- npm i -g @spyglassmc/language-server +--- ``` +--- +--- You may also need to configure the filetype: +--- +--- `autocmd BufNewFile,BufRead *.mcfunction set filetype=mcfunction` +--- +--- This is automatically done by [CrystalAlpha358/vim-mcfunction](https://github.com/CrystalAlpha358/vim-mcfunction), which also provide syntax highlight. + +---@type vim.lsp.Config +return { + cmd = { 'spyglassmc-language-server', '--stdio' }, + filetypes = { 'mcfunction' }, + root_markers = { 'pack.mcmeta' }, +} diff --git a/.config/nvim/lsp/sqlls.lua b/.config/nvim/lsp/sqlls.lua new file mode 100644 index 0000000..04e6d61 --- /dev/null +++ b/.config/nvim/lsp/sqlls.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/joe-re/sql-language-server +--- +--- This LSP can be installed via `npm`. Find further instructions on manual installation of the sql-language-server at [joe-re/sql-language-server](https://github.com/joe-re/sql-language-server). + +---@type vim.lsp.Config +return { + cmd = { 'sql-language-server', 'up', '--method', 'stdio' }, + filetypes = { 'sql', 'mysql' }, + root_markers = { '.sqllsrc.json' }, + settings = {}, +} diff --git a/.config/nvim/lsp/sqls.lua b/.config/nvim/lsp/sqls.lua new file mode 100644 index 0000000..994c45e --- /dev/null +++ b/.config/nvim/lsp/sqls.lua @@ -0,0 +1,19 @@ +---@brief +--- +--- https://github.com/sqls-server/sqls +--- +--- ```lua +--- vim.lsp.config('sqls', { +--- cmd = {"path/to/command", "-config", "path/to/config.yml"}; +--- ... +--- }) +--- ``` +--- Sqls can be installed via `go install github.com/sqls-server/sqls@latest`. Instructions for compiling Sqls from the source can be found at [sqls-server/sqls](https://github.com/sqls-server/sqls). + +---@type vim.lsp.Config +return { + cmd = { 'sqls' }, + filetypes = { 'sql', 'mysql' }, + root_markers = { 'config.yml' }, + settings = {}, +} diff --git a/.config/nvim/lsp/sqruff.lua b/.config/nvim/lsp/sqruff.lua new file mode 100644 index 0000000..5f87919 --- /dev/null +++ b/.config/nvim/lsp/sqruff.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/quarylabs/sqruff +--- +--- `sqruff` can be installed by following the instructions [here](https://github.com/quarylabs/sqruff?tab=readme-ov-file#installation) +--- + +---@type vim.lsp.Config +return { + cmd = { 'sqruff', 'lsp' }, + filetypes = { 'sql' }, + root_markers = { '.sqruff', '.git' }, +} diff --git a/.config/nvim/lsp/standardrb.lua b/.config/nvim/lsp/standardrb.lua new file mode 100644 index 0000000..25a94aa --- /dev/null +++ b/.config/nvim/lsp/standardrb.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/testdouble/standard +--- +--- Ruby Style Guide, with linter & automatic code fixer. + +---@type vim.lsp.Config +return { + cmd = { 'standardrb', '--lsp' }, + filetypes = { 'ruby' }, + root_markers = { 'Gemfile', '.git' }, +} diff --git a/.config/nvim/lsp/starlark_rust.lua b/.config/nvim/lsp/starlark_rust.lua new file mode 100644 index 0000000..78980db --- /dev/null +++ b/.config/nvim/lsp/starlark_rust.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- https://github.com/facebookexperimental/starlark-rust/ +--- The LSP part of `starlark-rust` is not currently documented, +--- but the implementation works well for linting. +--- This gives valuable warnings for potential issues in the code, +--- but does not support refactorings. +--- +--- It can be installed with cargo: https://crates.io/crates/starlark + +---@type vim.lsp.Config +return { + cmd = { 'starlark', '--lsp' }, + filetypes = { 'star', 'bzl', 'BUILD.bazel' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/starpls.lua b/.config/nvim/lsp/starpls.lua new file mode 100644 index 0000000..921ed71 --- /dev/null +++ b/.config/nvim/lsp/starpls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/withered-magic/starpls +--- +--- `starpls` is an LSP implementation for Starlark. Installation instructions can be found in the project's README. + +---@type vim.lsp.Config +return { + cmd = { 'starpls' }, + filetypes = { 'bzl' }, + root_markers = { 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel' }, +} diff --git a/.config/nvim/lsp/statix.lua b/.config/nvim/lsp/statix.lua new file mode 100644 index 0000000..5c1ef32 --- /dev/null +++ b/.config/nvim/lsp/statix.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/nerdypepper/statix +--- +--- lints and suggestions for the nix programming language + +---@type vim.lsp.Config +return { + cmd = { 'statix', 'check', '--stdin' }, + filetypes = { 'nix' }, + root_markers = { 'flake.nix', '.git' }, +} diff --git a/.config/nvim/lsp/steep.lua b/.config/nvim/lsp/steep.lua new file mode 100644 index 0000000..a617101 --- /dev/null +++ b/.config/nvim/lsp/steep.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/soutaro/steep +--- +--- `steep` is a static type checker for Ruby. +--- +--- You need `Steepfile` to make it work. Generate it with `steep init`. + +---@type vim.lsp.Config +return { + cmd = { 'steep', 'langserver' }, + filetypes = { 'ruby', 'eruby' }, + root_markers = { 'Steepfile', '.git' }, +} diff --git a/.config/nvim/lsp/stimulus_ls.lua b/.config/nvim/lsp/stimulus_ls.lua new file mode 100644 index 0000000..8319334 --- /dev/null +++ b/.config/nvim/lsp/stimulus_ls.lua @@ -0,0 +1,22 @@ +---@brief +--- +--- https://www.npmjs.com/package/stimulus-language-server +--- +--- `stimulus-lsp` can be installed via `npm`: +--- +--- ```sh +--- npm install -g stimulus-language-server +--- ``` +--- +--- or via `yarn`: +--- +--- ```sh +--- yarn global add stimulus-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'stimulus-language-server', '--stdio' }, + filetypes = { 'html', 'ruby', 'eruby', 'blade', 'php' }, + root_markers = { 'Gemfile', '.git' }, +} diff --git a/.config/nvim/lsp/stylelint_lsp.lua b/.config/nvim/lsp/stylelint_lsp.lua new file mode 100644 index 0000000..d17d295 --- /dev/null +++ b/.config/nvim/lsp/stylelint_lsp.lua @@ -0,0 +1,55 @@ +---@brief +--- +--- https://github.com/bmatcuk/stylelint-lsp +--- +--- `stylelint-lsp` can be installed via `npm`: +--- +--- ```sh +--- npm i -g stylelint-lsp +--- ``` +--- +--- Can be configured by passing a `settings.stylelintplus` object to vim.lsp.config('stylelint_lsp'): +--- +--- ```lua +--- vim.lsp.config('stylelint_lsp', { +--- settings = { +--- stylelintplus = { +--- -- see available options in stylelint-lsp documentation +--- } +--- } +--- }) +--- ``` + +local util = require 'lspconfig.util' + +local root_file = { + '.stylelintrc', + '.stylelintrc.mjs', + '.stylelintrc.cjs', + '.stylelintrc.js', + '.stylelintrc.json', + '.stylelintrc.yaml', + '.stylelintrc.yml', + 'stylelint.config.mjs', + 'stylelint.config.cjs', + 'stylelint.config.js', +} + +root_file = util.insert_package_json(root_file, 'stylelint') + +---@type vim.lsp.Config +return { + cmd = { 'stylelint-lsp', '--stdio' }, + filetypes = { + 'astro', + 'css', + 'html', + 'less', + 'scss', + 'sugarss', + 'vue', + 'wxss', + }, + root_markers = root_file, + settings = {}, +} diff --git a/.config/nvim/lsp/stylua.lua b/.config/nvim/lsp/stylua.lua new file mode 100644 index 0000000..33f7608 --- /dev/null +++ b/.config/nvim/lsp/stylua.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/JohnnyMorganz/StyLua +--- +--- A deterministic code formatter for Lua 5.1, 5.2, 5.3, 5.4, LuaJIT, Luau and CfxLua/FiveM Lua + +---@type vim.lsp.Config +return { + cmd = { 'stylua', '--lsp' }, + filetypes = { 'lua' }, + root_markers = { '.stylua.toml', 'stylua.toml', '.editorconfig' }, +} diff --git a/.config/nvim/lsp/stylua3p_ls.lua b/.config/nvim/lsp/stylua3p_ls.lua new file mode 100644 index 0000000..693e792 --- /dev/null +++ b/.config/nvim/lsp/stylua3p_ls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/antonk52/lua-3p-language-servers +--- +--- 3rd party Language Server for Stylua lua formatter + +---@type vim.lsp.Config +return { + cmd = { 'stylua-3p-language-server' }, + filetypes = { 'lua' }, + root_markers = { '.stylua.toml', 'stylua.toml' }, +} diff --git a/.config/nvim/lsp/superhtml.lua b/.config/nvim/lsp/superhtml.lua new file mode 100644 index 0000000..522b62b --- /dev/null +++ b/.config/nvim/lsp/superhtml.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/kristoff-it/superhtml +--- +--- HTML Language Server & Templating Language Library +--- +--- This LSP is designed to tightly adhere to the HTML spec as well as enforcing +--- some additional rules that ensure HTML clarity. +--- +--- If you want to disable HTML support for another HTML LSP, add the following +--- to your configuration: +--- +--- ```lua +--- vim.lsp.config('superhtml', { +--- filetypes = { 'superhtml' } +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'superhtml', 'lsp' }, + filetypes = { 'superhtml', 'html' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/svelte.lua b/.config/nvim/lsp/svelte.lua new file mode 100644 index 0000000..53f3e73 --- /dev/null +++ b/.config/nvim/lsp/svelte.lua @@ -0,0 +1,47 @@ +---@brief +--- +--- https://github.com/sveltejs/language-tools/tree/master/packages/language-server +--- +--- Note: assuming that [ts_ls](#ts_ls) is setup, full JavaScript/TypeScript support (find references, rename, etc of symbols in Svelte files when working in JS/TS files) requires per-project installation and configuration of [typescript-svelte-plugin](https://github.com/sveltejs/language-tools/tree/master/packages/typescript-plugin#usage). +--- +--- `svelte-language-server` can be installed via `npm`: +--- ```sh +--- npm install -g svelte-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'svelteserver', '--stdio' }, + filetypes = { 'svelte' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + -- Svelte LSP only supports file:// schema. https://github.com/sveltejs/language-tools/issues/2777 + if vim.uv.fs_stat(fname) ~= nil then + local root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock', 'deno.lock' } + root_markers = vim.fn.has('nvim-0.11.3') == 1 and { root_markers, { '.git' } } + or vim.list_extend(root_markers, { '.git' }) + -- We fallback to the current working directory if no project root is found + local project_root = vim.fs.root(bufnr, root_markers) or vim.fn.getcwd() + on_dir(project_root) + end + end, + on_attach = function(client, bufnr) + -- Workaround to trigger reloading JS/TS files + -- See https://github.com/sveltejs/language-tools/issues/2008 + vim.api.nvim_create_autocmd('BufWritePost', { + pattern = { '*.js', '*.ts' }, + group = vim.api.nvim_create_augroup('lspconfig.svelte', {}), + callback = function(ctx) + -- internal API to sync changes that have not yet been saved to the file system + client:notify('$/onDidChangeTsOrJsFile', { uri = ctx.match }) + end, + }) + vim.api.nvim_buf_create_user_command(bufnr, 'LspMigrateToSvelte5', function() + client:exec_cmd({ + title = 'Migrate Component to Svelte 5 Syntax', + command = 'migrate_to_svelte_5', + arguments = { vim.uri_from_bufnr(bufnr) }, + }) + end, { desc = 'Migrate Component to Svelte 5 Syntax' }) + end, +} diff --git a/.config/nvim/lsp/svlangserver.lua b/.config/nvim/lsp/svlangserver.lua new file mode 100644 index 0000000..83fc35b --- /dev/null +++ b/.config/nvim/lsp/svlangserver.lua @@ -0,0 +1,42 @@ +---@brief +--- +--- https://github.com/imc-trading/svlangserver +--- +--- Language server for SystemVerilog. +--- +--- `svlangserver` can be installed via `npm`: +--- +--- ```sh +--- $ npm install -g @imc-trading/svlangserver +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'svlangserver' }, + filetypes = { 'verilog', 'systemverilog' }, + root_markers = { '.svlangserver', '.git' }, + settings = { + systemverilog = { + includeIndexing = { '*.{v,vh,sv,svh}', '**/*.{v,vh,sv,svh}' }, + }, + }, + on_attach = function(client, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspSvlangserverBuildIndex', function() + client:exec_cmd({ + title = 'Build Index', + command = 'systemverilog.build_index', + }, { bufnr = bufnr }) + end, { + desc = 'Instructs language server to rerun indexing', + }) + vim.api.nvim_buf_create_user_command(bufnr, 'LspSvlangserverReportHierarchy', function() + client:exec_cmd({ + title = 'Build Index', + command = 'systemverilog.build_index', + arguments = { vim.fn.expand '' }, + }, { bufnr = bufnr }) + end, { + desc = 'Generates hierarchy for the given module', + }) + end, +} diff --git a/.config/nvim/lsp/svls.lua b/.config/nvim/lsp/svls.lua new file mode 100644 index 0000000..4fea117 --- /dev/null +++ b/.config/nvim/lsp/svls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/dalance/svls +--- +--- Language server for verilog and SystemVerilog +--- +--- `svls` can be installed via `cargo`: +--- ```sh +--- cargo install svls +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'svls' }, + filetypes = { 'verilog', 'systemverilog' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/swift_mesonls.lua b/.config/nvim/lsp/swift_mesonls.lua new file mode 100644 index 0000000..f2670d7 --- /dev/null +++ b/.config/nvim/lsp/swift_mesonls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/JCWasmx86/Swift-MesonLSP +--- +--- Meson language server written in Swift + +---@type vim.lsp.Config +return { + cmd = { 'Swift-MesonLSP', '--lsp' }, + filetypes = { 'meson' }, + root_markers = { 'meson.build', 'meson_options.txt', 'meson.options', '.git' }, +} diff --git a/.config/nvim/lsp/syntax_tree.lua b/.config/nvim/lsp/syntax_tree.lua new file mode 100644 index 0000000..ece52e4 --- /dev/null +++ b/.config/nvim/lsp/syntax_tree.lua @@ -0,0 +1,21 @@ +---@brief +--- +--- https://ruby-syntax-tree.github.io/syntax_tree/ +--- +--- A fast Ruby parser and formatter. +--- +--- Syntax Tree is a suite of tools built on top of the internal CRuby parser. It +--- provides the ability to generate a syntax tree from source, as well as the +--- tools necessary to inspect and manipulate that syntax tree. It can be used to +--- build formatters, linters, language servers, and more. +--- +--- ```sh +--- gem install syntax_tree +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'stree', 'lsp' }, + filetypes = { 'ruby' }, + root_markers = { '.streerc', 'Gemfile', '.git' }, +} diff --git a/.config/nvim/lsp/systemd_ls.lua b/.config/nvim/lsp/systemd_ls.lua new file mode 100644 index 0000000..b93f68a --- /dev/null +++ b/.config/nvim/lsp/systemd_ls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/psacawa/systemd-language-server +--- +--- `systemd-language-server` can be installed via `pip`: +--- ```sh +--- pip install systemd-language-server +--- ``` +--- +--- Language Server for Systemd unit files + +---@type vim.lsp.Config +return { + cmd = { 'systemd-language-server' }, + filetypes = { 'systemd' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/tabby_ml.lua b/.config/nvim/lsp/tabby_ml.lua new file mode 100644 index 0000000..e21db46 --- /dev/null +++ b/.config/nvim/lsp/tabby_ml.lua @@ -0,0 +1,18 @@ +---@brief +--- +--- https://tabby.tabbyml.com/blog/running-tabby-as-a-language-server +--- +--- Language server for Tabby, an opensource, self-hosted AI coding assistant. +--- +--- `tabby-agent` can be installed via `npm`: +--- +--- ```sh +--- npm install --global tabby-agent +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'tabby-agent', '--lsp', '--stdio' }, + filetypes = {}, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/tailwindcss.lua b/.config/nvim/lsp/tailwindcss.lua new file mode 100644 index 0000000..1608d52 --- /dev/null +++ b/.config/nvim/lsp/tailwindcss.lua @@ -0,0 +1,135 @@ +---@brief +--- https://github.com/tailwindlabs/tailwindcss-intellisense +--- +--- Tailwind CSS Language Server can be installed via npm: +--- +--- npm install -g @tailwindcss/language-server +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'tailwindcss-language-server', '--stdio' }, + -- filetypes copied and adjusted from tailwindcss-intellisense + filetypes = { + -- html + 'aspnetcorerazor', + 'astro', + 'astro-markdown', + 'blade', + 'clojure', + 'django-html', + 'htmldjango', + 'edge', + 'eelixir', -- vim ft + 'elixir', + 'ejs', + 'erb', + 'eruby', -- vim ft + 'gohtml', + 'gohtmltmpl', + 'haml', + 'handlebars', + 'hbs', + 'html', + 'htmlangular', + 'html-eex', + 'heex', + 'jade', + 'leaf', + 'liquid', + 'markdown', + 'mdx', + 'mustache', + 'njk', + 'nunjucks', + 'php', + 'razor', + 'slim', + 'twig', + -- css + 'css', + 'less', + 'postcss', + 'sass', + 'scss', + 'stylus', + 'sugarss', + -- js + 'javascript', + 'javascriptreact', + 'reason', + 'rescript', + 'typescript', + 'typescriptreact', + -- mixed + 'vue', + 'svelte', + 'templ', + }, + settings = { + tailwindCSS = { + validate = true, + lint = { + cssConflict = 'warning', + invalidApply = 'error', + invalidScreen = 'error', + invalidVariant = 'error', + invalidConfigPath = 'error', + invalidTailwindDirective = 'error', + recommendedVariantOrder = 'warning', + }, + classAttributes = { + 'class', + 'className', + 'class:list', + 'classList', + 'ngClass', + }, + includeLanguages = { + eelixir = 'html-eex', + elixir = 'phoenix-heex', + eruby = 'erb', + heex = 'phoenix-heex', + htmlangular = 'html', + templ = 'html', + }, + }, + }, + before_init = function(_, config) + if not config.settings then + config.settings = {} + end + if not config.settings.editor then + config.settings.editor = {} + end + if not config.settings.editor.tabSize then + config.settings.editor.tabSize = vim.lsp.util.get_effective_tabstop() + end + end, + workspace_required = true, + root_dir = function(bufnr, on_dir) + local root_files = { + -- Generic + 'tailwind.config.js', + 'tailwind.config.cjs', + 'tailwind.config.mjs', + 'tailwind.config.ts', + 'postcss.config.js', + 'postcss.config.cjs', + 'postcss.config.mjs', + 'postcss.config.ts', + -- Django + 'theme/static_src/tailwind.config.js', + 'theme/static_src/tailwind.config.cjs', + 'theme/static_src/tailwind.config.mjs', + 'theme/static_src/tailwind.config.ts', + 'theme/static_src/postcss.config.js', + -- Fallback for tailwind v4, where tailwind.config.* is not required anymore + '.git', + } + local fname = vim.api.nvim_buf_get_name(bufnr) + root_files = util.insert_package_json(root_files, 'tailwindcss', fname) + root_files = util.root_markers_with_field(root_files, { 'mix.lock', 'Gemfile.lock' }, 'tailwind', fname) + on_dir(vim.fs.dirname(vim.fs.find(root_files, { path = fname, upward = true })[1])) + end, +} diff --git a/.config/nvim/lsp/taplo.lua b/.config/nvim/lsp/taplo.lua new file mode 100644 index 0000000..694fafa --- /dev/null +++ b/.config/nvim/lsp/taplo.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://taplo.tamasfe.dev/cli/usage/language-server.html +--- +--- Language server for Taplo, a TOML toolkit. +--- +--- `taplo-cli` can be installed via `cargo`: +--- ```sh +--- cargo install --features lsp --locked taplo-cli +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'taplo', 'lsp', 'stdio' }, + filetypes = { 'toml' }, + root_markers = { '.taplo.toml', 'taplo.toml', '.git' }, +} diff --git a/.config/nvim/lsp/tblgen_lsp_server.lua b/.config/nvim/lsp/tblgen_lsp_server.lua new file mode 100644 index 0000000..444bf46 --- /dev/null +++ b/.config/nvim/lsp/tblgen_lsp_server.lua @@ -0,0 +1,25 @@ +---@brief +--- +--- https://mlir.llvm.org/docs/Tools/MLIRLSP/#tablegen-lsp-language-server--tblgen-lsp-server +--- +--- The Language Server for the LLVM TableGen language +--- +--- `tblgen-lsp-server` can be installed at the llvm-project repository (https://github.com/llvm/llvm-project) + +local function get_command() + local cmd = { 'tblgen-lsp-server' } + local files = vim.fs.find('tablegen_compile_commands.yml', { path = vim.fn.expand('%:p:h'), upward = true }) + if #files > 0 then + local file = files[1] + table.insert(cmd, '--tablegen-compilation-database=' .. vim.fs.dirname(file) .. '/tablegen_compile_commands.yml') + end + + return cmd +end + +---@type vim.lsp.Config +return { + cmd = get_command(), + filetypes = { 'tablegen' }, + root_markers = { 'tablegen_compile_commands.yml', '.git' }, +} diff --git a/.config/nvim/lsp/teal_ls.lua b/.config/nvim/lsp/teal_ls.lua new file mode 100644 index 0000000..f68a5a7 --- /dev/null +++ b/.config/nvim/lsp/teal_ls.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/teal-language/teal-language-server +--- +--- Install with: +--- ``` +--- luarocks install teal-language-server +--- ``` +--- +--- Optional Command Args: +--- * "--log-mode=by_date" - Enable logging in $HOME/.cache/teal-language-server. Log name will be date + pid of process +--- * "--log-mode=by_proj_path" - Enable logging in $HOME/.cache/teal-language-server. Log name will be project path + pid of process +--- * "--verbose=true" - Increases log level. Does nothing unless log-mode is set + +---@type vim.lsp.Config +return { + cmd = { + 'teal-language-server', + }, + filetypes = { + 'teal', + }, + root_markers = { 'tlconfig.lua' }, +} diff --git a/.config/nvim/lsp/templ.lua b/.config/nvim/lsp/templ.lua new file mode 100644 index 0000000..f5333cd --- /dev/null +++ b/.config/nvim/lsp/templ.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://templ.guide +--- +--- The official language server for the templ HTML templating language. + +---@type vim.lsp.Config +return { + cmd = { 'templ', 'lsp' }, + filetypes = { 'templ' }, + root_markers = { 'go.work', 'go.mod', '.git' }, +} diff --git a/.config/nvim/lsp/termux_language_server.lua b/.config/nvim/lsp/termux_language_server.lua new file mode 100644 index 0000000..d8799fe --- /dev/null +++ b/.config/nvim/lsp/termux_language_server.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/termux/termux-language-server +--- +--- Language server for various bash scripts such as Arch PKGBUILD, Gentoo ebuild, Termux build.sh, etc. + +---@type vim.lsp.Config +return { + cmd = { 'termux-language-server' }, + filetypes = { 'PKGBUILD' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/terraform_lsp.lua b/.config/nvim/lsp/terraform_lsp.lua new file mode 100644 index 0000000..bd25157 --- /dev/null +++ b/.config/nvim/lsp/terraform_lsp.lua @@ -0,0 +1,36 @@ +---@brief +--- +--- https://github.com/juliosueiras/terraform-lsp +--- +--- Terraform language server +--- Download a released binary from +--- https://github.com/juliosueiras/terraform-lsp/releases. +--- +--- From https://github.com/hashicorp/terraform-ls#terraform-ls-vs-terraform-lsp: +--- +--- Both HashiCorp and the maintainer of terraform-lsp expressed interest in +--- collaborating on a language server and are working towards a _long-term_ +--- goal of a single stable and feature-complete implementation. +--- +--- For the time being both projects continue to exist, giving users the +--- choice: +--- +--- - `terraform-ls` providing +--- - overall stability (by relying only on public APIs) +--- - compatibility with any provider and any Terraform >=0.12.0 currently +--- less features +--- - due to project being younger and relying on public APIs which may +--- not offer the same functionality yet +--- +--- - `terraform-lsp` providing +--- - currently more features +--- - compatibility with a single particular Terraform (0.12.20 at time of writing) +--- - configs designed for other 0.12 versions may work, but interpretation may be inaccurate +--- - less stability (due to reliance on Terraform's own internal packages) + +---@type vim.lsp.Config +return { + cmd = { 'terraform-lsp' }, + filetypes = { 'terraform', 'hcl' }, + root_markers = { '.terraform', '.git' }, +} diff --git a/.config/nvim/lsp/terraformls.lua b/.config/nvim/lsp/terraformls.lua new file mode 100644 index 0000000..f5897f2 --- /dev/null +++ b/.config/nvim/lsp/terraformls.lua @@ -0,0 +1,40 @@ +---@brief +--- +--- https://github.com/hashicorp/terraform-ls +--- +--- Terraform language server +--- Download a released binary from https://github.com/hashicorp/terraform-ls/releases. +--- +--- From https://github.com/hashicorp/terraform-ls#terraform-ls-vs-terraform-lsp: +--- +--- Both HashiCorp and the maintainer of terraform-lsp expressed interest in +--- collaborating on a language server and are working towards a _long-term_ +--- goal of a single stable and feature-complete implementation. +--- +--- For the time being both projects continue to exist, giving users the +--- choice: +--- +--- - `terraform-ls` providing +--- - overall stability (by relying only on public APIs) +--- - compatibility with any provider and any Terraform >=0.12.0 currently +--- less features +--- - due to project being younger and relying on public APIs which may +--- not offer the same functionality yet +--- +--- - `terraform-lsp` providing +--- - currently more features +--- - compatibility with a single particular Terraform (0.12.20 at time of writing) +--- - configs designed for other 0.12 versions may work, but interpretation may be inaccurate +--- - less stability (due to reliance on Terraform's own internal packages) +--- +--- Note, that the `settings` configuration option uses the `workspace/didChangeConfiguration` event, +--- [which is not supported by terraform-ls](https://github.com/hashicorp/terraform-ls/blob/main/docs/features.md). +--- Instead you should use `init_options` which passes the settings as part of the LSP initialize call +--- [as is required by terraform-ls](https://github.com/hashicorp/terraform-ls/blob/main/docs/SETTINGS.md#how-to-pass-settings). + +---@type vim.lsp.Config +return { + cmd = { 'terraform-ls', 'serve' }, + filetypes = { 'terraform', 'terraform-vars' }, + root_markers = { '.terraform', '.git' }, +} diff --git a/.config/nvim/lsp/texlab.lua b/.config/nvim/lsp/texlab.lua new file mode 100644 index 0000000..de21213 --- /dev/null +++ b/.config/nvim/lsp/texlab.lua @@ -0,0 +1,181 @@ +---@brief +--- +--- https://github.com/latex-lsp/texlab +--- +--- A completion engine built from scratch for (La)TeX. +--- +--- See https://github.com/latex-lsp/texlab/wiki/Configuration for configuration options. +--- +--- There are some non standard commands supported, namely: +--- `LspTexlabBuild`, `LspTexlabForward`, `LspTexlabCancelBuild`, +--- `LspTexlabDependencyGraph`, `LspTexlabCleanArtifacts`, +--- `LspTexlabCleanAuxiliary`, `LspTexlabFindEnvironments`, +--- and `LspTexlabChangeEnvironment`. + +local function buf_build(client, bufnr) + local win = vim.api.nvim_get_current_win() + local params = vim.lsp.util.make_position_params(win, client.offset_encoding) + client:request('textDocument/build', params, function(err, result) + if err then + error(tostring(err)) + end + local texlab_build_status = { + [0] = 'Success', + [1] = 'Error', + [2] = 'Failure', + [3] = 'Cancelled', + } + vim.notify('Build ' .. texlab_build_status[result.status], vim.log.levels.INFO) + end, bufnr) +end + +local function buf_search(client, bufnr) + local win = vim.api.nvim_get_current_win() + local params = vim.lsp.util.make_position_params(win, client.offset_encoding) + client:request('textDocument/forwardSearch', params, function(err, result) + if err then + error(tostring(err)) + end + local texlab_forward_status = { + [0] = 'Success', + [1] = 'Error', + [2] = 'Failure', + [3] = 'Unconfigured', + } + vim.notify('Search ' .. texlab_forward_status[result.status], vim.log.levels.INFO) + end, bufnr) +end + +local function buf_cancel_build(client, bufnr) + return client:exec_cmd({ + title = 'cancel', + command = 'texlab.cancelBuild', + }, { bufnr = bufnr }) +end + +local function dependency_graph(client) + client:exec_cmd({ command = 'texlab.showDependencyGraph' }, { bufnr = 0 }, function(err, result) + if err then + return vim.notify(err.code .. ': ' .. err.message, vim.log.levels.ERROR) + end + vim.notify('The dependency graph has been generated:\n' .. result, vim.log.levels.INFO) + end) +end + +local function command_factory(cmd) + local cmd_tbl = { + Auxiliary = 'texlab.cleanAuxiliary', + Artifacts = 'texlab.cleanArtifacts', + } + return function(client, bufnr) + return client:exec_cmd({ + title = ('clean_%s'):format(cmd), + command = cmd_tbl[cmd], + arguments = { { uri = vim.uri_from_bufnr(bufnr) } }, + }, { bufnr = bufnr }, function(err, _) + if err then + vim.notify(('Failed to clean %s files: %s'):format(cmd, err.message), vim.log.levels.ERROR) + else + vim.notify(('Command %s executed successfully'):format(cmd), vim.log.levels.INFO) + end + end) + end +end + +local function buf_find_envs(client, bufnr) + local win = vim.api.nvim_get_current_win() + client:exec_cmd({ + command = 'texlab.findEnvironments', + arguments = { vim.lsp.util.make_position_params(win, client.offset_encoding) }, + }, { bufnr = bufnr }, function(err, result) + if err then + return vim.notify(err.code .. ': ' .. err.message, vim.log.levels.ERROR) + end + local env_names = {} + local max_length = 1 + for _, env in ipairs(result) do + table.insert(env_names, env.name.text) + max_length = math.max(max_length, string.len(env.name.text)) + end + for i, name in ipairs(env_names) do + env_names[i] = string.rep(' ', i - 1) .. name + end + vim.lsp.util.open_floating_preview(env_names, '', { + height = #env_names, + width = math.max((max_length + #env_names - 1), (string.len 'Environments')), + focusable = false, + focus = false, + title = 'Environments', + }) + end) +end + +local function buf_change_env(client, bufnr) + vim.ui.input({ prompt = 'New environment name: ' }, function(input) + if not input or input == '' then + return vim.notify('No environment name provided', vim.log.levels.WARN) + end + local pos = vim.api.nvim_win_get_cursor(0) + return client:exec_cmd({ + title = 'change_environment', + command = 'texlab.changeEnvironment', + arguments = { + { + textDocument = { uri = vim.uri_from_bufnr(bufnr) }, + position = { line = pos[1] - 1, character = pos[2] }, + newName = tostring(input), + }, + }, + }, { bufnr = bufnr }) + end) +end + +---@type vim.lsp.Config +return { + cmd = { 'texlab' }, + filetypes = { 'tex', 'plaintex', 'bib' }, + root_markers = { '.git', '.latexmkrc', 'latexmkrc', '.texlabroot', 'texlabroot', 'Tectonic.toml' }, + settings = { + texlab = { + rootDirectory = nil, + build = { + executable = 'latexmk', + args = { '-pdf', '-interaction=nonstopmode', '-synctex=1', '%f' }, + onSave = false, + forwardSearchAfter = false, + }, + forwardSearch = { + executable = nil, + args = {}, + }, + chktex = { + onOpenAndSave = false, + onEdit = false, + }, + diagnosticsDelay = 300, + latexFormatter = 'latexindent', + latexindent = { + ['local'] = nil, -- local is a reserved keyword + modifyLineBreaks = false, + }, + bibtexFormatter = 'texlab', + formatterLineLength = 80, + }, + }, + on_attach = function(client, bufnr) + for _, cmd in ipairs({ + { name = 'TexlabBuild', fn = buf_build, desc = 'Build the current buffer' }, + { name = 'TexlabForward', fn = buf_search, desc = 'Forward search from current position' }, + { name = 'TexlabCancelBuild', fn = buf_cancel_build, desc = 'Cancel the current build' }, + { name = 'TexlabDependencyGraph', fn = dependency_graph, desc = 'Show the dependency graph' }, + { name = 'TexlabCleanArtifacts', fn = command_factory('Artifacts'), desc = 'Clean the artifacts' }, + { name = 'TexlabCleanAuxiliary', fn = command_factory('Auxiliary'), desc = 'Clean the auxiliary files' }, + { name = 'TexlabFindEnvironments', fn = buf_find_envs, desc = 'Find the environments at current position' }, + { name = 'TexlabChangeEnvironment', fn = buf_change_env, desc = 'Change the environment at current position' }, + }) do + vim.api.nvim_buf_create_user_command(bufnr, 'Lsp' .. cmd.name, function() + cmd.fn(client, bufnr) + end, { desc = cmd.desc }) + end + end, +} diff --git a/.config/nvim/lsp/textlsp.lua b/.config/nvim/lsp/textlsp.lua new file mode 100644 index 0000000..0a2b5ed --- /dev/null +++ b/.config/nvim/lsp/textlsp.lua @@ -0,0 +1,45 @@ +---@brief +--- +--- https://github.com/hangyav/textLSP +--- +--- `textLSP` is an LSP server for text spell and grammar checking with various AI tools. +--- It supports multiple text file formats, such as LaTeX, Org or txt. +--- +--- For the available text analyzer tools and their configuration, see the [GitHub](https://github.com/hangyav/textLSP) page. +--- By default, all analyzers are disabled in textLSP, since most of them need special settings. +--- For quick testing, LanguageTool is enabled in the default `nvim-lspconfig` configuration. +--- +--- To install run: `pip install textLSP` + +---@type vim.lsp.Config +return { + cmd = { 'textlsp' }, + filetypes = { 'text', 'tex', 'org' }, + root_markers = { '.git' }, + settings = { + textLSP = { + analysers = { + -- by default all analysers are disabled in textLSP, since many of them + -- need custom settings. See github page. LanguageTool is enaled here + -- only for a quick test. + languagetool = { + enabled = true, + check_text = { + on_open = true, + on_save = true, + on_change = false, + }, + }, + }, + documents = { + org = { + org_todo_keywords = { + 'TODO', + 'IN_PROGRESS', + 'DONE', + }, + }, + }, + }, + }, +} diff --git a/.config/nvim/lsp/tflint.lua b/.config/nvim/lsp/tflint.lua new file mode 100644 index 0000000..60af7a8 --- /dev/null +++ b/.config/nvim/lsp/tflint.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://github.com/terraform-linters/tflint +--- +--- A pluggable Terraform linter that can act as lsp server. +--- Installation instructions can be found in https://github.com/terraform-linters/tflint#installation. + +---@type vim.lsp.Config +return { + cmd = { 'tflint', '--langserver' }, + filetypes = { 'terraform' }, + root_markers = { '.terraform', '.git', '.tflint.hcl' }, +} diff --git a/.config/nvim/lsp/theme_check.lua b/.config/nvim/lsp/theme_check.lua new file mode 100644 index 0000000..7d8dc88 --- /dev/null +++ b/.config/nvim/lsp/theme_check.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/Shopify/shopify-cli +--- +--- `theme-check-language-server` is bundled with `shopify-cli` or it can also be installed via +--- +--- https://github.com/Shopify/theme-check#installation +--- +--- **NOTE:** +--- If installed via Homebrew, `cmd` must be set to 'theme-check-liquid-server' +--- +--- ```lua +--- vim.lsp.config('theme_check, { +--- cmd = { 'theme-check-liquid-server' } +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'theme-check-language-server', '--stdio' }, + filetypes = { 'liquid' }, + root_markers = { '.theme-check.yml' }, + settings = {}, +} diff --git a/.config/nvim/lsp/thriftls.lua b/.config/nvim/lsp/thriftls.lua new file mode 100644 index 0000000..234378b --- /dev/null +++ b/.config/nvim/lsp/thriftls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/joyme123/thrift-ls +--- +--- you can install thriftls by mason or download binary here: https://github.com/joyme123/thrift-ls/releases + +---@type vim.lsp.Config +return { + cmd = { 'thriftls' }, + filetypes = { 'thrift' }, + root_markers = { '.thrift' }, +} diff --git a/.config/nvim/lsp/tilt_ls.lua b/.config/nvim/lsp/tilt_ls.lua new file mode 100644 index 0000000..bc91d2f --- /dev/null +++ b/.config/nvim/lsp/tilt_ls.lua @@ -0,0 +1,18 @@ +---@brief +--- +--- https://github.com/tilt-dev/tilt +--- +--- Tilt language server. +--- +--- You might need to add filetype detection manually: +--- +--- ```vim +--- autocmd BufRead Tiltfile setf=tiltfile +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'tilt', 'lsp', 'start' }, + filetypes = { 'tiltfile' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/tinymist.lua b/.config/nvim/lsp/tinymist.lua new file mode 100644 index 0000000..f02ff19 --- /dev/null +++ b/.config/nvim/lsp/tinymist.lua @@ -0,0 +1,72 @@ +---@brief +--- +--- https://github.com/Myriad-Dreamin/tinymist +--- An integrated language service for Typst [taɪpst]. You can also call it "微霭" [wēi ǎi] in Chinese. +--- +--- Currently some of Tinymist's workspace commands are supported, namely: +--- `LspTinymistExportSvg`, `LspTinymistExportPng`, `LspTinymistExportPdf +--- `LspTinymistExportMarkdown`, `LspTinymistExportText`, `LspTinymistExportQuery`, +--- `LspTinymistExportAnsiHighlight`, `LspTinymistGetServerInfo`, +--- `LspTinymistGetDocumentTrace`, `LspTinymistGetWorkspaceLabels`, and +--- `LspTinymistGetDocumentMetrics`. + +---@param command_name string +---@param client vim.lsp.Client +---@param bufnr integer +---@return fun():nil run_tinymist_command, string cmd_name, string cmd_desc +local function create_tinymist_command(command_name, client, bufnr) + local export_type = command_name:match 'tinymist%.export(%w+)' + local info_type = command_name:match 'tinymist%.(%w+)' + if info_type and info_type:match '^get' then + info_type = info_type:gsub('^get', 'Get') + end + local cmd_display = export_type or info_type + ---@return nil + local function run_tinymist_command() + local arguments = { vim.api.nvim_buf_get_name(bufnr) } + local title_str = export_type and ('Export ' .. cmd_display) or cmd_display + ---@type lsp.Handler + local function handler(err, res) + if err then + return vim.notify(err.code .. ': ' .. err.message, vim.log.levels.ERROR) + end + -- If exporting, show the string result; else, show the table for inspection + vim.notify(export_type and res or vim.inspect(res), vim.log.levels.INFO) + end + return client:exec_cmd({ + title = title_str, + command = command_name, + arguments = arguments, + }, { bufnr = bufnr }, handler) + end + -- Construct a readable command name/desc + local cmd_name = export_type and ('TinymistExport' .. cmd_display) or ('Tinymist' .. cmd_display) ---@type string + local cmd_desc = export_type and ('Export to ' .. cmd_display) or ('Get ' .. cmd_display) ---@type string + return run_tinymist_command, cmd_name, cmd_desc +end + +---@type vim.lsp.Config +return { + cmd = { 'tinymist' }, + filetypes = { 'typst' }, + root_markers = { '.git' }, + on_attach = function(client, bufnr) + for _, command in ipairs { + 'tinymist.exportSvg', + 'tinymist.exportPng', + 'tinymist.exportPdf', + -- 'tinymist.exportHtml', -- Use typst 0.13 + 'tinymist.exportMarkdown', + 'tinymist.exportText', + 'tinymist.exportQuery', + 'tinymist.exportAnsiHighlight', + 'tinymist.getServerInfo', + 'tinymist.getDocumentTrace', + 'tinymist.getWorkspaceLabels', + 'tinymist.getDocumentMetrics', + } do + local cmd_func, cmd_name, cmd_desc = create_tinymist_command(command, client, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'Lsp' .. cmd_name, cmd_func, { nargs = 0, desc = cmd_desc }) + end + end, +} diff --git a/.config/nvim/lsp/tofu_ls.lua b/.config/nvim/lsp/tofu_ls.lua new file mode 100644 index 0000000..5c01f66 --- /dev/null +++ b/.config/nvim/lsp/tofu_ls.lua @@ -0,0 +1,11 @@ +---@brief +--- +--- [OpenTofu Language Server](https://github.com/opentofu/tofu-ls) +--- + +---@type vim.lsp.Config +return { + cmd = { 'tofu-ls', 'serve' }, + filetypes = { 'opentofu', 'opentofu-vars' }, + root_markers = { '.terraform', '.git' }, +} diff --git a/.config/nvim/lsp/tombi.lua b/.config/nvim/lsp/tombi.lua new file mode 100644 index 0000000..1f91ba7 --- /dev/null +++ b/.config/nvim/lsp/tombi.lua @@ -0,0 +1,13 @@ +---@brief +--- +--- https://tombi-toml.github.io/tombi/ +--- +--- Language server for Tombi, a TOML toolkit. +--- + +---@type vim.lsp.Config +return { + cmd = { 'tombi', 'lsp' }, + filetypes = { 'toml' }, + root_markers = { 'tombi.toml', 'pyproject.toml', '.git' }, +} diff --git a/.config/nvim/lsp/ts_ls.lua b/.config/nvim/lsp/ts_ls.lua new file mode 100644 index 0000000..0b5a0a3 --- /dev/null +++ b/.config/nvim/lsp/ts_ls.lua @@ -0,0 +1,126 @@ +---@brief +--- +--- https://github.com/typescript-language-server/typescript-language-server +--- +--- `ts_ls`, aka `typescript-language-server`, is a Language Server Protocol implementation for TypeScript wrapping `tsserver`. Note that `ts_ls` is not `tsserver`. +--- +--- `typescript-language-server` depends on `typescript`. Both packages can be installed via `npm`: +--- ```sh +--- npm install -g typescript typescript-language-server +--- ``` +--- +--- To configure typescript language server, add a +--- [`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) or +--- [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to the root of your +--- project. +--- +--- Here's an example that disables type checking in JavaScript files. +--- +--- ```json +--- { +--- "compilerOptions": { +--- "module": "commonjs", +--- "target": "es6", +--- "checkJs": false +--- }, +--- "exclude": [ +--- "node_modules" +--- ] +--- } +--- ``` +--- +--- Use the `:LspTypescriptSourceAction` command to see "whole file" ("source") code-actions such as: +--- - organize imports +--- - remove unused code +--- +--- ### Monorepo support +--- +--- `ts_ls` supports monorepos by default. It will automatically find the `tsconfig.json` or `jsconfig.json` corresponding to the package you are working on. +--- This works without the need of spawning multiple instances of `ts_ls`, saving memory. +--- +--- It is recommended to use the same version of TypeScript in all packages, and therefore have it available in your workspace root. The location of the TypeScript binary will be determined automatically, but only once. +--- + +---@type vim.lsp.Config +return { + init_options = { hostInfo = 'neovim' }, + cmd = { 'typescript-language-server', '--stdio' }, + filetypes = { + 'javascript', + 'javascriptreact', + 'javascript.jsx', + 'typescript', + 'typescriptreact', + 'typescript.tsx', + }, + root_dir = function(bufnr, on_dir) + -- The project root is where the LSP can be started from + -- As stated in the documentation above, this LSP supports monorepos and simple projects. + -- We select then from the project root, which is identified by the presence of a package + -- manager lock file. + local root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' } + -- Give the root markers equal priority by wrapping them in a table + root_markers = vim.fn.has('nvim-0.11.3') == 1 and { root_markers, { '.git' } } + or vim.list_extend(root_markers, { '.git' }) + -- We fallback to the current working directory if no project root is found + local project_root = vim.fs.root(bufnr, root_markers) or vim.fn.getcwd() + + on_dir(project_root) + end, + handlers = { + -- handle rename request for certain code actions like extracting functions / types + ['_typescript.rename'] = function(_, result, ctx) + local client = assert(vim.lsp.get_client_by_id(ctx.client_id)) + vim.lsp.util.show_document({ + uri = result.textDocument.uri, + range = { + start = result.position, + ['end'] = result.position, + }, + }, client.offset_encoding) + vim.lsp.buf.rename() + return vim.NIL + end, + }, + commands = { + ['editor.action.showReferences'] = function(command, ctx) + local client = assert(vim.lsp.get_client_by_id(ctx.client_id)) + local file_uri, position, references = unpack(command.arguments) + + local quickfix_items = vim.lsp.util.locations_to_items(references, client.offset_encoding) + vim.fn.setqflist({}, ' ', { + title = command.title, + items = quickfix_items, + context = { + command = command, + bufnr = ctx.bufnr, + }, + }) + + vim.lsp.util.show_document({ + uri = file_uri, + range = { + start = position, + ['end'] = position, + }, + }, client.offset_encoding) + + vim.cmd('botright copen') + end, + }, + on_attach = function(client, bufnr) + -- ts_ls provides `source.*` code actions that apply to the whole file. These only appear in + -- `vim.lsp.buf.code_action()` if specified in `context.only`. + vim.api.nvim_buf_create_user_command(bufnr, 'LspTypescriptSourceAction', function() + local source_actions = vim.tbl_filter(function(action) + return vim.startswith(action, 'source.') + end, client.server_capabilities.codeActionProvider.codeActionKinds) + + vim.lsp.buf.code_action({ + context = { + only = source_actions, + }, + }) + end, {}) + end, +} diff --git a/.config/nvim/lsp/ts_query_ls.lua b/.config/nvim/lsp/ts_query_ls.lua new file mode 100644 index 0000000..665b2d8 --- /dev/null +++ b/.config/nvim/lsp/ts_query_ls.lua @@ -0,0 +1,43 @@ +---@brief +--- +--- https://github.com/ribru17/ts_query_ls +--- Can be configured by passing a "settings" object to `vim.lsp.config('ts_query_ls', {})`: +--- ```lua +--- vim.lsp.config('ts_query_ls', { +--- init_options = { +--- parser_install_directories = { +--- '/my/parser/install/dir', +--- }, +--- -- This setting is provided by default +--- parser_aliases = { +--- ecma = 'javascript', +--- jsx = 'javascript', +--- php_only = 'php', +--- }, +--- }, +--- }) +--- ``` + +-- Disable the (slow) built-in query linter, which will show duplicate diagnostics. This must be done before the query +-- ftplugin is sourced. +vim.g.query_lint_on = {} + +---@type vim.lsp.Config +return { + cmd = { 'ts_query_ls' }, + filetypes = { 'query' }, + root_markers = { '.tsqueryrc.json', '.git' }, + init_options = { + parser_aliases = { + ecma = 'javascript', + jsx = 'javascript', + php_only = 'php', + }, + parser_install_directories = { + vim.fn.stdpath('data') .. '/site/parser', + }, + }, + on_attach = function(_, buf) + vim.bo[buf].omnifunc = 'v:lua.vim.lsp.omnifunc' + end, +} diff --git a/.config/nvim/lsp/tsgo.lua b/.config/nvim/lsp/tsgo.lua new file mode 100644 index 0000000..b99c731 --- /dev/null +++ b/.config/nvim/lsp/tsgo.lua @@ -0,0 +1,42 @@ +---@brief +--- +--- https://github.com/microsoft/typescript-go +--- +--- `typescript-go` is experimental port of the TypeScript compiler (tsc) and language server (tsserver) to the Go programming language. +--- +--- `tsgo` can be installed via npm `npm install @typescript/native-preview`. +--- +--- ### Monorepo support +--- +--- `tsgo` supports monorepos by default. It will automatically find the `tsconfig.json` or `jsconfig.json` corresponding to the package you are working on. +--- This works without the need of spawning multiple instances of `tsgo`, saving memory. +--- +--- It is recommended to use the same version of TypeScript in all packages, and therefore have it available in your workspace root. The location of the TypeScript binary will be determined automatically, but only once. +--- + +---@type vim.lsp.Config +return { + cmd = { 'tsgo', '--lsp', '--stdio' }, + filetypes = { + 'javascript', + 'javascriptreact', + 'javascript.jsx', + 'typescript', + 'typescriptreact', + 'typescript.tsx', + }, + root_dir = function(bufnr, on_dir) + -- The project root is where the LSP can be started from + -- As stated in the documentation above, this LSP supports monorepos and simple projects. + -- We select then from the project root, which is identified by the presence of a package + -- manager lock file. + local root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' } + -- Give the root markers equal priority by wrapping them in a table + root_markers = vim.fn.has('nvim-0.11.3') == 1 and { root_markers, { '.git' } } + or vim.list_extend(root_markers, { '.git' }) + -- We fallback to the current working directory if no project root is found + local project_root = vim.fs.root(bufnr, root_markers) or vim.fn.getcwd() + + on_dir(project_root) + end, +} diff --git a/.config/nvim/lsp/tsp_server.lua b/.config/nvim/lsp/tsp_server.lua new file mode 100644 index 0000000..bfa8470 --- /dev/null +++ b/.config/nvim/lsp/tsp_server.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/microsoft/typespec +--- +--- The language server for TypeSpec, a language for defining cloud service APIs and shapes. +--- +--- `tsp-server` can be installed together with the typespec compiler via `npm`: +--- ```sh +--- npm install -g @typespec/compiler +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'tsp-server', '--stdio' }, + filetypes = { 'typespec' }, + root_markers = { 'tspconfig.yaml', '.git' }, +} diff --git a/.config/nvim/lsp/ttags.lua b/.config/nvim/lsp/ttags.lua new file mode 100644 index 0000000..a329999 --- /dev/null +++ b/.config/nvim/lsp/ttags.lua @@ -0,0 +1,10 @@ +---@brief +--- +--- https://github.com/npezza93/ttags + +---@type vim.lsp.Config +return { + cmd = { 'ttags', 'lsp' }, + filetypes = { 'ruby', 'rust', 'javascript', 'haskell' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/turbo_ls.lua b/.config/nvim/lsp/turbo_ls.lua new file mode 100644 index 0000000..3fdeca9 --- /dev/null +++ b/.config/nvim/lsp/turbo_ls.lua @@ -0,0 +1,22 @@ +---@brief +--- +--- https://www.npmjs.com/package/turbo-language-server +--- +--- `turbo-language-server` can be installed via `npm`: +--- +--- ```sh +--- npm install -g turbo-language-server +--- ``` +--- +--- or via `yarn`: +--- +--- ```sh +--- yarn global add turbo-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'turbo-language-server', '--stdio' }, + filetypes = { 'html', 'ruby', 'eruby', 'blade', 'php' }, + root_markers = { 'Gemfile', '.git' }, +} diff --git a/.config/nvim/lsp/turtle_ls.lua b/.config/nvim/lsp/turtle_ls.lua new file mode 100644 index 0000000..d44b27c --- /dev/null +++ b/.config/nvim/lsp/turtle_ls.lua @@ -0,0 +1,39 @@ +---@brief +--- +--- https://github.com/stardog-union/stardog-language-servers/tree/master/packages/turtle-language-server +--- `turtle-language-server`, An editor-agnostic server providing language intelligence (diagnostics, hover tooltips, etc.) for the W3C standard Turtle RDF syntax via the Language Server Protocol. +--- installable via npm install -g turtle-language-server or yarn global add turtle-language-server. +--- requires node. + +local bin_name = 'turtle-language-server' +local bin_path = os.getenv 'NVM_BIN' +local full_path +if bin_path == nil then + local paths = {} + local sep = ':' + if vim.fn.has 'win32' == 1 then + sep = ';' + end + local path = os.getenv 'PATH' + if path ~= nil then + for str in string.gmatch(path, '([^' .. sep .. ']+)') do + paths[#paths + 1] = str + end + end + for _, p in ipairs(paths) do + local candidate = table.concat({ p, bin_name }, '/') + if (vim.uv.fs_stat(candidate) or {}).type == 'file' then + full_path = candidate + break + end + end +else + full_path = table.concat({ bin_path, bin_name }, '/') +end + +---@type vim.lsp.Config +return { + cmd = { 'node', full_path, '--stdio' }, + filetypes = { 'turtle', 'ttl' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/tvm_ffi_navigator.lua b/.config/nvim/lsp/tvm_ffi_navigator.lua new file mode 100644 index 0000000..992e853 --- /dev/null +++ b/.config/nvim/lsp/tvm_ffi_navigator.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/tqchen/ffi-navigator +--- +--- The Language Server for FFI calls in TVM to be able jump between python and C++ +--- +--- FFI navigator can be installed with `pip install ffi-navigator`, buf for more details, please see +--- https://github.com/tqchen/ffi-navigator?tab=readme-ov-file#installation + +---@type vim.lsp.Config +return { + cmd = { 'python', '-m', 'ffi_navigator.langserver' }, + filetypes = { 'python', 'cpp' }, + root_markers = { 'pyproject.toml', '.git' }, +} diff --git a/.config/nvim/lsp/twiggy_language_server.lua b/.config/nvim/lsp/twiggy_language_server.lua new file mode 100644 index 0000000..7b28249 --- /dev/null +++ b/.config/nvim/lsp/twiggy_language_server.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/moetelo/twiggy +--- +--- `twiggy-language-server` can be installed via `npm`: +--- ```sh +--- npm install -g twiggy-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'twiggy-language-server', '--stdio' }, + filetypes = { 'twig' }, + root_markers = { 'composer.json', '.git' }, +} diff --git a/.config/nvim/lsp/ty.lua b/.config/nvim/lsp/ty.lua new file mode 100644 index 0000000..6309771 --- /dev/null +++ b/.config/nvim/lsp/ty.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/astral-sh/ty +--- +--- A Language Server Protocol implementation for ty, an extremely fast Python type checker and language server, written in Rust. +--- +--- For installation instructions, please refer to the [ty documentation](https://github.com/astral-sh/ty/blob/main/README.md#getting-started). + +---@type vim.lsp.Config +return { + cmd = { 'ty', 'server' }, + filetypes = { 'python' }, + root_markers = { 'ty.toml', 'pyproject.toml', 'setup.py', 'setup.cfg', 'requirements.txt', '.git' }, +} diff --git a/.config/nvim/lsp/typeprof.lua b/.config/nvim/lsp/typeprof.lua new file mode 100644 index 0000000..7fa3441 --- /dev/null +++ b/.config/nvim/lsp/typeprof.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/ruby/typeprof +--- +--- `typeprof` is the built-in analysis and LSP tool for Ruby 3.1+. + +---@type vim.lsp.Config +return { + cmd = { 'typeprof', '--lsp', '--stdio' }, + filetypes = { 'ruby', 'eruby' }, + root_markers = { 'Gemfile', '.git' }, +} diff --git a/.config/nvim/lsp/typos_lsp.lua b/.config/nvim/lsp/typos_lsp.lua new file mode 100644 index 0000000..23b39f2 --- /dev/null +++ b/.config/nvim/lsp/typos_lsp.lua @@ -0,0 +1,15 @@ +---@brief +--- +--- https://github.com/crate-ci/typos +--- https://github.com/tekumara/typos-lsp +--- +--- A Language Server Protocol implementation for Typos, a low false-positive +--- source code spell checker, written in Rust. Download it from the releases page +--- on GitHub: https://github.com/tekumara/typos-lsp/releases + +---@type vim.lsp.Config +return { + cmd = { 'typos-lsp' }, + root_markers = { 'typos.toml', '_typos.toml', '.typos.toml', 'pyproject.toml', 'Cargo.toml' }, + settings = {}, +} diff --git a/.config/nvim/lsp/typst_lsp.lua b/.config/nvim/lsp/typst_lsp.lua new file mode 100644 index 0000000..966528b --- /dev/null +++ b/.config/nvim/lsp/typst_lsp.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/nvarner/typst-lsp +--- +--- Language server for Typst. + +---@type vim.lsp.Config +return { + cmd = { 'typst-lsp' }, + filetypes = { 'typst' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/uiua.lua b/.config/nvim/lsp/uiua.lua new file mode 100644 index 0000000..eb18893 --- /dev/null +++ b/.config/nvim/lsp/uiua.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/uiua-lang/uiua/ +--- +--- The builtin language server of the Uiua interpreter. +--- +--- The Uiua interpreter can be installed with `cargo install uiua` + +---@type vim.lsp.Config +return { + cmd = { 'uiua', 'lsp' }, + filetypes = { 'uiua' }, + root_markers = { 'main.ua', '.fmt.ua', '.git' }, +} diff --git a/.config/nvim/lsp/ungrammar_languageserver.lua b/.config/nvim/lsp/ungrammar_languageserver.lua new file mode 100644 index 0000000..dc557aa --- /dev/null +++ b/.config/nvim/lsp/ungrammar_languageserver.lua @@ -0,0 +1,26 @@ +---@brief +--- +--- https://github.com/binhtran432k/ungrammar-language-features +--- Language Server for Ungrammar. +--- +--- Ungrammar Language Server can be installed via npm: +--- ```sh +--- npm i ungrammar-languageserver -g +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'ungrammar-languageserver', '--stdio' }, + filetypes = { 'ungrammar' }, + root_markers = { '.git' }, + settings = { + ungrammar = { + validate = { + enable = true, + }, + format = { + enable = true, + }, + }, + }, +} diff --git a/.config/nvim/lsp/unison.lua b/.config/nvim/lsp/unison.lua new file mode 100644 index 0000000..e7434a5 --- /dev/null +++ b/.config/nvim/lsp/unison.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- https://github.com/unisonweb/unison/blob/trunk/docs/language-server.markdown + +local util = require 'lspconfig.util' + +---@type vim.lsp.Config +return { + cmd = { 'nc', 'localhost', os.getenv 'UNISON_LSP_PORT' or '5757' }, + filetypes = { 'unison' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + on_dir(util.root_pattern('*.u')(fname)) + end, + settings = {}, +} diff --git a/.config/nvim/lsp/unocss.lua b/.config/nvim/lsp/unocss.lua new file mode 100644 index 0000000..95bb105 --- /dev/null +++ b/.config/nvim/lsp/unocss.lua @@ -0,0 +1,41 @@ +---@brief +--- +--- https://github.com/xna00/unocss-language-server +--- +--- UnoCSS Language Server can be installed via npm: +--- ```sh +--- npm i unocss-language-server -g +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'unocss-language-server', '--stdio' }, + -- copied from https://github.com/unocss/unocss/blob/35297359bf61917bda499db86e3728a7ebd05d6c/packages/vscode/src/autocomplete.ts#L12-L35 + filetypes = { + 'erb', + 'haml', + 'hbs', + 'html', + 'css', + 'postcss', + 'javascript', + 'javascriptreact', + 'markdown', + 'ejs', + 'php', + 'svelte', + 'typescript', + 'typescriptreact', + 'vue-html', + 'vue', + 'sass', + 'scss', + 'less', + 'stylus', + 'astro', + 'rescript', + 'rust', + }, + workspace_required = true, + root_markers = { 'unocss.config.js', 'unocss.config.ts', 'uno.config.js', 'uno.config.ts' }, +} diff --git a/.config/nvim/lsp/uvls.lua b/.config/nvim/lsp/uvls.lua new file mode 100644 index 0000000..8987a2f --- /dev/null +++ b/.config/nvim/lsp/uvls.lua @@ -0,0 +1,23 @@ +---@brief +--- +--- https://codeberg.org/caradhras/uvls +--- Language server for UVL, written using tree sitter and rust. +--- You can install the server easily using cargo: +--- ```sh +--- git clone https://codeberg.org/caradhras/uvls +--- cd uvls +--- cargo install --path . +--- ``` +--- +--- Note: To activate properly nvim needs to know the uvl filetype. +--- You can add it via: +--- ```lua +--- vim.cmd([[au BufRead,BufNewFile *.uvl setfiletype uvl]]) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'uvls' }, + filetypes = { 'uvl' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/v_analyzer.lua b/.config/nvim/lsp/v_analyzer.lua new file mode 100644 index 0000000..f46d3fc --- /dev/null +++ b/.config/nvim/lsp/v_analyzer.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/vlang/v-analyzer +--- +--- V language server. +--- +--- `v-analyzer` can be installed by following the instructions [here](https://github.com/vlang/v-analyzer#installation). + +---@type vim.lsp.Config +return { + cmd = { 'v-analyzer' }, + filetypes = { 'v', 'vsh', 'vv' }, + root_markers = { 'v.mod', '.git' }, +} diff --git a/.config/nvim/lsp/vacuum.lua b/.config/nvim/lsp/vacuum.lua new file mode 100644 index 0000000..f5c5bd0 --- /dev/null +++ b/.config/nvim/lsp/vacuum.lua @@ -0,0 +1,23 @@ +---@brief +--- +---Vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool. +--- +--- You can install vacuum using mason or follow the instructions here: https://github.com/daveshanley/vacuum +--- +--- The file types are not detected automatically, you can register them manually (see below) or override the filetypes: +--- +--- ```lua +--- vim.filetype.add { +--- pattern = { +--- ['openapi.*%.ya?ml'] = 'yaml.openapi', +--- ['openapi.*%.json'] = 'json.openapi', +--- }, +--- } +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'vacuum', 'language-server' }, + filetypes = { 'yaml.openapi', 'json.openapi' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/vala_ls.lua b/.config/nvim/lsp/vala_ls.lua new file mode 100644 index 0000000..f67034e --- /dev/null +++ b/.config/nvim/lsp/vala_ls.lua @@ -0,0 +1,35 @@ +---@brief +--- +--- https://github.com/Prince781/vala-language-server + +local meson_matcher = function(path) + local pattern = 'meson.build' + local f = vim.fn.glob(table.concat({ path, pattern }, '/')) + if f == '' then + return nil + end + for line in io.lines(f) do + -- skip meson comments + if not line:match '^%s*#.*' then + local str = line:gsub('%s+', '') + if str ~= '' then + if str:match '^project%(' then + return path + else + break + end + end + end + end +end + +---@type vim.lsp.Config +return { + cmd = { 'vala-language-server' }, + filetypes = { 'vala', 'genie' }, + root_dir = function(bufnr, on_dir) + local fname = vim.api.nvim_buf_get_name(bufnr) + local root = vim.iter(vim.fs.parents(fname)):find(meson_matcher) + on_dir(root or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])) + end, +} diff --git a/.config/nvim/lsp/vale_ls.lua b/.config/nvim/lsp/vale_ls.lua new file mode 100644 index 0000000..2021efa --- /dev/null +++ b/.config/nvim/lsp/vale_ls.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/errata-ai/vale-ls +--- +--- An implementation of the Language Server Protocol (LSP) for the Vale command-line tool. + +---@type vim.lsp.Config +return { + cmd = { 'vale-ls' }, + filetypes = { 'markdown', 'text', 'tex', 'rst' }, + root_markers = { '.vale.ini' }, +} diff --git a/.config/nvim/lsp/vectorcode_server.lua b/.config/nvim/lsp/vectorcode_server.lua new file mode 100644 index 0000000..095c453 --- /dev/null +++ b/.config/nvim/lsp/vectorcode_server.lua @@ -0,0 +1,11 @@ +---@brief +--- https://github.com/Davidyz/VectorCode +--- +--- A Language Server Protocol implementation for VectorCode, a code repository indexing tool. + +---@type vim.lsp.Config +return { + cmd = { 'vectorcode-server' }, + root_dir = vim.fs.root(0, { '.vectorcode', '.git' }), + settings = {}, +} diff --git a/.config/nvim/lsp/verible.lua b/.config/nvim/lsp/verible.lua new file mode 100644 index 0000000..d2629d6 --- /dev/null +++ b/.config/nvim/lsp/verible.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/chipsalliance/verible +--- +--- A linter and formatter for verilog and SystemVerilog files. +--- +--- Release binaries can be downloaded from [here](https://github.com/chipsalliance/verible/releases) +--- and placed in a directory on PATH. +--- +--- See https://github.com/chipsalliance/verible/tree/master/verilog/tools/ls/README.md for options. + +---@type vim.lsp.Config +return { + cmd = { 'verible-verilog-ls' }, + filetypes = { 'systemverilog', 'verilog' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/veridian.lua b/.config/nvim/lsp/veridian.lua new file mode 100644 index 0000000..2e74e50 --- /dev/null +++ b/.config/nvim/lsp/veridian.lua @@ -0,0 +1,24 @@ +---@brief +--- +--- https://github.com/vivekmalneedi/veridian +--- +--- A SystemVerilog LanguageServer. +--- +--- Download the latest release for your OS from the releases page +--- +--- Install with slang feature, if C++17 compiler is available: +--- ``` +--- cargo install --git https://github.com/vivekmalneedi/veridian.git --all-features +--- ``` +--- +--- Install if C++17 compiler is not available: +--- ``` +--- cargo install --git https://github.com/vivekmalneedi/veridian.git +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'veridian' }, + filetypes = { 'systemverilog', 'verilog' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/veryl_ls.lua b/.config/nvim/lsp/veryl_ls.lua new file mode 100644 index 0000000..807dd66 --- /dev/null +++ b/.config/nvim/lsp/veryl_ls.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- https://github.com/veryl-lang/veryl +--- +--- Language server for Veryl +--- +--- `veryl-ls` can be installed via `cargo`: +--- ```sh +--- cargo install veryl-ls +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'veryl-ls' }, + filetypes = { 'veryl' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/vespa_ls.lua b/.config/nvim/lsp/vespa_ls.lua new file mode 100644 index 0000000..ebad300 --- /dev/null +++ b/.config/nvim/lsp/vespa_ls.lua @@ -0,0 +1,38 @@ +---@brief +--- +--- https://github.com/vespa-engine/vespa/tree/master/integration/schema-language-server +--- +--- Vespa Language Server provides LSP features such as completion, diagnostics, +--- and go-to-definition for Vespa schema files (`.sd`), profile files (`.profile`), +--- and YQL query files (`.yql`). +--- +--- This language server requires Java 17 or higher. You can build the jar from source. +--- +--- You can override the default command by manually configuring it like this: +--- +--- ```lua +--- vim.lsp.config('vespa_ls', { +--- cmd = { 'java', '-jar', '/path/to/vespa-language-server.jar' }, +--- }) +--- ``` +--- +--- The project root is determined based on the presence of a `.git` directory. +--- +--- To make Neovim recognize the proper filetypes, add the following setting in `init.lua`: +--- +--- vim.filetype.add { +--- extension = { +--- profile = 'sd', +--- sd = 'sd', +--- yql = 'yql', +--- }, +--- } + +---@type vim.lsp.Config +return { + cmd = { 'java', '-jar', 'vespa-language-server.jar' }, + filetypes = { 'sd', 'profile', 'yql' }, + root_markers = { + '.git', + }, +} diff --git a/.config/nvim/lsp/vhdl_ls.lua b/.config/nvim/lsp/vhdl_ls.lua new file mode 100644 index 0000000..f010e70 --- /dev/null +++ b/.config/nvim/lsp/vhdl_ls.lua @@ -0,0 +1,38 @@ +---@brief +--- +--- Install vhdl_ls from https://github.com/VHDL-LS/rust_hdl and add it to path +--- +--- Configuration +--- +--- The language server needs to know your library mapping to perform full analysis of the code. For this it uses a configuration file in the TOML format named vhdl_ls.toml. +--- +--- vhdl_ls will load configuration files in the following order of priority (first to last): +--- +--- A file named .vhdl_ls.toml in the user home folder. +--- A file name from the VHDL_LS_CONFIG environment variable. +--- A file named vhdl_ls.toml in the workspace root. +--- +--- Settings in a later files overwrites those from previously loaded files. +--- +--- Example vhdl_ls.toml +--- ``` +--- # File names are either absolute or relative to the parent folder of the vhdl_ls.toml file +--- [libraries] +--- lib2.files = [ +--- 'pkg2.vhd', +--- ] +--- lib1.files = [ +--- 'pkg1.vhd', +--- 'tb_ent.vhd' +--- ] +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'vhdl_ls' }, + filetypes = { 'vhd', 'vhdl' }, + root_markers = { + 'vhdl_ls.toml', + '.vhdl_ls.toml', + }, +} diff --git a/.config/nvim/lsp/vimls.lua b/.config/nvim/lsp/vimls.lua new file mode 100644 index 0000000..ba202c1 --- /dev/null +++ b/.config/nvim/lsp/vimls.lua @@ -0,0 +1,29 @@ +---@brief +--- +--- https://github.com/iamcco/vim-language-server +--- +--- You can install vim-language-server via npm: +--- ```sh +--- npm install -g vim-language-server +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'vim-language-server', '--stdio' }, + filetypes = { 'vim' }, + root_markers = { '.git' }, + init_options = { + isNeovim = true, + iskeyword = '@,48-57,_,192-255,-#', + vimruntime = '', + runtimepath = '', + diagnostic = { enable = true }, + indexes = { + runtimepath = true, + gap = 100, + count = 3, + projectRootPatterns = { 'runtime', 'nvim', '.git', 'autoload', 'plugin' }, + }, + suggest = { fromVimruntime = true, fromRuntimepath = true }, + }, +} diff --git a/.config/nvim/lsp/visualforce_ls.lua b/.config/nvim/lsp/visualforce_ls.lua new file mode 100644 index 0000000..5098447 --- /dev/null +++ b/.config/nvim/lsp/visualforce_ls.lua @@ -0,0 +1,31 @@ +---@brief +--- +--- https://github.com/forcedotcom/salesforcedx-vscode +--- +--- Language server for Visualforce. +--- +--- For manual installation, download the .vsix archive file from the +--- [forcedotcom/salesforcedx-vscode](https://github.com/forcedotcom/salesforcedx-vscode) +--- GitHub releases. Then, configure `cmd` to run the Node script at the unpacked location: +--- +--- ```lua +--- vim.lsp.config('visualforce_ls', { +--- cmd = { +--- 'node', +--- '/path/to/unpacked/archive/extension/node_modules/@salesforce/salesforcedx-visualforce-language-server/out/src/visualforceServer.js', +--- '--stdio' +--- } +--- }) +--- ``` + +---@type vim.lsp.Config +return { + filetypes = { 'visualforce' }, + root_markers = { 'sfdx-project.json' }, + init_options = { + embeddedLanguages = { + css = true, + javascript = true, + }, + }, +} diff --git a/.config/nvim/lsp/vls.lua b/.config/nvim/lsp/vls.lua new file mode 100644 index 0000000..f92981a --- /dev/null +++ b/.config/nvim/lsp/vls.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/vlang/vls +--- +--- V language server. +--- +--- `v-language-server` can be installed by following the instructions [here](https://github.com/vlang/vls#installation). + +---@type vim.lsp.Config +return { + cmd = { 'v', 'ls' }, + filetypes = { 'v', 'vlang' }, + root_markers = { 'v.mod', '.git' }, +} diff --git a/.config/nvim/lsp/volar.lua b/.config/nvim/lsp/volar.lua new file mode 100644 index 0000000..040a93e --- /dev/null +++ b/.config/nvim/lsp/volar.lua @@ -0,0 +1,9 @@ +---@brief +--- +--- Renamed to [vue_ls](#vue_ls) +--- +--- +vim.deprecate('volar', 'vue_ls', '3.0.0', 'nvim-lspconfig', false) + +---@type vim.lsp.Config +return vim.lsp.config.vue_ls diff --git a/.config/nvim/lsp/vscoqtop.lua b/.config/nvim/lsp/vscoqtop.lua new file mode 100644 index 0000000..bfa8a61 --- /dev/null +++ b/.config/nvim/lsp/vscoqtop.lua @@ -0,0 +1,10 @@ +---@brief +--- +--- https://github.com/coq-community/vscoq + +---@type vim.lsp.Config +return { + cmd = { 'vscoqtop' }, + filetypes = { 'coq' }, + root_markers = { '_CoqProject', '.git' }, +} diff --git a/.config/nvim/lsp/vtsls.lua b/.config/nvim/lsp/vtsls.lua new file mode 100644 index 0000000..1265681 --- /dev/null +++ b/.config/nvim/lsp/vtsls.lua @@ -0,0 +1,96 @@ +---@brief +--- +--- https://github.com/yioneko/vtsls +--- +--- `vtsls` can be installed with npm: +--- ```sh +--- npm install -g @vtsls/language-server +--- ``` +--- +--- To configure a TypeScript project, add a +--- [`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) +--- or [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to +--- the root of your project. +--- +--- ### Vue support +--- +--- Since v3.0.0, the Vue language server requires `vtsls` to support TypeScript. +--- +--- ``` +--- -- If you are using mason.nvim, you can get the ts_plugin_path like this +--- -- For Mason v1, +--- -- local mason_registry = require('mason-registry') +--- -- local vue_language_server_path = mason_registry.get_package('vue-language-server'):get_install_path() .. '/node_modules/@vue/language-server' +--- -- For Mason v2, +--- -- local vue_language_server_path = vim.fn.expand '$MASON/packages' .. '/vue-language-server' .. '/node_modules/@vue/language-server' +--- -- or even +--- -- local vue_language_server_path = vim.fn.stdpath('data') .. "/mason/packages/vue-language-server/node_modules/@vue/language-server" +--- local vue_language_server_path = '/path/to/@vue/language-server' +--- local vue_plugin = { +--- name = '@vue/typescript-plugin', +--- location = vue_language_server_path, +--- languages = { 'vue' }, +--- configNamespace = 'typescript', +--- } +--- vim.lsp.config('vtsls', { +--- settings = { +--- vtsls = { +--- tsserver = { +--- globalPlugins = { +--- vue_plugin, +--- }, +--- }, +--- }, +--- }, +--- filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }, +--- }) +--- ``` +--- +--- - `location` MUST be defined. If the plugin is installed in `node_modules`, `location` can have any value. +--- - `languages` must include vue even if it is listed in filetypes. +--- - `filetypes` is extended here to include Vue SFC. +--- +--- You must make sure the Vue language server is setup. For example, +--- +--- ``` +--- vim.lsp.enable('vue_ls') +--- ``` +--- +--- See `vue_ls` section and https://github.com/vuejs/language-tools/wiki/Neovim for more information. +--- +--- ### Monorepo support +--- +--- `vtsls` supports monorepos by default. It will automatically find the `tsconfig.json` or `jsconfig.json` corresponding to the package you are working on. +--- This works without the need of spawning multiple instances of `vtsls`, saving memory. +--- +--- It is recommended to use the same version of TypeScript in all packages, and therefore have it available in your workspace root. The location of the TypeScript binary will be determined automatically, but only once. + +---@type vim.lsp.Config +return { + cmd = { 'vtsls', '--stdio' }, + init_options = { + hostInfo = 'neovim', + }, + filetypes = { + 'javascript', + 'javascriptreact', + 'javascript.jsx', + 'typescript', + 'typescriptreact', + 'typescript.tsx', + }, + root_dir = function(bufnr, on_dir) + -- The project root is where the LSP can be started from + -- As stated in the documentation above, this LSP supports monorepos and simple projects. + -- We select then from the project root, which is identified by the presence of a package + -- manager lock file. + local root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' } + -- Give the root markers equal priority by wrapping them in a table + root_markers = vim.fn.has('nvim-0.11.3') == 1 and { root_markers, { '.git' } } + or vim.list_extend(root_markers, { '.git' }) + -- We fallback to the current working directory if no project root is found + local project_root = vim.fs.root(bufnr, root_markers) or vim.fn.getcwd() + + on_dir(project_root) + end, +} diff --git a/.config/nvim/lsp/vue_ls.lua b/.config/nvim/lsp/vue_ls.lua new file mode 100644 index 0000000..95e09e2 --- /dev/null +++ b/.config/nvim/lsp/vue_ls.lua @@ -0,0 +1,71 @@ +---@brief +--- +--- https://github.com/vuejs/language-tools/tree/master/packages/language-server +--- +--- The official language server for Vue +--- +--- It can be installed via npm: +--- ```sh +--- npm install -g @vue/language-server +--- ``` +--- +--- The language server only supports Vue 3 projects by default. +--- For Vue 2 projects, [additional configuration](https://github.com/vuejs/language-tools/blob/master/extensions/vscode/README.md?plain=1#L19) are required. +--- +--- The Vue language server works in "hybrid mode" that exclusively manages the CSS/HTML sections. +--- You need the `vtsls` server with the `@vue/typescript-plugin` plugin to support TypeScript in `.vue` files. +--- See `vtsls` section and https://github.com/vuejs/language-tools/wiki/Neovim for more information. +--- +--- NOTE: Since v3.0.0, the Vue Language Server [no longer supports takeover mode](https://github.com/vuejs/language-tools/pull/5248). + +---@type vim.lsp.Config +return { + cmd = { 'vue-language-server', '--stdio' }, + filetypes = { 'vue' }, + root_markers = { 'package.json' }, + on_init = function(client) + local retries = 0 + + ---@param _ lsp.ResponseError + ---@param result any + ---@param context lsp.HandlerContext + local function typescriptHandler(_, result, context) + local ts_client = vim.lsp.get_clients({ bufnr = context.bufnr, name = 'ts_ls' })[1] + or vim.lsp.get_clients({ bufnr = context.bufnr, name = 'vtsls' })[1] + or vim.lsp.get_clients({ bufnr = context.bufnr, name = 'typescript-tools' })[1] + + if not ts_client then + -- there can sometimes be a short delay until `ts_ls`/`vtsls` are attached so we retry for a few times until it is ready + if retries <= 10 then + retries = retries + 1 + vim.defer_fn(function() + typescriptHandler(_, result, context) + end, 100) + else + vim.notify( + 'Could not find `ts_ls`, `vtsls`, or `typescript-tools` lsp client required by `vue_ls`.', + vim.log.levels.ERROR + ) + end + return + end + + local param = unpack(result) + local id, command, payload = unpack(param) + ts_client:exec_cmd({ + title = 'vue_request_forward', -- You can give title anything as it's used to represent a command in the UI, `:h Client:exec_cmd` + command = 'typescript.tsserverRequest', + arguments = { + command, + payload, + }, + }, { bufnr = context.bufnr }, function(_, r) + local response_data = { { id, r and r.body } } + ---@diagnostic disable-next-line: param-type-mismatch + client:notify('tsserver/response', response_data) + end) + end + + client.handlers['tsserver/request'] = typescriptHandler + end, +} diff --git a/.config/nvim/lsp/wasm_language_tools.lua b/.config/nvim/lsp/wasm_language_tools.lua new file mode 100644 index 0000000..d79ae6e --- /dev/null +++ b/.config/nvim/lsp/wasm_language_tools.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/g-plane/wasm-language-tools +--- +--- WebAssembly Language Tools aims to provide and improve the editing experience of WebAssembly Text Format. +--- It also provides an out-of-the-box formatter (a.k.a. pretty printer) for WebAssembly Text Format. + +---@type vim.lsp.Config +return { + cmd = { 'wat_server' }, + filetypes = { 'wat' }, +} diff --git a/.config/nvim/lsp/wgsl_analyzer.lua b/.config/nvim/lsp/wgsl_analyzer.lua new file mode 100644 index 0000000..ed38772 --- /dev/null +++ b/.config/nvim/lsp/wgsl_analyzer.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- https://github.com/wgsl-analyzer/wgsl-analyzer +--- +--- `wgsl-analyzer` can be installed via `cargo`: +--- ```sh +--- cargo install --git https://github.com/wgsl-analyzer/wgsl-analyzer wgsl-analyzer +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'wgsl-analyzer' }, + filetypes = { 'wgsl' }, + root_markers = { '.git' }, + settings = {}, +} diff --git a/.config/nvim/lsp/yamlls.lua b/.config/nvim/lsp/yamlls.lua new file mode 100644 index 0000000..04e837e --- /dev/null +++ b/.config/nvim/lsp/yamlls.lua @@ -0,0 +1,80 @@ +---@brief +--- +--- https://github.com/redhat-developer/yaml-language-server +--- +--- `yaml-language-server` can be installed via `yarn`: +--- ```sh +--- yarn global add yaml-language-server +--- ``` +--- +--- To use a schema for validation, there are two options: +--- +--- 1. Add a modeline to the file. A modeline is a comment of the form: +--- +--- ``` +--- # yaml-language-server: $schema= +--- ``` +--- +--- where the relative filepath is the path relative to the open yaml file, and the absolute filepath +--- is the filepath relative to the filesystem root ('/' on unix systems) +--- +--- 2. Associated a schema url, relative , or absolute (to root of project, not to filesystem root) path to +--- the a glob pattern relative to the detected project root. Check `:checkhealth vim.lsp` to determine the resolved project +--- root. +--- +--- ```lua +--- vim.lsp.config('yamlls', { +--- ... +--- settings = { +--- yaml = { +--- ... -- other settings. note this overrides the lspconfig defaults. +--- schemas = { +--- ["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*", +--- ["../path/relative/to/file.yml"] = "/.github/workflows/*", +--- ["/path/from/root/of/project"] = "/.github/workflows/*", +--- }, +--- }, +--- } +--- }) +--- ``` +--- +--- Currently, kubernetes is special-cased in yammls, see the following upstream issues: +--- * [#211](https://github.com/redhat-developer/yaml-language-server/issues/211). +--- * [#307](https://github.com/redhat-developer/yaml-language-server/issues/307). +--- +--- To override a schema to use a specific k8s schema version (for example, to use 1.18): +--- +--- ```lua +--- vim.lsp.config('yamlls', { +--- ... +--- settings = { +--- yaml = { +--- ... -- other settings. note this overrides the lspconfig defaults. +--- schemas = { +--- ["https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/v1.32.1-standalone-strict/all.json"] = "/*.k8s.yaml", +--- ... -- other schemas +--- }, +--- }, +--- } +--- }) +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'yaml-language-server', '--stdio' }, + filetypes = { 'yaml', 'yaml.docker-compose', 'yaml.gitlab', 'yaml.helm-values' }, + root_markers = { '.git' }, + settings = { + -- https://github.com/redhat-developer/vscode-redhat-telemetry#how-to-disable-telemetry-reporting + redhat = { telemetry = { enabled = false } }, + -- formatting disabled by default in yaml-language-server; enable it + yaml = { format = { enable = true } }, + }, + on_init = function(client) + --- https://github.com/neovim/nvim-lspconfig/pull/4016 + --- Since formatting is disabled by default if you check `client:supports_method('textDocument/formatting')` + --- during `LspAttach` it will return `false`. This hack sets the capability to `true` to facilitate + --- autocmd's which check this capability + client.server_capabilities.documentFormattingProvider = true + end, +} diff --git a/.config/nvim/lsp/yang_lsp.lua b/.config/nvim/lsp/yang_lsp.lua new file mode 100644 index 0000000..1ae15f5 --- /dev/null +++ b/.config/nvim/lsp/yang_lsp.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/TypeFox/yang-lsp +--- +--- A Language Server for the YANG data modeling language. + +---@type vim.lsp.Config +return { + cmd = { 'yang-language-server' }, + filetypes = { 'yang' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/yls.lua b/.config/nvim/lsp/yls.lua new file mode 100644 index 0000000..cfa35df --- /dev/null +++ b/.config/nvim/lsp/yls.lua @@ -0,0 +1,16 @@ +---@brief +--- +--- https://pypi.org/project/yls-yara/ +--- +--- An YLS plugin adding YARA linting capabilities. +--- +--- This plugin runs yara.compile on every save, parses the errors, and returns list of diagnostic messages. +--- +--- Language Server: https://github.com/avast/yls + +---@type vim.lsp.Config +return { + cmd = { 'yls', '-vv' }, + filetypes = { 'yar', 'yara' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/ziggy.lua b/.config/nvim/lsp/ziggy.lua new file mode 100644 index 0000000..9d01747 --- /dev/null +++ b/.config/nvim/lsp/ziggy.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://ziggy-lang.io/documentation/ziggy-lsp/ +--- +--- Language server for the Ziggy data serialization format + +---@type vim.lsp.Config +return { + cmd = { 'ziggy', 'lsp' }, + filetypes = { 'ziggy' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/ziggy_schema.lua b/.config/nvim/lsp/ziggy_schema.lua new file mode 100644 index 0000000..d12266b --- /dev/null +++ b/.config/nvim/lsp/ziggy_schema.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://ziggy-lang.io/documentation/ziggy-lsp/ +--- +--- Language server for schema files of the Ziggy data serialization format + +---@type vim.lsp.Config +return { + cmd = { 'ziggy', 'lsp', '--schema' }, + filetypes = { 'ziggy_schema' }, + root_markers = { '.git' }, +} diff --git a/.config/nvim/lsp/zk.lua b/.config/nvim/lsp/zk.lua new file mode 100644 index 0000000..3faa3ba --- /dev/null +++ b/.config/nvim/lsp/zk.lua @@ -0,0 +1,116 @@ +---@brief +--- +--- https://github.com/zk-org/zk +--- +--- A plain text note-taking assistant + +---List notes +---@param client vim.lsp.Client +---@param bufnr integer +---@param opts table +---@param action fun(path: string, title: string) +local function zk_list(client, bufnr, opts, action) + opts = vim.tbl_extend('keep', { select = { 'path', 'title' } }, opts or {}) + client:exec_cmd({ + title = 'ZkList', + command = 'zk.list', + arguments = { vim.api.nvim_buf_get_name(bufnr), opts }, + }, { bufnr = bufnr }, function(err, result) + if err ~= nil then + vim.api.nvim_echo({ { 'zk.list error\n' }, { vim.inspect(err) } }, true, {}) + return + end + if result == nil then + return + end + + vim.ui.select(result, { + format_item = function(item) + return item.title + end, + }, function(item) + if item ~= nil then + action(vim.fs.joinpath(client.root_dir, item.path), item.title) + end + end) + end) +end + +---@type vim.lsp.Config +return { + cmd = { 'zk', 'lsp' }, + filetypes = { 'markdown' }, + root_markers = { '.zk' }, + workspace_required = true, + on_attach = function(client, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspZkIndex', function() + client:exec_cmd({ + title = 'ZkIndex', + command = 'zk.index', + arguments = { vim.api.nvim_buf_get_name(bufnr) }, + }, { bufnr = bufnr }, function(err, result) + if err ~= nil then + vim.api.nvim_echo({ { 'zk.index error\n' }, { vim.inspect(err) } }, true, {}) + return + end + if result ~= nil then + vim.api.nvim_echo({ { vim.inspect(result) } }, false, {}) + end + end) + end, { desc = 'ZkIndex' }) + + vim.api.nvim_buf_create_user_command(bufnr, 'LspZkList', function() + zk_list(client, bufnr, {}, function(path) + vim.cmd('edit ' .. path) + end) + end, { desc = 'ZkList' }) + + vim.api.nvim_buf_create_user_command(bufnr, 'LspZkTagList', function() + client:exec_cmd({ + title = 'ZkTagList', + command = 'zk.tag.list', + arguments = { vim.api.nvim_buf_get_name(bufnr) }, + }, { bufnr = bufnr }, function(err, result) + if err ~= nil then + vim.api.nvim_echo({ { 'zk.tag.list error\n' }, { vim.inspect(err) } }, true, {}) + return + end + if result == nil then + return + end + + vim.ui.select(result, { + format_item = function(item) + return item.name + end, + }, function(item) + if item ~= nil then + zk_list(client, bufnr, { tags = { item.name } }, function(path) + vim.cmd('edit ' .. path) + end) + end + end) + end) + end, { desc = 'ZkTagList' }) + + vim.api.nvim_buf_create_user_command(bufnr, 'LspZkNew', function(args) + local title = #args.fargs >= 1 and args.fargs[1] or '' + local dir = #args.fargs >= 2 and args.fargs[2] or '' + client:exec_cmd({ + title = 'ZkNew', + command = 'zk.new', + arguments = { + vim.api.nvim_buf_get_name(bufnr), + { title = title, dir = dir }, + }, + }, { bufnr = bufnr }, function(err, result) + if err ~= nil then + vim.api.nvim_echo({ { 'zk.new error\n' }, { vim.inspect(err) } }, true, {}) + return + end + + vim.cmd('edit ' .. result.path) + end) + end, { desc = 'ZkNew [title] [dir]', nargs = '*' }) + end, +} diff --git a/.config/nvim/lsp/zls.lua b/.config/nvim/lsp/zls.lua new file mode 100644 index 0000000..6a8dc08 --- /dev/null +++ b/.config/nvim/lsp/zls.lua @@ -0,0 +1,12 @@ +---@brief +--- https://github.com/zigtools/zls +--- +--- Zig LSP implementation + Zig Language Server + +---@type vim.lsp.Config +return { + cmd = { 'zls' }, + filetypes = { 'zig', 'zir' }, + root_markers = { 'zls.json', 'build.zig', '.git' }, + workspace_required = false, +} diff --git a/.config/nvim/lsp/zuban.lua b/.config/nvim/lsp/zuban.lua new file mode 100644 index 0000000..3fea7a2 --- /dev/null +++ b/.config/nvim/lsp/zuban.lua @@ -0,0 +1,19 @@ +---@brief +--- +--- https://zubanls.com/ +--- +--- A high-performance Python Language Server and type checker implemented in Rust, by the author of Jedi. + +---@type vim.lsp.Config +return { + cmd = { 'zuban', 'server' }, + filetypes = { 'python' }, + root_markers = { + 'pyproject.toml', + 'setup.py', + 'setup.cfg', + 'requirements.txt', + 'Pipfile', + '.git', + }, +} diff --git a/.config/paru/paru.conf b/.config/paru/paru.conf new file mode 100644 index 0000000..febee6b --- /dev/null +++ b/.config/paru/paru.conf @@ -0,0 +1,2 @@ +[bin] +Sudo = doas diff --git a/.config/pipewire/pipewire.conf.d/user-session.conf b/.config/pipewire/pipewire.conf.d/user-session.conf new file mode 100644 index 0000000..5f2c5f5 --- /dev/null +++ b/.config/pipewire/pipewire.conf.d/user-session.conf @@ -0,0 +1,9 @@ +context.exec = [ + { path = "/usr/bin/wireplumber" args = "" condition = [ { exec.session-manager = null } { exec.session-manager = true } ] } + { path = "/usr/bin/pipewire" args = "-c pipewire-pulse.conf" condition = [ { exec.pipewire-pulse = null } { exec.pipewire-pulse = true } ] } +] + +context.properties = { + default.clock.rate = 192000 + default.clock.allowed-rates = [ 44100 48000 96000 192000 ] +} diff --git a/.config/python/pythonrc b/.config/python/pythonrc new file mode 100644 index 0000000..b32e6b6 --- /dev/null +++ b/.config/python/pythonrc @@ -0,0 +1,2 @@ +import readline +readline.write_history_file = lambda *args: None diff --git a/.config/qt5ct/colors/everforest.conf b/.config/qt5ct/colors/everforest.conf new file mode 100644 index 0000000..e02e799 --- /dev/null +++ b/.config/qt5ct/colors/everforest.conf @@ -0,0 +1,4 @@ +[ColorScheme] +active_colors=#FFD3C6AA, #FF2B3339, #FF9DA9A0, #FF859289, #FF3A4248, #FF4B565C, #FFD3C6AA, #FFD3C6AA, #FFD3C6AA, #FF323C41, #FF2B3339, #FF4B565C, #FF7FBBB3, #FF323C41, #FFA7C080, #FFE69875, #FF323C41, #FFD3C6AA, #FF2B3339, #FFD3C6AA, #FF9DA9A0 +disabled_colors=#FF7A8478, #FF2B3339, #FF7A8478, #FF859289, #FF3A4248, #FF4B565C, #FF7A8478, #FF7A8478, #FF7A8478, #FF323C41, #FF2B3339, #FF4B565C, #FF7FBBB3, #FF3A4248, #FFA7C080, #FFE69875, #FF323C41, #FFD3C6AA, #FF2B3339, #FFD3C6AA, #FF7A8478 +inactive_colors=#FFD3C6AA, #FF2B3339, #FF9DA9A0, #FF859289, #FF3A4248, #FF4B565C, #FFD3C6AA, #FFD3C6AA, #FFD3C6AA, #FF323C41, #FF2B3339, #FF4B565C, #FF7FBBB3, #FF859289, #FFA7C080, #FFE69875, #FF323C41, #FFD3C6AA, #FF2B3339, #FFD3C6AA, #FF9DA9A0 diff --git a/.config/qt5ct/colors/gruvbox.conf b/.config/qt5ct/colors/gruvbox.conf new file mode 100644 index 0000000..dc6dbf7 --- /dev/null +++ b/.config/qt5ct/colors/gruvbox.conf @@ -0,0 +1,4 @@ +[ColorScheme] +active_colors=#ffebdbb2, #ff1d2021, #ffbdae93, #ffa89984, #ff3c3836, #ff504945, #ffebdbb2, #ffebdbb2, #ffebdbb2, #ff282828, #ff1d2021, #ff504945, #ff458588, #ff282828, #ff458588, #ffcc241d, #ff282828, #ffebdbb2, #ff1d2021, #ffebdbb2, #ffbdae93 +disabled_colors=#ffbdae93, #ff1d2021, #ffbdae93, #ffa89984, #ff3c3836, #ff504945, #ffbdae93, #ffbdae93, #ffbdae93, #ff282828, #ff1d2021, #ff504945, #ff438184, #ff3c3836, #ff458588, #ffcc241d, #ff282828, #ffebdbb2, #ff1d2021, #ffebdbb2, #ffbdae93 +inactive_colors=#ffebdbb2, #ff1d2021, #ffbdae93, #ffa89984, #ff3c3836, #ff504945, #ffebdbb2, #ffebdbb2, #ffebdbb2, #ff282828, #ff1d2021, #ff504945, #ff438184, #ffa89984, #ff458588, #ffcc241d, #ff282828, #ffebdbb2, #ff1d2021, #ffebdbb2, #ffbdae93 diff --git a/.config/qt5ct/colors/nord.conf b/.config/qt5ct/colors/nord.conf new file mode 100644 index 0000000..8156166 --- /dev/null +++ b/.config/qt5ct/colors/nord.conf @@ -0,0 +1,4 @@ +[ColorScheme] +active_colors=#ECEFF4, #2E3440, #D08770, #A3BE8C, #4C566A, #434C5E, #ECEFF4, #ECEFF4, #ECEFF4, #3B4252, #2E3440, #434C5E, #88C0D0, #3B4252, #8FBCBB, #BF616A, #3B4252, #ECEFF4, #2E3440, #ECEFF4, #D08770 +disabled_colors=#D08770, #2E3440, #D08770, #A3BE8C, #4C566A, #434C5E, #D08770, #D08770, #D08770, #3B4252, #2E3440, #434C5E, #88C0D0, #4C566A, #8FBCBB, #4C566A, #3B4252, #ECEFF4, #2E3440, #ECEFF4, #D08770 +inactive_colors=#ECEFF4, #2E3440, #D08770, #A3BE8C, #4C566A, #434C5E, #ECEFF4, #ECEFF4, #ECEFF4, #3B4252, #2E3440, #434C5E, #88C0D0, #A3BE8C, #8FBCBB, #4C566A, #3B4252, #ECEFF4, #2E3440, #ECEFF4, #D08770 diff --git a/.config/qt5ct/qt5ct.conf b/.config/qt5ct/qt5ct.conf new file mode 100644 index 0000000..533afa7 --- /dev/null +++ b/.config/qt5ct/qt5ct.conf @@ -0,0 +1,32 @@ +[Appearance] +color_scheme_path=/home/awy/.config/qt5ct/colors/gruvbox.conf +custom_palette=true +icon_theme=Gruvbox-Dark +standard_dialogs=xdgdesktopportal +style=Fusion + +[Fonts] +fixed="Source Code Pro,12,-1,5,50,0,0,0,0,0,Regular" +general="Source Sans 3,12,-1,5,50,0,0,0,0,0,Regular" + +[Interface] +activate_item_on_single_click=1 +buttonbox_layout=0 +cursor_flash_time=1000 +dialog_buttons_have_icons=1 +double_click_interval=400 +gui_effects=@Invalid() +keyboard_scheme=2 +menus_have_icons=true +show_shortcuts_in_context_menus=true +stylesheets=@Invalid() +toolbutton_style=4 +underline_shortcut=1 +wheel_scroll_lines=3 + +[SettingsWindow] +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\n\0\0\0\0\0\0\0\xfy\0\0\x5\x99\0\0\n\0\0\0\0\0\0\0\xfy\0\0\x5\x99\0\0\0\x1\0\0\0\0\n\0\0\0\n\0\0\0\0\0\0\0\xfy\0\0\x5\x99) + +[Troubleshooting] +force_raster_widgets=1 +ignored_applications=@Invalid() diff --git a/.config/qt6ct/colors/everforest.conf b/.config/qt6ct/colors/everforest.conf new file mode 100644 index 0000000..e02e799 --- /dev/null +++ b/.config/qt6ct/colors/everforest.conf @@ -0,0 +1,4 @@ +[ColorScheme] +active_colors=#FFD3C6AA, #FF2B3339, #FF9DA9A0, #FF859289, #FF3A4248, #FF4B565C, #FFD3C6AA, #FFD3C6AA, #FFD3C6AA, #FF323C41, #FF2B3339, #FF4B565C, #FF7FBBB3, #FF323C41, #FFA7C080, #FFE69875, #FF323C41, #FFD3C6AA, #FF2B3339, #FFD3C6AA, #FF9DA9A0 +disabled_colors=#FF7A8478, #FF2B3339, #FF7A8478, #FF859289, #FF3A4248, #FF4B565C, #FF7A8478, #FF7A8478, #FF7A8478, #FF323C41, #FF2B3339, #FF4B565C, #FF7FBBB3, #FF3A4248, #FFA7C080, #FFE69875, #FF323C41, #FFD3C6AA, #FF2B3339, #FFD3C6AA, #FF7A8478 +inactive_colors=#FFD3C6AA, #FF2B3339, #FF9DA9A0, #FF859289, #FF3A4248, #FF4B565C, #FFD3C6AA, #FFD3C6AA, #FFD3C6AA, #FF323C41, #FF2B3339, #FF4B565C, #FF7FBBB3, #FF859289, #FFA7C080, #FFE69875, #FF323C41, #FFD3C6AA, #FF2B3339, #FFD3C6AA, #FF9DA9A0 diff --git a/.config/qt6ct/colors/gruvbox.conf b/.config/qt6ct/colors/gruvbox.conf new file mode 100644 index 0000000..dc6dbf7 --- /dev/null +++ b/.config/qt6ct/colors/gruvbox.conf @@ -0,0 +1,4 @@ +[ColorScheme] +active_colors=#ffebdbb2, #ff1d2021, #ffbdae93, #ffa89984, #ff3c3836, #ff504945, #ffebdbb2, #ffebdbb2, #ffebdbb2, #ff282828, #ff1d2021, #ff504945, #ff458588, #ff282828, #ff458588, #ffcc241d, #ff282828, #ffebdbb2, #ff1d2021, #ffebdbb2, #ffbdae93 +disabled_colors=#ffbdae93, #ff1d2021, #ffbdae93, #ffa89984, #ff3c3836, #ff504945, #ffbdae93, #ffbdae93, #ffbdae93, #ff282828, #ff1d2021, #ff504945, #ff438184, #ff3c3836, #ff458588, #ffcc241d, #ff282828, #ffebdbb2, #ff1d2021, #ffebdbb2, #ffbdae93 +inactive_colors=#ffebdbb2, #ff1d2021, #ffbdae93, #ffa89984, #ff3c3836, #ff504945, #ffebdbb2, #ffebdbb2, #ffebdbb2, #ff282828, #ff1d2021, #ff504945, #ff438184, #ffa89984, #ff458588, #ffcc241d, #ff282828, #ffebdbb2, #ff1d2021, #ffebdbb2, #ffbdae93 diff --git a/.config/qt6ct/colors/nord.conf b/.config/qt6ct/colors/nord.conf new file mode 100644 index 0000000..8156166 --- /dev/null +++ b/.config/qt6ct/colors/nord.conf @@ -0,0 +1,4 @@ +[ColorScheme] +active_colors=#ECEFF4, #2E3440, #D08770, #A3BE8C, #4C566A, #434C5E, #ECEFF4, #ECEFF4, #ECEFF4, #3B4252, #2E3440, #434C5E, #88C0D0, #3B4252, #8FBCBB, #BF616A, #3B4252, #ECEFF4, #2E3440, #ECEFF4, #D08770 +disabled_colors=#D08770, #2E3440, #D08770, #A3BE8C, #4C566A, #434C5E, #D08770, #D08770, #D08770, #3B4252, #2E3440, #434C5E, #88C0D0, #4C566A, #8FBCBB, #4C566A, #3B4252, #ECEFF4, #2E3440, #ECEFF4, #D08770 +inactive_colors=#ECEFF4, #2E3440, #D08770, #A3BE8C, #4C566A, #434C5E, #ECEFF4, #ECEFF4, #ECEFF4, #3B4252, #2E3440, #434C5E, #88C0D0, #A3BE8C, #8FBCBB, #4C566A, #3B4252, #ECEFF4, #2E3440, #ECEFF4, #D08770 diff --git a/.config/qt6ct/qt6ct.conf b/.config/qt6ct/qt6ct.conf new file mode 100644 index 0000000..51c9bb9 --- /dev/null +++ b/.config/qt6ct/qt6ct.conf @@ -0,0 +1,32 @@ +[Appearance] +color_scheme_path=/home/awy/.config/qt6ct/colors/gruvbox.conf +custom_palette=true +icon_theme=Gruvbox-Dark +standard_dialogs=xdgdesktopportal +style=Fusion + +[Fonts] +fixed="Source Code Pro,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular" +general="Source Sans 3,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular" + +[Interface] +activate_item_on_single_click=1 +buttonbox_layout=0 +cursor_flash_time=1000 +dialog_buttons_have_icons=1 +double_click_interval=400 +gui_effects=@Invalid() +keyboard_scheme=2 +menus_have_icons=true +show_shortcuts_in_context_menus=true +stylesheets=@Invalid() +toolbutton_style=4 +underline_shortcut=1 +wheel_scroll_lines=3 + +[SettingsWindow] +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\n\0\0\0\0\0\0\0\xfy\0\0\x5\x99\0\0\n\0\0\0\0\0\0\0\xfy\0\0\x5\x99\0\0\0\x1\0\0\0\0\n\0\0\0\n\0\0\0\0\0\0\0\xfy\0\0\x5\x99) + +[Troubleshooting] +force_raster_widgets=1 +ignored_applications=@Invalid() diff --git a/.config/rmpc/config.ron b/.config/rmpc/config.ron new file mode 100644 index 0000000..58b2f98 --- /dev/null +++ b/.config/rmpc/config.ron @@ -0,0 +1,201 @@ +#![enable(implicit_some)] +#![enable(unwrap_newtypes)] +#![enable(unwrap_variant_newtypes)] +( + address: "127.0.0.1:6600", + volume_step: 5, + scrolloff: 2, + max_fps: 60, + wrap_navigation: true, + theme: "def", + lyrics_dir: "/mnt/ssd/music", + on_song_change: ["~/.config/rmpc/scripts/statusbar"], + on_resize: None, + status_update_interval_ms: 1000, + enable_mouse: true, + enable_config_hot_reload: true, + album_art: ( + method: Auto, + max_size_px: (width: 0, height: 0), + vertical_align: Top, + horizontal_align: Center, + ), + keybinds: ( + global: { + ":": CommandMode, + ",": VolumeDown, + "s": Stop, + ".": VolumeUp, + "": NextTab, + "": PreviousTab, + "1": SwitchToTab("Queue"), + // "2": SwitchToTab("Directories"), + "2": SwitchToTab("Artists"), + "3": SwitchToTab("Albums"), + "4": SwitchToTab("Genres"), + "5": SwitchToTab("Playlists"), + "6": SwitchToTab("Search"), + "q": Quit, + ">": NextTrack, + "p": TogglePause, + "<": PreviousTrack, + "f": SeekForward, + "z": ToggleRepeat, + "x": ToggleRandom, + "c": ToggleConsume, + "v": ToggleSingle, + "b": SeekBack, + "~": ShowHelp, + "I": ShowCurrentSongInfo, + "O": ShowOutputs, + "P": ShowDecoders, + }, + navigation: { + "k": Up, + "j": Down, + "h": Left, + "l": Right, + "": Up, + "": Down, + "": Left, + "": Right, + "": PaneUp, + "": PaneDown, + "": PaneLeft, + "": PaneRight, + "": UpHalf, + "N": PreviousResult, + "a": Add, + "A": AddAll, + "r": Rename, + "n": NextResult, + "g": Top, + "": Select, + "": InvertSelection, + "G": Bottom, + "": Confirm, + "i": FocusInput, + "J": MoveDown, + "": DownHalf, + "/": EnterSearch, + "": Close, + "": Close, + "K": MoveUp, + "D": Delete, + }, + queue: { + "D": DeleteAll, + "": Play, + "": Save, + "a": AddToPlaylist, + "d": Delete, + "i": ShowInfo, + "C": JumpToCurrent, + }, + ), + search: ( + case_sensitive: false, + mode: Contains, + tags: [ + (value: "any", label: "Any Tag"), + (value: "artist", label: "Artist"), + (value: "album", label: "Album"), + (value: "albumartist", label: "Album Artist"), + (value: "title", label: "Title"), + ], + ), + tabs: [ + ( + name: "Queue", + pane: Split( + direction: Vertical, + panes: [ + ( + size: "100%", + borders: "NONE", + pane: Split( + borders: "NONE", + direction: Horizontal, + panes: [ + ( + size: "70%", + borders: "ALL", + pane: Pane(Queue), + ), + ( + size: "30%", + borders: "ALL", + pane: Split( + direction: Vertical, + panes: [ + ( + size: "75%", + borders: "NONE", + pane: Pane(AlbumArt), + ), + ( + size: "35%", + borders: "NONE", + pane: Split( + direction: Vertical, + panes: [ + ( + size: "100%", + pane: Pane(Lyrics), + ), + ] + ), + ), + ] + ), + ), + ] + ), + ), + ], + ), + ), + // ( + // name: "Directories", + // pane: Split( + // direction: Horizontal, + // panes: [(size: "100%", borders: "ALL", pane: Pane(Directories))], + // ), + // ), + ( + name: "Artists", + pane: Split( + direction: Horizontal, + panes: [(size: "100%", borders: "ALL", pane: Pane(Artists))], + ), + ), + ( + name: "Albums", + pane: Split( + direction: Horizontal, + panes: [(size: "100%", borders: "ALL", pane: Pane(Albums))], + ), + ), + ( + name: "Genres", + pane: Split( + direction: Horizontal, + panes: [(size: "100%", borders: "ALL", pane: Pane(Browser(root_tag: "genre", separator: ";")))], + ), + ), + ( + name: "Playlists", + pane: Split( + direction: Horizontal, + panes: [(size: "100%", borders: "ALL", pane: Pane(Playlists))], + ), + ), + ( + name: "Search", + pane: Split( + direction: Horizontal, + panes: [(size: "100%", borders: "ALL", pane: Pane(Search))], + ), + ), + ], +) diff --git a/.config/rmpc/scripts/statusbar b/.config/rmpc/scripts/statusbar new file mode 100755 index 0000000..6252101 --- /dev/null +++ b/.config/rmpc/scripts/statusbar @@ -0,0 +1,2 @@ +#!/bin/sh +/usr/bin/pkill -RTMIN+11 someblocks diff --git a/.config/rmpc/themes/def.ron b/.config/rmpc/themes/def.ron new file mode 100644 index 0000000..7599fde --- /dev/null +++ b/.config/rmpc/themes/def.ron @@ -0,0 +1,193 @@ +#![enable(implicit_some)] +#![enable(unwrap_newtypes)] +#![enable(unwrap_variant_newtypes)] +( + default_album_art_path: None, + show_song_table_header: true, + draw_borders: true, + browser_column_widths: [20, 38, 42], + background_color: None, + modal_backdrop: true, + text_color: "#eceff4", + header_background_color: None, + modal_background_color: None, + preview_label_style: (fg: "#b48ead"), + preview_metadata_group_style: (fg: "#88c0d0"), + tab_bar: ( + enabled: true, + active_style: (fg: "#2e3440", bg: "blue", modifiers: "Bold"), + inactive_style: (fg: "#eceff4", bg: None, modifiers: ""), + ), + highlighted_item_style: (fg: "magenta", modifiers: "Bold"), + current_item_style: (fg: "black", bg: "blue", modifiers: "Bold"), + borders_style: (fg: "blue", modifiers: "Bold"), + highlight_border_style: (fg: "blue"), + symbols: (song: "󰝚 ", dir: " ", playlist: "󰲸 ", marker: "* ", ellipsis: "..."), + progress_bar: ( + symbols: ["█", "█", "█", "█", "█"], + track_style: (fg: "dark_gray"), + elapsed_style: (fg: "blue"), + thumb_style: (fg: "blue"), + ), + scrollbar: ( + symbols: ["│", "█", "▲", "▼"], + track_style: (fg: "cyan"), + ends_style: (fg: "blue"), + thumb_style: (fg: "blue"), + ), + song_table_format: [ + ( + prop: (kind: Property(Artist), style: (fg: "blue"), + default: (kind: Text("Unknown"), style: (fg: "blue")) + ), + width: "20%", + ), + ( + prop: (kind: Property(Title), style: (fg: "#eceff4"), + highlighted_item_style: (fg: "#d8dee9", modifiers: "Bold"), + default: (kind: Property(Filename), style: (fg: "#d8dee9"),) + ), + width: "35%", + ), + ( + prop: (kind: Property(Album), style: (fg: "cyan"), + default: (kind: Text("Unknown Album"), style: (fg: "#b48ead")) + ), + width: "30%", + ), + ( + prop: (kind: Property(Duration), style: (fg: "magenta"), + default: (kind: Text("-")) + ), + width: "15%", + alignment: Right, + ), + ], + layout: Split( + direction: Vertical, + panes: [ + ( + size: "3", + pane: Pane(Tabs), + ), + ( + size: "5", + pane: Split( + direction: Horizontal, + panes: [ + ( + size: "100%", + borders: "ALL", + pane: Split( + direction: Vertical, + panes: [ + ( + size: "4", + borders: "NONE", + pane: Pane(Header), + ), + ( + size: "1", + borders: "NONE", + pane: Pane(ProgressBar), + ), + ] + ) + ), + ] + ), + ), + ( + size: "100%", + pane: Split( + direction: Horizontal, + panes: [ + ( + size: "100%", + borders: "NONE", + pane: Pane(TabContent), + ), + ] + ), + ), + ], + ), + header: ( + rows: [ + ( + left: [ + (kind: Text(""), style: (fg: "blue", modifiers: "Bold")), + (kind: Property(Status(StateV2(playing_label: "  ", paused_label: "  ", stopped_label: "  ")))), + (kind: Text(" "), style: (fg: "blue", modifiers: "Bold")), + (kind: Property(Widget(ScanStatus))) + ], + center: [ + (kind: Property(Song(Title)), style: (fg: "#eceff4",modifiers: "Bold"), + default: (kind: Property(Song(Filename)), style: (fg: "#d8dee9",modifiers: "Bold")) + ) + ], + right: [ + (kind: Text("󱡬"), style: (fg: "blue", modifiers: "Bold")), + (kind: Property(Status(Volume)), style: (fg: "#eceff4", modifiers: "Bold")), + (kind: Text("%"), style: (fg: "blue", modifiers: "Bold")) + ] + ), + ( + left: [ + (kind: Text("[ "),style: (fg: "blue", modifiers: "Bold")), + (kind: Property(Status(Elapsed)),style: (fg: "#eceff4")), + (kind: Text(" / "),style: (fg: "cyan", modifiers: "Bold")), + (kind: Property(Status(Duration)),style: (fg: "#eceff4")), + (kind: Text(" | "),style: (fg: "cyan")), + (kind: Property(Status(Bitrate)),style: (fg: "#eceff4")), + (kind: Text(" kbps"),style: (fg: "cyan")), + (kind: Text("]"),style: (fg: "blue", modifiers: "Bold")) + ], + center: [ + (kind: Property(Song(Artist)), style: (fg: "white", modifiers: "Bold"), + default: (kind: Text("Unknown Artist"), style: (fg: "white", modifiers: "Bold")) + ), + (kind: Text(" - ")), + (kind: Property(Song(Album)),style: (fg: "white" ), + default: (kind: Text("Unknown Album"), style: (fg: "white", modifiers: "Bold")) + ) + ], + right: [ + (kind: Text("[ "),style: (fg: "blue")), + (kind: Property(Status(RepeatV2( + on_label: "", off_label: "", + on_style: (fg: "#eceff4", modifiers: "Bold"), off_style: (fg: "dark_gray", modifiers: "Bold"))))), + (kind: Text(" | "),style: (fg: "blue")), + (kind: Property(Status(RandomV2( + on_label: "", off_label: "", + on_style: (fg: "#eceff4", modifiers: "Bold"), off_style: (fg: "dark_gray", modifiers: "Bold"))))), + (kind: Text(" | "),style: (fg: "blue")), + (kind: Property(Status(ConsumeV2( + on_label: "󰮯", off_label: "󰮯", oneshot_label: "󰮯󰇊", + on_style: (fg: "#eceff4", modifiers: "Bold"), off_style: (fg: "dark_gray", modifiers: "Bold"))))), + (kind: Text(" | "),style: (fg: "blue")), + (kind: Property(Status(SingleV2( + on_label: "󰎤", off_label: "󰎦", oneshot_label: "󰇊", off_oneshot_label: "󱅊", + on_style: (fg: "#eceff4", modifiers: "Bold"), off_style: (fg: "dark_gray", modifiers: "Bold"))))), + (kind: Text(" ]"),style: (fg: "blue")), + ] + ), + ], + ), + browser_song_format: [ + ( + kind: Group([ + (kind: Property(Track)), + (kind: Text(" ")), + ]) + ), + ( + kind: Group([ + (kind: Property(Artist)), + (kind: Text(" - ")), + (kind: Property(Title)), + ]), + default: (kind: Property(Filename)) + ), + ], +) diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc new file mode 100644 index 0000000..d05b34a --- /dev/null +++ b/.config/shell/aliasrc @@ -0,0 +1,77 @@ +#!/bin/sh + +# Use neovim for vim if present. +[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d" + +[ -f "$MBSYNCRC" ] && alias mbsync="mbsync -c $MBSYNCRC" + +# doas not required for some system commands +for command in mount umount pacman rc-service rc-update emerge emaint dinitctl updatedb su shutdown poweroff reboot ; do + alias $command="doas $command" +done; unset command + +se() { + choice="$(fd . --base-directory=$HOME/.local/bin -t f --min-depth=1 | fzf)" + [ -f "$HOME/.local/bin/$choice" ] && $EDITOR "$HOME/.local/bin/$choice" +} + +# Verbosity and settings that you pretty much just always are going to want. +alias \ + cp="cp -iv" \ + mv="mv -iv" \ + rm="rm -vI" \ + bc="bc -ql" \ + rsync="rsync -vrPlu" \ + mkd="mkdir -pv" \ + yt="yt-dlp --embed-metadata -i" \ + yta="yt -x -f bestaudio/best" \ + ytt="yt --skip-download --write-thumbnail" \ + ffmpeg="ffmpeg -hide_banner" + +# Colorize commands when possible. +alias \ + ll="eza -lh --group-directories-first --color=auto --color-scale=all --color-scale-mode=fixed --icons --no-quotes --smart-group -s size --total-size --no-user --no-permissions" \ + ls="eza --group-directories-first --color=auto --icons --no-quotes -s name" \ + lsf="eza -f --group-directories-first --color=auto --icons --no-quotes -s name" \ + lsd="eza -D --group-directories-first --color=auto --icons --no-quotes -s name" \ + lst="eza -lh --group-directories-first --color=auto --color-scale --icons --no-quotes --smart-group -s time --total-size --no-user --no-permissions" \ + cat="bat -P" \ + ccat="highlight --out-format=ansi" \ + ip="ip -color=auto" + +# These common commands are just too long! Abbreviate them. +alias \ + cl="clear" \ + ka="killall" \ + trem="transmission-remote" \ + YT="youtube-viewer" \ + sdn="shutdown -h now" \ + e="emerge" \ + v="$EDITOR" \ + p="paru" \ + z="zathura" \ + lg="lazygit" \ + sx="swayimg" \ + md="monerod --prune-blockchain --fast-block-sync 1 --data-dir /mnt/ssd/monero/bitmonero" \ + fetch="fastfetch --logo-color-2 default" \ + de="doasedit" \ + pu="emerge -avuDN @world" \ + eq="equery" \ + +# Git related +alias \ + g="git" \ + gs="git status --short" \ + gd="git diff" \ + ga="git add" \ + gc="git commit" \ + gp="git push" \ + gu="git pull" \ + gl="git log" \ + gb="git branch" \ + gi="git init" \ + gcl="git clone" + +alias \ + magit="nvim -c MagitOnly" \ + ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" diff --git a/.config/shell/bm-dirs b/.config/shell/bm-dirs new file mode 100644 index 0000000..3ab0b0d --- /dev/null +++ b/.config/shell/bm-dirs @@ -0,0 +1,14 @@ +# You can add comments to these files with # +cac ${XDG_CACHE_HOME:-$HOME/.cache} +cf ${XDG_CONFIG_HOME:-$HOME/.config} +D ${XDG_DOWNLOAD_DIR:-$HOME/Downloads} +d ${XDG_DOCUMENTS_DIR:-$HOME/Documents} +dt ${XDG_DATA_HOME:-$HOME/.local/share} +rr /mnt/ssd/projects +h $HOME +m ${XDG_MUSIC_DIR:-$HOME/Music} +mn /mnt +pp ${XDG_PICTURES_DIR:-$HOME/Pictures} +sc $HOME/.local/bin +src $HOME/.local/src +vv ${XDG_VIDEOS_DIR:-$HOME/Videos} diff --git a/.config/shell/bm-files b/.config/shell/bm-files new file mode 100644 index 0000000..7d7ef0d --- /dev/null +++ b/.config/shell/bm-files @@ -0,0 +1,16 @@ +# These files automatically update when edited/saved in vim: + +# keys filename description +bf ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-files # This file, a list of bookmarked files +bd ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs # A list of bookmarked directories similar to this file + +# These do not update automatically, but on the next new instance of a program: + +cfv ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/init.vim # vim/neovim config +cfz $ZDOTDIR/.zshrc # zsh (shell) config +cfa ${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc # aliases used by zsh (and potentially other shells) +cfp ${XDG_CONFIG_HOME:-$HOME/.config}/shell/profile # profile file for login settings for zsh +cfm ${XDG_CONFIG_HOME:-$HOME/.config}/mutt/muttrc # mutt (email client) config +cfn ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/config # newsboat (RSS reader) +cfu ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/urls # RSS urls for newsboat +cfmc ${XDG_CONFIG_HOME:-$HOME/.config}/rmpc/config.ron # rmpc (music player) config diff --git a/.config/shell/inputrc b/.config/shell/inputrc new file mode 100644 index 0000000..f9b94dd --- /dev/null +++ b/.config/shell/inputrc @@ -0,0 +1,19 @@ +$include /etc/inputrc +set editing-mode vi +$if mode=vi + +set show-mode-in-prompt on +set vi-ins-mode-string \1\e[6 q\2 +set vi-cmd-mode-string \1\e[2 q\2 + +set keymap vi-command +# these are for vi-command mode +Control-l: clear-screen +Control-a: beginning-of-line + +set keymap vi-insert +# these are for vi-insert mode +Control-l: clear-screen +Control-a: beginning-of-line + +$endif diff --git a/.config/shell/profile b/.config/shell/profile new file mode 100644 index 0000000..9f8f252 --- /dev/null +++ b/.config/shell/profile @@ -0,0 +1,113 @@ +#!/bin/sh +# shellcheck disable=SC2155 + +# Profile file, runs on login. Environmental variables are set here. + +# Add all directories in `~/.local/bin` to $PATH +export PATH="$PATH:$(find ~/.local/bin -type d | paste -sd ':' -)" + +unsetopt PROMPT_SP 2>/dev/null + +# Default programs: +export EDITOR="nvim" +export MANPAGER='nvim +Man!' +export TERMINAL="footclient" +export TERMINAL_PROG="footclient" +export TERMCMD="footclient" +export BROWSER="icecat" + +unset SSH_AGENT_PID +if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then + export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +fi + +# Change the default crypto/weather monitor sites. +# export CRYPTOURL="rate.sx" +# export WTTRURL="wttr.in" + +# ~/ Clean-up: +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CACHE_HOME="$HOME/.cache" +export XDG_STATE_HOME="$HOME/.local/state" +export XDG_MUSIC_DIR="/mnt/ssd/music" +export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config" +export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc" +export INPUTRC="$XDG_CONFIG_HOME/shell/inputrc" +export ZDOTDIR="$XDG_CONFIG_HOME/zsh" +#export GNUPGHOME="$XDG_DATA_HOME/gnupg" +export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default" +export KODI_DATA="$XDG_DATA_HOME/kodi" +export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store" +export TMUX_TMPDIR="$XDG_RUNTIME_DIR" +export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android" +export CARGO_HOME="$XDG_DATA_HOME/cargo" +export GOPATH="$XDG_DATA_HOME/go" +export GOMODCACHE="$XDG_CACHE_HOME/go/mod" +export ANSIBLE_CONFIG="$XDG_CONFIG_HOME/ansible/ansible.cfg" +export UNISON="$XDG_DATA_HOME/unison" +export HISTFILE="$XDG_DATA_HOME/history" +export MBSYNCRC="$XDG_CONFIG_HOME/mbsync/config" +export ELECTRUMDIR="$XDG_DATA_HOME/electrum" +export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc" +export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history" +export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" +export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv" +export KUBECONFIG="$XDG_CONFIG_HOME/kube/config" +export KUBECACHEDIR="$XDG_CACHE_HOME/kube" +export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker" +export PASSWORD_STORE_CLIP_TIME=5 +export W3M_DIR="$XDG_STATE_HOME/w3m" + +# Other program settings: +export DICS="/usr/share/stardict/dic/" +export DOAS_ASKPASS="$HOME/.local/bin/dmenupass" +export LESS="R" +export LESS_TERMCAP_mb="$(printf '%b' '')" +export LESS_TERMCAP_md="$(printf '%b' '')" +export LESS_TERMCAP_me="$(printf '%b' '')" +export LESS_TERMCAP_so="$(printf '%b' '')" +export LESS_TERMCAP_se="$(printf '%b' '')" +export LESS_TERMCAP_us="$(printf '%b' '')" +export LESS_TERMCAP_ue="$(printf '%b' '')" +export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null" +export QT_QPA_PLATFORMTHEME="qt5ct" # Have QT use gtk3 theme. +export MOZ_USE_XINPUT2=1 # Mozilla smooth scrolling/touchpads. +export AWT_TOOLKIT="MToolkit wmname LG3D" # May have to install wmname +export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm +export LIBVA_DRIVER_NAME=nvidia +export __GLX_VENDOR_LIBRARY_NAME=nvidia +export MOZ_DISABLE_RDD_SANDBOX=1 # For HW in Firefox on nvidia gpu +export ELECTRON_OZONE_PLATFORM_HINT=auto # Electron fix +export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 # Disables decorations for QT applications +export __GL_THREADED_OPTIMIZATIONS=0 # fixes minecraft wayland +export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS \ +--color=fg:#e5e9f0,bg:-1,hl:#81a1c1 +--color=fg+:#e5e9f0,bg+:#3b4252,hl+:#81a1c1 +--color=info:#eacb8a,prompt:#bf6069,pointer:#b48dac +--color=marker:#a3be8b,spinner:#b48dac,header:#a3be8b +--cycle +--scroll-off=8 +--tabstop=4 +--preview-window=border-sharp +--highlight-line +--no-ansi +--scrollbar=█ +--wrap-sign= +--bind=ctrl-u:preview-half-page-up +--bind=ctrl-d:preview-half-page-down +--bind=ctrl-l:forward-char +--bind=ctrl-h:backward-char +--bind=resize:refresh-preview +" +export YT_X_FZF_OPTS="$FZF_DEFAULT_OPTS" +# export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#767676" +export BAT_THEME="gruvbox-dark" +export GTK_USE_PORTAL=1 +export ENABLE_HDR_WSI=1 +export WLR_RENDERER="vulkan" + +[ ! -f "$XDG_CONFIG_HOME/shell/shortcutrc" ] && setsid -f shortcuts >/dev/null 2>&1 + +# Start graphical server on user's current tty if not already running. +[ "$(tty)" = "/dev/tty1" ] && ! pidof -s mango >/dev/null 2>&1 && exec dbus-run-session mango diff --git a/.config/shell/shortcutenvrc b/.config/shell/shortcutenvrc new file mode 100644 index 0000000..2403622 --- /dev/null +++ b/.config/shell/shortcutenvrc @@ -0,0 +1,24 @@ +# vim: filetype=sh +[ -n "cac" ] && export cac="/home/awy/.cache" +[ -n "cf" ] && export cf="/home/awy/.config" +[ -n "D" ] && export D="/home/awy/Downloads" +[ -n "d" ] && export d="/home/awy/Documents" +[ -n "dt" ] && export dt="/home/awy/.local/share" +[ -n "rr" ] && export rr="/mnt/ssd/projects" +[ -n "h" ] && export h="/home/awy" +[ -n "m" ] && export m="/mnt/ssd/music" +[ -n "mn" ] && export mn="/mnt" +[ -n "pp" ] && export pp="/home/awy/Pictures" +[ -n "sc" ] && export sc="/home/awy/.local/bin" +[ -n "src" ] && export src="/home/awy/.local/src" +[ -n "vv" ] && export vv="/home/awy/Videos" +[ -n "bf" ] && export bf="/home/awy/.config/shell/bm-files" +[ -n "bd" ] && export bd="/home/awy/.config/shell/bm-dirs" +[ -n "cfv" ] && export cfv="/home/awy/.config/nvim/init.vim" +[ -n "cfz" ] && export cfz="/home/awy/.config/zsh/.zshrc" +[ -n "cfa" ] && export cfa="/home/awy/.config/shell/aliasrc" +[ -n "cfp" ] && export cfp="/home/awy/.config/shell/profile" +[ -n "cfm" ] && export cfm="/home/awy/.config/mutt/muttrc" +[ -n "cfn" ] && export cfn="/home/awy/.config/newsboat/config" +[ -n "cfu" ] && export cfu="/home/awy/.config/newsboat/urls" +[ -n "cfmc" ] && export cfmc="/home/awy/.config/rmpc/config.ron" diff --git a/.config/shell/shortcutrc b/.config/shell/shortcutrc new file mode 100644 index 0000000..2a9bc3b --- /dev/null +++ b/.config/shell/shortcutrc @@ -0,0 +1,24 @@ +# vim: filetype=sh +alias cac="cd /home/awy/.cache && ls -A" \ +cf="cd /home/awy/.config && ls -A" \ +D="cd /home/awy/Downloads && ls -A" \ +d="cd /home/awy/Documents && ls -A" \ +dt="cd /home/awy/.local/share && ls -A" \ +rr="cd /mnt/ssd/projects && ls -A" \ +h="cd /home/awy && ls -A" \ +m="cd /mnt/ssd/music && ls -A" \ +mn="cd /mnt && ls -A" \ +pp="cd /home/awy/Pictures && ls -A" \ +sc="cd /home/awy/.local/bin && ls -A" \ +src="cd /home/awy/.local/src && ls -A" \ +vv="cd /home/awy/Videos && ls -A" \ +bf="$EDITOR /home/awy/.config/shell/bm-files" \ +bd="$EDITOR /home/awy/.config/shell/bm-dirs" \ +cfv="$EDITOR /home/awy/.config/nvim/init.vim" \ +cfz="$EDITOR /home/awy/.config/zsh/.zshrc" \ +cfa="$EDITOR /home/awy/.config/shell/aliasrc" \ +cfp="$EDITOR /home/awy/.config/shell/profile" \ +cfm="$EDITOR /home/awy/.config/mutt/muttrc" \ +cfn="$EDITOR /home/awy/.config/newsboat/config" \ +cfu="$EDITOR /home/awy/.config/newsboat/urls" \ +cfmc="$EDITOR /home/awy/.config/rmpc/config.ron" \ diff --git a/.config/shell/zshnameddirrc b/.config/shell/zshnameddirrc new file mode 100644 index 0000000..0a17475 --- /dev/null +++ b/.config/shell/zshnameddirrc @@ -0,0 +1,23 @@ +hash -d cac=/home/awy/.cache +hash -d cf=/home/awy/.config +hash -d D=/home/awy/Downloads +hash -d d=/home/awy/Documents +hash -d dt=/home/awy/.local/share +hash -d rr=/mnt/ssd/projects +hash -d h=/home/awy +hash -d m=/mnt/ssd/music +hash -d mn=/mnt +hash -d pp=/home/awy/Pictures +hash -d sc=/home/awy/.local/bin +hash -d src=/home/awy/.local/src +hash -d vv=/home/awy/Videos +hash -d bf=/home/awy/.config/shell/bm-files +hash -d bd=/home/awy/.config/shell/bm-dirs +hash -d cfv=/home/awy/.config/nvim/init.vim +hash -d cfz=/home/awy/.config/zsh/.zshrc +hash -d cfa=/home/awy/.config/shell/aliasrc +hash -d cfp=/home/awy/.config/shell/profile +hash -d cfm=/home/awy/.config/mutt/muttrc +hash -d cfn=/home/awy/.config/newsboat/config +hash -d cfu=/home/awy/.config/newsboat/urls +hash -d cfmc=/home/awy/.config/rmpc/config.ron diff --git a/.config/swayidle/config b/.config/swayidle/config new file mode 100644 index 0000000..626c75e --- /dev/null +++ b/.config/swayidle/config @@ -0,0 +1,3 @@ +timeout 300 'swaylock -f' +timeout 330 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' +before-sleep 'swaylock -f' diff --git a/.config/swayimg/config b/.config/swayimg/config new file mode 100644 index 0000000..68a1650 --- /dev/null +++ b/.config/swayimg/config @@ -0,0 +1,38 @@ +[general] +overlay = no +[viewer] +window = #000000 +scale = fit +[gallery] +window = #000000 +[list] +all = yes +[keys.viewer] +h = step_left +j = step_down +k = step_up +l = step_right +n = next_file +p = prev_file +w = zoom fit +g = first_file +Shift+g = last_file +Ctrl+x = exec ~/.config/swayimg/key-handler "%" +r = rotate_right +Shift+r = rotate_left +Alt+Shift+k = zoom +20 +Alt+Shift+j = zoom -20 +[keys.gallery] +h = step_left +j = step_down +k = step_up +l = step_right +g = first_file +Shift+g = last_file +[info] +info_timeout = 0 +[info.viewer] +top_left = none +top_right = none +bottom_left = +name +bottom_right = +scale,+frame,+index diff --git a/.config/swayimg/key-handler b/.config/swayimg/key-handler new file mode 100755 index 0000000..b28e4f6 --- /dev/null +++ b/.config/swayimg/key-handler @@ -0,0 +1,35 @@ +#!/bin/sh +file=$1 +[ -z "$selection" ] && selection=$(printf "w - Set as wallpaper\nc - Copy to dir\nm - Move to dir\nr - Rotate 90°\nR - Rotate -90°\nf - Flip horizontal\ny - Copy filename to clipboard\nY - Copy full path to clipboard\nd - Delete\ng - Open in GIMP\ni - Show media info" | + mew -i -l 12 -p "Choose action for selected files:") +action=$(printf "%s" "$selection" | cut -d'-' -f1 | tr -d ' ') +case "$action" in + "w") setbg "$file" & ;; + "c") + [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | mew -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")" + [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit + cp "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file copied to $destdir." & + ;; + "m") + [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | mew -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")" + [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit + mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." & + ;; + "r") + magick "$file" -rotate 90 "$file" ;; + "R") + magick "$file" -rotate -90 "$file" ;; + "f") + magick "$file" -flop "$file" ;; + "y") + printf "%s" "$file" | tr -d '\n' | wl-copy && + notify-send "$file copied to clipboard" & ;; + "Y") + readlink -f "$file" | tr -d '\n' | wl-copy && + notify-send "$(readlink -f "$file") copied to clipboard" & ;; + "d") + [ "$(printf "No\\nYes" | mew -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;; + "g") ifinstalled gimp && setsid -f gimp "$file" ;; + "i") notify-send "File information" "$(mediainfo "$file" | sed "s/[ ]\+:/:/g;s/: /: /;s/$/<\/b>/" | rg "")" ;; + *) notify-send "No keybind for that key" ;; +esac diff --git a/.config/swaylock/config b/.config/swaylock/config new file mode 100644 index 0000000..501b8d6 --- /dev/null +++ b/.config/swaylock/config @@ -0,0 +1 @@ +image=$(fd . /mnt/ssd/papes -t f | shuf -n1) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..e908fa2 --- /dev/null +++ b/.config/tmux/tmux.conf @@ -0,0 +1,67 @@ +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +# set -g @plugin "nordtheme/tmux" + +# ========== General options ========== +# Neovim told me to set these parameters +set-option -sg escape-time 10 +set-option -g focus-events on +# Tell tmux that foot support true color +set -sa terminal-features 'foot*:sixel:sync:RGB:256:hyperlinks:usstyle:rectfill:focus:mouse' +# Limit scrollback buffer to 100k lines +set -g history-limit 100000 +# needed for large sixels +set -gq input-buffer-size 10485760 +# Automatically renumber windows when a window is closed +set -g renumber-windows on +set -g display-panes-time 60000 +# Update envvars so hyprctl works +set -g update-environment DISPLAY +set -ga update-environment HYPRLAND_INSTANCE_SIGNATURE +set -ga update-environment HYPRLAND_CMD +set -ga update-environment WAYLAND_DISPLAY +set -ga update-environment SWAYSOCK +set -ga update-environment I3SOCK + +# ========== Keybinds ========== +# Enable mouse +set -g mouse on + +# Prefix is Ctrl-a +set -g prefix C-a +bind C-a send-prefix +unbind C-b + +# Vim-like keybinds +set -g mode-keys vi +set -g status-keys vi + +# reload config on r +bind r source-file "~/.config/tmux/tmux.conf" + +# Split pane into two +bind \\ split-window -h -c "#{pane_current_path}" +bind - split-window -v -c "#{pane_current_path}" +unbind '"' +unbind % + +# moving between panes with vim movement keys +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# Moving between windows with j and k +# If a window to the right of the current window exists, switch to it, otherwise create a new one +bind -r C-k if-shell -F '#{==:#{active_window_index},#{last_window_index}}' 'new-window' 'select-window -n' +# If the current window is the leftmost window, do nothing +bind -r C-j if-shell -F '#{>:#{window_index},0}' 'select-window -p' + +# resize panes with vim movement keys +bind -r H resize-pane -L 1 +bind -r J resize-pane -D 1 +bind -r K resize-pane -U 1 +bind -r L resize-pane -R 1 + +run '~/.config/tmux/plugins/tpm/tpm' diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs new file mode 100644 index 0000000..5a28707 --- /dev/null +++ b/.config/user-dirs.dirs @@ -0,0 +1 @@ +XDG_DESKTOP_DIR="$HOME/" diff --git a/.config/wget/wgetrc b/.config/wget/wgetrc new file mode 100644 index 0000000..4fd7999 --- /dev/null +++ b/.config/wget/wgetrc @@ -0,0 +1 @@ +hsts-file=~/.cache/wget-hsts diff --git a/.config/xdg-desktop-portal-termfilechooser/config b/.config/xdg-desktop-portal-termfilechooser/config new file mode 100644 index 0000000..9a7c196 --- /dev/null +++ b/.config/xdg-desktop-portal-termfilechooser/config @@ -0,0 +1,2 @@ +[filechooser] +env=TERMCMD="footclient -a termfilechooser" diff --git a/.config/xdg-desktop-portal/config b/.config/xdg-desktop-portal/config new file mode 100644 index 0000000..5a36bf6 --- /dev/null +++ b/.config/xdg-desktop-portal/config @@ -0,0 +1,2 @@ +[preferred] +org.freedesktop.impl.portal.FileChooser=termfilechooser diff --git a/.config/yazi/flavors/catppuccin-mocha.yazi/flavor.toml b/.config/yazi/flavors/catppuccin-mocha.yazi/flavor.toml new file mode 100644 index 0000000..e90c2dd --- /dev/null +++ b/.config/yazi/flavors/catppuccin-mocha.yazi/flavor.toml @@ -0,0 +1,186 @@ +# vim:fileencoding=utf-8:foldmethod=marker + +# : Manager {{{ + +[mgr] +cwd = { fg = "#94e2d5" } + +# Hovered +hovered = { reversed = true } +preview_hovered = { underline = true } + +# Find +find_keyword = { fg = "#f9e2af", bold = true, italic = true, underline = true } +find_position = { fg = "#f5c2e7", bg = "reset", bold = true, italic = true } + +# Marker +marker_copied = { fg = "#a6e3a1", bg = "#a6e3a1" } +marker_cut = { fg = "#f38ba8", bg = "#f38ba8" } +marker_marked = { fg = "#94e2d5", bg = "#94e2d5" } +marker_selected = { fg = "#f9e2af", bg = "#f9e2af" } + +# Count +count_copied = { fg = "#1e1e2e", bg = "#a6e3a1" } +count_cut = { fg = "#1e1e2e", bg = "#f38ba8" } +count_selected = { fg = "#1e1e2e", bg = "#f9e2af" } + +# Border +border_symbol = "│" +border_style = { fg = "#7f849c" } + +# : }}} + + +# : Tabs {{{ + +[tabs] +active = { fg = "#1e1e2e", bg = "#89b4fa", bold = true } +inactive = { fg = "#89b4fa", bg = "#313244" } + +# : }}} + + +# : Mode {{{ + +[mode] + +normal_main = { fg = "#1e1e2e", bg = "#89b4fa", bold = true } +normal_alt = { fg = "#89b4fa", bg = "#313244" } + +# Select mode +select_main = { fg = "#1e1e2e", bg = "#94e2d5", bold = true } +select_alt = { fg = "#94e2d5", bg = "#313244" } + +# Unset mode +unset_main = { fg = "#1e1e2e", bg = "#f2cdcd", bold = true } +unset_alt = { fg = "#f2cdcd", bg = "#313244" } + +# : }}} + + +# : Status bar {{{ + +[status] +# Permissions +perm_sep = { fg = "#7f849c" } +perm_type = { fg = "#89b4fa" } +perm_read = { fg = "#f9e2af" } +perm_write = { fg = "#f38ba8" } +perm_exec = { fg = "#a6e3a1" } + +# Progress +progress_label = { fg = "#ffffff", bold = true } +progress_normal = { fg = "#89b4fa", bg = "#45475a" } +progress_error = { fg = "#89b4fa", bg = "#f38ba8" } + +# : }}} + + +# : Pick {{{ + +[pick] +border = { fg = "#89b4fa" } +active = { fg = "#f5c2e7", bold = true } +inactive = {} + +# : }}} + + +# : Input {{{ + +[input] +border = { fg = "#89b4fa" } +title = {} +value = {} +selected = { reversed = true } + +# : }}} + + +# : Completion {{{ + +[cmp] +border = { fg = "#89b4fa" } + +# : }}} + + +# : Tasks {{{ + +[tasks] +border = { fg = "#89b4fa" } +title = {} +hovered = { fg = "#f5c2e7", bold = true } + +# : }}} + + +# : Which {{{ + +[which] +mask = { bg = "#313244" } +cand = { fg = "#94e2d5" } +rest = { fg = "#9399b2" } +desc = { fg = "#f5c2e7" } +separator = "  " +separator_style = { fg = "#585b70" } + +# : }}} + + +# : Help {{{ + +[help] +on = { fg = "#94e2d5" } +run = { fg = "#f5c2e7" } +hovered = { reversed = true, bold = true } +footer = { fg = "#313244", bg = "#cdd6f4" } + +# : }}} + + +# : Spotter {{{ + +[spot] +border = { fg = "#89b4fa" } +title = { fg = "#89b4fa" } +tbl_col = { fg = "#94e2d5" } +tbl_cell = { fg = "#f5c2e7", bg = "#45475a" } + +# : }}} + + +# : Notification {{{ + +[notify] +title_info = { fg = "#a6e3a1" } +title_warn = { fg = "#f9e2af" } +title_error = { fg = "#f38ba8" } + +# : }}} + + +# : File-specific styles {{{ + +[filetype] + +rules = [ + # Image + { mime = "image/*", fg = "#94e2d5" }, + # Media + { mime = "{audio,video}/*", fg = "#f9e2af" }, + # Archive + { mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", fg = "#f5c2e7" }, + # Document + { mime = "application/{pdf,doc,rtf}", fg = "#a6e3a1" }, + # Virtual file system + { mime = "vfs/*", fg = "#9399b2" }, + # Fallback + { url = "*", fg = "#cdd6f4" }, + { url = "*/", fg = "#89b4fa" }, + # TODO: remove + { name = "*", fg = "#cdd6f4" }, + { name = "*/", fg = "#89b4fa" } +] + +# : }}} diff --git a/.config/yazi/flavors/catppuccin-mocha.yazi/tmtheme.xml b/.config/yazi/flavors/catppuccin-mocha.yazi/tmtheme.xml new file mode 100644 index 0000000..c7781ce --- /dev/null +++ b/.config/yazi/flavors/catppuccin-mocha.yazi/tmtheme.xml @@ -0,0 +1,2112 @@ + + + + + name + Catppuccin Mocha + semanticClass + theme.dark.catppuccin-mocha + uuid + 627ce890-fabb-4d39-9819-7be71f4bdca7 + author + Catppuccin Org + colorSpaceName + sRGB + settings + + + settings + + background + #1e1e2e + foreground + #cdd6f4 + caret + #f5e0dc + lineHighlight + #313244 + misspelling + #f38ba8 + accent + #cba6f7 + selection + #9399b240 + activeGuide + #45475a + findHighlight + #3e5767 + gutterForeground + #7f849c + + + + name + Basic text & variable names (incl. leading punctuation) + scope + text, source, variable.other.readwrite, punctuation.definition.variable + settings + + foreground + #cdd6f4 + + + + name + Parentheses, Brackets, Braces + scope + punctuation + settings + + foreground + #9399b2 + fontStyle + + + + + name + Comments + scope + comment, punctuation.definition.comment + settings + + foreground + #9399b2 + fontStyle + italic + + + + scope + string, punctuation.definition.string + settings + + foreground + #a6e3a1 + + + + scope + constant.character.escape + settings + + foreground + #f5c2e7 + + + + name + Booleans, constants, numbers + scope + constant.numeric, variable.other.constant, entity.name.constant, constant.language.boolean, constant.language.false, constant.language.true, keyword.other.unit.user-defined, keyword.other.unit.suffix.floating-point + settings + + foreground + #fab387 + + + + scope + keyword, keyword.operator.word, keyword.operator.new, variable.language.super, support.type.primitive, storage.type, storage.modifier, punctuation.definition.keyword + settings + + foreground + #cba6f7 + fontStyle + + + + + scope + entity.name.tag.documentation + settings + + foreground + #cba6f7 + + + + name + Punctuation + scope + keyword.operator, punctuation.accessor, punctuation.definition.generic, meta.function.closure punctuation.section.parameters, punctuation.definition.tag, punctuation.separator.key-value + settings + + foreground + #94e2d5 + + + + scope + entity.name.function, meta.function-call.method, support.function, support.function.misc, variable.function + settings + + foreground + #89b4fa + fontStyle + italic + + + + name + Classes + scope + entity.name.class, entity.other.inherited-class, support.class, meta.function-call.constructor, entity.name.struct + settings + + foreground + #f9e2af + fontStyle + italic + + + + name + Enum + scope + entity.name.enum + settings + + foreground + #f9e2af + fontStyle + italic + + + + name + Enum member + scope + meta.enum variable.other.readwrite, variable.other.enummember + settings + + foreground + #94e2d5 + + + + name + Object properties + scope + meta.property.object + settings + + foreground + #94e2d5 + + + + name + Types + scope + meta.type, meta.type-alias, support.type, entity.name.type + settings + + foreground + #f9e2af + fontStyle + italic + + + + name + Decorators + scope + meta.annotation variable.function, meta.annotation variable.annotation.function, meta.annotation punctuation.definition.annotation, meta.decorator, punctuation.decorator + settings + + foreground + #fab387 + + + + scope + variable.parameter, meta.function.parameters + settings + + foreground + #eba0ac + fontStyle + italic + + + + name + Built-ins + scope + constant.language, support.function.builtin + settings + + foreground + #f38ba8 + + + + scope + entity.other.attribute-name.documentation + settings + + foreground + #f38ba8 + + + + name + Preprocessor directives + scope + keyword.control.directive, punctuation.definition.directive + settings + + foreground + #f9e2af + + + + name + Type parameters + scope + punctuation.definition.typeparameters + settings + + foreground + #89dceb + + + + name + Namespaces + scope + entity.name.namespace + settings + + foreground + #f9e2af + + + + name + Property names (left hand assignments in json/yaml/css) + scope + support.type.property-name.css + settings + + foreground + #89b4fa + fontStyle + + + + + name + This/Self keyword + scope + variable.language.this, variable.language.this punctuation.definition.variable + settings + + foreground + #f38ba8 + + + + name + Object properties + scope + variable.object.property + settings + + foreground + #cdd6f4 + + + + name + String template interpolation + scope + string.template variable, string variable + settings + + foreground + #cdd6f4 + + + + name + `new` as bold + scope + keyword.operator.new + settings + + fontStyle + bold + + + + name + C++ extern keyword + scope + storage.modifier.specifier.extern.cpp + settings + + foreground + #cba6f7 + + + + name + C++ scope resolution + scope + entity.name.scope-resolution.template.call.cpp, entity.name.scope-resolution.parameter.cpp, entity.name.scope-resolution.cpp, entity.name.scope-resolution.function.definition.cpp + settings + + foreground + #f9e2af + + + + name + C++ doc keywords + scope + storage.type.class.doxygen + settings + + fontStyle + + + + + name + C++ operators + scope + storage.modifier.reference.cpp + settings + + foreground + #94e2d5 + + + + name + C# Interpolated Strings + scope + meta.interpolation.cs + settings + + foreground + #cdd6f4 + + + + name + C# xml-style docs + scope + comment.block.documentation.cs + settings + + foreground + #cdd6f4 + + + + name + Classes, reflecting the className color in JSX + scope + source.css entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector.css punctuation.definition.entity.css + settings + + foreground + #f9e2af + + + + name + Operators + scope + punctuation.separator.operator.css + settings + + foreground + #94e2d5 + + + + name + Pseudo classes + scope + source.css entity.other.attribute-name.pseudo-class + settings + + foreground + #94e2d5 + + + + scope + source.css constant.other.unicode-range + settings + + foreground + #fab387 + + + + scope + source.css variable.parameter.url + settings + + foreground + #a6e3a1 + fontStyle + + + + + name + CSS vendored property names + scope + support.type.vendored.property-name + settings + + foreground + #89dceb + + + + name + Less/SCSS right-hand variables (@/$-prefixed) + scope + source.css meta.property-value variable, source.css meta.property-value variable.other.less, source.css meta.property-value variable.other.less punctuation.definition.variable.less, meta.definition.variable.scss + settings + + foreground + #eba0ac + + + + name + CSS variables (--prefixed) + scope + source.css meta.property-list variable, meta.property-list variable.other.less, meta.property-list variable.other.less punctuation.definition.variable.less + settings + + foreground + #89b4fa + + + + name + CSS Percentage values, styled the same as numbers + scope + keyword.other.unit.percentage.css + settings + + foreground + #fab387 + + + + name + CSS Attribute selectors, styled the same as strings + scope + source.css meta.attribute-selector + settings + + foreground + #a6e3a1 + + + + name + JSON/YAML keys, other left-hand assignments + scope + keyword.other.definition.ini, punctuation.support.type.property-name.json, support.type.property-name.json, punctuation.support.type.property-name.toml, support.type.property-name.toml, entity.name.tag.yaml, punctuation.support.type.property-name.yaml, support.type.property-name.yaml + settings + + foreground + #89b4fa + fontStyle + + + + + name + JSON/YAML constants + scope + constant.language.json, constant.language.yaml + settings + + foreground + #fab387 + + + + name + YAML anchors + scope + entity.name.type.anchor.yaml, variable.other.alias.yaml + settings + + foreground + #f9e2af + fontStyle + + + + + name + TOML tables / ini groups + scope + support.type.property-name.table, entity.name.section.group-title.ini + settings + + foreground + #f9e2af + + + + name + TOML dates + scope + constant.other.time.datetime.offset.toml + settings + + foreground + #f5c2e7 + + + + name + YAML anchor puctuation + scope + punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml + settings + + foreground + #f5c2e7 + + + + name + YAML triple dashes + scope + entity.other.document.begin.yaml + settings + + foreground + #f5c2e7 + + + + name + Markup Diff + scope + markup.changed.diff + settings + + foreground + #fab387 + + + + name + Diff + scope + meta.diff.header.from-file, meta.diff.header.to-file, punctuation.definition.from-file.diff, punctuation.definition.to-file.diff + settings + + foreground + #89b4fa + + + + name + Diff Inserted + scope + markup.inserted.diff + settings + + foreground + #a6e3a1 + + + + name + Diff Deleted + scope + markup.deleted.diff + settings + + foreground + #f38ba8 + + + + name + dotenv left-hand side assignments + scope + variable.other.env + settings + + foreground + #89b4fa + + + + name + dotenv reference to existing env variable + scope + string.quoted variable.other.env + settings + + foreground + #cdd6f4 + + + + name + GDScript functions + scope + support.function.builtin.gdscript + settings + + foreground + #89b4fa + + + + name + GDScript constants + scope + constant.language.gdscript + settings + + foreground + #fab387 + + + + name + Comment keywords + scope + comment meta.annotation.go + settings + + foreground + #eba0ac + + + + name + go:embed, go:build, etc. + scope + comment meta.annotation.parameters.go + settings + + foreground + #fab387 + + + + name + Go constants (nil, true, false) + scope + constant.language.go + settings + + foreground + #fab387 + + + + name + GraphQL variables + scope + variable.graphql + settings + + foreground + #cdd6f4 + + + + name + GraphQL aliases + scope + string.unquoted.alias.graphql + settings + + foreground + #f2cdcd + + + + name + GraphQL enum members + scope + constant.character.enum.graphql + settings + + foreground + #94e2d5 + + + + name + GraphQL field in types + scope + meta.objectvalues.graphql constant.object.key.graphql string.unquoted.graphql + settings + + foreground + #f2cdcd + + + + name + HTML/XML DOCTYPE as keyword + scope + keyword.other.doctype, meta.tag.sgml.doctype punctuation.definition.tag, meta.tag.metadata.doctype entity.name.tag, meta.tag.metadata.doctype punctuation.definition.tag + settings + + foreground + #cba6f7 + + + + name + HTML/XML-like <tags/> + scope + entity.name.tag + settings + + foreground + #89b4fa + fontStyle + + + + + name + Special characters like &amp; + scope + text.html constant.character.entity, text.html constant.character.entity punctuation, constant.character.entity.xml, constant.character.entity.xml punctuation, constant.character.entity.js.jsx, constant.charactger.entity.js.jsx punctuation, constant.character.entity.tsx, constant.character.entity.tsx punctuation + settings + + foreground + #f38ba8 + + + + name + HTML/XML tag attribute values + scope + entity.other.attribute-name + settings + + foreground + #f9e2af + + + + name + Components + scope + support.class.component, support.class.component.jsx, support.class.component.tsx, support.class.component.vue + settings + + foreground + #f5c2e7 + fontStyle + + + + + name + Annotations + scope + punctuation.definition.annotation, storage.type.annotation + settings + + foreground + #fab387 + + + + name + Java enums + scope + constant.other.enum.java + settings + + foreground + #94e2d5 + + + + name + Java imports + scope + storage.modifier.import.java + settings + + foreground + #cdd6f4 + + + + name + Javadoc + scope + comment.block.javadoc.java keyword.other.documentation.javadoc.java + settings + + fontStyle + + + + + name + Exported Variable + scope + meta.export variable.other.readwrite.js + settings + + foreground + #eba0ac + + + + name + JS/TS constants & properties + scope + variable.other.constant.js, variable.other.constant.ts, variable.other.property.js, variable.other.property.ts + settings + + foreground + #cdd6f4 + + + + name + JSDoc; these are mainly params, so styled as such + scope + variable.other.jsdoc, comment.block.documentation variable.other + settings + + foreground + #eba0ac + fontStyle + + + + + name + JSDoc keywords + scope + storage.type.class.jsdoc + settings + + fontStyle + + + + + scope + support.type.object.console.js + settings + + foreground + #cdd6f4 + + + + name + Node constants as keywords (module, etc.) + scope + support.constant.node, support.type.object.module.js + settings + + foreground + #cba6f7 + + + + name + implements as keyword + scope + storage.modifier.implements + settings + + foreground + #cba6f7 + + + + name + Builtin types + scope + constant.language.null.js, constant.language.null.ts, constant.language.undefined.js, constant.language.undefined.ts, support.type.builtin.ts + settings + + foreground + #cba6f7 + + + + scope + variable.parameter.generic + settings + + foreground + #f9e2af + + + + name + Arrow functions + scope + keyword.declaration.function.arrow.js, storage.type.function.arrow.ts + settings + + foreground + #94e2d5 + + + + name + Decorator punctuations (decorators inherit from blue functions, instead of styleguide peach) + scope + punctuation.decorator.ts + settings + + foreground + #89b4fa + fontStyle + italic + + + + name + Extra JS/TS keywords + scope + keyword.operator.expression.in.js, keyword.operator.expression.in.ts, keyword.operator.expression.infer.ts, keyword.operator.expression.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.is, keyword.operator.expression.keyof.ts, keyword.operator.expression.of.js, keyword.operator.expression.of.ts, keyword.operator.expression.typeof.ts + settings + + foreground + #cba6f7 + + + + name + Julia macros + scope + support.function.macro.julia + settings + + foreground + #94e2d5 + fontStyle + italic + + + + name + Julia language constants (true, false) + scope + constant.language.julia + settings + + foreground + #fab387 + + + + name + Julia other constants (these seem to be arguments inside arrays) + scope + constant.other.symbol.julia + settings + + foreground + #eba0ac + + + + name + LaTeX preamble + scope + text.tex keyword.control.preamble + settings + + foreground + #94e2d5 + + + + name + LaTeX be functions + scope + text.tex support.function.be + settings + + foreground + #89dceb + + + + name + LaTeX math + scope + constant.other.general.math.tex + settings + + foreground + #f2cdcd + + + + name + Liquid Builtin Objects & User Defined Variables + scope + variable.language.liquid + settings + + foreground + #f5c2e7 + + + + name + Lua docstring keywords + scope + comment.line.double-dash.documentation.lua storage.type.annotation.lua + settings + + foreground + #cba6f7 + fontStyle + + + + + name + Lua docstring variables + scope + comment.line.double-dash.documentation.lua entity.name.variable.lua, comment.line.double-dash.documentation.lua variable.lua + settings + + foreground + #cdd6f4 + + + + scope + heading.1.markdown punctuation.definition.heading.markdown, heading.1.markdown, heading.1.quarto punctuation.definition.heading.quarto, heading.1.quarto, markup.heading.atx.1.mdx, markup.heading.atx.1.mdx punctuation.definition.heading.mdx, markup.heading.setext.1.markdown, markup.heading.heading-0.asciidoc + settings + + foreground + #f38ba8 + + + + scope + heading.2.markdown punctuation.definition.heading.markdown, heading.2.markdown, heading.2.quarto punctuation.definition.heading.quarto, heading.2.quarto, markup.heading.atx.2.mdx, markup.heading.atx.2.mdx punctuation.definition.heading.mdx, markup.heading.setext.2.markdown, markup.heading.heading-1.asciidoc + settings + + foreground + #fab387 + + + + scope + heading.3.markdown punctuation.definition.heading.markdown, heading.3.markdown, heading.3.quarto punctuation.definition.heading.quarto, heading.3.quarto, markup.heading.atx.3.mdx, markup.heading.atx.3.mdx punctuation.definition.heading.mdx, markup.heading.heading-2.asciidoc + settings + + foreground + #f9e2af + + + + scope + heading.4.markdown punctuation.definition.heading.markdown, heading.4.markdown, heading.4.quarto punctuation.definition.heading.quarto, heading.4.quarto, markup.heading.atx.4.mdx, markup.heading.atx.4.mdx punctuation.definition.heading.mdx, markup.heading.heading-3.asciidoc + settings + + foreground + #a6e3a1 + + + + scope + heading.5.markdown punctuation.definition.heading.markdown, heading.5.markdown, heading.5.quarto punctuation.definition.heading.quarto, heading.5.quarto, markup.heading.atx.5.mdx, markup.heading.atx.5.mdx punctuation.definition.heading.mdx, markup.heading.heading-4.asciidoc + settings + + foreground + #74c7ec + + + + scope + heading.6.markdown punctuation.definition.heading.markdown, heading.6.markdown, heading.6.quarto punctuation.definition.heading.quarto, heading.6.quarto, markup.heading.atx.6.mdx, markup.heading.atx.6.mdx punctuation.definition.heading.mdx, markup.heading.heading-5.asciidoc + settings + + foreground + #b4befe + + + + scope + markup.bold + settings + + foreground + #f38ba8 + fontStyle + bold + + + + scope + markup.italic + settings + + foreground + #f38ba8 + fontStyle + italic + + + + scope + markup.strikethrough + settings + + foreground + #a6adc8 + fontStyle + strikethrough + + + + name + Markdown auto links + scope + punctuation.definition.link, markup.underline.link + settings + + foreground + #89b4fa + + + + name + Markdown links + scope + text.html.markdown punctuation.definition.link.title, text.html.quarto punctuation.definition.link.title, string.other.link.title.markdown, string.other.link.title.quarto, markup.link, punctuation.definition.constant.markdown, punctuation.definition.constant.quarto, constant.other.reference.link.markdown, constant.other.reference.link.quarto, markup.substitution.attribute-reference + settings + + foreground + #b4befe + + + + name + Markdown code spans + scope + punctuation.definition.raw.markdown, punctuation.definition.raw.quarto, markup.inline.raw.string.markdown, markup.inline.raw.string.quarto, markup.raw.block.markdown, markup.raw.block.quarto + settings + + foreground + #a6e3a1 + + + + name + Markdown triple backtick language identifier + scope + fenced_code.block.language + settings + + foreground + #89dceb + + + + name + Markdown triple backticks + scope + markup.fenced_code.block punctuation.definition, markup.raw support.asciidoc + settings + + foreground + #9399b2 + + + + name + Markdown quotes + scope + markup.quote, punctuation.definition.quote.begin + settings + + foreground + #f5c2e7 + + + + name + Markdown separators + scope + meta.separator.markdown + settings + + foreground + #94e2d5 + + + + name + Markdown list bullets + scope + punctuation.definition.list.begin.markdown, punctuation.definition.list.begin.quarto, markup.list.bullet + settings + + foreground + #94e2d5 + + + + name + Quarto headings + scope + markup.heading.quarto + settings + + fontStyle + bold + + + + name + Nix attribute names + scope + entity.other.attribute-name.multipart.nix, entity.other.attribute-name.single.nix + settings + + foreground + #89b4fa + + + + name + Nix parameter names + scope + variable.parameter.name.nix + settings + + foreground + #cdd6f4 + fontStyle + + + + + name + Nix interpolated parameter names + scope + meta.embedded variable.parameter.name.nix + settings + + foreground + #b4befe + fontStyle + + + + + name + Nix paths + scope + string.unquoted.path.nix + settings + + foreground + #f5c2e7 + fontStyle + + + + + name + PHP Attributes + scope + support.attribute.builtin, meta.attribute.php + settings + + foreground + #f9e2af + + + + name + PHP Parameters (needed for the leading dollar sign) + scope + meta.function.parameters.php punctuation.definition.variable.php + settings + + foreground + #eba0ac + + + + name + PHP Constants (null, __FILE__, etc.) + scope + constant.language.php + settings + + foreground + #cba6f7 + + + + name + PHP functions + scope + text.html.php support.function + settings + + foreground + #89dceb + + + + name + PHPdoc keywords + scope + keyword.other.phpdoc.php + settings + + fontStyle + + + + + name + Python argument functions reset to text, otherwise they inherit blue from function-call + scope + support.variable.magic.python, meta.function-call.arguments.python + settings + + foreground + #cdd6f4 + + + + name + Python double underscore functions + scope + support.function.magic.python + settings + + foreground + #89dceb + fontStyle + italic + + + + name + Python `self` keyword + scope + variable.parameter.function.language.special.self.python, variable.language.special.self.python + settings + + foreground + #f38ba8 + fontStyle + italic + + + + name + python keyword flow/logical (for ... in) + scope + keyword.control.flow.python, keyword.operator.logical.python + settings + + foreground + #cba6f7 + + + + name + python storage type + scope + storage.type.function.python + settings + + foreground + #cba6f7 + + + + name + python function support + scope + support.token.decorator.python, meta.function.decorator.identifier.python + settings + + foreground + #89dceb + + + + name + python function calls + scope + meta.function-call.python + settings + + foreground + #89b4fa + + + + name + python function decorators + scope + entity.name.function.decorator.python, punctuation.definition.decorator.python + settings + + foreground + #fab387 + fontStyle + italic + + + + name + python placeholder reset to normal string + scope + constant.character.format.placeholder.other.python + settings + + foreground + #f5c2e7 + + + + name + Python exception & builtins such as exit() + scope + support.type.exception.python, support.function.builtin.python + settings + + foreground + #fab387 + + + + name + entity.name.type + scope + support.type.python + settings + + foreground + #cba6f7 + + + + name + python constants (True/False) + scope + constant.language.python + settings + + foreground + #fab387 + + + + name + Arguments accessed later in the function body + scope + meta.indexed-name.python, meta.item-access.python + settings + + foreground + #eba0ac + fontStyle + italic + + + + name + Python f-strings/binary/unicode storage types + scope + storage.type.string.python + settings + + foreground + #a6e3a1 + fontStyle + italic + + + + name + Python type hints + scope + meta.function.parameters.python + settings + + fontStyle + + + + + name + Regex string begin/end in JS/TS + scope + string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end + settings + + foreground + #f5c2e7 + + + + name + Regex anchors (^, $) + scope + keyword.control.anchor.regexp + settings + + foreground + #cba6f7 + + + + name + Regex regular string match + scope + string.regexp.ts + settings + + foreground + #cdd6f4 + + + + name + Regex group parenthesis & backreference (\1, \2, \3, ...) + scope + punctuation.definition.group.regexp, keyword.other.back-reference.regexp + settings + + foreground + #a6e3a1 + + + + name + Regex character class [] + scope + punctuation.definition.character-class.regexp + settings + + foreground + #f9e2af + + + + name + Regex character classes (\d, \w, \s) + scope + constant.other.character-class.regexp + settings + + foreground + #f5c2e7 + + + + name + Regex range + scope + constant.other.character-class.range.regexp + settings + + foreground + #f5e0dc + + + + name + Regex quantifier + scope + keyword.operator.quantifier.regexp + settings + + foreground + #94e2d5 + + + + name + Regex constant/numeric + scope + constant.character.numeric.regexp + settings + + foreground + #fab387 + + + + name + Regex lookaheads, negative lookaheads, lookbehinds, negative lookbehinds + scope + punctuation.definition.group.no-capture.regexp, meta.assertion.look-ahead.regexp, meta.assertion.negative-look-ahead.regexp + settings + + foreground + #89b4fa + + + + name + Rust attribute + scope + meta.annotation.rust, meta.annotation.rust punctuation, meta.attribute.rust, punctuation.definition.attribute.rust + settings + + foreground + #f9e2af + fontStyle + italic + + + + name + Rust attribute strings + scope + meta.attribute.rust string.quoted.double.rust, meta.attribute.rust string.quoted.single.char.rust + settings + + fontStyle + + + + + name + Rust keyword + scope + entity.name.function.macro.rules.rust, storage.type.module.rust, storage.modifier.rust, storage.type.struct.rust, storage.type.enum.rust, storage.type.trait.rust, storage.type.union.rust, storage.type.impl.rust, storage.type.rust, storage.type.function.rust, storage.type.type.rust + settings + + foreground + #cba6f7 + fontStyle + + + + + name + Rust u/i32, u/i64, etc. + scope + entity.name.type.numeric.rust + settings + + foreground + #cba6f7 + fontStyle + + + + + name + Rust generic + scope + meta.generic.rust + settings + + foreground + #fab387 + + + + name + Rust impl + scope + entity.name.impl.rust + settings + + foreground + #f9e2af + fontStyle + italic + + + + name + Rust module + scope + entity.name.module.rust + settings + + foreground + #fab387 + + + + name + Rust trait + scope + entity.name.trait.rust + settings + + foreground + #f9e2af + fontStyle + italic + + + + name + Rust struct + scope + storage.type.source.rust + settings + + foreground + #f9e2af + + + + name + Rust union + scope + entity.name.union.rust + settings + + foreground + #f9e2af + + + + name + Rust enum member + scope + meta.enum.rust storage.type.source.rust + settings + + foreground + #94e2d5 + + + + name + Rust macro + scope + support.macro.rust, meta.macro.rust support.function.rust, entity.name.function.macro.rust + settings + + foreground + #89b4fa + fontStyle + italic + + + + name + Rust lifetime + scope + storage.modifier.lifetime.rust, entity.name.type.lifetime + settings + + foreground + #89b4fa + fontStyle + italic + + + + name + Rust string formatting + scope + string.quoted.double.rust constant.other.placeholder.rust + settings + + foreground + #f5c2e7 + + + + name + Rust return type generic + scope + meta.function.return-type.rust meta.generic.rust storage.type.rust + settings + + foreground + #cdd6f4 + + + + name + Rust functions + scope + meta.function.call.rust + settings + + foreground + #89b4fa + + + + name + Rust angle brackets + scope + punctuation.brackets.angle.rust + settings + + foreground + #89dceb + + + + name + Rust constants + scope + constant.other.caps.rust + settings + + foreground + #fab387 + + + + name + Rust function parameters + scope + meta.function.definition.rust variable.other.rust + settings + + foreground + #eba0ac + + + + name + Rust closure variables + scope + meta.function.call.rust variable.other.rust + settings + + foreground + #cdd6f4 + + + + name + Rust self + scope + variable.language.self.rust + settings + + foreground + #f38ba8 + + + + name + Rust metavariable names + scope + variable.other.metavariable.name.rust, meta.macro.metavariable.rust keyword.operator.macro.dollar.rust + settings + + foreground + #f5c2e7 + + + + name + Shell shebang + scope + comment.line.shebang, comment.line.shebang punctuation.definition.comment, comment.line.shebang, punctuation.definition.comment.shebang.shell, meta.shebang.shell + settings + + foreground + #f5c2e7 + fontStyle + italic + + + + name + Shell shebang command + scope + comment.line.shebang constant.language + settings + + foreground + #94e2d5 + fontStyle + italic + + + + name + Shell interpolated command + scope + meta.function-call.arguments.shell punctuation.definition.variable.shell, meta.function-call.arguments.shell punctuation.section.interpolation, meta.function-call.arguments.shell punctuation.definition.variable.shell, meta.function-call.arguments.shell punctuation.section.interpolation + settings + + foreground + #f38ba8 + + + + name + Shell interpolated command variable + scope + meta.string meta.interpolation.parameter.shell variable.other.readwrite + settings + + foreground + #fab387 + fontStyle + italic + + + + scope + source.shell punctuation.section.interpolation, punctuation.definition.evaluation.backticks.shell + settings + + foreground + #94e2d5 + + + + name + Shell EOF + scope + entity.name.tag.heredoc.shell + settings + + foreground + #cba6f7 + + + + name + Shell quoted variable + scope + string.quoted.double.shell variable.other.normal.shell + settings + + foreground + #cdd6f4 + + + + scope + markup.heading.typst + settings + + foreground + #f38ba8 + + + + name + JSON Keys + scope + source.json meta.mapping.key string + settings + + foreground + #89b4fa + + + + name + JSON key surrounding quotes + scope + source.json meta.mapping.key punctuation.definition.string.begin, source.json meta.mapping.key punctuation.definition.string.end + settings + + foreground + #9399b2 + + + + scope + markup.heading.synopsis.man, markup.heading.title.man, markup.heading.other.man, markup.heading.env.man + settings + + foreground + #cba6f7 + + + + scope + markup.heading.commands.man + settings + + foreground + #89b4fa + + + + scope + markup.heading.env.man + settings + + foreground + #f5c2e7 + + + + name + Man page options + scope + entity.name + settings + + foreground + #94e2d5 + + + + scope + markup.heading.1.markdown + settings + + foreground + #f38ba8 + + + + scope + markup.heading.2.markdown + settings + + foreground + #fab387 + + + + scope + markup.heading.markdown + settings + + foreground + #f9e2af + + + + + \ No newline at end of file diff --git a/.config/yazi/flavors/everforest-medium.yazi/flavor.toml b/.config/yazi/flavors/everforest-medium.yazi/flavor.toml new file mode 100644 index 0000000..6ba84b7 --- /dev/null +++ b/.config/yazi/flavors/everforest-medium.yazi/flavor.toml @@ -0,0 +1,229 @@ +# vim:fileencoding=utf-8:foldmethod=marker + +# : Manager {{{ + +[mgr] +cwd = { fg = "#7fbbb3" } + +# Hovered +hovered = { reversed = true } +preview_hovered = { underline = true } + +# Find +find_keyword = { fg = "#dbbc7f", bold = true, italic = true, underline = true } +find_position = { fg = "#d699b6", bg = "reset", bold = true, italic = true } + +# Symlink +symlink_target = { italic = true } + +# Marker +marker_copied = { fg = "#a7c080", bg = "#a7c080" } +marker_cut = { fg = "#e67e80", bg = "#e67e80" } +marker_marked = { fg = "#7fbbb3", bg = "#7fbbb3" } +marker_selected = { fg = "#dbbc7f", bg = "#dbbc7f" } + +# Count +count_copied = { fg = "#343f44", bg = "#a7c080" } +count_cut = { fg = "#343f44", bg = "#e67e80" } +count_selected = { fg = "#343f44", bg = "#dbbc7f" } + +# Border +border_symbol = "│" +border_style = { fg = "#4f585e" } + +# Highlighting +syntect_theme = "" + +# : }}} + + +# : Tabs {{{ + +[tabs] +active = { bg = "#7fbbb3", bold = true } +inactive = { fg = "#7fbbb3", bg = "#4f585e" } + +# Separator +sep_inner = { open = "", close = "" } +sep_outer = { open = "", close = "" } + +# : }}} + + +# : Mode {{{ + +[mode] +normal_main = { fg = "#3d484d", bg = "#a7c080", bold = true } +normal_alt = { fg = "#7fbbb3", bg = "#4f585e", bold = true } + +# Select mode +select_main = { fg = "#3d484d", bg = "#e67e80", bold = true } +select_alt = { fg = "#7fbbb3", bg = "#4f585e", bold = true } + +# Unset mode +unset_main = { fg = "#3d484d", bg = "#7fbbb3", bold = true } +unset_alt = { fg = "#7fbbb3", bg = "#4f585e", bold = true } + +# : }}} + + +# : Status bar {{{ + +[status] +overall = {} +sep_left = { open = "", close = "" } +sep_right = { open = "", close = "" } + +# Permissions +permissions_s = { fg = "#2d353b" } +permissions_t = { fg = "#a7c080" } +permissions_r = { fg = "#dbbc7f" } +permissions_w = { fg = "#e67e80" } +permissions_x = { fg = "#7fbbb3" } + +# Progress +progress_label = { bold = true } +progress_normal = { fg = "#7fbbb3", bg = "#232a2e" } +progress_error = { fg = "#e67e80", bg = "#232a2e" } + +# : }}} + + +# : Which {{{ + +[which] +cols = 3 +mask = { bg = "#2d353b" } +cand = { fg = "#7fbbb3" } +rest = { fg = "#2d353b" } +desc = { fg = "#d699b6" } +separator = "  " +separator_style = { fg = "#2d353b" } + +# : }}} + + +# : Confirmation {{{ + +[confirm] +border = { fg = "#7fbbb3" } +title = { fg = "#7fbbb3" } +body = {} +list = {} +btn_yes = { reversed = true } +btn_no = {} +btn_labels = [ " [Y]es ", " (N)o " ] + +# : }}} + + +# : Spotter {{{ + +[spot] +border = { fg = "#7fbbb3" } +title = { fg = "#7fbbb3" } + +# Table +tbl_col = { fg = "#7fbbb3" } +tbl_cell = { fg = "#dbbc7f", reversed = true } + +# : }}} + + +# : Notification {{{ + +[notify] +title_info = { fg = "#a7c080" } +title_warn = { fg = "#dbbc7f" } +title_error = { fg = "#e67e80" } + +# Icons +icon_info = "" +icon_warn = "" +icon_error = "" + +# : }}} + + +# : Picker {{{ + +[pick] +border = { fg = "#7fbbb3" } +active = { fg = "#d699b6", bold = true } +inactive = {} + +# : }}} + + +# : Input {{{ + +[input] +border = { fg = "#7fbbb3" } +title = {} +value = {} +selected = { reversed = true } + +# : }}} + + +# : Completion {{{ + +[cmp] +border = { fg = "#7fbbb3" } +active = { reversed = true } +inactive = {} + +# Icons +icon_file = "" +icon_folder = "" +icon_command = "" + +# : }}} + + +# : Task manager {{{ + +[tasks] +border = { fg = "#7fbbb3" } +title = {} +hovered = { fg = "#d699b6", underline = true } + +# : }}} + + +# : Help menu {{{ + +[help] +on = { fg = "#7fbbb3" } +run = { fg = "#d699b6" } +desc = {} +hovered = { reversed = true, bold = true } +footer = { fg = "#2d353b", bg = "#d3c6aa" } + +# : }}} + + +# : File-specific styles {{{ + +[filetype] + +rules = [ + # Images + { mime = "image/*", fg = "#7fbbb3" }, + + # Media + { mime = "{audio,video}/*", fg = "#d699b6" }, + + # Archives + { mime = "application/*zip", fg = "#e67e80" }, + { mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "#e67e80" }, + + # Documents + { mime = "application/{pdf,doc,rtf,vnd.*}", fg = "#7fbbb3" }, + + # Fallback + { name = "*", fg = "#83c092" }, + { name = "*/", fg = "#a7c080" } +] + +# : }}} diff --git a/.config/yazi/flavors/everforest-medium.yazi/tmtheme.xml b/.config/yazi/flavors/everforest-medium.yazi/tmtheme.xml new file mode 100644 index 0000000..e063c97 --- /dev/null +++ b/.config/yazi/flavors/everforest-medium.yazi/tmtheme.xml @@ -0,0 +1,3186 @@ + + + + + name + Everforest Dark + settings + + + settings + + accent + #a7c080 + background + #2d353b + caret + #d3c6aa + foreground + #d3c6aa + lineHighlight + #3d484d90 + selection + #475258c0 + activeGuide + #9aa79d20 + findHighlight + #899c4040 + misspelling + #da6362 + + + + name + GitGutter deleted + scope + markup.deleted.git_gutter + settings + + foreground + #e67e80a0 + + + + name + GitGutter inserted + scope + markup.inserted.git_gutter + settings + + foreground + #a7c080a0 + + + + name + GitGutter changed + scope + markup.changed.git_gutter + settings + + foreground + #7fbbb3a0 + + + + name + GitGutter untracked + scope + markup.untracked.git_gutter + settings + + foreground + #dbbc7fa0 + + + + name + GitGutter ignored + scope + markup.ignored.git_gutter + settings + + foreground + #4f585e + + + + name + GitGutter comment + scope + comment.line.annotation.git_gutter + settings + + foreground + + name + Comment + scope + comment, string.comment, punctuation.definition.comment + settings + + foreground + #859289 + fontStyle + italic + + + + + + name + Keyword + scope + keyword, storage.type.function, storage.type.class, storage.type.enum, storage.type.interface, storage.type.property, keyword.operator.new, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, storage.type.extends + settings + + foreground + #e67e80 + + + + name + Debug + scope + keyword.other.debugger + settings + + foreground + #e67e80 + + + + name + Storage + scope + storage, modifier, keyword.var, entity.name.tag, keyword.control.case, keyword.control.switch + settings + + foreground + #e69875 + + + + name + Operator + scope + keyword.operator + settings + + foreground + #e69875 + + + + name + String + scope + string, punctuation.definition.string.end, punctuation.definition.string.begin, punctuation.definition.string.template.begin, punctuation.definition.string.template.end + settings + + foreground + #dbbc7f + + + + name + Attribute + scope + entity.other.attribute-name + settings + + foreground + #dbbc7f + + + + name + String Escape + scope + constant.character.escape, punctuation.quasi.element, punctuation.definition.template-expression, punctuation.section.embedded, storage.type.format, constant.other.placeholder, constant.other.placeholder, variable.interpolation + settings + + foreground + #a7c080 + + + + name + Function + scope + entity.name.function, support.function, meta.function, meta.function-call, meta.definition.method + settings + + foreground + #a7c080 + + + + name + Preproc + scope + keyword.control.at-rule, keyword.control.import, keyword.control.export, storage.type.namespace, punctuation.decorator, keyword.control.directive, keyword.preprocessor, punctuation.definition.preprocessor, punctuation.definition.directive, keyword.other.import, keyword.other.package, entity.name.type.namespace, entity.name.scope-resolution, keyword.other.using, keyword.package, keyword.import, keyword.map + settings + + foreground + #83c092 + + + + name + Annotation + scope + storage.type.annotation + settings + + foreground + #83c092 + + + + name + Label + scope + entity.name.label, constant.other.label + settings + + foreground + #83c092 + + + + name + Modules + scope + support.module, support.node, support.other.module, support.type.object.module, entity.name.type.module, entity.name.type.class.module, keyword.control.module + settings + + foreground + #83c092 + + + + name + Type + scope + storage.type, support.type, entity.name.type, keyword.type + settings + + foreground + #7fbbb3 + + + + name + Class + scope + entity.name.type.class, support.class, entity.name.class, entity.other.inherited-class, storage.class + settings + + foreground + #7fbbb3 + + + + name + Number + scope + constant.numeric + settings + + foreground + #d699b6 + + + + name + Boolean + scope + constant.language.boolean + settings + + foreground + #d699b6 + + + + name + Macro + scope + entity.name.function.preprocessor + settings + + foreground + #d699b6 + + + + name + Special identifier + scope + variable.language.this, variable.language.self, variable.language.super, keyword.other.this, variable.language.special, constant.language.null, constant.language.undefined, constant.language.nan + settings + + foreground + #d699b6 + + + + name + Constant + scope + constant.language, support.constant + settings + + foreground + #d699b6 + + + + name + Identifier + scope + variable, support.variable, meta.definition.variable + settings + + foreground + #d3c6aa + + + + name + Property + scope + variable.object.property, support.variable.property, variable.other.property, variable.other.object.property, variable.other.enummember, variable.other.member, meta.object-literal.key + settings + + foreground + #d3c6aa + + + + name + Delimiter + scope + punctuation, meta.brace, meta.delimiter, meta.bracket + settings + + foreground + #d3c6aa + + + + name + Markdown heading1 + scope + heading.1.markdown, markup.heading.setext.1.markdown + settings + + foreground + #e67e80 + fontStyle + bold + + + + name + Markdown heading2 + scope + heading.2.markdown, markup.heading.setext.2.markdown + settings + + foreground + #e69875 + fontStyle + bold + + + + name + Markdown heading3 + scope + heading.3.markdown + settings + + foreground + #dbbc7f + fontStyle + bold + + + + name + Markdown heading4 + scope + heading.4.markdown + settings + + foreground + #a7c080 + fontStyle + bold + + + + name + Markdown heading5 + scope + heading.5.markdown + settings + + foreground + #7fbbb3 + fontStyle + bold + + + + name + Markdown heading6 + scope + heading.6.markdown + settings + + foreground + #d699b6 + fontStyle + bold + + + + name + Markdown heading delimiter + scope + punctuation.definition.heading.markdown + settings + + foreground + #859289 + fontStyle + regular + + + + name + Markdown link + scope + string.other.link.title.markdown, constant.other.reference.link.markdown, string.other.link.description.markdown + settings + + foreground + #d699b6 + fontStyle + regular + + + + name + Markdown link text + scope + markup.underline.link.image.markdown, markup.underline.link.markdown + settings + + foreground + #a7c080 + fontStyle + underline + + + + name + Markdown delimiter + scope + punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.italic.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.metadata.markdown, punctuation.separator.key-value.markdown, punctuation.definition.constant.markdown + settings + + foreground + #859289 + + + + name + Markdown bold delimiter + scope + punctuation.definition.bold.markdown + settings + + foreground + #859289 + fontStyle + regular + + + + name + Markdown separator delimiter + scope + meta.separator.markdown, punctuation.definition.constant.begin.markdown, punctuation.definition.constant.end.markdown + settings + + foreground + #859289 + fontStyle + bold + + + + name + Markdown italic + scope + markup.italic + settings + + fontStyle + italic + + + + name + Markdown bold + scope + markup.bold + settings + + fontStyle + bold + + + + name + Markdown bold italic + scope + markup.bold markup.italic, markup.italic markup.bold + settings + + fontStyle + italic bold + + + + name + Markdown code delimiter + scope + punctuation.definition.markdown, punctuation.definition.raw.markdown + settings + + foreground + #dbbc7f + + + + name + Markdown code type + scope + fenced_code.block.language + settings + + foreground + #dbbc7f + + + + name + Markdown code block + scope + markup.fenced_code.block.markdown, markup.inline.raw.string.markdown + settings + + foreground + #a7c080 + + + + name + Markdown list mark + scope + punctuation.definition.list.begin.markdown + settings + + foreground + #e67e80 + + + + name + reStructuredText heading + scope + punctuation.definition.heading.restructuredtext + settings + + foreground + #e69875 + fontStyle + bold + + + + name + reStructuredText delimiter + scope + punctuation.definition.field.restructuredtext, punctuation.separator.key-value.restructuredtext, punctuation.definition.directive.restructuredtext, punctuation.definition.constant.restructuredtext, punctuation.definition.italic.restructuredtext, punctuation.definition.table.restructuredtext + settings + + foreground + #859289 + + + + name + reStructuredText delimiter bold + scope + punctuation.definition.bold.restructuredtext + settings + + foreground + #859289 + fontStyle + regular + + + + name + reStructuredText aqua + scope + entity.name.tag.restructuredtext, punctuation.definition.link.restructuredtext, punctuation.definition.raw.restructuredtext, punctuation.section.raw.restructuredtext + settings + + foreground + #83c092 + + + + name + reStructuredText purple + scope + constant.other.footnote.link.restructuredtext + settings + + foreground + #d699b6 + + + + name + reStructuredText red + scope + support.directive.restructuredtext + settings + + foreground + #e67e80 + + + + name + reStructuredText green + scope + entity.name.directive.restructuredtext, markup.raw.restructuredtext, markup.raw.inner.restructuredtext, string.other.link.title.restructuredtext + settings + + foreground + #a7c080 + + + + name + LaTex delimiter + scope + punctuation.definition.function.latex, punctuation.definition.function.tex, punctuation.definition.keyword.latex, constant.character.newline.tex, punctuation.definition.keyword.tex + settings + + foreground + #859289 + + + + name + LaTex red + scope + support.function.be.latex + settings + + foreground + #e67e80 + + + + name + LaTex orange + scope + support.function.section.latex, keyword.control.table.cell.latex, keyword.control.table.newline.latex + settings + + foreground + #e69875 + + + + name + LaTex yellow + scope + support.class.latex, variable.parameter.latex, variable.parameter.function.latex, variable.parameter.definition.label.latex, constant.other.reference.label.latex + settings + + foreground + #dbbc7f + + + + name + LaTex purple + scope + keyword.control.preamble.latex + settings + + foreground + #d699b6 + + + + name + Html grey + scope + punctuation.separator.namespace.xml + settings + + foreground + #859289 + + + + name + Html orange + scope + entity.name.tag.html, entity.name.tag.xml, entity.name.tag.localname.xml + settings + + foreground + #e69875 + + + + name + Html yellow + scope + entity.other.attribute-name.html, entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml + settings + + foreground + #dbbc7f + + + + name + Html green + scope + string.quoted.double.html, string.quoted.single.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.separator.key-value.html, punctuation.definition.string.begin.xml, punctuation.definition.string.end.xml, string.quoted.double.xml, string.quoted.single.xml, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.xml, meta.tag.xml, meta.tag.preprocessor.xml, meta.tag.other.html, meta.tag.block.any.html, meta.tag.inline.any.html + settings + + foreground + #a7c080 + + + + name + Html purple + scope + variable.language.documentroot.xml, meta.tag.sgml.doctype.xml + settings + + foreground + #d699b6 + + + + name + Proto yellow + scope + storage.type.proto + settings + + foreground + #dbbc7f + + + + name + Proto green + scope + string.quoted.double.proto.syntax, string.quoted.single.proto.syntax, string.quoted.double.proto, string.quoted.single.proto + settings + + foreground + #a7c080 + + + + name + Proto aqua + scope + entity.name.class.proto, entity.name.class.message.proto + settings + + foreground + #83c092 + + + + name + CSS grey + scope + punctuation.definition.entity.css, punctuation.separator.key-value.css, punctuation.terminator.rule.css, punctuation.separator.list.comma.css + settings + + foreground + #859289 + + + + name + CSS red + scope + entity.other.attribute-name.class.css + settings + + foreground + #e67e80 + + + + name + CSS orange + scope + keyword.other.unit + settings + + foreground + #e69875 + + + + name + CSS yellow + scope + entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css + settings + + foreground + #dbbc7f + + + + name + CSS green + scope + string.quoted.single.css, string.quoted.double.css, support.constant.property-value.css, meta.property-value.css, punctuation.definition.string.begin.css, punctuation.definition.string.end.css, constant.numeric.css, support.constant.font-name.css, variable.parameter.keyframe-list.css + settings + + foreground + #a7c080 + + + + name + CSS aqua + scope + support.type.property-name.css + settings + + foreground + #83c092 + + + + name + CSS blue + scope + support.type.vendored.property-name.css + settings + + foreground + #7fbbb3 + + + + name + CSS purple + scope + entity.name.tag.css, entity.other.keyframe-offset.css, punctuation.definition.keyword.css, keyword.control.at-rule.keyframes.css, meta.selector.css + settings + + foreground + #d699b6 + + + + name + SASS grey + scope + punctuation.definition.entity.scss, punctuation.separator.key-value.scss, punctuation.terminator.rule.scss, punctuation.separator.list.comma.scss + settings + + foreground + #859289 + + + + name + SASS orange + scope + keyword.control.at-rule.keyframes.scss + settings + + foreground + #e69875 + + + + name + SASS yellow + scope + punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss + settings + + foreground + #dbbc7f + + + + name + SASS green + scope + punctuation.definition.string.begin.scss, punctuation.definition.string.end.scss, string.quoted.double.scss, string.quoted.single.scss, constant.character.css.sass, meta.property-value.scss + settings + + foreground + #a7c080 + + + + name + SASS purple + scope + keyword.control.at-rule.include.scss, keyword.control.at-rule.use.scss, keyword.control.at-rule.mixin.scss, keyword.control.at-rule.extend.scss, keyword.control.at-rule.import.scss + settings + + foreground + #d699b6 + + + + name + Stylus white + scope + meta.function.stylus + settings + + foreground + #d3c6aa + + + + name + Stylus yellow + scope + entity.name.function.stylus + settings + + foreground + #dbbc7f + + + + name + JavaScript white + scope + string.unquoted.js + settings + + foreground + #d3c6aa + + + + name + JavaScript grey + scope + punctuation.accessor.js, punctuation.separator.key-value.js, punctuation.separator.label.js, keyword.operator.accessor.js + settings + + foreground + #859289 + + + + name + JavaScript red + scope + punctuation.definition.block.tag.jsdoc + settings + + foreground + #e67e80 + + + + name + JavaScript orange + scope + storage.type.js, storage.type.function.arrow.js + settings + + foreground + #e69875 + + + + name + JSX white + scope + JSXNested + settings + + foreground + #d3c6aa + + + + name + JSX green + scope + punctuation.definition.tag.jsx, entity.other.attribute-name.jsx, punctuation.definition.tag.begin.js.jsx, punctuation.definition.tag.end.js.jsx, entity.other.attribute-name.js.jsx + settings + + foreground + #a7c080 + + + + name + TypeScript white + scope + entity.name.type.module.ts + settings + + foreground + #d3c6aa + + + + name + TypeScript grey + scope + keyword.operator.type.annotation.ts, punctuation.accessor.ts, punctuation.separator.key-value.ts + settings + + foreground + #859289 + + + + name + TypeScript green + scope + punctuation.definition.tag.directive.ts, entity.other.attribute-name.directive.ts + settings + + foreground + #a7c080 + + + + name + TypeScript aqua + scope + entity.name.type.ts, entity.name.type.interface.ts, entity.other.inherited-class.ts, entity.name.type.alias.ts, entity.name.type.class.ts, entity.name.type.enum.ts + settings + + foreground + #83c092 + + + + name + TypeScript orange + scope + storage.type.ts, storage.type.function.arrow.ts, storage.type.type.ts + settings + + foreground + #e69875 + + + + name + TypeScript blue + scope + entity.name.type.module.ts + settings + + foreground + #7fbbb3 + + + + name + TypeScript purple + scope + keyword.control.import.ts, keyword.control.export.ts, storage.type.namespace.ts + settings + + foreground + #d699b6 + + + + name + TSX white + scope + entity.name.type.module.tsx + settings + + foreground + #d3c6aa + + + + name + TSX grey + scope + keyword.operator.type.annotation.tsx, punctuation.accessor.tsx, punctuation.separator.key-value.tsx + settings + + foreground + #859289 + + + + name + TSX green + scope + punctuation.definition.tag.directive.tsx, entity.other.attribute-name.directive.tsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, entity.other.attribute-name.tsx + settings + + foreground + #a7c080 + + + + name + TSX aqua + scope + entity.name.type.tsx, entity.name.type.interface.tsx, entity.other.inherited-class.tsx, entity.name.type.alias.tsx, entity.name.type.class.tsx, entity.name.type.enum.tsx + settings + + foreground + #83c092 + + + + name + TSX blue + scope + entity.name.type.module.tsx + settings + + foreground + #7fbbb3 + + + + name + TSX purple + scope + keyword.control.import.tsx, keyword.control.export.tsx, storage.type.namespace.tsx + settings + + foreground + #d699b6 + + + + name + TSX orange + scope + storage.type.tsx, storage.type.function.arrow.tsx, storage.type.type.tsx, support.class.component.tsx + settings + + foreground + #e69875 + + + + name + CoffeeScript orange + scope + storage.type.function.coffee + settings + + foreground + #e69875 + + + + name + PureScript white + scope + meta.type-signature.purescript + settings + + foreground + #d3c6aa + + + + name + PureScript orange + scope + keyword.other.double-colon.purescript, keyword.other.arrow.purescript, keyword.other.big-arrow.purescript + settings + + foreground + #e69875 + + + + name + PureScript yellow + scope + entity.name.function.purescript + settings + + foreground + #dbbc7f + + + + name + PureScript green + scope + string.quoted.single.purescript, string.quoted.double.purescript, punctuation.definition.string.begin.purescript, punctuation.definition.string.end.purescript, string.quoted.triple.purescript, entity.name.type.purescript + settings + + foreground + #a7c080 + + + + name + PureScript purple + scope + support.other.module.purescript + settings + + foreground + #d699b6 + + + + name + Dart grey + scope + punctuation.dot.dart + settings + + foreground + #859289 + + + + name + Dart orange + scope + storage.type.primitive.dart + settings + + foreground + #e69875 + + + + name + Dart yellow + scope + support.class.dart + settings + + foreground + #dbbc7f + + + + name + Dart green + scope + entity.name.function.dart, string.interpolated.single.dart, string.interpolated.double.dart + settings + + foreground + #a7c080 + + + + name + Dart blue + scope + variable.language.dart + settings + + foreground + #7fbbb3 + + + + name + Dart purple + scope + keyword.other.import.dart, storage.type.annotation.dart + settings + + foreground + #d699b6 + + + + name + Pug red + scope + entity.other.attribute-name.class.pug + settings + + foreground + #e67e80 + + + + name + Pug orange + scope + storage.type.function.pug + settings + + foreground + #e69875 + + + + name + Pug aqua + scope + entity.other.attribute-name.tag.pug + settings + + foreground + #83c092 + + + + name + Pug purple + scope + entity.name.tag.pug, storage.type.import.include.pug + settings + + foreground + #d699b6 + + + + name + C white + scope + meta.function-call.c, storage.modifier.array.bracket.square.c, meta.function.definition.parameters.c + settings + + foreground + #d3c6aa + + + + name + C grey + scope + punctuation.separator.dot-access.c, constant.character.escape.line-continuation.c + settings + + foreground + #859289 + + + + name + C red + scope + keyword.control.directive.include.c, punctuation.definition.directive.c, keyword.control.directive.pragma.c, keyword.control.directive.line.c, keyword.control.directive.define.c, keyword.control.directive.conditional.c, keyword.control.directive.diagnostic.error.c, keyword.control.directive.undef.c, keyword.control.directive.conditional.ifdef.c, keyword.control.directive.endif.c, keyword.control.directive.conditional.ifndef.c, keyword.control.directive.conditional.if.c, keyword.control.directive.else.c + settings + + foreground + #e67e80 + + + + name + C orange + scope + punctuation.separator.pointer-access.c + settings + + foreground + #e69875 + + + + name + C aqua + scope + variable.other.member.c + settings + + foreground + #83c092 + + + + name + C++ white + scope + meta.function-call.cpp, storage.modifier.array.bracket.square.cpp, meta.function.definition.parameters.cpp, meta.body.function.definition.cpp + settings + + foreground + #d3c6aa + + + + name + C++ grey + scope + punctuation.separator.dot-access.cpp, constant.character.escape.line-continuation.cpp + settings + + foreground + #859289 + + + + name + C++ red + scope + keyword.control.directive.include.cpp, punctuation.definition.directive.cpp, keyword.control.directive.pragma.cpp, keyword.control.directive.line.cpp, keyword.control.directive.define.cpp, keyword.control.directive.conditional.cpp, keyword.control.directive.diagnostic.error.cpp, keyword.control.directive.undef.cpp, keyword.control.directive.conditional.ifdef.cpp, keyword.control.directive.endif.cpp, keyword.control.directive.conditional.ifndef.cpp, keyword.control.directive.conditional.if.cpp, keyword.control.directive.else.cpp, storage.type.namespace.definition.cpp, keyword.other.using.directive.cpp, storage.type.struct.cpp + settings + + foreground + #e67e80 + + + + name + C++ orange + scope + punctuation.separator.pointer-access.cpp, punctuation.section.angle-brackets.begin.template.call.cpp, punctuation.section.angle-brackets.end.template.call.cpp + settings + + foreground + #e69875 + + + + name + C++ aqua + scope + variable.other.member.cpp + settings + + foreground + #83c092 + + + + name + C# red + scope + keyword.other.using.cs + settings + + foreground + #e67e80 + + + + name + C# yellow + scope + keyword.type.cs, constant.character.escape.cs, punctuation.definition.interpolation.begin.cs, punctuation.definition.interpolation.end.cs + settings + + foreground + #dbbc7f + + + + name + C# green + scope + string.quoted.double.cs, string.quoted.single.cs, punctuation.definition.string.begin.cs, punctuation.definition.string.end.cs + settings + + foreground + #a7c080 + + + + name + C# aqua + scope + variable.other.object.property.cs + settings + + foreground + #83c092 + + + + name + C# purple + scope + entity.name.type.namespace.cs + settings + + foreground + #d699b6 + + + + name + F# white + scope + keyword.symbol.fsharp, constant.language.unit.fsharp + settings + + foreground + #d3c6aa + + + + name + F# yellow + scope + keyword.format.specifier.fsharp, entity.name.type.fsharp + settings + + foreground + #dbbc7f + + + + name + F# green + scope + string.quoted.double.fsharp, string.quoted.single.fsharp, punctuation.definition.string.begin.fsharp, punctuation.definition.string.end.fsharp + settings + + foreground + #a7c080 + + + + name + F# blue + scope + entity.name.section.fsharp + settings + + foreground + #7fbbb3 + + + + name + F# purple + scope + support.function.attribute.fsharp + settings + + foreground + #d699b6 + + + + name + Java grey + scope + punctuation.separator.java, punctuation.separator.period.java + settings + + foreground + #859289 + + + + name + Java red + scope + keyword.other.import.java, keyword.other.package.java + settings + + foreground + #e67e80 + + + + name + Java orange + scope + storage.type.function.arrow.java, keyword.control.ternary.java + settings + + foreground + #e69875 + + + + name + Java aqua + scope + variable.other.property.java + settings + + foreground + #83c092 + + + + name + Java purple + scope + variable.language.wildcard.java, storage.modifier.import.java, storage.type.annotation.java, punctuation.definition.annotation.java, storage.modifier.package.java, entity.name.type.module.java + settings + + foreground + #d699b6 + + + + name + Kotlin red + scope + keyword.other.import.kotlin + settings + + foreground + #e67e80 + + + + name + Kotlin orange + scope + storage.type.kotlin + settings + + foreground + #e69875 + + + + name + Kotlin aqua + scope + constant.language.kotlin + settings + + foreground + #83c092 + + + + name + Kotlin purple + scope + entity.name.package.kotlin, storage.type.annotation.kotlin + settings + + foreground + #d699b6 + + + + name + Scala purple + scope + entity.name.package.scala + settings + + foreground + #d699b6 + + + + name + Scala blue + scope + constant.language.scala + settings + + foreground + #7fbbb3 + + + + name + Scala aqua + scope + entity.name.import.scala + settings + + foreground + #83c092 + + + + name + Scala green + scope + string.quoted.double.scala, string.quoted.single.scala, punctuation.definition.string.begin.scala, punctuation.definition.string.end.scala, string.quoted.double.interpolated.scala, string.quoted.single.interpolated.scala, string.quoted.triple.scala + settings + + foreground + #a7c080 + + + + name + Scala yellow + scope + entity.name.class, entity.other.inherited-class.scala + settings + + foreground + #dbbc7f + + + + name + Scala orange + scope + keyword.declaration.stable.scala, keyword.other.arrow.scala + settings + + foreground + #e69875 + + + + name + Scala red + scope + keyword.other.import.scala + settings + + foreground + #e67e80 + + + + name + Groovy white + scope + keyword.operator.navigation.groovy, meta.method.body.java, meta.definition.method.groovy, meta.definition.method.signature.java + settings + + foreground + #d3c6aa + + + + name + Scala grey + scope + punctuation.separator.groovy + settings + + foreground + #859289 + + + + name + Scala red + scope + keyword.other.import.groovy, keyword.other.package.groovy, keyword.other.import.static.groovy + settings + + foreground + #e67e80 + + + + name + Groovy orange + scope + storage.type.def.groovy + settings + + foreground + #e69875 + + + + name + Groovy green + scope + variable.other.interpolated.groovy, meta.method.groovy + settings + + foreground + #a7c080 + + + + name + Groovy aqua + scope + storage.modifier.import.groovy, storage.modifier.package.groovy + settings + + foreground + #83c092 + + + + name + Groovy purple + scope + storage.type.annotation.groovy + settings + + foreground + #d699b6 + + + + name + Go red + scope + keyword.type.go + settings + + foreground + #e67e80 + + + + name + Go aqua + scope + entity.name.package.go + settings + + foreground + #83c092 + + + + name + Go purple + scope + keyword.import.go, keyword.package.go + settings + + foreground + #d699b6 + + + + name + Rust white + scope + entity.name.type.mod.rust + settings + + foreground + #d3c6aa + + + + name + Rust grey + scope + keyword.operator.path.rust, keyword.operator.member-access.rust + settings + + foreground + #859289 + + + + name + Rust orange + scope + storage.type.rust + settings + + foreground + #e69875 + + + + name + Rust aqua + scope + support.constant.core.rust + settings + + foreground + #83c092 + + + + name + Rust purple + scope + meta.attribute.rust, variable.language.rust, storage.type.module.rust + settings + + foreground + #d699b6 + + + + name + Swift white + scope + meta.function-call.swift, support.function.any-method.swift + settings + + foreground + #d3c6aa + + + + name + Swift aqua + scope + support.variable.swift + settings + + foreground + #83c092 + + + + name + PHP white + scope + keyword.operator.class.php + settings + + foreground + #d3c6aa + + + + name + PHP orange + scope + storage.type.trait.php + settings + + foreground + #e69875 + + + + name + PHP aqua + scope + constant.language.php, support.other.namespace.php + settings + + foreground + #83c092 + + + + name + PHP blue + scope + storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.control.private.cpp + settings + + foreground + #7fbbb3 + + + + name + PHP purple + scope + keyword.control.import.include.php, storage.type.php + settings + + foreground + #d699b6 + + + + name + Python white + scope + meta.function-call.arguments.python + settings + + foreground + #d3c6aa + + + + name + Python grey + scope + punctuation.definition.decorator.python, punctuation.separator.period.python + settings + + foreground + #859289 + + + + name + Python aqua + scope + constant.language.python + settings + + foreground + #83c092 + + + + name + Python purple + scope + keyword.control.import.python, keyword.control.import.from.python + settings + + foreground + #d699b6 + + + + name + Lua aqua + scope + constant.language.lua + settings + + foreground + #83c092 + + + + name + Lua blue + scope + entity.name.class.lua + settings + + foreground + #7fbbb3 + + + + name + Ruby white + scope + meta.function.method.with-arguments.ruby + settings + + foreground + #d3c6aa + + + + name + Ruby grey + scope + punctuation.separator.method.ruby + settings + + foreground + #859289 + + + + name + Ruby orange + scope + keyword.control.pseudo-method.ruby, storage.type.variable.ruby + settings + + foreground + #e69875 + + + + name + Ruby green + scope + keyword.other.special-method.ruby + settings + + foreground + #a7c080 + + + + name + Ruby purple + scope + keyword.control.module.ruby, punctuation.definition.constant.ruby + settings + + foreground + #d699b6 + + + + name + Ruby yellow + scope + string.regexp.character-class.ruby,string.regexp.interpolated.ruby,punctuation.definition.character-class.ruby,string.regexp.group.ruby, punctuation.section.regexp.ruby, punctuation.definition.group.ruby + settings + + foreground + #dbbc7f + + + + name + Ruby blue + scope + variable.other.constant.ruby + settings + + foreground + #7fbbb3 + + + + name + Haskell orange + scope + keyword.other.arrow.haskell, keyword.other.big-arrow.haskell, keyword.other.double-colon.haskell + settings + + foreground + #e69875 + + + + name + Haskell yellow + scope + storage.type.haskell + settings + + foreground + #dbbc7f + + + + name + Haskell green + scope + constant.other.haskell, string.quoted.double.haskell, string.quoted.single.haskell, punctuation.definition.string.begin.haskell, punctuation.definition.string.end.haskell + settings + + foreground + #a7c080 + + + + name + Haskell blue + scope + entity.name.function.haskell + settings + + foreground + #7fbbb3 + + + + name + Haskell aqua + scope + entity.name.namespace, meta.preprocessor.haskell + settings + + foreground + #83c092 + + + + name + Julia red + scope + keyword.control.import.julia, keyword.control.export.julia + settings + + foreground + #e67e80 + + + + name + Julia orange + scope + keyword.storage.modifier.julia + settings + + foreground + #e69875 + + + + name + Julia aqua + scope + constant.language.julia + settings + + foreground + #83c092 + + + + name + Julia purple + scope + support.function.macro.julia + settings + + foreground + #d699b6 + + + + name + Elm white + scope + keyword.other.period.elm + settings + + foreground + #d3c6aa + + + + name + Elm yellow + scope + storage.type.elm + settings + + foreground + #dbbc7f + + + + name + R orange + scope + keyword.other.r + settings + + foreground + #e69875 + + + + name + R green + scope + entity.name.function.r, variable.function.r + settings + + foreground + #a7c080 + + + + name + R aqua + scope + constant.language.r + settings + + foreground + #83c092 + + + + name + R purple + scope + entity.namespace.r + settings + + foreground + #d699b6 + + + + name + Erlang grey + scope + punctuation.separator.module-function.erlang, punctuation.section.directive.begin.erlang + settings + + foreground + #859289 + + + + name + Erlang red + scope + keyword.control.directive.erlang, keyword.control.directive.define.erlang + settings + + foreground + #e67e80 + + + + name + Erlang yellow + scope + entity.name.type.class.module.erlang + settings + + foreground + #dbbc7f + + + + name + Erlang green + scope + string.quoted.double.erlang, string.quoted.single.erlang, punctuation.definition.string.begin.erlang, punctuation.definition.string.end.erlang + settings + + foreground + #a7c080 + + + + name + Erlang purple + scope + keyword.control.directive.export.erlang, keyword.control.directive.module.erlang, keyword.control.directive.import.erlang, keyword.control.directive.behaviour.erlang + settings + + foreground + #d699b6 + + + + name + Elixir aqua + scope + variable.other.readwrite.module.elixir, punctuation.definition.variable.elixir + settings + + foreground + #83c092 + + + + name + Elixir blue + scope + constant.language.elixir + settings + + foreground + #7fbbb3 + + + + name + Elixir purple + scope + keyword.control.module.elixir + settings + + foreground + #d699b6 + + + + name + OCaml white + scope + entity.name.type.value-signature.ocaml + settings + + foreground + #d3c6aa + + + + name + OCaml orange + scope + keyword.other.ocaml + settings + + foreground + #e69875 + + + + name + OCaml aqua + scope + constant.language.variant.ocaml + settings + + foreground + #83c092 + + + + name + Perl red + scope + storage.type.sub.perl, storage.type.declare.routine.perl + settings + + foreground + #e67e80 + + + + name + Lisp white + scope + meta.function.lisp + settings + + foreground + #d3c6aa + + + + name + Lisp red + scope + storage.type.function-type.lisp + settings + + foreground + #e67e80 + + + + name + Lisp green + scope + keyword.constant.lisp + settings + + foreground + #a7c080 + + + + name + Lisp aqua + scope + entity.name.function.lisp + settings + + foreground + #83c092 + + + + name + Clojure green + scope + constant.keyword.clojure, support.variable.clojure, meta.definition.variable.clojure + settings + + foreground + #a7c080 + + + + name + Clojure purple + scope + entity.global.clojure + settings + + foreground + #d699b6 + + + + name + Clojure blue + scope + entity.name.function.clojure + settings + + foreground + #7fbbb3 + + + + name + Shell white + scope + meta.scope.if-block.shell, meta.scope.group.shell + settings + + foreground + #d3c6aa + + + + name + Shell yellow + scope + support.function.builtin.shell, entity.name.function.shell + settings + + foreground + #dbbc7f + + + + name + Shell green + scope + string.quoted.double.shell, string.quoted.single.shell, punctuation.definition.string.begin.shell, punctuation.definition.string.end.shell, string.unquoted.heredoc.shell + settings + + foreground + #a7c080 + + + + name + Shell purple + scope + keyword.control.heredoc-token.shell, variable.other.normal.shell, punctuation.definition.variable.shell, variable.other.special.shell, variable.other.positional.shell, variable.other.bracket.shell + settings + + foreground + #d699b6 + + + + name + Fish red + scope + support.function.builtin.fish + settings + + foreground + #e67e80 + + + + name + Fish orange + scope + support.function.unix.fish + settings + + foreground + #e69875 + + + + name + Fish blue + scope + variable.other.normal.fish, punctuation.definition.variable.fish, variable.other.fixed.fish, variable.other.special.fish + settings + + foreground + #7fbbb3 + + + + name + Fish green + scope + string.quoted.double.fish, punctuation.definition.string.end.fish, punctuation.definition.string.begin.fish, string.quoted.single.fish + settings + + foreground + #a7c080 + + + + name + Fish purple + scope + constant.character.escape.single.fish + settings + + foreground + #d699b6 + + + + name + PowerShell grey + scope + punctuation.definition.variable.powershell + settings + + foreground + #859289 + + + + name + PowerShell yellow + scope + entity.name.function.powershell, support.function.attribute.powershell, support.function.powershell + settings + + foreground + #dbbc7f + + + + name + PowerShell green + scope + string.quoted.single.powershell, string.quoted.double.powershell, punctuation.definition.string.begin.powershell, punctuation.definition.string.end.powershell, string.quoted.double.heredoc.powershell + settings + + foreground + #a7c080 + + + + name + PowerShell aqua + scope + variable.other.member.powershell + settings + + foreground + #83c092 + + + + name + GraphQL white + scope + string.unquoted.alias.graphql + settings + + foreground + #d3c6aa + + + + name + GraphQL red + scope + keyword.type.graphql + settings + + foreground + #e67e80 + + + + name + GraphQL purple + scope + entity.name.fragment.graphql + settings + + foreground + #d699b6 + + + + name + Makefile orange + scope + entity.name.function.target.makefile + settings + + foreground + #e69875 + + + + name + Makefile yellow + scope + variable.other.makefile + settings + + foreground + #dbbc7f + + + + name + Makefile green + scope + meta.scope.prerequisites.makefile + settings + + foreground + #a7c080 + + + + name + CMake green + scope + string.source.cmake + settings + + foreground + #a7c080 + + + + name + CMake aqua + scope + entity.source.cmake + settings + + foreground + #83c092 + + + + name + CMake purple + scope + storage.source.cmake + settings + + foreground + #d699b6 + + + + name + VimL grey + scope + punctuation.definition.map.viml + settings + + foreground + #859289 + + + + name + VimL orange + scope + storage.type.map.viml + settings + + foreground + #e69875 + + + + name + VimL green + scope + constant.character.map.viml, constant.character.map.key.viml + settings + + foreground + #a7c080 + + + + name + VimL blue + scope + constant.character.map.special.viml + settings + + foreground + #7fbbb3 + + + + name + Tmux green + scope + constant.language.tmux, constant.numeric.tmux + settings + + foreground + #a7c080 + + + + name + Dockerfile orange + scope + entity.name.function.package-manager.dockerfile + settings + + foreground + #e69875 + + + + name + Dockerfile yellow + scope + keyword.operator.flag.dockerfile + settings + + foreground + #dbbc7f + + + + name + Dockerfile green + scope + string.quoted.double.dockerfile, string.quoted.single.dockerfile + settings + + foreground + #a7c080 + + + + name + Dockerfile aqua + scope + constant.character.escape.dockerfile + settings + + foreground + #83c092 + + + + name + Dockerfile purple + scope + entity.name.type.base-image.dockerfile, entity.name.image.dockerfile + settings + + foreground + #d699b6 + + + + name + Diff grey + scope + punctuation.definition.separator.diff + settings + + foreground + #859289 + + + + name + Diff red + scope + markup.deleted.diff, punctuation.definition.deleted.diff + settings + + foreground + #e67e80 + + + + name + Diff orange + scope + meta.diff.range.context, punctuation.definition.range.diff + settings + + foreground + #e69875 + + + + name + Diff yellow + scope + meta.diff.header.from-file + settings + + foreground + #dbbc7f + + + + name + Diff green + scope + markup.inserted.diff, punctuation.definition.inserted.diff + settings + + foreground + #a7c080 + + + + name + Diff blue + scope + markup.changed.diff, punctuation.definition.changed.diff + settings + + foreground + #7fbbb3 + + + + name + Diff purple + scope + punctuation.definition.from-file.diff + settings + + foreground + #d699b6 + + + + name + Git red + scope + entity.name.section.group-title.ini, punctuation.definition.entity.ini + settings + + foreground + #e67e80 + + + + name + Git orange + scope + punctuation.separator.key-value.ini + settings + + foreground + #e69875 + + + + name + Git green + scope + string.quoted.double.ini, string.quoted.single.ini, punctuation.definition.string.begin.ini, punctuation.definition.string.end.ini + settings + + foreground + #a7c080 + + + + name + Git aqua + scope + keyword.other.definition.ini + settings + + foreground + #83c092 + + + + name + SQL yellow + scope + support.function.aggregate.sql + settings + + foreground + #dbbc7f + + + + name + SQL green + scope + string.quoted.single.sql, punctuation.definition.string.end.sql, punctuation.definition.string.begin.sql, string.quoted.double.sql + settings + + foreground + #a7c080 + + + + name + GraphQL yellow + scope + support.type.graphql + settings + + foreground + #dbbc7f + + + + name + GraphQL blue + scope + variable.parameter.graphql + settings + + foreground + #7fbbb3 + + + + name + GraphQL aqua + scope + constant.character.enum.graphql + settings + + foreground + #83c092 + + + + name + JSON grey + scope + punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, punctuation.separator.dictionary.key-value.json, punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.separator.dictionary.pair.json, punctuation.separator.array.json + settings + + foreground + #859289 + + + + name + JSON orange + scope + support.type.property-name.json + settings + + foreground + #e69875 + + + + name + JSON green + scope + string.quoted.double.json + settings + + foreground + #a7c080 + + + + name + YAML grey + scope + punctuation.separator.key-value.mapping.yaml + settings + + foreground + #859289 + + + + name + YAML green + scope + string.unquoted.plain.out.yaml, string.quoted.single.yaml, string.quoted.double.yaml, punctuation.definition.string.begin.yaml, punctuation.definition.string.end.yaml, string.unquoted.plain.in.yaml, string.unquoted.block.yaml + settings + + foreground + #a7c080 + + + + name + YAML aqua + scope + punctuation.definition.anchor.yaml, punctuation.definition.block.sequence.item.yaml + settings + + foreground + #83c092 + + + + name + TOML orange + scope + keyword.key.toml + settings + + foreground + #e69875 + + + + name + TOML green + scope + string.quoted.single.basic.line.toml, string.quoted.single.literal.line.toml, punctuation.definition.keyValuePair.toml + settings + + foreground + #a7c080 + + + + name + TOML blue + scope + constant.other.boolean.toml + settings + + foreground + #7fbbb3 + + + + name + TOML purple + scope + entity.other.attribute-name.table.toml, punctuation.definition.table.toml, entity.other.attribute-name.table.array.toml, punctuation.definition.table.array.toml + settings + + foreground + #d699b6 + + + + name + Comment + scope + comment, string.comment, punctuation.definition.comment + settings + + foreground + #859289 + fontStyle + italic + + + + uuid + 3f688e48-bd62-4cd7-9981-9b491786d8c6 + colorSpaceName + sRGB + semanticClass + theme.dark.everforest-dark + author + + comment + + + diff --git a/.config/yazi/flavors/gruvbox-dark.yazi/flavor.toml b/.config/yazi/flavors/gruvbox-dark.yazi/flavor.toml new file mode 100644 index 0000000..b2eb7cf --- /dev/null +++ b/.config/yazi/flavors/gruvbox-dark.yazi/flavor.toml @@ -0,0 +1,176 @@ +# vim:fileencoding=utf-8:foldmethod=marker + +# : Manager {{{ + +[manager] +cwd = { fg = "#83a598" } + +# Hovered +hovered = { reversed = true, bold = true } +# hovered = { bg = "#3c3836", bold = true } +preview_hovered = { underline = true } + +# Find +find_keyword = { fg = "#b8bb26", italic = true } +find_position = { fg = "#fe8019", bg = "reset", italic = true } + +# Marker +marker_copied = { fg = "#8ec07c", bg = "#8ec07c" } +marker_cut = { fg = "#d3869b", bg = "#d3869b" } +marker_marked = { fg = "#83a598", bg = "#83a598" } +marker_selected = { fg = "#fbf1c7", bg = "#fbf1c7" } + +# Tab +tab_active = { fg = "#282828", bg = "#a89984" } +tab_inactive = { fg = "#a89984", bg = "#504945" } +tab_width = 1 + +# Count +count_copied = { fg = "#282828", bg = "#8ec07c" } +count_cut = { fg = "#282828", bg = "#d3869b" } +count_selected = { fg = "#282828", bg = "#fbf1c7" } + +# Border +border_symbol = "│" +border_style = { fg = "#665c54" } + +# : }}} + +# : Mode {{{ + +[mode] +normal_main = { fg = "#282828", bg = "#a89984", bold = true } +normal_alt = { fg = "#a89984", bg = "#504945" } +select_main = { fg = "#282828", bg = "#fe8019", bold = true } +select_alt = { fg = "#a89984", bg = "#504945" } +unset_main = { fg = "#282828", bg = "#b8bb26", bold = true } +unset_alt = { fg = "#a89984", bg = "#504945" } + +# : }}} + +# : Status {{{ + +[status] +sep_left = { open = "\ue0be", close = "\ue0b8" } +sep_right = { open = "\ue0be", close = "\ue0b8" } +overall = { } + +# Progress +progress_label = { fg = "#ebdbb2", bold = true } +progress_normal = { fg = "#504945", bg = "#3c3836" } +progress_error = { fg = "#fb4934", bg = "#3c3836" } + +# Permissions +perm_type = { fg = "#504945" } +perm_read = { fg = "#b8bb26" } +perm_write = { fg = "#fb4934" } +perm_exec = { fg = "#b8bb26" } +perm_sep = { fg = "#665c54" } + +# : }}} + +# : Select {{{ + +[pick] +border = { fg = "#458588" } +active = { fg = "#d3869b", bold = true } +inactive = {} + +# : }}} + +# : Input {{{ + +[input] +border = { fg = "#ebdbb2" } +title = {} +value = {} +selected = { reversed = true } + +# : }}} + +# : Tasks {{{ + +[tasks] +border = { fg = "#504945" } +title = {} +hovered = { underline = true } + +# : }}} + +# : Which {{{ + +[which] +mask = { bg = "#3c3836" } +cand = { fg = "#83a598" } +rest = { fg = "#928374" } +desc = { fg = "#fe8019" } +separator = "  " +separator_style = { fg = "#504945" } + +# : }}} + +# : Help {{{ + +[help] +on = { fg = "#83a598" } +run = { fg = "#d3869b" } +hovered = { reversed = true, bold = true } +footer = { fg = "#3c3836", bg = "#a89984" } + +# : }}} + +# : Notify {{{ + +[notify] +title_info = { fg = "#8ec07c" } +title_warn = { fg = "#fbf1c7" } +title_error = { fg = "#d3869b" } + +# : }}} + +# : File-specific styles {{{ + +[filetype] +rules = [ + # Images + { mime = "image/*", fg = "#d3869b" }, + + # Media + { mime = "{audio,video}/*", fg = "#fabd2f" }, + + # Archives + { mime = "application/*zip", fg = "#fb4934" }, + { mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "#fb4934" }, + + # Documents + { mime = "application/{pdf,doc,rtf,vnd.*}", fg = "#689d6a" }, + + # Fallback + { name = "*", fg = "#ebdbb2" }, + { name = "*/", fg = "#83a598" }, +] + +# : }}} + +# : Confirmation {{{ + +[confirm] +border = { fg = "#a89984" } +title = { fg = "#83a598" } +content = { fg = "#fbf1c7" } +body = { fg = "red" } +list = { fg = "#ebdbb2" } +btn_yes = { reversed = true, fg = "#ebdbb2" } +btn_no = {} +btn_labels = [ " [Y]es ", " (N)o " ] + +# : }}} + +# : Completion {{{ + +[cmp] +border = { fg = "#a89984" } +active = { reversed = true, fg = "#83a598" } +inactive = { fg = "#ebdbb2" } + +# : }}} diff --git a/.config/yazi/flavors/gruvbox-dark.yazi/tmtheme.xml b/.config/yazi/flavors/gruvbox-dark.yazi/tmtheme.xml new file mode 100644 index 0000000..59c1ecd --- /dev/null +++ b/.config/yazi/flavors/gruvbox-dark.yazi/tmtheme.xml @@ -0,0 +1,1509 @@ + + + + + comment + Based on gruvbox for Vim (https://github.com/morhetz/gruvbox) + originalAuthor + Pavel Pertsev (https://github.com/morhetz) + author + Brian Reilly (https://github.com/Briles/gruvbox) + name + gruvbox (Dark) (Medium) + colorSpaceName + sRGB + settings + + + settings + + background + #222222 + caret + #a89984 + foreground + #ebdbb280 + invisibles + #ebdbb226 + lineHighlight + #3c3836 + selection + #3c3836 + inactiveSelection + #3c3836 + guide + #ebdbb226 + activeGuide + #ebdbb280 + stackGuide + #ebdbb240 + bracketContentsOptions + underline + bracketContentsForeground + #bdae93 + bracketsOptions + underline + bracketsForeground + #bdae93 + gutterForeground + #928374 + highlight + #fbf1c7 + highlightForeground + #fbf1c7 + findHighlight + #d79921 + findHighlightForeground + #222222 + tagsOptions + underline + selectionBorder + #3c3836 + popupCss + + html { + background-color: #1b1b1b; + color: #fbf1c7; + padding: 12px; + } + + a { + color: #8ec07c; + } + + .error, .deleted { + color: #fb4934; + } + + .success, .inserted, .name { + color: #b8bb26; + } + + .warning, .modified { + color: #fabd2f; + } + + .type { + color: #fabd2f; + font-style: italic; + } + + .param { + color: #fbf1c7; + } + + .current { + text-decoration: underline; + } + + + + + name + Text and Source Base Colors + scope + meta.group, meta.method-call.source.cs, meta.method.attribute.source.cs, meta.method.body.java, meta.method.body.source.cs, meta.method.source.cs, none, source, text + settings + + foreground + #fbf1c7 + + + + name + Punctuation + scope + entity.quasi.element meta.group.braces, keyword.operator keyword.operator.neon, keyword.operator operator.neon, keyword.operator.accessor, keyword.other.accessor, meta.attribute-selector keyword.operator.stylus, meta.brace, meta.delimiter, meta.group.braces, meta.punctuation.separator, meta.separator, punctuation + settings + + foreground + #fbf1c7 + + + + name + Comments + scope + comment, comment text, markup.strikethrough, punctuation.definition.comment, punctuation.whitespace.comment, string.comment, text.cancelled + settings + + fontStyle + italic + foreground + #928374 + + + + name + Keywords Inside Comments + scope + comment.keyword, comment.keyword.punctuation + settings + + foreground + #d5c4a1 + + + + name + DocBlockr & Other Keywords Inside Comments + scope + comment.parameter, comment.punctuation, comment.string, comment.type, keyword.other.phpdoc.php, punctuation.definition.keyword.javadoc, source.groovy keyword.other.documentation, source.java keyword.other.documentation, storage.type.annotation.coffeescript, storage.type.class.jsdoc + settings + + foreground + #bdae93 + + + + name + Entity + scope + constant.language.name, entity.name.type, entity.other.inherited-class + settings + + foreground + #fabd2f + + + + name + Template String Punctuation + scope + constant.other.placeholder, entity.name.tag.mustache, entity.tag.tagbraces, punctuation.definition.string.template, punctuation.definition.template-expression, punctuation.quasi, punctuation.section.embedded, string.interpolated, variable.other.interpolation.scss + settings + + foreground + #8ec07c + + + + name + Keywords + scope + js.embedded.control.flow keyword.operator.js, keyword, keyword.control, keyword.operator.logical.python, meta.at-rule.media support.function.misc, meta.prolog.haml, meta.tag.sgml.doctype.html, storage.type.function.jade, storage.type.function.pug, storage.type.import.haxe, storage.type.import.include.jade, storage.type.import.include.pug, support.keyword.timing-direction, variable.documentroot + settings + + foreground + #fb4934 + + + + name + CSS At-Rule Punctuation (@) & At-Rule Vendor Prefixes + scope + keyword.control.at-rule support.type.property-vendor, punctuation.definition.keyword + settings + + foreground + #cc241d + + + + name + Operators + scope + keyword.control.new, keyword.control.operator, keyword.operator, keyword.other.arrow, keyword.other.double-colon, punctuation.operator + settings + + foreground + #8ec07c + + + + name + Constants Punctuation + scope + constant.other.color punctuation.definition.constant, constant.other.symbol punctuation.definition.constant, constant.other.unit, keyword.other.unit, punctuation.section.flowtype, support.constant.unicode-range.prefix + settings + + foreground + #b16286 + + + + name + Storage + scope + storage, storage.type.annotation, storage.type.primitive + settings + + foreground + #fb4934 + + + + scope + storage.modifier.import, storage.modifier.package, storage.type.import, variable.import, variable.package + settings + + foreground + #fbf1c7 + + + + name + Function Keyword + scope + entity.quasi.tag.name, meta.function storage.type.matlab, storage.type.function + settings + + foreground + #8ec07c + + + + name + Variables + scope + entity.name.val.declaration, entity.name.variable, meta.definition.variable, storage.type.variable, support.type.custom-property, support.type.variable-name, variable, variable.interpolation variable, variable.other.interpolation variable, variable.parameter.dosbatch, variable.parameter.output.function.matlab, variable.parameter.sass + settings + + foreground + #83a598 + + + + name + Variable - Punctuation + scope + keyword.other.custom-property.prefix, punctuation.definition.custom-property, punctuation.definition.variable, support.constant.custom-property-name.prefix, variable.interpolation, variable.other.dollar punctuation.dollar, variable.other.object.dollar punctuation.dollar + settings + + foreground + #458588 + + + + name + Function Declaration - Punctuation + scope + entity.name.function punctuation.dollar + settings + + foreground + #98971a + + + + name + Object Properties + scope + meta.property.object + settings + + foreground + #fbf1c7 + + + + name + Object Literal Properties + scope + constant.other.object.key string, meta.object-literal.key + settings + + foreground + #fbf1c7 + + + + name + Parameters + scope + meta.parameters, variable.parameter + settings + + foreground + #fbf1c7 + + + + name + SASS Import URL + scope + variable.parameter.url + settings + + foreground + #b8bb26 + + + + name + Language Constants + scope + constant, constant.numeric, constant.other, constant.other.color, constant.other.symbol, support.constant, support.constant.color, support.constant.font-name, support.constant.media, support.constant.prototype, variable.language + settings + + foreground + #d3869b + + + + name + Language Constants Punctuation + scope + variable.language punctuation.definition.variable + settings + + foreground + #b16286 + + + + name + User-Defined Constants + scope + entity.name.constant, variable.other.constant + settings + + foreground + #fabd2f + + + + name + Escaped Characters + scope + constant.character.escape, constant.character.escaped, constant.character.quoted, constant.other.character-class.escape + settings + + foreground + #fb4934 + + + + name + Invalids and Illegals + scope + invalid + settings + + foreground + #fbf1c7 + background + #fb4934 + + + + name + Inner Scopes of Invalids and Illegals + scope + invalid keyword.other.custom-property.prefix, invalid support.type.custom-property.name + settings + + foreground + #fbf1c7 + + + + name + Errors + scope + message.error + settings + + foreground + #fb4934 + + + + name + Strings + scope + meta.object-literal.key string, string + settings + + foreground + #b8bb26 + + + + name + JSON Keys + scope + meta.structure.dictionary.key.json string + settings + + foreground + #83a598 + + + + name + Regular Expressions Text + scope + source.regexp, string.regexp + settings + + foreground + #b8bb26 + + + + name + Regular Expressions Start & End Punctuation + scope + string.regexp punctuation.definition.string + settings + + foreground + #bdae93 + + + + name + Regular Expressions Character Class Punctuation ([]) + scope + keyword.control.set.regexp, punctuation.definition.character-class, string.regexp.character-class.ruby + settings + + foreground + #d3869b + + + + name + Regular Expressions Capturing Group + scope + string.regexp.group + settings + + foreground + #fbf1c7 + + + + name + Regular Expressions Assertions + scope + constant.other.assertion.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.group.capture.regexp + settings + + foreground + #83a598 + + + + name + Regular Expressions Character Class + scope + constant.other.character-class.escape.backslash.regexp, keyword.control.character-class.regexp, string.regexp.character-class constant.character.escape + settings + + foreground + #fabd2f + + + + name + Regular Expressions Quantifiers & Operators + scope + string.regexp.arbitrary-repetition, string.regexp.arbitrary-repetition punctuation + settings + + foreground + #8ec07c + + + + name + Hyperlinks + scope + constant.other.reference.link, string.other.link + settings + + foreground + #8ec07c + + + + name + Hyperlink Punctuation + scope + meta.image.inline punctuation.definition.string, meta.link.inline punctuation.definition.string, meta.link.reference punctuation.definition.constant, meta.link.reference.literal punctuation.definition.constant, meta.link.reference.literal punctuation.definition.string + settings + + foreground + #689d6a + + + + name + Markup Tag Punctuation + scope + punctuation.definition.tag + settings + + foreground + #83a598 + + + + name + Markdown Heading + scope + markup.heading + settings + + foreground + #b8bb26 + + + + name + Markdown Heading Punctuation + scope + punctuation.definition.heading, punctuation.definition.identity + settings + + foreground + #98971a + + + + name + Markdown Bold Text + scope + markup.bold + settings + + foreground + #fe8019 + fontStyle + bold + + + + name + Markdown Bold Text Punctuation + scope + punctuation.definition.bold + settings + + foreground + #d65d0e + fontStyle + bold + + + + name + Markdown Italic Text + scope + markup.italic + settings + + foreground + #fb4934 + fontStyle + italic + + + + name + Markdown Italic Text Punctuation + scope + punctuation.definition.italic + settings + + foreground + #cc241d + fontStyle + italic + + + + name + Markdown Inline Code + scope + markup.raw.inline + settings + + foreground + #fabd2f + + + + name + Markdown Inline Code Punctuation + scope + markup.raw.inline punctuation.definition.raw + settings + + foreground + #d79921 + + + + name + Markdown Quoted + scope + markup.quote + settings + + foreground + #d3869b + + + + name + Markdown Quoted Punctuation + scope + markup.quote punctuation.definition.blockquote + settings + + foreground + #b16286 + + + + name + Markdown List + scope + markup.list + settings + + foreground + #83a598 + + + + name + Markdown List Punctuation + scope + markup.list punctuation.definition.list_item + settings + + foreground + #458588 + + + + name + Markdown Separators + scope + meta.separator.markdown + settings + + foreground + #928374 + + + + name + Support + scope + meta.function-call.constructor variable.type, support.class, support.type, variable.other.class + settings + + foreground + #fabd2f + + + + name + Supporting Type - Dollar Punctuation + scope + support.class punctuation.dollar + settings + + foreground + #d79921 + + + + name + Function Calls + scope + entity.name.function.jade, entity.name.function.pug, keyword.other.special-method, meta.function-call variable.function, meta.function-call variable.other.dollar.only punctuation.dollar, support.function + settings + + foreground + #8ec07c + + + + name + Method Calls + scope + meta.function-call.method support.function, meta.function-call.method variable.function, meta.function-call.static variable.function, meta.method-call, meta.method-call support.function, meta.method-call variable.function, support.function.mutator + settings + + foreground + #689d6a + + + + name + Special Variables + scope + support.module + settings + + foreground + #d3869b + + + + name + Entities + scope + entity.name.accessor, entity.name.function, entity.name.label, entity.name.section + settings + + foreground + #b8bb26 + + + + name + Modules + scope + entity.name.module + settings + + foreground + #fe8019 + + + + name + HTML & CSS ID + scope + constant.id.tag, entity.name.tag.id, entity.other.attribute-name.id + settings + + foreground + #fe8019 + + + + name + HTML & CSS ID Punctuation (#) + scope + entity.other.attribute-name.id punctuation.definition.entity + settings + + foreground + #d65d0e + + + + name + HTML & CSS Class + scope + entity.name.tag.class, entity.other.attribute-name.class + settings + + foreground + #fabd2f + + + + name + HTML & CSS Class Punctuation (.) + scope + entity.other.attribute-name.class punctuation.definition.entity + settings + + foreground + #d79921 + + + + name + CSS Attribute Selector Attribute Name + scope + meta.attribute-selector entity.other.attribute-name + settings + + foreground + #d79921 + + + + name + HTML & XML Entity Punctuation + scope + constant.character.entity punctuation.definition.constant, constant.character.entity punctuation.definition.entity + settings + + foreground + #b16286 + + + + scope + entity.name.class, entity.name.type.class + settings + + foreground + #fabd2f + + + + name + Markup Tag + scope + entity.name.function.neon, entity.name.namespace.wildcard, entity.name.tag, entity.tag, keyword.control.untitled, keyword.doctype.xml, keyword.operator support.other.neon, punctuation.definition.prolog.haml, source.less keyword.control.html.elements + settings + + foreground + #83a598 + + + + name + HTML Attribute Names + scope + entity.name.attribute-name, entity.other.attribute-name, meta.section.attributes.haml constant.other.symbol.ruby + settings + + foreground + #fabd2f + + + + name + CSS Pseudo Elements/Classes & Vendor Prefixes + scope + entity.other.attribute-name.placeholder punctuation.definition.entity, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element, entity.other.attribute-name.tag.pseudo-class, entity.other.attribute-name.tag.pseudo-element, entity.other.pseudo-class, entity.other.pseudo-element, support.type.vendor-prefix + settings + + foreground + #d79921 + + + + name + CSS Animations / Keyframes + scope + entity.function-name.stylus, entity.other.animation-keyframe.stylus, entity.other.animation-name, keyword.language.function.misc.stylus, meta.at-rule.keyframes entity.name.function, variable.other.animation-name + settings + + foreground + #8ec07c + + + + name + Author-Defined Names + scope + entity.other.namespace-prefix + settings + + foreground + #8ec07c + + + + scope + meta.class.body, meta.tag + settings + + foreground + #fbf1c7 + + + + name + Markdown Image & Hyperlink + scope + meta.image, meta.link + settings + + foreground + #d3869b + + + + name + Markdown Image & Hyperlink Punctuation + scope + meta.image punctuation.definition.metadata, meta.link punctuation.definition.metadata + settings + + foreground + #b16286 + + + + scope + meta.require + settings + + foreground + #b8bb26 + + + + name + Function Call Braces + scope + constant.name.attribute.tag.jade, constant.name.attribute.tag.pug, meta.brace.round, meta.function-call meta.group punctuation.definition.group, punctuation.definition.method-parameters, punctuation.definition.parameters + settings + + foreground + #bdae93 + + + + name + CSS Property Names + scope + meta.property-name, support.type.property-name, support.type.shape.definition support.constant.property-value + settings + + foreground + #b8bb26 + + + + name + CSS Property Name Vendor Prefixes + scope + meta.property-name support.type.vendor-prefix, support.type.property-name.media support.type.vendor-prefix + settings + + foreground + #98971a + + + + name + CSS Property Values + scope + constant.string.sass, meta.property-value, support.constant.property-value + settings + + foreground + #fbf1c7 + + + + name + CSS Property Value Vendor Prefixes + scope + meta.property-value support.type.vendor-prefix + settings + + foreground + #bdae93 + + + + name + Diff Foreground Text + scope + source.diff + settings + + foreground + #a89984 + + + + name + Diff Header Text From + scope + meta.diff.header.from-file + settings + + foreground + #83a598 + + + + name + Diff Header Text From Punctuation + scope + punctuation.definition.from-file + settings + + foreground + #458588 + + + + name + Diff Header Text To + scope + meta.diff.header.to-file + settings + + foreground + #d3869b + + + + name + Diff Header Text To Punctuation + scope + punctuation.definition.to-file + settings + + foreground + #b16286 + + + + name + Diff Additions & Deletions Stats + scope + meta.diff.range, meta.toc-list.line-number + settings + + foreground + #fabd2f + + + + name + Diff Additions & Deletions Stats Punctuation + scope + punctuation.definition.range.diff + settings + + foreground + #d79921 + + + + name + FiF Line Number + scope + constant.numeric.line-number + settings + + foreground + #928374 + + + + name + FiF Line Number Matched + scope + constant.numeric.line-number.match + settings + + foreground + #8ec07c + + + + name + FiF Filename + scope + entity.name.filename + settings + + foreground + #b8bb26 + + + + name + GitGutter & Diff Deleted + scope + markup.deleted, punctuation.definition.deleted + settings + + foreground + #fb4934 + + + + name + GitGutter & Diff Inserted + scope + markup.inserted, punctuation.definition.inserted + settings + + foreground + #b8bb26 + + + + name + GitGutter & Diff Changed + scope + markup.changed, punctuation.definition.changed + settings + + foreground + #fabd2f + + + + name + GitGutter ignored + scope + markup.ignored + settings + + foreground + #928374 + + + + name + GitGutter untracked + scope + markup.untracked + settings + + foreground + #928374 + + + + name + Bracket Tag + scope + brackethighlighter.tag + settings + + foreground + #bdae93 + + + + name + Bracket Curly + scope + brackethighlighter.curly + settings + + foreground + #bdae93 + + + + name + Bracket Round + scope + brackethighlighter.round + settings + + foreground + #bdae93 + + + + name + Bracket Square + scope + brackethighlighter.square + settings + + foreground + #bdae93 + + + + name + Bracket Angle + scope + brackethighlighter.angle + settings + + foreground + #bdae93 + + + + name + Bracket Quote + scope + brackethighlighter.quote + settings + + foreground + #bdae93 + + + + name + Bracket Unmatched + scope + brackethighlighter.unmatched + settings + + foreground + #fb4934 + + + + name + SublimeLinter Error + scope + sublimelinter.mark.error + settings + + foreground + #fb4934 + + + + name + SublimeLinter Gutter Mark + scope + sublimelinter.gutter-mark + settings + + foreground + #928374 + + + + name + SublimeLinter Warning + scope + sublimelinter.mark.warning + settings + + foreground + #fabd2f + + + + name + HexViewer Upper Byte Nibble + scope + raw.nibble.upper + settings + + foreground + #fbf1c7 + + + + name + HexViewer Lower Byte Nibble + scope + raw.nibble.lower + settings + + foreground + #fbf1c7 + + + + name + HexViewer Highlight + scope + hexviewer.highlight + settings + + foreground + #222222 + background + #fabd2f + + + + name + HexViewer Edited Highlight + scope + hexviewer.highlight.edited + settings + + foreground + #222222 + background + #fe8019 + + + + name + Raw New Line: Carriage Return + scope + glyph.carriage-return + settings + + foreground + #ebdbb226 + + + + name + Raw New Line: New Line Glyph + scope + glyph.new-line + settings + + foreground + #ebdbb226 + + + + name + PlainTasks: Header + scope + keyword.control.header.todo + settings + + foreground + #b8bb26 + background + #3a3a3a + + + + name + PlainTasks: Notes + scope + notes.todo + settings + + foreground + #bdae93 + + + + name + PlainTasks: Punctuation + scope + text.todo punctuation.definition.bold, text.todo punctuation.definition.italic + settings + + foreground + #7c6f64 + + + + name + PlainTasks: Task Pending + scope + meta.item.todo.pending + settings + + foreground + #fbf1c7 + + + + name + PlainTasks: Task Pending Punctuation + scope + punctuation.definition.bullet.pending.todo + settings + + foreground + #928374 + + + + name + PlainTasks: Task Completed Punctuation + scope + punctuation.definition.bullet.completed.todo + settings + + foreground + #8ec07c + + + + name + PlainTasks: Task Cancelled Punctuation + scope + punctuation.definition.bullet.cancelled.todo + settings + + foreground + #fb4934 + + + + name + PlainTasks: Tag Critical + scope + string.other.tag.todo.critical + settings + + foreground + #fb4934 + fontStyle + bold + + + + name + PlainTasks: Tag High + scope + string.other.tag.todo.high + settings + + foreground + #fe8019 + fontStyle + bold + + + + name + PlainTasks: Tag Low + scope + string.other.tag.todo.low + settings + + foreground + #83a598 + fontStyle + bold + + + + name + PlainTasks: Tag Today + scope + string.other.tag.todo.today + settings + + foreground + #fabd2f + fontStyle + bold + + + + name + PlainTasks: Tag + scope + meta.tag.todo + settings + + foreground + #d3869b + + + + name + PlainTasks: URL + scope + punctuation.definition.url, todo.url + settings + + foreground + #83a598 + + + + name + PlainTasks: Separator + scope + meta.punctuation.archive.todo, meta.punctuation.separator.todo + settings + + fontStyle + italic + foreground + #928374 + + + + + diff --git a/.config/yazi/flavors/nord.yazi/flavor.toml b/.config/yazi/flavors/nord.yazi/flavor.toml new file mode 100644 index 0000000..36b9aa5 --- /dev/null +++ b/.config/yazi/flavors/nord.yazi/flavor.toml @@ -0,0 +1,170 @@ +# vim:fileencoding=utf-8:foldmethod=marker + +# : Manager {{{ + +[manager] +cwd = { fg = "#88C0D0" } + +# Hovered +hovered = { reversed = true } +preview_hovered = { underline = true } + +# Find +find_keyword = { fg = "#EBCB8B", bold = true, italic = true, underline = true } +find_position = { fg = "#B48EAD", bg = "reset", bold = true, italic = true } + +# Marker +marker_copied = { fg = "#A3BE8C", bg = "#A3BE8C" } +marker_cut = { fg = "#BF616A", bg = "#BF616A" } +marker_marked = { fg = "#88C0D0", bg = "#88C0D0" } +marker_selected = { fg = "#EBCB8B", bg = "#EBCB8B" } + +# Tab +tab_active = { reversed = true } +tab_inactive = {} +tab_width = 1 + +# Count +count_copied = { fg = "#2E3440", bg = "#A3BE8C" } +count_cut = { fg = "#2E3440", bg = "#BF616A" } +count_selected = { fg = "#2E3440", bg = "#EBCB8B" } + +# Border +border_symbol = "│" +border_style = { fg = "#7B88A1" } + +# : }}} + + +# : Mode {{{ + +[mode] + +normal_main = { fg = "#2E3440", bg = "#81A1C1", bold = true } +normal_alt = { fg = "#81A1C1", bg = "#3B4252" } + +# Select mode +select_main = { fg = "#2E3440", bg = "#88C0D0", bold = true } +select_alt = { fg = "#88C0D0", bg = "#3B4252" } + +# Unset mode +unset_main = { fg = "#2E3440", bg = "#D08770", bold = true } +unset_alt = { fg = "#D08770", bg = "#3B4252" } + +# : }}} + + +# : Status bar {{{ + +[status] +# Permissions +perm_sep = { fg = "#7B88A1" } +perm_type = { fg = "#81A1C1" } +perm_read = { fg = "#EBCB8B" } +perm_write = { fg = "#BF616A" } +perm_exec = { fg = "#A3BE8C" } + +# Progress +progress_label = { fg = "#ffffff", bold = true } +progress_normal = { fg = "#81A1C1", bg = "#434C5E" } +progress_error = { fg = "#BF616A", bg = "#434C5E" } + +# : }}} + + +# : Pick {{{ + +[pick] +border = { fg = "#81A1C1" } +active = { fg = "#B48EAD", bold = true } +inactive = {} + +# : }}} + + +# : Input {{{ + +[input] +border = { fg = "#81A1C1" } +title = {} +value = {} +selected = { reversed = true } + +# : }}} + + +# : Completion {{{ + +[cmp] +border = { fg = "#81A1C1" } + +# : }}} + + +# : Tasks {{{ + +[tasks] +border = { fg = "#81A1C1" } +title = {} +hovered = { fg = "#B48EAD", underline = true } + +# : }}} + + +# : Which {{{ + +[which] +mask = { bg = "#3B4252" } +cand = { fg = "#88C0D0" } +rest = { fg = "#8FBCBB" } +desc = { fg = "#B48EAD" } +separator = "  " +separator_style = { fg = "#4C566A" } + +# : }}} + + +# : Help {{{ + +[help] +on = { fg = "#88C0D0" } +run = { fg = "#B48EAD" } +hovered = { reversed = true, bold = true } +footer = { fg = "#3B4252", bg = "#E5E9F0" } + +# : }}} + + +# : Notify {{{ + +[notify] +title_info = { fg = "#A3BE8C" } +title_warn = { fg = "#EBCB8B" } +title_error = { fg = "#BF616A" } + +# : }}} + + +# : File-specific styles {{{ + +[filetype] + +rules = [ + # Images + { mime = "image/*", fg = "#88C0D0" }, + + # Media + { mime = "{audio,video}/*", fg = "#EBCB8B" }, + + # Archives + { mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", fg = "#B48EAD" }, + + # Documents + { mime = "application/{pdf,doc,rtf}", fg = "#A3BE8C" }, + + # Fallback + { name = "*", fg = "#E5E9F0" }, + { name = "*/", fg = "#81A1C1" }, +] + +# : }}} diff --git a/.config/yazi/init.lua b/.config/yazi/init.lua new file mode 100644 index 0000000..9775faf --- /dev/null +++ b/.config/yazi/init.lua @@ -0,0 +1,4 @@ +require("session"):setup { + sync_yanked = true, +} +require("git"):setup() diff --git a/.config/yazi/plugins/git.yazi/main.lua b/.config/yazi/plugins/git.yazi/main.lua new file mode 100644 index 0000000..e6b3a36 --- /dev/null +++ b/.config/yazi/plugins/git.yazi/main.lua @@ -0,0 +1,261 @@ +--- @since 25.5.31 + +local WINDOWS = ya.target_family() == "windows" + +-- The code of supported git status, +-- also used to determine which status to show for directories when they contain different statuses +-- see `bubble_up` +---@enum CODES +local CODES = { + excluded = 100, -- ignored directory + ignored = 6, -- ignored file + untracked = 5, + modified = 4, + added = 3, + deleted = 2, + updated = 1, + unknown = 0, +} + +local PATTERNS = { + { "!$", CODES.ignored }, + { "?$", CODES.untracked }, + { "[MT]", CODES.modified }, + { "[AC]", CODES.added }, + { "D", CODES.deleted }, + { "U", CODES.updated }, + { "[AD][AD]", CODES.updated }, +} + +---@param line string +---@return CODES, string +local function match(line) + local signs = line:sub(1, 2) + for _, p in ipairs(PATTERNS) do + local path, pattern, code = nil, p[1], p[2] + if signs:find(pattern) then + path = line:sub(4, 4) == '"' and line:sub(5, -2) or line:sub(4) + path = WINDOWS and path:gsub("/", "\\") or path + end + if not path then + elseif path:find("[/\\]$") then + -- Mark the ignored directory as `excluded`, so we can process it further within `propagate_down` + return code == CODES.ignored and CODES.excluded or code, path:sub(1, -2) + else + return code, path + end + ---@diagnostic disable-next-line: missing-return + end +end + +---@param cwd Url +---@return string? +local function root(cwd) + local is_worktree = function(url) + local file, head = io.open(tostring(url)), nil + if file then + head = file:read(8) + file:close() + end + return head == "gitdir: " + end + + repeat + local next = cwd:join(".git") + local cha = fs.cha(next) + if cha and (cha.is_dir or is_worktree(next)) then + return tostring(cwd) + end + cwd = cwd.parent + until not cwd +end + +---@param changed Changes +---@return Changes +local function bubble_up(changed) + local new, empty = {}, Url("") + for path, code in pairs(changed) do + if code ~= CODES.ignored then + local url = Url(path).parent + while url and url ~= empty do + local s = tostring(url) + new[s] = (new[s] or CODES.unknown) > code and new[s] or code + url = url.parent + end + end + end + return new +end + +---@param excluded string[] +---@param cwd Url +---@param repo Url +---@return Changes +local function propagate_down(excluded, cwd, repo) + local new, rel = {}, cwd:strip_prefix(repo) + for _, path in ipairs(excluded) do + if rel:starts_with(path) then + -- If `cwd` is a subdirectory of an excluded directory, also mark it as `excluded` + new[tostring(cwd)] = CODES.excluded + elseif cwd == repo:join(path).parent then + -- If `path` is a direct subdirectory of `cwd`, mark it as `ignored` + new[path] = CODES.ignored + else + -- Skipping, we only care about `cwd` itself and its direct subdirectories for maximum performance + end + end + return new +end + +---@param cwd string +---@param repo string +---@param changed Changes +local add = ya.sync(function(st, cwd, repo, changed) + ---@cast st State + + st.dirs[cwd] = repo + st.repos[repo] = st.repos[repo] or {} + for path, code in pairs(changed) do + if code == CODES.unknown then + st.repos[repo][path] = nil + elseif code == CODES.excluded then + -- Mark the directory with a special value `excluded` so that it can be distinguished during UI rendering + st.dirs[path] = CODES.excluded + else + st.repos[repo][path] = code + end + end + -- TODO: remove this + if ui.render then + ui.render() + else + ya.render() + end +end) + +---@param cwd string +local remove = ya.sync(function(st, cwd) + ---@cast st State + + local repo = st.dirs[cwd] + if not repo then + return + end + + -- TODO: remove this + if ui.render then + ui.render() + else + ya.render() + end + st.dirs[cwd] = nil + if not st.repos[repo] then + return + end + + for _, r in pairs(st.dirs) do + if r == repo then + return + end + end + st.repos[repo] = nil +end) + +---@param st State +---@param opts Options +local function setup(st, opts) + st.dirs = {} + st.repos = {} + + opts = opts or {} + opts.order = opts.order or 1500 + + local t = th.git or {} + local styles = { + [CODES.ignored] = t.ignored and ui.Style(t.ignored) or ui.Style():fg("darkgray"), + [CODES.untracked] = t.untracked and ui.Style(t.untracked) or ui.Style():fg("magenta"), + [CODES.modified] = t.modified and ui.Style(t.modified) or ui.Style():fg("yellow"), + [CODES.added] = t.added and ui.Style(t.added) or ui.Style():fg("green"), + [CODES.deleted] = t.deleted and ui.Style(t.deleted) or ui.Style():fg("red"), + [CODES.updated] = t.updated and ui.Style(t.updated) or ui.Style():fg("yellow"), + } + local signs = { + [CODES.ignored] = t.ignored_sign or "", + [CODES.untracked] = t.untracked_sign or "?", + [CODES.modified] = t.modified_sign or "", + [CODES.added] = t.added_sign or "", + [CODES.deleted] = t.deleted_sign or "", + [CODES.updated] = t.updated_sign or "", + } + + Linemode:children_add(function(self) + local url = self._file.url + local repo = st.dirs[tostring(url.base)] + local code + if repo then + code = repo == CODES.excluded and CODES.ignored or st.repos[repo][tostring(url):sub(#repo + 2)] + end + + if not code or signs[code] == "" then + return "" + elseif self._file.is_hovered then + return ui.Line { " ", signs[code] } + else + return ui.Line { " ", ui.Span(signs[code]):style(styles[code]) } + end + end, opts.order) +end + +---@type UnstableFetcher +local function fetch(_, job) + local cwd = job.files[1].url.base + local repo = root(cwd) + if not repo then + remove(tostring(cwd)) + return true + end + + local paths = {} + for _, file in ipairs(job.files) do + paths[#paths + 1] = tostring(file.url) + end + + -- stylua: ignore + local output, err = Command("git") + :cwd(tostring(cwd)) + :arg({ "--no-optional-locks", "-c", "core.quotePath=", "status", "--porcelain", "-unormal", "--no-renames", "--ignored=matching" }) + :arg(paths) + :stdout(Command.PIPED) + :output() + if not output then + return true, Err("Cannot spawn `git` command, error: %s", err) + end + + local changed, excluded = {}, {} + for line in output.stdout:gmatch("[^\r\n]+") do + local code, path = match(line) + if code == CODES.excluded then + excluded[#excluded + 1] = path + else + changed[path] = code + end + end + + if job.files[1].cha.is_dir then + ya.dict_merge(changed, bubble_up(changed)) + end + ya.dict_merge(changed, propagate_down(excluded, cwd, Url(repo))) + + -- Reset the status of any files that don't appear in the output of `git status` to `unknown`, + -- so that cleaning up outdated statuses from `st.repos` + for _, path in ipairs(paths) do + local s = path:sub(#repo + 2) + changed[s] = changed[s] or CODES.unknown + end + + add(tostring(cwd), repo, changed) + + return false +end + +return { setup = setup, fetch = fetch } diff --git a/.config/yazi/theme.toml b/.config/yazi/theme.toml new file mode 100644 index 0000000..f2a7234 --- /dev/null +++ b/.config/yazi/theme.toml @@ -0,0 +1,2114 @@ +[flavor] +dark = "gruvbox-dark" + +# gruvbox +[icon] + +files = [ + { name = ".babelrc", text = "", fg = "#fabd2f" }, + { name = ".bash_profile", text = "", fg = "#98971a" }, + { name = ".bashrc", text = "", fg = "#98971a" }, + { name = ".clang-format", text = "", fg = "#928374" }, + { name = ".clang-tidy", text = "", fg = "#928374" }, + { name = ".codespellrc", text = "󰓆", fg = "#b8bb26" }, + { name = ".condarc", text = "", fg = "#b8bb26" }, + { name = ".dockerignore", text = "󰡨", fg = "#458588" }, + { name = ".ds_store", text = "", fg = "#928374" }, + { name = ".editorconfig", text = "", fg = "#a89984" }, + { name = ".env", text = "", fg = "#d79921" }, + { name = ".eslintignore", text = "", fg = "#b16286" }, + { name = ".eslintrc", text = "", fg = "#b16286" }, + { name = ".git-blame-ignore-revs", text = "", fg = "#cc241d" }, + { name = ".gitattributes", text = "", fg = "#cc241d" }, + { name = ".gitconfig", text = "", fg = "#cc241d" }, + { name = ".gitignore", text = "", fg = "#cc241d" }, + { name = ".gitlab-ci.yml", text = "", fg = "#cc241d" }, + { name = ".gitmodules", text = "", fg = "#cc241d" }, + { name = ".gtkrc-2.0", text = "", fg = "#8ec07c" }, + { name = ".gvimrc", text = "", fg = "#98971a" }, + { name = ".justfile", text = "", fg = "#928374" }, + { name = ".luacheckrc", text = "", fg = "#458588" }, + { name = ".luaurc", text = "", fg = "#458588" }, + { name = ".mailmap", text = "󰊢", fg = "#cc241d" }, + { name = ".nanorc", text = "", fg = "#b16286" }, + { name = ".npmignore", text = "", fg = "#b16286" }, + { name = ".npmrc", text = "", fg = "#b16286" }, + { name = ".nuxtrc", text = "󱄆", fg = "#b8bb26" }, + { name = ".nvmrc", text = "", fg = "#b8bb26" }, + { name = ".pnpmfile.cjs", text = "", fg = "#d79921" }, + { name = ".pre-commit-config.yaml", text = "󰛢", fg = "#d79921" }, + { name = ".prettierignore", text = "", fg = "#83a598" }, + { name = ".prettierrc", text = "", fg = "#83a598" }, + { name = ".prettierrc.cjs", text = "", fg = "#83a598" }, + { name = ".prettierrc.js", text = "", fg = "#83a598" }, + { name = ".prettierrc.json", text = "", fg = "#83a598" }, + { name = ".prettierrc.json5", text = "", fg = "#83a598" }, + { name = ".prettierrc.mjs", text = "", fg = "#83a598" }, + { name = ".prettierrc.toml", text = "", fg = "#83a598" }, + { name = ".prettierrc.yaml", text = "", fg = "#83a598" }, + { name = ".prettierrc.yml", text = "", fg = "#83a598" }, + { name = ".pylintrc", text = "", fg = "#928374" }, + { name = ".settings.json", text = "", fg = "#b16286" }, + { name = ".SRCINFO", text = "󰣇", fg = "#8ec07c" }, + { name = ".vimrc", text = "", fg = "#98971a" }, + { name = ".Xauthority", text = "", fg = "#cc241d" }, + { name = ".xinitrc", text = "", fg = "#cc241d" }, + { name = ".Xresources", text = "", fg = "#cc241d" }, + { name = ".xsession", text = "", fg = "#cc241d" }, + { name = ".zprofile", text = "", fg = "#98971a" }, + { name = ".zshenv", text = "", fg = "#98971a" }, + { name = ".zshrc", text = "", fg = "#98971a" }, + { name = "_gvimrc", text = "", fg = "#98971a" }, + { name = "_vimrc", text = "", fg = "#98971a" }, + { name = "AUTHORS", text = "", fg = "#b16286" }, + { name = "AUTHORS.txt", text = "", fg = "#b16286" }, + { name = "brewfile", text = "", fg = "#cc241d" }, + { name = "bspwmrc", text = "", fg = "#928374" }, + { name = "build", text = "", fg = "#98971a" }, + { name = "build.gradle", text = "", fg = "#458588" }, + { name = "build.zig.zon", text = "", fg = "#d79921" }, + { name = "bun.lock", text = "", fg = "#a89984" }, + { name = "bun.lockb", text = "", fg = "#a89984" }, + { name = "cantorrc", text = "", fg = "#83a598" }, + { name = "checkhealth", text = "󰓙", fg = "#458588" }, + { name = "cmakelists.txt", text = "", fg = "#a89984" }, + { name = "code_of_conduct", text = "", fg = "#b16286" }, + { name = "code_of_conduct.md", text = "", fg = "#b16286" }, + { name = "commit_editmsg", text = "", fg = "#cc241d" }, + { name = "commitlint.config.js", text = "󰜘", fg = "#689d6a" }, + { name = "commitlint.config.ts", text = "󰜘", fg = "#689d6a" }, + { name = "compose.yaml", text = "󰡨", fg = "#458588" }, + { name = "compose.yml", text = "󰡨", fg = "#458588" }, + { name = "config", text = "", fg = "#928374" }, + { name = "containerfile", text = "󰡨", fg = "#458588" }, + { name = "copying", text = "", fg = "#fabd2f" }, + { name = "copying.lesser", text = "", fg = "#fabd2f" }, + { name = "Directory.Build.props", text = "", fg = "#458588" }, + { name = "Directory.Build.targets", text = "", fg = "#458588" }, + { name = "Directory.Packages.props", text = "", fg = "#458588" }, + { name = "docker-compose.yaml", text = "󰡨", fg = "#458588" }, + { name = "docker-compose.yml", text = "󰡨", fg = "#458588" }, + { name = "dockerfile", text = "󰡨", fg = "#458588" }, + { name = "eslint.config.cjs", text = "", fg = "#b16286" }, + { name = "eslint.config.js", text = "", fg = "#b16286" }, + { name = "eslint.config.mjs", text = "", fg = "#b16286" }, + { name = "eslint.config.ts", text = "", fg = "#b16286" }, + { name = "ext_typoscript_setup.txt", text = "", fg = "#d79921" }, + { name = "favicon.ico", text = "", fg = "#fabd2f" }, + { name = "fp-info-cache", text = "", fg = "#8ec07c" }, + { name = "fp-lib-table", text = "", fg = "#8ec07c" }, + { name = "FreeCAD.conf", text = "", fg = "#cc241d" }, + { name = "Gemfile", text = "", fg = "#cc241d" }, + { name = "gnumakefile", text = "", fg = "#928374" }, + { name = "go.mod", text = "", fg = "#8ec07c" }, + { name = "go.sum", text = "", fg = "#8ec07c" }, + { name = "go.work", text = "", fg = "#8ec07c" }, + { name = "gradle-wrapper.properties", text = "", fg = "#458588" }, + { name = "gradle.properties", text = "", fg = "#458588" }, + { name = "gradlew", text = "", fg = "#458588" }, + { name = "groovy", text = "", fg = "#458588" }, + { name = "gruntfile.babel.js", text = "", fg = "#d79921" }, + { name = "gruntfile.coffee", text = "", fg = "#d79921" }, + { name = "gruntfile.js", text = "", fg = "#d79921" }, + { name = "gruntfile.ts", text = "", fg = "#d79921" }, + { name = "gtkrc", text = "", fg = "#8ec07c" }, + { name = "gulpfile.babel.js", text = "", fg = "#fb4934" }, + { name = "gulpfile.coffee", text = "", fg = "#fb4934" }, + { name = "gulpfile.js", text = "", fg = "#fb4934" }, + { name = "gulpfile.ts", text = "", fg = "#fb4934" }, + { name = "hypridle.conf", text = "", fg = "#8ec07c" }, + { name = "hyprland.conf", text = "", fg = "#8ec07c" }, + { name = "hyprlandd.conf", text = "", fg = "#8ec07c" }, + { name = "hyprlock.conf", text = "", fg = "#8ec07c" }, + { name = "hyprpaper.conf", text = "", fg = "#8ec07c" }, + { name = "hyprsunset.conf", text = "", fg = "#8ec07c" }, + { name = "i18n.config.js", text = "󰗊", fg = "#b16286" }, + { name = "i18n.config.ts", text = "󰗊", fg = "#b16286" }, + { name = "i3blocks.conf", text = "", fg = "#a89984" }, + { name = "i3status.conf", text = "", fg = "#a89984" }, + { name = "index.theme", text = "", fg = "#b8bb26" }, + { name = "ionic.config.json", text = "", fg = "#83a598" }, + { name = "Jenkinsfile", text = "", fg = "#cc241d" }, + { name = "justfile", text = "", fg = "#928374" }, + { name = "kalgebrarc", text = "", fg = "#83a598" }, + { name = "kdeglobals", text = "", fg = "#83a598" }, + { name = "kdenlive-layoutsrc", text = "", fg = "#689d6a" }, + { name = "kdenliverc", text = "", fg = "#689d6a" }, + { name = "kritadisplayrc", text = "", fg = "#d3869b" }, + { name = "kritarc", text = "", fg = "#d3869b" }, + { name = "license", text = "", fg = "#fabd2f" }, + { name = "license.md", text = "", fg = "#fabd2f" }, + { name = "lxde-rc.xml", text = "", fg = "#a89984" }, + { name = "lxqt.conf", text = "", fg = "#83a598" }, + { name = "makefile", text = "", fg = "#928374" }, + { name = "mix.lock", text = "", fg = "#d3869b" }, + { name = "mpv.conf", text = "", fg = "#b16286" }, + { name = "next.config.cjs", text = "", fg = "#8ec07c" }, + { name = "next.config.js", text = "", fg = "#8ec07c" }, + { name = "next.config.ts", text = "", fg = "#8ec07c" }, + { name = "node_modules", text = "", fg = "#b16286" }, + { name = "nuxt.config.cjs", text = "󱄆", fg = "#b8bb26" }, + { name = "nuxt.config.js", text = "󱄆", fg = "#b8bb26" }, + { name = "nuxt.config.mjs", text = "󱄆", fg = "#b8bb26" }, + { name = "nuxt.config.ts", text = "󱄆", fg = "#b8bb26" }, + { name = "package-lock.json", text = "", fg = "#cc241d" }, + { name = "package.json", text = "", fg = "#b16286" }, + { name = "PKGBUILD", text = "", fg = "#8ec07c" }, + { name = "platformio.ini", text = "", fg = "#d79921" }, + { name = "playwright.config.cjs", text = "", fg = "#b8bb26" }, + { name = "playwright.config.cts", text = "", fg = "#b8bb26" }, + { name = "playwright.config.js", text = "", fg = "#b8bb26" }, + { name = "playwright.config.mjs", text = "", fg = "#b8bb26" }, + { name = "playwright.config.mts", text = "", fg = "#b8bb26" }, + { name = "playwright.config.ts", text = "", fg = "#b8bb26" }, + { name = "pnpm-lock.yaml", text = "", fg = "#d79921" }, + { name = "pnpm-workspace.yaml", text = "", fg = "#d79921" }, + { name = "pom.xml", text = "", fg = "#cc241d" }, + { name = "prettier.config.cjs", text = "", fg = "#83a598" }, + { name = "prettier.config.js", text = "", fg = "#83a598" }, + { name = "prettier.config.mjs", text = "", fg = "#83a598" }, + { name = "prettier.config.ts", text = "", fg = "#83a598" }, + { name = "procfile", text = "", fg = "#d3869b" }, + { name = "PrusaSlicer.ini", text = "", fg = "#cc241d" }, + { name = "PrusaSlicerGcodeViewer.ini", text = "", fg = "#cc241d" }, + { name = "py.typed", text = "", fg = "#d79921" }, + { name = "QtProject.conf", text = "", fg = "#98971a" }, + { name = "rakefile", text = "", fg = "#cc241d" }, + { name = "readme", text = "󰂺", fg = "#a89984" }, + { name = "readme.md", text = "󰂺", fg = "#a89984" }, + { name = "rmd", text = "", fg = "#83a598" }, + { name = "robots.txt", text = "󰚩", fg = "#b16286" }, + { name = "security", text = "󰒃", fg = "#a89984" }, + { name = "security.md", text = "󰒃", fg = "#a89984" }, + { name = "settings.gradle", text = "", fg = "#458588" }, + { name = "svelte.config.js", text = "", fg = "#cc241d" }, + { name = "sxhkdrc", text = "", fg = "#928374" }, + { name = "sym-lib-table", text = "", fg = "#8ec07c" }, + { name = "tailwind.config.js", text = "󱏿", fg = "#8ec07c" }, + { name = "tailwind.config.mjs", text = "󱏿", fg = "#8ec07c" }, + { name = "tailwind.config.ts", text = "󱏿", fg = "#8ec07c" }, + { name = "tmux.conf", text = "", fg = "#b8bb26" }, + { name = "tmux.conf.local", text = "", fg = "#b8bb26" }, + { name = "tsconfig.json", text = "", fg = "#83a598" }, + { name = "unlicense", text = "", fg = "#fabd2f" }, + { name = "vagrantfile", text = "", fg = "#458588" }, + { name = "vercel.json", text = "", fg = "#8ec07c" }, + { name = "vite.config.cjs", text = "", fg = "#d79921" }, + { name = "vite.config.cts", text = "", fg = "#d79921" }, + { name = "vite.config.js", text = "", fg = "#d79921" }, + { name = "vite.config.mjs", text = "", fg = "#d79921" }, + { name = "vite.config.mts", text = "", fg = "#d79921" }, + { name = "vite.config.ts", text = "", fg = "#d79921" }, + { name = "vitest.config.cjs", text = "", fg = "#d79921" }, + { name = "vitest.config.cts", text = "", fg = "#d79921" }, + { name = "vitest.config.js", text = "", fg = "#d79921" }, + { name = "vitest.config.mjs", text = "", fg = "#d79921" }, + { name = "vitest.config.mts", text = "", fg = "#d79921" }, + { name = "vitest.config.ts", text = "", fg = "#d79921" }, + { name = "vlcrc", text = "󰕼", fg = "#d79921" }, + { name = "webpack", text = "󰜫", fg = "#83a598" }, + { name = "weston.ini", text = "", fg = "#d79921" }, + { name = "workspace", text = "", fg = "#98971a" }, + { name = "wrangler.jsonc", text = "", fg = "#d79921" }, + { name = "wrangler.toml", text = "", fg = "#d79921" }, + { name = "xdph.conf", text = "", fg = "#8ec07c" }, + { name = "xmobarrc", text = "", fg = "#fb4934" }, + { name = "xmobarrc.hs", text = "", fg = "#fb4934" }, + { name = "xmonad.hs", text = "", fg = "#fb4934" }, + { name = "xorg.conf", text = "", fg = "#cc241d" }, + { name = "xsettingsd.conf", text = "", fg = "#cc241d" }, +] +exts = [ + { name = "3gp", text = "", fg = "#d79921" }, + { name = "3mf", text = "󰆧", fg = "#d3869b" }, + { name = "7z", text = "", fg = "#d79921" }, + { name = "a", text = "", fg = "#a89984" }, + { name = "aac", text = "", fg = "#83a598" }, + { name = "ada", text = "", fg = "#458588" }, + { name = "adb", text = "", fg = "#458588" }, + { name = "ads", text = "", fg = "#d3869b" }, + { name = "ai", text = "", fg = "#fabd2f" }, + { name = "aif", text = "", fg = "#83a598" }, + { name = "aiff", text = "", fg = "#83a598" }, + { name = "android", text = "", fg = "#b8bb26" }, + { name = "ape", text = "", fg = "#83a598" }, + { name = "apk", text = "", fg = "#b8bb26" }, + { name = "apl", text = "", fg = "#b8bb26" }, + { name = "app", text = "", fg = "#cc241d" }, + { name = "applescript", text = "", fg = "#928374" }, + { name = "asc", text = "󰦝", fg = "#928374" }, + { name = "asm", text = "", fg = "#83a598" }, + { name = "ass", text = "󰨖", fg = "#d79921" }, + { name = "astro", text = "", fg = "#b16286" }, + { name = "avif", text = "", fg = "#d3869b" }, + { name = "awk", text = "", fg = "#928374" }, + { name = "azcli", text = "", fg = "#83a598" }, + { name = "bak", text = "󰁯", fg = "#928374" }, + { name = "bash", text = "", fg = "#98971a" }, + { name = "bat", text = "", fg = "#b8bb26" }, + { name = "bazel", text = "", fg = "#98971a" }, + { name = "bib", text = "󱉟", fg = "#fabd2f" }, + { name = "bicep", text = "", fg = "#83a598" }, + { name = "bicepparam", text = "", fg = "#d3869b" }, + { name = "bin", text = "", fg = "#cc241d" }, + { name = "blade.php", text = "", fg = "#fb4934" }, + { name = "blend", text = "󰂫", fg = "#d79921" }, + { name = "blp", text = "󰺾", fg = "#458588" }, + { name = "bmp", text = "", fg = "#d3869b" }, + { name = "bqn", text = "", fg = "#b8bb26" }, + { name = "brep", text = "󰻫", fg = "#d79921" }, + { name = "bz", text = "", fg = "#d79921" }, + { name = "bz2", text = "", fg = "#d79921" }, + { name = "bz3", text = "", fg = "#d79921" }, + { name = "bzl", text = "", fg = "#98971a" }, + { name = "c", text = "", fg = "#458588" }, + { name = "c++", text = "", fg = "#fb4934" }, + { name = "cache", text = "", fg = "#8ec07c" }, + { name = "cast", text = "", fg = "#d79921" }, + { name = "cbl", text = "", fg = "#458588" }, + { name = "cc", text = "", fg = "#fb4934" }, + { name = "ccm", text = "", fg = "#fb4934" }, + { name = "cfc", text = "", fg = "#8ec07c" }, + { name = "cfg", text = "", fg = "#928374" }, + { name = "cfm", text = "", fg = "#8ec07c" }, + { name = "cjs", text = "", fg = "#fabd2f" }, + { name = "clj", text = "", fg = "#98971a" }, + { name = "cljc", text = "", fg = "#98971a" }, + { name = "cljd", text = "", fg = "#83a598" }, + { name = "cljs", text = "", fg = "#83a598" }, + { name = "cmake", text = "", fg = "#a89984" }, + { name = "cob", text = "", fg = "#458588" }, + { name = "cobol", text = "", fg = "#458588" }, + { name = "coffee", text = "", fg = "#fabd2f" }, + { name = "conda", text = "", fg = "#b8bb26" }, + { name = "conf", text = "", fg = "#928374" }, + { name = "config.ru", text = "", fg = "#cc241d" }, + { name = "cow", text = "󰆚", fg = "#d79921" }, + { name = "cp", text = "", fg = "#83a598" }, + { name = "cpp", text = "", fg = "#83a598" }, + { name = "cppm", text = "", fg = "#83a598" }, + { name = "cpy", text = "", fg = "#458588" }, + { name = "cr", text = "", fg = "#a89984" }, + { name = "crdownload", text = "", fg = "#8ec07c" }, + { name = "cs", text = "󰌛", fg = "#d79921" }, + { name = "csh", text = "", fg = "#928374" }, + { name = "cshtml", text = "󱦗", fg = "#b16286" }, + { name = "cson", text = "", fg = "#fabd2f" }, + { name = "csproj", text = "󰪮", fg = "#b16286" }, + { name = "css", text = "", fg = "#b16286" }, + { name = "csv", text = "", fg = "#98971a" }, + { name = "cts", text = "", fg = "#83a598" }, + { name = "cu", text = "", fg = "#98971a" }, + { name = "cue", text = "󰲹", fg = "#d3869b" }, + { name = "cuh", text = "", fg = "#d3869b" }, + { name = "cxx", text = "", fg = "#83a598" }, + { name = "cxxm", text = "", fg = "#83a598" }, + { name = "d", text = "", fg = "#cc241d" }, + { name = "d.ts", text = "", fg = "#d79921" }, + { name = "dart", text = "", fg = "#458588" }, + { name = "db", text = "", fg = "#8ec07c" }, + { name = "dconf", text = "", fg = "#8ec07c" }, + { name = "desktop", text = "", fg = "#b16286" }, + { name = "diff", text = "", fg = "#928374" }, + { name = "dll", text = "", fg = "#cc241d" }, + { name = "doc", text = "󰈬", fg = "#458588" }, + { name = "Dockerfile", text = "󰡨", fg = "#458588" }, + { name = "dockerignore", text = "󰡨", fg = "#458588" }, + { name = "docx", text = "󰈬", fg = "#458588" }, + { name = "dot", text = "󱁉", fg = "#458588" }, + { name = "download", text = "", fg = "#8ec07c" }, + { name = "drl", text = "", fg = "#cc241d" }, + { name = "dropbox", text = "", fg = "#458588" }, + { name = "dump", text = "", fg = "#8ec07c" }, + { name = "dwg", text = "󰻫", fg = "#d79921" }, + { name = "dxf", text = "󰻫", fg = "#d79921" }, + { name = "ebook", text = "", fg = "#d79921" }, + { name = "ebuild", text = "", fg = "#b16286" }, + { name = "edn", text = "", fg = "#83a598" }, + { name = "eex", text = "", fg = "#d3869b" }, + { name = "ejs", text = "", fg = "#fabd2f" }, + { name = "el", text = "", fg = "#b16286" }, + { name = "elc", text = "", fg = "#b16286" }, + { name = "elf", text = "", fg = "#cc241d" }, + { name = "elm", text = "", fg = "#83a598" }, + { name = "eln", text = "", fg = "#b16286" }, + { name = "env", text = "", fg = "#d79921" }, + { name = "eot", text = "", fg = "#a89984" }, + { name = "epp", text = "", fg = "#d79921" }, + { name = "epub", text = "", fg = "#d79921" }, + { name = "erb", text = "", fg = "#cc241d" }, + { name = "erl", text = "", fg = "#b16286" }, + { name = "ex", text = "", fg = "#d3869b" }, + { name = "exe", text = "", fg = "#cc241d" }, + { name = "exs", text = "", fg = "#d3869b" }, + { name = "f#", text = "", fg = "#83a598" }, + { name = "f3d", text = "󰻫", fg = "#d79921" }, + { name = "f90", text = "󱈚", fg = "#b16286" }, + { name = "fbx", text = "󰆧", fg = "#d3869b" }, + { name = "fcbak", text = "", fg = "#cc241d" }, + { name = "fcmacro", text = "", fg = "#cc241d" }, + { name = "fcmat", text = "", fg = "#cc241d" }, + { name = "fcparam", text = "", fg = "#cc241d" }, + { name = "fcscript", text = "", fg = "#cc241d" }, + { name = "fcstd", text = "", fg = "#cc241d" }, + { name = "fcstd1", text = "", fg = "#cc241d" }, + { name = "fctb", text = "", fg = "#cc241d" }, + { name = "fctl", text = "", fg = "#cc241d" }, + { name = "fdmdownload", text = "", fg = "#8ec07c" }, + { name = "feature", text = "", fg = "#b8bb26" }, + { name = "fish", text = "", fg = "#928374" }, + { name = "flac", text = "", fg = "#458588" }, + { name = "flc", text = "", fg = "#a89984" }, + { name = "flf", text = "", fg = "#a89984" }, + { name = "fnl", text = "", fg = "#fabd2f" }, + { name = "fodg", text = "", fg = "#d79921" }, + { name = "fodp", text = "", fg = "#d79921" }, + { name = "fods", text = "", fg = "#b8bb26" }, + { name = "fodt", text = "", fg = "#458588" }, + { name = "frag", text = "", fg = "#8ec07c" }, + { name = "fs", text = "", fg = "#83a598" }, + { name = "fsi", text = "", fg = "#83a598" }, + { name = "fsscript", text = "", fg = "#83a598" }, + { name = "fsx", text = "", fg = "#83a598" }, + { name = "gcode", text = "󰐫", fg = "#83a598" }, + { name = "gd", text = "", fg = "#928374" }, + { name = "gemspec", text = "", fg = "#cc241d" }, + { name = "geom", text = "", fg = "#8ec07c" }, + { name = "gif", text = "", fg = "#d3869b" }, + { name = "git", text = "", fg = "#cc241d" }, + { name = "glb", text = "", fg = "#d79921" }, + { name = "gleam", text = "", fg = "#d3869b" }, + { name = "glsl", text = "", fg = "#8ec07c" }, + { name = "gnumakefile", text = "", fg = "#928374" }, + { name = "go", text = "", fg = "#8ec07c" }, + { name = "godot", text = "", fg = "#928374" }, + { name = "gpr", text = "", fg = "#928374" }, + { name = "gql", text = "", fg = "#d3869b" }, + { name = "gradle", text = "", fg = "#458588" }, + { name = "graphql", text = "", fg = "#d3869b" }, + { name = "gresource", text = "", fg = "#8ec07c" }, + { name = "gv", text = "󱁉", fg = "#458588" }, + { name = "gz", text = "", fg = "#d79921" }, + { name = "h", text = "", fg = "#d3869b" }, + { name = "haml", text = "", fg = "#a89984" }, + { name = "hbs", text = "", fg = "#cc241d" }, + { name = "heex", text = "", fg = "#d3869b" }, + { name = "hex", text = "", fg = "#458588" }, + { name = "hh", text = "", fg = "#d3869b" }, + { name = "hpp", text = "", fg = "#d3869b" }, + { name = "hrl", text = "", fg = "#b16286" }, + { name = "hs", text = "", fg = "#d3869b" }, + { name = "htm", text = "", fg = "#cc241d" }, + { name = "html", text = "", fg = "#cc241d" }, + { name = "http", text = "", fg = "#83a598" }, + { name = "huff", text = "󰡘", fg = "#b16286" }, + { name = "hurl", text = "", fg = "#d3869b" }, + { name = "hx", text = "", fg = "#d79921" }, + { name = "hxx", text = "", fg = "#d3869b" }, + { name = "ical", text = "", fg = "#458588" }, + { name = "icalendar", text = "", fg = "#458588" }, + { name = "ico", text = "", fg = "#fabd2f" }, + { name = "ics", text = "", fg = "#458588" }, + { name = "ifb", text = "", fg = "#458588" }, + { name = "ifc", text = "󰻫", fg = "#d79921" }, + { name = "ige", text = "󰻫", fg = "#d79921" }, + { name = "iges", text = "󰻫", fg = "#d79921" }, + { name = "igs", text = "󰻫", fg = "#d79921" }, + { name = "image", text = "", fg = "#fb4934" }, + { name = "img", text = "", fg = "#fb4934" }, + { name = "import", text = "", fg = "#a89984" }, + { name = "info", text = "", fg = "#fabd2f" }, + { name = "ini", text = "", fg = "#928374" }, + { name = "ino", text = "", fg = "#689d6a" }, + { name = "ipynb", text = "", fg = "#d79921" }, + { name = "iso", text = "", fg = "#fb4934" }, + { name = "ixx", text = "", fg = "#83a598" }, + { name = "jar", text = "", fg = "#d79921" }, + { name = "java", text = "", fg = "#fb4934" }, + { name = "jl", text = "", fg = "#d3869b" }, + { name = "jpeg", text = "", fg = "#d3869b" }, + { name = "jpg", text = "", fg = "#d3869b" }, + { name = "js", text = "", fg = "#fabd2f" }, + { name = "json", text = "", fg = "#fabd2f" }, + { name = "json5", text = "", fg = "#fabd2f" }, + { name = "jsonc", text = "", fg = "#fabd2f" }, + { name = "jsx", text = "", fg = "#8ec07c" }, + { name = "jwmrc", text = "", fg = "#83a598" }, + { name = "jxl", text = "", fg = "#d3869b" }, + { name = "kbx", text = "󰯄", fg = "#928374" }, + { name = "kdb", text = "", fg = "#b8bb26" }, + { name = "kdbx", text = "", fg = "#b8bb26" }, + { name = "kdenlive", text = "", fg = "#689d6a" }, + { name = "kdenlivetitle", text = "", fg = "#689d6a" }, + { name = "kicad_dru", text = "", fg = "#8ec07c" }, + { name = "kicad_mod", text = "", fg = "#8ec07c" }, + { name = "kicad_pcb", text = "", fg = "#8ec07c" }, + { name = "kicad_prl", text = "", fg = "#8ec07c" }, + { name = "kicad_pro", text = "", fg = "#8ec07c" }, + { name = "kicad_sch", text = "", fg = "#8ec07c" }, + { name = "kicad_sym", text = "", fg = "#8ec07c" }, + { name = "kicad_wks", text = "", fg = "#8ec07c" }, + { name = "ko", text = "", fg = "#a89984" }, + { name = "kpp", text = "", fg = "#d3869b" }, + { name = "kra", text = "", fg = "#d3869b" }, + { name = "krz", text = "", fg = "#d3869b" }, + { name = "ksh", text = "", fg = "#928374" }, + { name = "kt", text = "", fg = "#458588" }, + { name = "kts", text = "", fg = "#458588" }, + { name = "lck", text = "", fg = "#a89984" }, + { name = "leex", text = "", fg = "#d3869b" }, + { name = "less", text = "", fg = "#b16286" }, + { name = "lff", text = "", fg = "#a89984" }, + { name = "lhs", text = "", fg = "#d3869b" }, + { name = "lib", text = "", fg = "#cc241d" }, + { name = "license", text = "", fg = "#fabd2f" }, + { name = "liquid", text = "", fg = "#d79921" }, + { name = "lock", text = "", fg = "#a89984" }, + { name = "log", text = "󰌱", fg = "#a89984" }, + { name = "lrc", text = "󰨖", fg = "#d79921" }, + { name = "lua", text = "", fg = "#83a598" }, + { name = "luac", text = "", fg = "#83a598" }, + { name = "luau", text = "", fg = "#458588" }, + { name = "m", text = "", fg = "#458588" }, + { name = "m3u", text = "󰲹", fg = "#d3869b" }, + { name = "m3u8", text = "󰲹", fg = "#d3869b" }, + { name = "m4a", text = "", fg = "#83a598" }, + { name = "m4v", text = "", fg = "#d79921" }, + { name = "magnet", text = "", fg = "#cc241d" }, + { name = "makefile", text = "", fg = "#928374" }, + { name = "markdown", text = "", fg = "#a89984" }, + { name = "material", text = "", fg = "#b16286" }, + { name = "md", text = "", fg = "#a89984" }, + { name = "md5", text = "󰕥", fg = "#d3869b" }, + { name = "mdx", text = "", fg = "#83a598" }, + { name = "mint", text = "󰌪", fg = "#98971a" }, + { name = "mjs", text = "", fg = "#fabd2f" }, + { name = "mk", text = "", fg = "#928374" }, + { name = "mkv", text = "", fg = "#d79921" }, + { name = "ml", text = "", fg = "#d79921" }, + { name = "mli", text = "", fg = "#d79921" }, + { name = "mm", text = "", fg = "#83a598" }, + { name = "mo", text = "", fg = "#b16286" }, + { name = "mobi", text = "", fg = "#d79921" }, + { name = "mojo", text = "", fg = "#cc241d" }, + { name = "mov", text = "", fg = "#d79921" }, + { name = "mp3", text = "", fg = "#83a598" }, + { name = "mp4", text = "", fg = "#d79921" }, + { name = "mpp", text = "", fg = "#83a598" }, + { name = "msf", text = "", fg = "#83a598" }, + { name = "mts", text = "", fg = "#83a598" }, + { name = "mustache", text = "", fg = "#d79921" }, + { name = "nfo", text = "", fg = "#fabd2f" }, + { name = "nim", text = "", fg = "#d79921" }, + { name = "nix", text = "", fg = "#689d6a" }, + { name = "norg", text = "", fg = "#83a598" }, + { name = "nswag", text = "", fg = "#98971a" }, + { name = "nu", text = "", fg = "#689d6a" }, + { name = "o", text = "", fg = "#cc241d" }, + { name = "obj", text = "󰆧", fg = "#d3869b" }, + { name = "odf", text = "", fg = "#fb4934" }, + { name = "odg", text = "", fg = "#d79921" }, + { name = "odin", text = "󰟢", fg = "#83a598" }, + { name = "odp", text = "", fg = "#d79921" }, + { name = "ods", text = "", fg = "#b8bb26" }, + { name = "odt", text = "", fg = "#458588" }, + { name = "oga", text = "", fg = "#458588" }, + { name = "ogg", text = "", fg = "#458588" }, + { name = "ogv", text = "", fg = "#d79921" }, + { name = "ogx", text = "", fg = "#d79921" }, + { name = "opus", text = "", fg = "#458588" }, + { name = "org", text = "", fg = "#689d6a" }, + { name = "otf", text = "", fg = "#a89984" }, + { name = "out", text = "", fg = "#cc241d" }, + { name = "part", text = "", fg = "#8ec07c" }, + { name = "patch", text = "", fg = "#928374" }, + { name = "pck", text = "", fg = "#928374" }, + { name = "pcm", text = "", fg = "#458588" }, + { name = "pdf", text = "", fg = "#cc241d" }, + { name = "php", text = "", fg = "#d3869b" }, + { name = "pl", text = "", fg = "#83a598" }, + { name = "pls", text = "󰲹", fg = "#d3869b" }, + { name = "ply", text = "󰆧", fg = "#d3869b" }, + { name = "pm", text = "", fg = "#83a598" }, + { name = "png", text = "", fg = "#d3869b" }, + { name = "po", text = "", fg = "#83a598" }, + { name = "pot", text = "", fg = "#83a598" }, + { name = "pp", text = "", fg = "#d79921" }, + { name = "ppt", text = "󰈧", fg = "#cc241d" }, + { name = "pptx", text = "󰈧", fg = "#cc241d" }, + { name = "prisma", text = "", fg = "#458588" }, + { name = "pro", text = "", fg = "#fabd2f" }, + { name = "ps1", text = "󰨊", fg = "#458588" }, + { name = "psb", text = "", fg = "#83a598" }, + { name = "psd", text = "", fg = "#83a598" }, + { name = "psd1", text = "󰨊", fg = "#458588" }, + { name = "psm1", text = "󰨊", fg = "#458588" }, + { name = "pub", text = "󰷖", fg = "#fabd2f" }, + { name = "pxd", text = "", fg = "#83a598" }, + { name = "pxi", text = "", fg = "#83a598" }, + { name = "py", text = "", fg = "#d79921" }, + { name = "pyc", text = "", fg = "#fabd2f" }, + { name = "pyd", text = "", fg = "#fabd2f" }, + { name = "pyi", text = "", fg = "#d79921" }, + { name = "pyo", text = "", fg = "#fabd2f" }, + { name = "pyw", text = "", fg = "#83a598" }, + { name = "pyx", text = "", fg = "#83a598" }, + { name = "qm", text = "", fg = "#83a598" }, + { name = "qml", text = "", fg = "#98971a" }, + { name = "qrc", text = "", fg = "#98971a" }, + { name = "qss", text = "", fg = "#98971a" }, + { name = "query", text = "", fg = "#98971a" }, + { name = "r", text = "󰟔", fg = "#458588" }, + { name = "R", text = "󰟔", fg = "#458588" }, + { name = "rake", text = "", fg = "#cc241d" }, + { name = "rar", text = "", fg = "#d79921" }, + { name = "rasi", text = "", fg = "#fabd2f" }, + { name = "razor", text = "󱦘", fg = "#b16286" }, + { name = "rb", text = "", fg = "#cc241d" }, + { name = "res", text = "", fg = "#fb4934" }, + { name = "resi", text = "", fg = "#fb4934" }, + { name = "rlib", text = "", fg = "#fb4934" }, + { name = "rmd", text = "", fg = "#83a598" }, + { name = "rproj", text = "󰗆", fg = "#98971a" }, + { name = "rs", text = "", fg = "#fb4934" }, + { name = "rss", text = "", fg = "#d79921" }, + { name = "s", text = "", fg = "#458588" }, + { name = "sass", text = "", fg = "#fb4934" }, + { name = "sbt", text = "", fg = "#fb4934" }, + { name = "sc", text = "", fg = "#fb4934" }, + { name = "scad", text = "", fg = "#d79921" }, + { name = "scala", text = "", fg = "#fb4934" }, + { name = "scm", text = "󰘧", fg = "#a89984" }, + { name = "scss", text = "", fg = "#fb4934" }, + { name = "sh", text = "", fg = "#928374" }, + { name = "sha1", text = "󰕥", fg = "#d3869b" }, + { name = "sha224", text = "󰕥", fg = "#d3869b" }, + { name = "sha256", text = "󰕥", fg = "#d3869b" }, + { name = "sha384", text = "󰕥", fg = "#d3869b" }, + { name = "sha512", text = "󰕥", fg = "#d3869b" }, + { name = "sig", text = "󰘧", fg = "#d79921" }, + { name = "signature", text = "󰘧", fg = "#d79921" }, + { name = "skp", text = "󰻫", fg = "#d79921" }, + { name = "sldasm", text = "󰻫", fg = "#d79921" }, + { name = "sldprt", text = "󰻫", fg = "#d79921" }, + { name = "slim", text = "", fg = "#cc241d" }, + { name = "sln", text = "", fg = "#b16286" }, + { name = "slnx", text = "", fg = "#b16286" }, + { name = "slvs", text = "󰻫", fg = "#d79921" }, + { name = "sml", text = "󰘧", fg = "#d79921" }, + { name = "so", text = "", fg = "#a89984" }, + { name = "sol", text = "", fg = "#83a598" }, + { name = "spec.js", text = "", fg = "#fabd2f" }, + { name = "spec.jsx", text = "", fg = "#8ec07c" }, + { name = "spec.ts", text = "", fg = "#83a598" }, + { name = "spec.tsx", text = "", fg = "#458588" }, + { name = "spx", text = "", fg = "#458588" }, + { name = "sql", text = "", fg = "#8ec07c" }, + { name = "sqlite", text = "", fg = "#8ec07c" }, + { name = "sqlite3", text = "", fg = "#8ec07c" }, + { name = "srt", text = "󰨖", fg = "#d79921" }, + { name = "ssa", text = "󰨖", fg = "#d79921" }, + { name = "ste", text = "󰻫", fg = "#d79921" }, + { name = "step", text = "󰻫", fg = "#d79921" }, + { name = "stl", text = "󰆧", fg = "#d3869b" }, + { name = "stories.js", text = "", fg = "#fb4934" }, + { name = "stories.jsx", text = "", fg = "#fb4934" }, + { name = "stories.mjs", text = "", fg = "#fb4934" }, + { name = "stories.svelte", text = "", fg = "#fb4934" }, + { name = "stories.ts", text = "", fg = "#fb4934" }, + { name = "stories.tsx", text = "", fg = "#fb4934" }, + { name = "stories.vue", text = "", fg = "#fb4934" }, + { name = "stp", text = "󰻫", fg = "#d79921" }, + { name = "strings", text = "", fg = "#83a598" }, + { name = "styl", text = "", fg = "#98971a" }, + { name = "sub", text = "󰨖", fg = "#d79921" }, + { name = "sublime", text = "", fg = "#d79921" }, + { name = "suo", text = "", fg = "#b16286" }, + { name = "sv", text = "󰍛", fg = "#98971a" }, + { name = "svelte", text = "", fg = "#cc241d" }, + { name = "svg", text = "󰜡", fg = "#d79921" }, + { name = "svgz", text = "󰜡", fg = "#d79921" }, + { name = "svh", text = "󰍛", fg = "#98971a" }, + { name = "swift", text = "", fg = "#d79921" }, + { name = "t", text = "", fg = "#83a598" }, + { name = "tbc", text = "󰛓", fg = "#458588" }, + { name = "tcl", text = "󰛓", fg = "#458588" }, + { name = "templ", text = "", fg = "#d79921" }, + { name = "terminal", text = "", fg = "#b8bb26" }, + { name = "test.js", text = "", fg = "#fabd2f" }, + { name = "test.jsx", text = "", fg = "#8ec07c" }, + { name = "test.ts", text = "", fg = "#83a598" }, + { name = "test.tsx", text = "", fg = "#458588" }, + { name = "tex", text = "", fg = "#98971a" }, + { name = "tf", text = "", fg = "#b16286" }, + { name = "tfvars", text = "", fg = "#b16286" }, + { name = "tgz", text = "", fg = "#d79921" }, + { name = "tmpl", text = "", fg = "#d79921" }, + { name = "tmux", text = "", fg = "#b8bb26" }, + { name = "toml", text = "", fg = "#cc241d" }, + { name = "torrent", text = "", fg = "#8ec07c" }, + { name = "tres", text = "", fg = "#928374" }, + { name = "ts", text = "", fg = "#83a598" }, + { name = "tscn", text = "", fg = "#928374" }, + { name = "tsconfig", text = "", fg = "#d79921" }, + { name = "tsx", text = "", fg = "#458588" }, + { name = "ttf", text = "", fg = "#a89984" }, + { name = "twig", text = "", fg = "#98971a" }, + { name = "txt", text = "󰈙", fg = "#98971a" }, + { name = "txz", text = "", fg = "#d79921" }, + { name = "typ", text = "", fg = "#8ec07c" }, + { name = "typoscript", text = "", fg = "#d79921" }, + { name = "ui", text = "", fg = "#458588" }, + { name = "v", text = "󰍛", fg = "#98971a" }, + { name = "vala", text = "", fg = "#b16286" }, + { name = "vert", text = "", fg = "#8ec07c" }, + { name = "vh", text = "󰍛", fg = "#98971a" }, + { name = "vhd", text = "󰍛", fg = "#98971a" }, + { name = "vhdl", text = "󰍛", fg = "#98971a" }, + { name = "vi", text = "", fg = "#d79921" }, + { name = "vim", text = "", fg = "#98971a" }, + { name = "vsh", text = "", fg = "#8ec07c" }, + { name = "vsix", text = "", fg = "#b16286" }, + { name = "vue", text = "", fg = "#98971a" }, + { name = "wasm", text = "", fg = "#458588" }, + { name = "wav", text = "", fg = "#83a598" }, + { name = "webm", text = "", fg = "#d79921" }, + { name = "webmanifest", text = "", fg = "#fabd2f" }, + { name = "webp", text = "", fg = "#d3869b" }, + { name = "webpack", text = "󰜫", fg = "#83a598" }, + { name = "wma", text = "", fg = "#83a598" }, + { name = "wmv", text = "", fg = "#d79921" }, + { name = "woff", text = "", fg = "#a89984" }, + { name = "woff2", text = "", fg = "#a89984" }, + { name = "wrl", text = "󰆧", fg = "#d3869b" }, + { name = "wrz", text = "󰆧", fg = "#d3869b" }, + { name = "wv", text = "", fg = "#83a598" }, + { name = "wvc", text = "", fg = "#83a598" }, + { name = "x", text = "", fg = "#458588" }, + { name = "xaml", text = "󰙳", fg = "#b16286" }, + { name = "xcf", text = "", fg = "#928374" }, + { name = "xcplayground", text = "", fg = "#d79921" }, + { name = "xcstrings", text = "", fg = "#83a598" }, + { name = "xls", text = "󰈛", fg = "#98971a" }, + { name = "xlsx", text = "󰈛", fg = "#98971a" }, + { name = "xm", text = "", fg = "#83a598" }, + { name = "xml", text = "󰗀", fg = "#d79921" }, + { name = "xpi", text = "", fg = "#cc241d" }, + { name = "xul", text = "", fg = "#d79921" }, + { name = "xz", text = "", fg = "#d79921" }, + { name = "yaml", text = "", fg = "#928374" }, + { name = "yml", text = "", fg = "#928374" }, + { name = "zig", text = "", fg = "#d79921" }, + { name = "zip", text = "", fg = "#d79921" }, + { name = "zsh", text = "", fg = "#98971a" }, + { name = "zst", text = "", fg = "#d79921" }, + { name = "🔥", text = "", fg = "#cc241d" }, +] + +# nord +# [icon] +# +# files = [ +# { name = ".babelrc", text = "", fg = "#ebcb8b" }, +# { name = ".bash_profile", text = "", fg = "#a3be8c" }, +# { name = ".bashrc", text = "", fg = "#a3be8c" }, +# { name = ".clang-format", text = "", fg = "#7f849c" }, +# { name = ".clang-tidy", text = "", fg = "#7f849c" }, +# { name = ".codespellrc", text = "󰓆", fg = "#a3be8c" }, +# { name = ".condarc", text = "", fg = "#a3be8c" }, +# { name = ".dockerignore", text = "󰡨", fg = "#5e81ac" }, +# { name = ".ds_store", text = "", fg = "#7f849c" }, +# { name = ".editorconfig", text = "", fg = "#cdd6f4" }, +# { name = ".env", text = "", fg = "#ebcb8b" }, +# { name = ".eslintignore", text = "", fg = "#b48ead" }, +# { name = ".eslintrc", text = "", fg = "#b48ead" }, +# { name = ".git-blame-ignore-revs", text = "", fg = "#bf616a" }, +# { name = ".gitattributes", text = "", fg = "#bf616a" }, +# { name = ".gitconfig", text = "", fg = "#bf616a" }, +# { name = ".gitignore", text = "", fg = "#bf616a" }, +# { name = ".gitlab-ci.yml", text = "", fg = "#bf616a" }, +# { name = ".gitmodules", text = "", fg = "#bf616a" }, +# { name = ".gtkrc-2.0", text = "", fg = "#88c0d0" }, +# { name = ".gvimrc", text = "", fg = "#a3be8c" }, +# { name = ".justfile", text = "", fg = "#7f849c" }, +# { name = ".luacheckrc", text = "", fg = "#5e81ac" }, +# { name = ".luaurc", text = "", fg = "#5e81ac" }, +# { name = ".mailmap", text = "󰊢", fg = "#bf616a" }, +# { name = ".nanorc", text = "", fg = "#b48ead" }, +# { name = ".npmignore", text = "", fg = "#b48ead" }, +# { name = ".npmrc", text = "", fg = "#b48ead" }, +# { name = ".nuxtrc", text = "󱄆", fg = "#a3be8c" }, +# { name = ".nvmrc", text = "", fg = "#a3be8c" }, +# { name = ".pnpmfile.cjs", text = "", fg = "#ebcb8b" }, +# { name = ".pre-commit-config.yaml", text = "󰛢", fg = "#ebcb8b" }, +# { name = ".prettierignore", text = "", fg = "#5e81ac" }, +# { name = ".prettierrc", text = "", fg = "#5e81ac" }, +# { name = ".prettierrc.cjs", text = "", fg = "#5e81ac" }, +# { name = ".prettierrc.js", text = "", fg = "#5e81ac" }, +# { name = ".prettierrc.json", text = "", fg = "#5e81ac" }, +# { name = ".prettierrc.json5", text = "", fg = "#5e81ac" }, +# { name = ".prettierrc.mjs", text = "", fg = "#5e81ac" }, +# { name = ".prettierrc.toml", text = "", fg = "#5e81ac" }, +# { name = ".prettierrc.yaml", text = "", fg = "#5e81ac" }, +# { name = ".prettierrc.yml", text = "", fg = "#5e81ac" }, +# { name = ".pylintrc", text = "", fg = "#7f849c" }, +# { name = ".settings.json", text = "", fg = "#b48ead" }, +# { name = ".SRCINFO", text = "󰣇", fg = "#88c0d0" }, +# { name = ".vimrc", text = "", fg = "#a3be8c" }, +# { name = ".Xauthority", text = "", fg = "#bf616a" }, +# { name = ".xinitrc", text = "", fg = "#bf616a" }, +# { name = ".Xresources", text = "", fg = "#bf616a" }, +# { name = ".xsession", text = "", fg = "#bf616a" }, +# { name = ".zprofile", text = "", fg = "#a3be8c" }, +# { name = ".zshenv", text = "", fg = "#a3be8c" }, +# { name = ".zshrc", text = "", fg = "#a3be8c" }, +# { name = "_gvimrc", text = "", fg = "#a3be8c" }, +# { name = "_vimrc", text = "", fg = "#a3be8c" }, +# { name = "AUTHORS", text = "", fg = "#b48ead" }, +# { name = "AUTHORS.txt", text = "", fg = "#b48ead" }, +# { name = "brewfile", text = "", fg = "#bf616a" }, +# { name = "bspwmrc", text = "", fg = "#7f849c" }, +# { name = "build", text = "", fg = "#a3be8c" }, +# { name = "build.gradle", text = "", fg = "#5e81ac" }, +# { name = "build.zig.zon", text = "", fg = "#ebcb8b" }, +# { name = "bun.lock", text = "", fg = "#cdd6f4" }, +# { name = "bun.lockb", text = "", fg = "#cdd6f4" }, +# { name = "cantorrc", text = "", fg = "#5e81ac" }, +# { name = "checkhealth", text = "󰓙", fg = "#5e81ac" }, +# { name = "cmakelists.txt", text = "", fg = "#cdd6f4" }, +# { name = "code_of_conduct", text = "", fg = "#b48ead" }, +# { name = "code_of_conduct.md", text = "", fg = "#b48ead" }, +# { name = "commit_editmsg", text = "", fg = "#bf616a" }, +# { name = "commitlint.config.js", text = "󰜘", fg = "#88c0d0" }, +# { name = "commitlint.config.ts", text = "󰜘", fg = "#88c0d0" }, +# { name = "compose.yaml", text = "󰡨", fg = "#5e81ac" }, +# { name = "compose.yml", text = "󰡨", fg = "#5e81ac" }, +# { name = "config", text = "", fg = "#7f849c" }, +# { name = "containerfile", text = "󰡨", fg = "#5e81ac" }, +# { name = "copying", text = "", fg = "#ebcb8b" }, +# { name = "copying.lesser", text = "", fg = "#ebcb8b" }, +# { name = "Directory.Build.props", text = "", fg = "#5e81ac" }, +# { name = "Directory.Build.targets", text = "", fg = "#5e81ac" }, +# { name = "Directory.Packages.props", text = "", fg = "#5e81ac" }, +# { name = "docker-compose.yaml", text = "󰡨", fg = "#5e81ac" }, +# { name = "docker-compose.yml", text = "󰡨", fg = "#5e81ac" }, +# { name = "dockerfile", text = "󰡨", fg = "#5e81ac" }, +# { name = "eslint.config.cjs", text = "", fg = "#b48ead" }, +# { name = "eslint.config.js", text = "", fg = "#b48ead" }, +# { name = "eslint.config.mjs", text = "", fg = "#b48ead" }, +# { name = "eslint.config.ts", text = "", fg = "#b48ead" }, +# { name = "ext_typoscript_setup.txt", text = "", fg = "#ebcb8b" }, +# { name = "favicon.ico", text = "", fg = "#ebcb8b" }, +# { name = "fp-info-cache", text = "", fg = "#88c0d0" }, +# { name = "fp-lib-table", text = "", fg = "#88c0d0" }, +# { name = "FreeCAD.conf", text = "", fg = "#bf616a" }, +# { name = "Gemfile", text = "", fg = "#bf616a" }, +# { name = "gnumakefile", text = "", fg = "#7f849c" }, +# { name = "go.mod", text = "", fg = "#88c0d0" }, +# { name = "go.sum", text = "", fg = "#88c0d0" }, +# { name = "go.work", text = "", fg = "#88c0d0" }, +# { name = "gradle-wrapper.properties", text = "", fg = "#5e81ac" }, +# { name = "gradle.properties", text = "", fg = "#5e81ac" }, +# { name = "gradlew", text = "", fg = "#5e81ac" }, +# { name = "groovy", text = "", fg = "#5e81ac" }, +# { name = "gruntfile.babel.js", text = "", fg = "#ebcb8b" }, +# { name = "gruntfile.coffee", text = "", fg = "#ebcb8b" }, +# { name = "gruntfile.js", text = "", fg = "#ebcb8b" }, +# { name = "gruntfile.ts", text = "", fg = "#ebcb8b" }, +# { name = "gtkrc", text = "", fg = "#88c0d0" }, +# { name = "gulpfile.babel.js", text = "", fg = "#bf616a" }, +# { name = "gulpfile.coffee", text = "", fg = "#bf616a" }, +# { name = "gulpfile.js", text = "", fg = "#bf616a" }, +# { name = "gulpfile.ts", text = "", fg = "#bf616a" }, +# { name = "hypridle.conf", text = "", fg = "#88c0d0" }, +# { name = "hyprland.conf", text = "", fg = "#88c0d0" }, +# { name = "hyprlandd.conf", text = "", fg = "#88c0d0" }, +# { name = "hyprlock.conf", text = "", fg = "#88c0d0" }, +# { name = "hyprpaper.conf", text = "", fg = "#88c0d0" }, +# { name = "hyprsunset.conf", text = "", fg = "#88c0d0" }, +# { name = "i18n.config.js", text = "󰗊", fg = "#b48ead" }, +# { name = "i18n.config.ts", text = "󰗊", fg = "#b48ead" }, +# { name = "i3blocks.conf", text = "", fg = "#cdd6f4" }, +# { name = "i3status.conf", text = "", fg = "#cdd6f4" }, +# { name = "index.theme", text = "", fg = "#a3be8c" }, +# { name = "ionic.config.json", text = "", fg = "#5e81ac" }, +# { name = "Jenkinsfile", text = "", fg = "#bf616a" }, +# { name = "justfile", text = "", fg = "#7f849c" }, +# { name = "kalgebrarc", text = "", fg = "#5e81ac" }, +# { name = "kdeglobals", text = "", fg = "#5e81ac" }, +# { name = "kdenlive-layoutsrc", text = "", fg = "#88c0d0" }, +# { name = "kdenliverc", text = "", fg = "#88c0d0" }, +# { name = "kritadisplayrc", text = "", fg = "#b48ead" }, +# { name = "kritarc", text = "", fg = "#b48ead" }, +# { name = "license", text = "", fg = "#ebcb8b" }, +# { name = "license.md", text = "", fg = "#ebcb8b" }, +# { name = "lxde-rc.xml", text = "", fg = "#cdd6f4" }, +# { name = "lxqt.conf", text = "", fg = "#5e81ac" }, +# { name = "makefile", text = "", fg = "#7f849c" }, +# { name = "mix.lock", text = "", fg = "#b48ead" }, +# { name = "mpv.conf", text = "", fg = "#b48ead" }, +# { name = "next.config.cjs", text = "", fg = "#88c0d0" }, +# { name = "next.config.js", text = "", fg = "#88c0d0" }, +# { name = "next.config.ts", text = "", fg = "#88c0d0" }, +# { name = "node_modules", text = "", fg = "#b48ead" }, +# { name = "nuxt.config.cjs", text = "󱄆", fg = "#a3be8c" }, +# { name = "nuxt.config.js", text = "󱄆", fg = "#a3be8c" }, +# { name = "nuxt.config.mjs", text = "󱄆", fg = "#a3be8c" }, +# { name = "nuxt.config.ts", text = "󱄆", fg = "#a3be8c" }, +# { name = "package-lock.json", text = "", fg = "#bf616a" }, +# { name = "package.json", text = "", fg = "#b48ead" }, +# { name = "PKGBUILD", text = "", fg = "#88c0d0" }, +# { name = "platformio.ini", text = "", fg = "#ebcb8b" }, +# { name = "playwright.config.cjs", text = "", fg = "#a3be8c" }, +# { name = "playwright.config.cts", text = "", fg = "#a3be8c" }, +# { name = "playwright.config.js", text = "", fg = "#a3be8c" }, +# { name = "playwright.config.mjs", text = "", fg = "#a3be8c" }, +# { name = "playwright.config.mts", text = "", fg = "#a3be8c" }, +# { name = "playwright.config.ts", text = "", fg = "#a3be8c" }, +# { name = "pnpm-lock.yaml", text = "", fg = "#ebcb8b" }, +# { name = "pnpm-workspace.yaml", text = "", fg = "#ebcb8b" }, +# { name = "pom.xml", text = "", fg = "#bf616a" }, +# { name = "prettier.config.cjs", text = "", fg = "#5e81ac" }, +# { name = "prettier.config.js", text = "", fg = "#5e81ac" }, +# { name = "prettier.config.mjs", text = "", fg = "#5e81ac" }, +# { name = "prettier.config.ts", text = "", fg = "#5e81ac" }, +# { name = "procfile", text = "", fg = "#b48ead" }, +# { name = "PrusaSlicer.ini", text = "", fg = "#bf616a" }, +# { name = "PrusaSlicerGcodeViewer.ini", text = "", fg = "#bf616a" }, +# { name = "py.typed", text = "", fg = "#ebcb8b" }, +# { name = "QtProject.conf", text = "", fg = "#a3be8c" }, +# { name = "rakefile", text = "", fg = "#bf616a" }, +# { name = "readme", text = "󰂺", fg = "#cdd6f4" }, +# { name = "readme.md", text = "󰂺", fg = "#cdd6f4" }, +# { name = "rmd", text = "", fg = "#5e81ac" }, +# { name = "robots.txt", text = "󰚩", fg = "#b48ead" }, +# { name = "security", text = "󰒃", fg = "#cdd6f4" }, +# { name = "security.md", text = "󰒃", fg = "#cdd6f4" }, +# { name = "settings.gradle", text = "", fg = "#5e81ac" }, +# { name = "svelte.config.js", text = "", fg = "#bf616a" }, +# { name = "sxhkdrc", text = "", fg = "#7f849c" }, +# { name = "sym-lib-table", text = "", fg = "#88c0d0" }, +# { name = "tailwind.config.js", text = "󱏿", fg = "#88c0d0" }, +# { name = "tailwind.config.mjs", text = "󱏿", fg = "#88c0d0" }, +# { name = "tailwind.config.ts", text = "󱏿", fg = "#88c0d0" }, +# { name = "tmux.conf", text = "", fg = "#a3be8c" }, +# { name = "tmux.conf.local", text = "", fg = "#a3be8c" }, +# { name = "tsconfig.json", text = "", fg = "#5e81ac" }, +# { name = "unlicense", text = "", fg = "#ebcb8b" }, +# { name = "vagrantfile", text = "", fg = "#5e81ac" }, +# { name = "vercel.json", text = "", fg = "#88c0d0" }, +# { name = "vite.config.cjs", text = "", fg = "#ebcb8b" }, +# { name = "vite.config.cts", text = "", fg = "#ebcb8b" }, +# { name = "vite.config.js", text = "", fg = "#ebcb8b" }, +# { name = "vite.config.mjs", text = "", fg = "#ebcb8b" }, +# { name = "vite.config.mts", text = "", fg = "#ebcb8b" }, +# { name = "vite.config.ts", text = "", fg = "#ebcb8b" }, +# { name = "vitest.config.cjs", text = "", fg = "#ebcb8b" }, +# { name = "vitest.config.cts", text = "", fg = "#ebcb8b" }, +# { name = "vitest.config.js", text = "", fg = "#ebcb8b" }, +# { name = "vitest.config.mjs", text = "", fg = "#ebcb8b" }, +# { name = "vitest.config.mts", text = "", fg = "#ebcb8b" }, +# { name = "vitest.config.ts", text = "", fg = "#ebcb8b" }, +# { name = "vlcrc", text = "󰕼", fg = "#ebcb8b" }, +# { name = "webpack", text = "󰜫", fg = "#5e81ac" }, +# { name = "weston.ini", text = "", fg = "#ebcb8b" }, +# { name = "workspace", text = "", fg = "#a3be8c" }, +# { name = "wrangler.jsonc", text = "", fg = "#ebcb8b" }, +# { name = "wrangler.toml", text = "", fg = "#ebcb8b" }, +# { name = "xdph.conf", text = "", fg = "#88c0d0" }, +# { name = "xmobarrc", text = "", fg = "#bf616a" }, +# { name = "xmobarrc.hs", text = "", fg = "#bf616a" }, +# { name = "xmonad.hs", text = "", fg = "#bf616a" }, +# { name = "xorg.conf", text = "", fg = "#bf616a" }, +# { name = "xsettingsd.conf", text = "", fg = "#bf616a" }, +# ] +# exts = [ +# { name = "3gp", text = "", fg = "#ebcb8b" }, +# { name = "3mf", text = "󰆧", fg = "#b48ead" }, +# { name = "7z", text = "", fg = "#ebcb8b" }, +# { name = "a", text = "", fg = "#cdd6f4" }, +# { name = "aac", text = "", fg = "#5e81ac" }, +# { name = "ada", text = "", fg = "#5e81ac" }, +# { name = "adb", text = "", fg = "#5e81ac" }, +# { name = "ads", text = "", fg = "#b48ead" }, +# { name = "ai", text = "", fg = "#ebcb8b" }, +# { name = "aif", text = "", fg = "#5e81ac" }, +# { name = "aiff", text = "", fg = "#5e81ac" }, +# { name = "android", text = "", fg = "#a3be8c" }, +# { name = "ape", text = "", fg = "#5e81ac" }, +# { name = "apk", text = "", fg = "#a3be8c" }, +# { name = "apl", text = "", fg = "#a3be8c" }, +# { name = "app", text = "", fg = "#bf616a" }, +# { name = "applescript", text = "", fg = "#7f849c" }, +# { name = "asc", text = "󰦝", fg = "#7f849c" }, +# { name = "asm", text = "", fg = "#5e81ac" }, +# { name = "ass", text = "󰨖", fg = "#ebcb8b" }, +# { name = "astro", text = "", fg = "#b48ead" }, +# { name = "avif", text = "", fg = "#b48ead" }, +# { name = "awk", text = "", fg = "#7f849c" }, +# { name = "azcli", text = "", fg = "#5e81ac" }, +# { name = "bak", text = "󰁯", fg = "#7f849c" }, +# { name = "bash", text = "", fg = "#a3be8c" }, +# { name = "bat", text = "", fg = "#a3be8c" }, +# { name = "bazel", text = "", fg = "#a3be8c" }, +# { name = "bib", text = "󱉟", fg = "#ebcb8b" }, +# { name = "bicep", text = "", fg = "#5e81ac" }, +# { name = "bicepparam", text = "", fg = "#b48ead" }, +# { name = "bin", text = "", fg = "#bf616a" }, +# { name = "blade.php", text = "", fg = "#bf616a" }, +# { name = "blend", text = "󰂫", fg = "#ebcb8b" }, +# { name = "blp", text = "󰺾", fg = "#5e81ac" }, +# { name = "bmp", text = "", fg = "#b48ead" }, +# { name = "bqn", text = "", fg = "#a3be8c" }, +# { name = "brep", text = "󰻫", fg = "#ebcb8b" }, +# { name = "bz", text = "", fg = "#ebcb8b" }, +# { name = "bz2", text = "", fg = "#ebcb8b" }, +# { name = "bz3", text = "", fg = "#ebcb8b" }, +# { name = "bzl", text = "", fg = "#a3be8c" }, +# { name = "c", text = "", fg = "#5e81ac" }, +# { name = "c++", text = "", fg = "#bf616a" }, +# { name = "cache", text = "", fg = "#88c0d0" }, +# { name = "cast", text = "", fg = "#ebcb8b" }, +# { name = "cbl", text = "", fg = "#5e81ac" }, +# { name = "cc", text = "", fg = "#bf616a" }, +# { name = "ccm", text = "", fg = "#bf616a" }, +# { name = "cfc", text = "", fg = "#88c0d0" }, +# { name = "cfg", text = "", fg = "#7f849c" }, +# { name = "cfm", text = "", fg = "#88c0d0" }, +# { name = "cjs", text = "", fg = "#ebcb8b" }, +# { name = "clj", text = "", fg = "#a3be8c" }, +# { name = "cljc", text = "", fg = "#a3be8c" }, +# { name = "cljd", text = "", fg = "#5e81ac" }, +# { name = "cljs", text = "", fg = "#5e81ac" }, +# { name = "cmake", text = "", fg = "#cdd6f4" }, +# { name = "cob", text = "", fg = "#5e81ac" }, +# { name = "cobol", text = "", fg = "#5e81ac" }, +# { name = "coffee", text = "", fg = "#ebcb8b" }, +# { name = "conda", text = "", fg = "#a3be8c" }, +# { name = "conf", text = "", fg = "#7f849c" }, +# { name = "config.ru", text = "", fg = "#bf616a" }, +# { name = "cow", text = "󰆚", fg = "#ebcb8b" }, +# { name = "cp", text = "", fg = "#5e81ac" }, +# { name = "cpp", text = "", fg = "#5e81ac" }, +# { name = "cppm", text = "", fg = "#5e81ac" }, +# { name = "cpy", text = "", fg = "#5e81ac" }, +# { name = "cr", text = "", fg = "#cdd6f4" }, +# { name = "crdownload", text = "", fg = "#88c0d0" }, +# { name = "cs", text = "󰌛", fg = "#ebcb8b" }, +# { name = "csh", text = "", fg = "#7f849c" }, +# { name = "cshtml", text = "󱦗", fg = "#b48ead" }, +# { name = "cson", text = "", fg = "#ebcb8b" }, +# { name = "csproj", text = "󰪮", fg = "#b48ead" }, +# { name = "css", text = "", fg = "#b48ead" }, +# { name = "csv", text = "", fg = "#a3be8c" }, +# { name = "cts", text = "", fg = "#5e81ac" }, +# { name = "cu", text = "", fg = "#a3be8c" }, +# { name = "cue", text = "󰲹", fg = "#b48ead" }, +# { name = "cuh", text = "", fg = "#b48ead" }, +# { name = "cxx", text = "", fg = "#5e81ac" }, +# { name = "cxxm", text = "", fg = "#5e81ac" }, +# { name = "d", text = "", fg = "#bf616a" }, +# { name = "d.ts", text = "", fg = "#ebcb8b" }, +# { name = "dart", text = "", fg = "#5e81ac" }, +# { name = "db", text = "", fg = "#88c0d0" }, +# { name = "dconf", text = "", fg = "#88c0d0" }, +# { name = "desktop", text = "", fg = "#b48ead" }, +# { name = "diff", text = "", fg = "#7f849c" }, +# { name = "dll", text = "", fg = "#bf616a" }, +# { name = "doc", text = "󰈬", fg = "#5e81ac" }, +# { name = "Dockerfile", text = "󰡨", fg = "#5e81ac" }, +# { name = "dockerignore", text = "󰡨", fg = "#5e81ac" }, +# { name = "docx", text = "󰈬", fg = "#5e81ac" }, +# { name = "dot", text = "󱁉", fg = "#5e81ac" }, +# { name = "download", text = "", fg = "#88c0d0" }, +# { name = "drl", text = "", fg = "#bf616a" }, +# { name = "dropbox", text = "", fg = "#5e81ac" }, +# { name = "dump", text = "", fg = "#88c0d0" }, +# { name = "dwg", text = "󰻫", fg = "#ebcb8b" }, +# { name = "dxf", text = "󰻫", fg = "#ebcb8b" }, +# { name = "ebook", text = "", fg = "#ebcb8b" }, +# { name = "ebuild", text = "", fg = "#b48ead" }, +# { name = "edn", text = "", fg = "#5e81ac" }, +# { name = "eex", text = "", fg = "#b48ead" }, +# { name = "ejs", text = "", fg = "#ebcb8b" }, +# { name = "el", text = "", fg = "#b48ead" }, +# { name = "elc", text = "", fg = "#b48ead" }, +# { name = "elf", text = "", fg = "#bf616a" }, +# { name = "elm", text = "", fg = "#5e81ac" }, +# { name = "eln", text = "", fg = "#b48ead" }, +# { name = "env", text = "", fg = "#ebcb8b" }, +# { name = "eot", text = "", fg = "#cdd6f4" }, +# { name = "epp", text = "", fg = "#ebcb8b" }, +# { name = "epub", text = "", fg = "#ebcb8b" }, +# { name = "erb", text = "", fg = "#bf616a" }, +# { name = "erl", text = "", fg = "#b48ead" }, +# { name = "ex", text = "", fg = "#b48ead" }, +# { name = "exe", text = "", fg = "#bf616a" }, +# { name = "exs", text = "", fg = "#b48ead" }, +# { name = "f#", text = "", fg = "#5e81ac" }, +# { name = "f3d", text = "󰻫", fg = "#ebcb8b" }, +# { name = "f90", text = "󱈚", fg = "#b48ead" }, +# { name = "fbx", text = "󰆧", fg = "#b48ead" }, +# { name = "fcbak", text = "", fg = "#bf616a" }, +# { name = "fcmacro", text = "", fg = "#bf616a" }, +# { name = "fcmat", text = "", fg = "#bf616a" }, +# { name = "fcparam", text = "", fg = "#bf616a" }, +# { name = "fcscript", text = "", fg = "#bf616a" }, +# { name = "fcstd", text = "", fg = "#bf616a" }, +# { name = "fcstd1", text = "", fg = "#bf616a" }, +# { name = "fctb", text = "", fg = "#bf616a" }, +# { name = "fctl", text = "", fg = "#bf616a" }, +# { name = "fdmdownload", text = "", fg = "#88c0d0" }, +# { name = "feature", text = "", fg = "#a3be8c" }, +# { name = "fish", text = "", fg = "#7f849c" }, +# { name = "flac", text = "", fg = "#5e81ac" }, +# { name = "flc", text = "", fg = "#cdd6f4" }, +# { name = "flf", text = "", fg = "#cdd6f4" }, +# { name = "fnl", text = "", fg = "#ebcb8b" }, +# { name = "fodg", text = "", fg = "#ebcb8b" }, +# { name = "fodp", text = "", fg = "#ebcb8b" }, +# { name = "fods", text = "", fg = "#a3be8c" }, +# { name = "fodt", text = "", fg = "#5e81ac" }, +# { name = "frag", text = "", fg = "#88c0d0" }, +# { name = "fs", text = "", fg = "#5e81ac" }, +# { name = "fsi", text = "", fg = "#5e81ac" }, +# { name = "fsscript", text = "", fg = "#5e81ac" }, +# { name = "fsx", text = "", fg = "#5e81ac" }, +# { name = "gcode", text = "󰐫", fg = "#5e81ac" }, +# { name = "gd", text = "", fg = "#7f849c" }, +# { name = "gemspec", text = "", fg = "#bf616a" }, +# { name = "geom", text = "", fg = "#88c0d0" }, +# { name = "gif", text = "", fg = "#b48ead" }, +# { name = "git", text = "", fg = "#bf616a" }, +# { name = "glb", text = "", fg = "#ebcb8b" }, +# { name = "gleam", text = "", fg = "#b48ead" }, +# { name = "glsl", text = "", fg = "#88c0d0" }, +# { name = "gnumakefile", text = "", fg = "#7f849c" }, +# { name = "go", text = "", fg = "#88c0d0" }, +# { name = "godot", text = "", fg = "#7f849c" }, +# { name = "gpr", text = "", fg = "#7f849c" }, +# { name = "gql", text = "", fg = "#b48ead" }, +# { name = "gradle", text = "", fg = "#5e81ac" }, +# { name = "graphql", text = "", fg = "#b48ead" }, +# { name = "gresource", text = "", fg = "#88c0d0" }, +# { name = "gv", text = "󱁉", fg = "#5e81ac" }, +# { name = "gz", text = "", fg = "#ebcb8b" }, +# { name = "h", text = "", fg = "#b48ead" }, +# { name = "haml", text = "", fg = "#cdd6f4" }, +# { name = "hbs", text = "", fg = "#bf616a" }, +# { name = "heex", text = "", fg = "#b48ead" }, +# { name = "hex", text = "", fg = "#5e81ac" }, +# { name = "hh", text = "", fg = "#b48ead" }, +# { name = "hpp", text = "", fg = "#b48ead" }, +# { name = "hrl", text = "", fg = "#b48ead" }, +# { name = "hs", text = "", fg = "#b48ead" }, +# { name = "htm", text = "", fg = "#bf616a" }, +# { name = "html", text = "", fg = "#bf616a" }, +# { name = "http", text = "", fg = "#5e81ac" }, +# { name = "huff", text = "󰡘", fg = "#b48ead" }, +# { name = "hurl", text = "", fg = "#b48ead" }, +# { name = "hx", text = "", fg = "#ebcb8b" }, +# { name = "hxx", text = "", fg = "#b48ead" }, +# { name = "ical", text = "", fg = "#5e81ac" }, +# { name = "icalendar", text = "", fg = "#5e81ac" }, +# { name = "ico", text = "", fg = "#ebcb8b" }, +# { name = "ics", text = "", fg = "#5e81ac" }, +# { name = "ifb", text = "", fg = "#5e81ac" }, +# { name = "ifc", text = "󰻫", fg = "#ebcb8b" }, +# { name = "ige", text = "󰻫", fg = "#ebcb8b" }, +# { name = "iges", text = "󰻫", fg = "#ebcb8b" }, +# { name = "igs", text = "󰻫", fg = "#ebcb8b" }, +# { name = "image", text = "", fg = "#bf616a" }, +# { name = "img", text = "", fg = "#bf616a" }, +# { name = "import", text = "", fg = "#cdd6f4" }, +# { name = "info", text = "", fg = "#ebcb8b" }, +# { name = "ini", text = "", fg = "#7f849c" }, +# { name = "ino", text = "", fg = "#88c0d0" }, +# { name = "ipynb", text = "", fg = "#ebcb8b" }, +# { name = "iso", text = "", fg = "#bf616a" }, +# { name = "ixx", text = "", fg = "#5e81ac" }, +# { name = "jar", text = "", fg = "#ebcb8b" }, +# { name = "java", text = "", fg = "#bf616a" }, +# { name = "jl", text = "", fg = "#b48ead" }, +# { name = "jpeg", text = "", fg = "#b48ead" }, +# { name = "jpg", text = "", fg = "#b48ead" }, +# { name = "js", text = "", fg = "#ebcb8b" }, +# { name = "json", text = "", fg = "#ebcb8b" }, +# { name = "json5", text = "", fg = "#ebcb8b" }, +# { name = "jsonc", text = "", fg = "#ebcb8b" }, +# { name = "jsx", text = "", fg = "#88c0d0" }, +# { name = "jwmrc", text = "", fg = "#5e81ac" }, +# { name = "jxl", text = "", fg = "#b48ead" }, +# { name = "kbx", text = "󰯄", fg = "#7f849c" }, +# { name = "kdb", text = "", fg = "#a3be8c" }, +# { name = "kdbx", text = "", fg = "#a3be8c" }, +# { name = "kdenlive", text = "", fg = "#88c0d0" }, +# { name = "kdenlivetitle", text = "", fg = "#88c0d0" }, +# { name = "kicad_dru", text = "", fg = "#88c0d0" }, +# { name = "kicad_mod", text = "", fg = "#88c0d0" }, +# { name = "kicad_pcb", text = "", fg = "#88c0d0" }, +# { name = "kicad_prl", text = "", fg = "#88c0d0" }, +# { name = "kicad_pro", text = "", fg = "#88c0d0" }, +# { name = "kicad_sch", text = "", fg = "#88c0d0" }, +# { name = "kicad_sym", text = "", fg = "#88c0d0" }, +# { name = "kicad_wks", text = "", fg = "#88c0d0" }, +# { name = "ko", text = "", fg = "#cdd6f4" }, +# { name = "kpp", text = "", fg = "#b48ead" }, +# { name = "kra", text = "", fg = "#b48ead" }, +# { name = "krz", text = "", fg = "#b48ead" }, +# { name = "ksh", text = "", fg = "#7f849c" }, +# { name = "kt", text = "", fg = "#5e81ac" }, +# { name = "kts", text = "", fg = "#5e81ac" }, +# { name = "lck", text = "", fg = "#cdd6f4" }, +# { name = "leex", text = "", fg = "#b48ead" }, +# { name = "less", text = "", fg = "#b48ead" }, +# { name = "lff", text = "", fg = "#cdd6f4" }, +# { name = "lhs", text = "", fg = "#b48ead" }, +# { name = "lib", text = "", fg = "#bf616a" }, +# { name = "license", text = "", fg = "#ebcb8b" }, +# { name = "liquid", text = "", fg = "#ebcb8b" }, +# { name = "lock", text = "", fg = "#cdd6f4" }, +# { name = "log", text = "󰌱", fg = "#cdd6f4" }, +# { name = "lrc", text = "󰨖", fg = "#ebcb8b" }, +# { name = "lua", text = "", fg = "#5e81ac" }, +# { name = "luac", text = "", fg = "#5e81ac" }, +# { name = "luau", text = "", fg = "#5e81ac" }, +# { name = "m", text = "", fg = "#5e81ac" }, +# { name = "m3u", text = "󰲹", fg = "#b48ead" }, +# { name = "m3u8", text = "󰲹", fg = "#b48ead" }, +# { name = "m4a", text = "", fg = "#5e81ac" }, +# { name = "m4v", text = "", fg = "#ebcb8b" }, +# { name = "magnet", text = "", fg = "#bf616a" }, +# { name = "makefile", text = "", fg = "#7f849c" }, +# { name = "markdown", text = "", fg = "#cdd6f4" }, +# { name = "material", text = "", fg = "#b48ead" }, +# { name = "md", text = "", fg = "#cdd6f4" }, +# { name = "md5", text = "󰕥", fg = "#b48ead" }, +# { name = "mdx", text = "", fg = "#5e81ac" }, +# { name = "mint", text = "󰌪", fg = "#a3be8c" }, +# { name = "mjs", text = "", fg = "#ebcb8b" }, +# { name = "mk", text = "", fg = "#7f849c" }, +# { name = "mkv", text = "", fg = "#ebcb8b" }, +# { name = "ml", text = "", fg = "#ebcb8b" }, +# { name = "mli", text = "", fg = "#ebcb8b" }, +# { name = "mm", text = "", fg = "#5e81ac" }, +# { name = "mo", text = "", fg = "#b48ead" }, +# { name = "mobi", text = "", fg = "#ebcb8b" }, +# { name = "mojo", text = "", fg = "#bf616a" }, +# { name = "mov", text = "", fg = "#ebcb8b" }, +# { name = "mp3", text = "", fg = "#5e81ac" }, +# { name = "mp4", text = "", fg = "#ebcb8b" }, +# { name = "mpp", text = "", fg = "#5e81ac" }, +# { name = "msf", text = "", fg = "#5e81ac" }, +# { name = "mts", text = "", fg = "#5e81ac" }, +# { name = "mustache", text = "", fg = "#ebcb8b" }, +# { name = "nfo", text = "", fg = "#ebcb8b" }, +# { name = "nim", text = "", fg = "#ebcb8b" }, +# { name = "nix", text = "", fg = "#88c0d0" }, +# { name = "norg", text = "", fg = "#5e81ac" }, +# { name = "nswag", text = "", fg = "#a3be8c" }, +# { name = "nu", text = "", fg = "#88c0d0" }, +# { name = "o", text = "", fg = "#bf616a" }, +# { name = "obj", text = "󰆧", fg = "#b48ead" }, +# { name = "odf", text = "", fg = "#bf616a" }, +# { name = "odg", text = "", fg = "#ebcb8b" }, +# { name = "odin", text = "󰟢", fg = "#5e81ac" }, +# { name = "odp", text = "", fg = "#ebcb8b" }, +# { name = "ods", text = "", fg = "#a3be8c" }, +# { name = "odt", text = "", fg = "#5e81ac" }, +# { name = "oga", text = "", fg = "#5e81ac" }, +# { name = "ogg", text = "", fg = "#5e81ac" }, +# { name = "ogv", text = "", fg = "#ebcb8b" }, +# { name = "ogx", text = "", fg = "#ebcb8b" }, +# { name = "opus", text = "", fg = "#5e81ac" }, +# { name = "org", text = "", fg = "#88c0d0" }, +# { name = "otf", text = "", fg = "#cdd6f4" }, +# { name = "out", text = "", fg = "#bf616a" }, +# { name = "part", text = "", fg = "#88c0d0" }, +# { name = "patch", text = "", fg = "#7f849c" }, +# { name = "pck", text = "", fg = "#7f849c" }, +# { name = "pcm", text = "", fg = "#5e81ac" }, +# { name = "pdf", text = "", fg = "#bf616a" }, +# { name = "php", text = "", fg = "#b48ead" }, +# { name = "pl", text = "", fg = "#5e81ac" }, +# { name = "pls", text = "󰲹", fg = "#b48ead" }, +# { name = "ply", text = "󰆧", fg = "#b48ead" }, +# { name = "pm", text = "", fg = "#5e81ac" }, +# { name = "png", text = "", fg = "#b48ead" }, +# { name = "po", text = "", fg = "#5e81ac" }, +# { name = "pot", text = "", fg = "#5e81ac" }, +# { name = "pp", text = "", fg = "#ebcb8b" }, +# { name = "ppt", text = "󰈧", fg = "#bf616a" }, +# { name = "pptx", text = "󰈧", fg = "#bf616a" }, +# { name = "prisma", text = "", fg = "#5e81ac" }, +# { name = "pro", text = "", fg = "#ebcb8b" }, +# { name = "ps1", text = "󰨊", fg = "#5e81ac" }, +# { name = "psb", text = "", fg = "#5e81ac" }, +# { name = "psd", text = "", fg = "#5e81ac" }, +# { name = "psd1", text = "󰨊", fg = "#5e81ac" }, +# { name = "psm1", text = "󰨊", fg = "#5e81ac" }, +# { name = "pub", text = "󰷖", fg = "#ebcb8b" }, +# { name = "pxd", text = "", fg = "#5e81ac" }, +# { name = "pxi", text = "", fg = "#5e81ac" }, +# { name = "py", text = "", fg = "#ebcb8b" }, +# { name = "pyc", text = "", fg = "#ebcb8b" }, +# { name = "pyd", text = "", fg = "#ebcb8b" }, +# { name = "pyi", text = "", fg = "#ebcb8b" }, +# { name = "pyo", text = "", fg = "#ebcb8b" }, +# { name = "pyw", text = "", fg = "#5e81ac" }, +# { name = "pyx", text = "", fg = "#5e81ac" }, +# { name = "qm", text = "", fg = "#5e81ac" }, +# { name = "qml", text = "", fg = "#a3be8c" }, +# { name = "qrc", text = "", fg = "#a3be8c" }, +# { name = "qss", text = "", fg = "#a3be8c" }, +# { name = "query", text = "", fg = "#a3be8c" }, +# { name = "r", text = "󰟔", fg = "#5e81ac" }, +# { name = "R", text = "󰟔", fg = "#5e81ac" }, +# { name = "rake", text = "", fg = "#bf616a" }, +# { name = "rar", text = "", fg = "#ebcb8b" }, +# { name = "rasi", text = "", fg = "#ebcb8b" }, +# { name = "razor", text = "󱦘", fg = "#b48ead" }, +# { name = "rb", text = "", fg = "#bf616a" }, +# { name = "res", text = "", fg = "#bf616a" }, +# { name = "resi", text = "", fg = "#bf616a" }, +# { name = "rlib", text = "", fg = "#bf616a" }, +# { name = "rmd", text = "", fg = "#5e81ac" }, +# { name = "rproj", text = "󰗆", fg = "#a3be8c" }, +# { name = "rs", text = "", fg = "#bf616a" }, +# { name = "rss", text = "", fg = "#ebcb8b" }, +# { name = "s", text = "", fg = "#5e81ac" }, +# { name = "sass", text = "", fg = "#bf616a" }, +# { name = "sbt", text = "", fg = "#bf616a" }, +# { name = "sc", text = "", fg = "#bf616a" }, +# { name = "scad", text = "", fg = "#ebcb8b" }, +# { name = "scala", text = "", fg = "#bf616a" }, +# { name = "scm", text = "󰘧", fg = "#cdd6f4" }, +# { name = "scss", text = "", fg = "#bf616a" }, +# { name = "sh", text = "", fg = "#7f849c" }, +# { name = "sha1", text = "󰕥", fg = "#b48ead" }, +# { name = "sha224", text = "󰕥", fg = "#b48ead" }, +# { name = "sha256", text = "󰕥", fg = "#b48ead" }, +# { name = "sha384", text = "󰕥", fg = "#b48ead" }, +# { name = "sha512", text = "󰕥", fg = "#b48ead" }, +# { name = "sig", text = "󰘧", fg = "#ebcb8b" }, +# { name = "signature", text = "󰘧", fg = "#ebcb8b" }, +# { name = "skp", text = "󰻫", fg = "#ebcb8b" }, +# { name = "sldasm", text = "󰻫", fg = "#ebcb8b" }, +# { name = "sldprt", text = "󰻫", fg = "#ebcb8b" }, +# { name = "slim", text = "", fg = "#bf616a" }, +# { name = "sln", text = "", fg = "#b48ead" }, +# { name = "slnx", text = "", fg = "#b48ead" }, +# { name = "slvs", text = "󰻫", fg = "#ebcb8b" }, +# { name = "sml", text = "󰘧", fg = "#ebcb8b" }, +# { name = "so", text = "", fg = "#cdd6f4" }, +# { name = "sol", text = "", fg = "#5e81ac" }, +# { name = "spec.js", text = "", fg = "#ebcb8b" }, +# { name = "spec.jsx", text = "", fg = "#88c0d0" }, +# { name = "spec.ts", text = "", fg = "#5e81ac" }, +# { name = "spec.tsx", text = "", fg = "#5e81ac" }, +# { name = "spx", text = "", fg = "#5e81ac" }, +# { name = "sql", text = "", fg = "#88c0d0" }, +# { name = "sqlite", text = "", fg = "#88c0d0" }, +# { name = "sqlite3", text = "", fg = "#88c0d0" }, +# { name = "srt", text = "󰨖", fg = "#ebcb8b" }, +# { name = "ssa", text = "󰨖", fg = "#ebcb8b" }, +# { name = "ste", text = "󰻫", fg = "#ebcb8b" }, +# { name = "step", text = "󰻫", fg = "#ebcb8b" }, +# { name = "stl", text = "󰆧", fg = "#b48ead" }, +# { name = "stories.js", text = "", fg = "#bf616a" }, +# { name = "stories.jsx", text = "", fg = "#bf616a" }, +# { name = "stories.mjs", text = "", fg = "#bf616a" }, +# { name = "stories.svelte", text = "", fg = "#bf616a" }, +# { name = "stories.ts", text = "", fg = "#bf616a" }, +# { name = "stories.tsx", text = "", fg = "#bf616a" }, +# { name = "stories.vue", text = "", fg = "#bf616a" }, +# { name = "stp", text = "󰻫", fg = "#ebcb8b" }, +# { name = "strings", text = "", fg = "#5e81ac" }, +# { name = "styl", text = "", fg = "#a3be8c" }, +# { name = "sub", text = "󰨖", fg = "#ebcb8b" }, +# { name = "sublime", text = "", fg = "#ebcb8b" }, +# { name = "suo", text = "", fg = "#b48ead" }, +# { name = "sv", text = "󰍛", fg = "#a3be8c" }, +# { name = "svelte", text = "", fg = "#bf616a" }, +# { name = "svg", text = "󰜡", fg = "#ebcb8b" }, +# { name = "svgz", text = "󰜡", fg = "#ebcb8b" }, +# { name = "svh", text = "󰍛", fg = "#a3be8c" }, +# { name = "swift", text = "", fg = "#ebcb8b" }, +# { name = "t", text = "", fg = "#5e81ac" }, +# { name = "tbc", text = "󰛓", fg = "#5e81ac" }, +# { name = "tcl", text = "󰛓", fg = "#5e81ac" }, +# { name = "templ", text = "", fg = "#ebcb8b" }, +# { name = "terminal", text = "", fg = "#a3be8c" }, +# { name = "test.js", text = "", fg = "#ebcb8b" }, +# { name = "test.jsx", text = "", fg = "#88c0d0" }, +# { name = "test.ts", text = "", fg = "#5e81ac" }, +# { name = "test.tsx", text = "", fg = "#5e81ac" }, +# { name = "tex", text = "", fg = "#a3be8c" }, +# { name = "tf", text = "", fg = "#b48ead" }, +# { name = "tfvars", text = "", fg = "#b48ead" }, +# { name = "tgz", text = "", fg = "#ebcb8b" }, +# { name = "tmpl", text = "", fg = "#ebcb8b" }, +# { name = "tmux", text = "", fg = "#a3be8c" }, +# { name = "toml", text = "", fg = "#bf616a" }, +# { name = "torrent", text = "", fg = "#88c0d0" }, +# { name = "tres", text = "", fg = "#7f849c" }, +# { name = "ts", text = "", fg = "#5e81ac" }, +# { name = "tscn", text = "", fg = "#7f849c" }, +# { name = "tsconfig", text = "", fg = "#ebcb8b" }, +# { name = "tsx", text = "", fg = "#5e81ac" }, +# { name = "ttf", text = "", fg = "#cdd6f4" }, +# { name = "twig", text = "", fg = "#a3be8c" }, +# { name = "txt", text = "󰈙", fg = "#a3be8c" }, +# { name = "txz", text = "", fg = "#ebcb8b" }, +# { name = "typ", text = "", fg = "#88c0d0" }, +# { name = "typoscript", text = "", fg = "#ebcb8b" }, +# { name = "ui", text = "", fg = "#5e81ac" }, +# { name = "v", text = "󰍛", fg = "#a3be8c" }, +# { name = "vala", text = "", fg = "#b48ead" }, +# { name = "vert", text = "", fg = "#88c0d0" }, +# { name = "vh", text = "󰍛", fg = "#a3be8c" }, +# { name = "vhd", text = "󰍛", fg = "#a3be8c" }, +# { name = "vhdl", text = "󰍛", fg = "#a3be8c" }, +# { name = "vi", text = "", fg = "#ebcb8b" }, +# { name = "vim", text = "", fg = "#a3be8c" }, +# { name = "vsh", text = "", fg = "#88c0d0" }, +# { name = "vsix", text = "", fg = "#b48ead" }, +# { name = "vue", text = "", fg = "#a3be8c" }, +# { name = "wasm", text = "", fg = "#5e81ac" }, +# { name = "wav", text = "", fg = "#5e81ac" }, +# { name = "webm", text = "", fg = "#ebcb8b" }, +# { name = "webmanifest", text = "", fg = "#ebcb8b" }, +# { name = "webp", text = "", fg = "#b48ead" }, +# { name = "webpack", text = "󰜫", fg = "#5e81ac" }, +# { name = "wma", text = "", fg = "#5e81ac" }, +# { name = "wmv", text = "", fg = "#ebcb8b" }, +# { name = "woff", text = "", fg = "#cdd6f4" }, +# { name = "woff2", text = "", fg = "#cdd6f4" }, +# { name = "wrl", text = "󰆧", fg = "#b48ead" }, +# { name = "wrz", text = "󰆧", fg = "#b48ead" }, +# { name = "wv", text = "", fg = "#5e81ac" }, +# { name = "wvc", text = "", fg = "#5e81ac" }, +# { name = "x", text = "", fg = "#5e81ac" }, +# { name = "xaml", text = "󰙳", fg = "#b48ead" }, +# { name = "xcf", text = "", fg = "#7f849c" }, +# { name = "xcplayground", text = "", fg = "#ebcb8b" }, +# { name = "xcstrings", text = "", fg = "#5e81ac" }, +# { name = "xls", text = "󰈛", fg = "#a3be8c" }, +# { name = "xlsx", text = "󰈛", fg = "#a3be8c" }, +# { name = "xm", text = "", fg = "#5e81ac" }, +# { name = "xml", text = "󰗀", fg = "#ebcb8b" }, +# { name = "xpi", text = "", fg = "#bf616a" }, +# { name = "xul", text = "", fg = "#ebcb8b" }, +# { name = "xz", text = "", fg = "#ebcb8b" }, +# { name = "yaml", text = "", fg = "#7f849c" }, +# { name = "yml", text = "", fg = "#7f849c" }, +# { name = "zig", text = "", fg = "#ebcb8b" }, +# { name = "zip", text = "", fg = "#ebcb8b" }, +# { name = "zsh", text = "", fg = "#a3be8c" }, +# { name = "zst", text = "", fg = "#ebcb8b" }, +# { name = "🔥", text = "", fg = "#bf616a" }, +# ] + +# everforest +# [icon] +# +# files = [ +# { name = ".babelrc", text = "", fg = "#DBBC7F" }, +# { name = ".bash_profile", text = "", fg = "#A7C080" }, +# { name = ".bashrc", text = "", fg = "#A7C080" }, +# { name = ".clang-format", text = "", fg = "#374145" }, +# { name = ".clang-tidy", text = "", fg = "#374145" }, +# { name = ".codespellrc", text = "󰓆", fg = "#A7C080" }, +# { name = ".condarc", text = "", fg = "#A7C080" }, +# { name = ".dockerignore", text = "󰡨", fg = "#7FBBB3" }, +# { name = ".ds_store", text = "", fg = "#374145" }, +# { name = ".editorconfig", text = "", fg = "#D3C6AA" }, +# { name = ".env", text = "", fg = "#DBBC7F" }, +# { name = ".eslintignore", text = "", fg = "#D699B6" }, +# { name = ".eslintrc", text = "", fg = "#D699B6" }, +# { name = ".git-blame-ignore-revs", text = "", fg = "#E67E80" }, +# { name = ".gitattributes", text = "", fg = "#E67E80" }, +# { name = ".gitconfig", text = "", fg = "#E67E80" }, +# { name = ".gitignore", text = "", fg = "#E67E80" }, +# { name = ".gitlab-ci.yml", text = "", fg = "#E67E80" }, +# { name = ".gitmodules", text = "", fg = "#E67E80" }, +# { name = ".gtkrc-2.0", text = "", fg = "#83C092" }, +# { name = ".gvimrc", text = "", fg = "#A7C080" }, +# { name = ".justfile", text = "", fg = "#374145" }, +# { name = ".luacheckrc", text = "", fg = "#7FBBB3" }, +# { name = ".luaurc", text = "", fg = "#7FBBB3" }, +# { name = ".mailmap", text = "󰊢", fg = "#E67E80" }, +# { name = ".nanorc", text = "", fg = "#D699B6" }, +# { name = ".npmignore", text = "", fg = "#D699B6" }, +# { name = ".npmrc", text = "", fg = "#D699B6" }, +# { name = ".nuxtrc", text = "󱄆", fg = "#A7C080" }, +# { name = ".nvmrc", text = "", fg = "#A7C080" }, +# { name = ".pnpmfile.cjs", text = "", fg = "#DBBC7F" }, +# { name = ".pre-commit-config.yaml", text = "󰛢", fg = "#DBBC7F" }, +# { name = ".prettierignore", text = "", fg = "#7FBBB3" }, +# { name = ".prettierrc", text = "", fg = "#7FBBB3" }, +# { name = ".prettierrc.cjs", text = "", fg = "#7FBBB3" }, +# { name = ".prettierrc.js", text = "", fg = "#7FBBB3" }, +# { name = ".prettierrc.json", text = "", fg = "#7FBBB3" }, +# { name = ".prettierrc.json5", text = "", fg = "#7FBBB3" }, +# { name = ".prettierrc.mjs", text = "", fg = "#7FBBB3" }, +# { name = ".prettierrc.toml", text = "", fg = "#7FBBB3" }, +# { name = ".prettierrc.yaml", text = "", fg = "#7FBBB3" }, +# { name = ".prettierrc.yml", text = "", fg = "#7FBBB3" }, +# { name = ".pylintrc", text = "", fg = "#374145" }, +# { name = ".settings.json", text = "", fg = "#D699B6" }, +# { name = ".SRCINFO", text = "󰣇", fg = "#83C092" }, +# { name = ".vimrc", text = "", fg = "#A7C080" }, +# { name = ".Xauthority", text = "", fg = "#E67E80" }, +# { name = ".xinitrc", text = "", fg = "#E67E80" }, +# { name = ".Xresources", text = "", fg = "#E67E80" }, +# { name = ".xsession", text = "", fg = "#E67E80" }, +# { name = ".zprofile", text = "", fg = "#A7C080" }, +# { name = ".zshenv", text = "", fg = "#A7C080" }, +# { name = ".zshrc", text = "", fg = "#A7C080" }, +# { name = "_gvimrc", text = "", fg = "#A7C080" }, +# { name = "_vimrc", text = "", fg = "#A7C080" }, +# { name = "AUTHORS", text = "", fg = "#D699B6" }, +# { name = "AUTHORS.txt", text = "", fg = "#D699B6" }, +# { name = "brewfile", text = "", fg = "#E67E80" }, +# { name = "bspwmrc", text = "", fg = "#374145" }, +# { name = "build", text = "", fg = "#A7C080" }, +# { name = "build.gradle", text = "", fg = "#7FBBB3" }, +# { name = "build.zig.zon", text = "", fg = "#DBBC7F" }, +# { name = "bun.lock", text = "", fg = "#D3C6AA" }, +# { name = "bun.lockb", text = "", fg = "#D3C6AA" }, +# { name = "cantorrc", text = "", fg = "#7FBBB3" }, +# { name = "checkhealth", text = "󰓙", fg = "#7FBBB3" }, +# { name = "cmakelists.txt", text = "", fg = "#D3C6AA" }, +# { name = "code_of_conduct", text = "", fg = "#D699B6" }, +# { name = "code_of_conduct.md", text = "", fg = "#D699B6" }, +# { name = "commit_editmsg", text = "", fg = "#E67E80" }, +# { name = "commitlint.config.js", text = "󰜘", fg = "#83C092" }, +# { name = "commitlint.config.ts", text = "󰜘", fg = "#83C092" }, +# { name = "compose.yaml", text = "󰡨", fg = "#7FBBB3" }, +# { name = "compose.yml", text = "󰡨", fg = "#7FBBB3" }, +# { name = "config", text = "", fg = "#374145" }, +# { name = "containerfile", text = "󰡨", fg = "#7FBBB3" }, +# { name = "copying", text = "", fg = "#DBBC7F" }, +# { name = "copying.lesser", text = "", fg = "#DBBC7F" }, +# { name = "Directory.Build.props", text = "", fg = "#7FBBB3" }, +# { name = "Directory.Build.targets", text = "", fg = "#7FBBB3" }, +# { name = "Directory.Packages.props", text = "", fg = "#7FBBB3" }, +# { name = "docker-compose.yaml", text = "󰡨", fg = "#7FBBB3" }, +# { name = "docker-compose.yml", text = "󰡨", fg = "#7FBBB3" }, +# { name = "dockerfile", text = "󰡨", fg = "#7FBBB3" }, +# { name = "eslint.config.cjs", text = "", fg = "#D699B6" }, +# { name = "eslint.config.js", text = "", fg = "#D699B6" }, +# { name = "eslint.config.mjs", text = "", fg = "#D699B6" }, +# { name = "eslint.config.ts", text = "", fg = "#D699B6" }, +# { name = "ext_typoscript_setup.txt", text = "", fg = "#DBBC7F" }, +# { name = "favicon.ico", text = "", fg = "#DBBC7F" }, +# { name = "fp-info-cache", text = "", fg = "#83C092" }, +# { name = "fp-lib-table", text = "", fg = "#83C092" }, +# { name = "FreeCAD.conf", text = "", fg = "#E67E80" }, +# { name = "Gemfile", text = "", fg = "#E67E80" }, +# { name = "gnumakefile", text = "", fg = "#374145" }, +# { name = "go.mod", text = "", fg = "#83C092" }, +# { name = "go.sum", text = "", fg = "#83C092" }, +# { name = "go.work", text = "", fg = "#83C092" }, +# { name = "gradle-wrapper.properties", text = "", fg = "#7FBBB3" }, +# { name = "gradle.properties", text = "", fg = "#7FBBB3" }, +# { name = "gradlew", text = "", fg = "#7FBBB3" }, +# { name = "groovy", text = "", fg = "#7FBBB3" }, +# { name = "gruntfile.babel.js", text = "", fg = "#DBBC7F" }, +# { name = "gruntfile.coffee", text = "", fg = "#DBBC7F" }, +# { name = "gruntfile.js", text = "", fg = "#DBBC7F" }, +# { name = "gruntfile.ts", text = "", fg = "#DBBC7F" }, +# { name = "gtkrc", text = "", fg = "#83C092" }, +# { name = "gulpfile.babel.js", text = "", fg = "#E67E80" }, +# { name = "gulpfile.coffee", text = "", fg = "#E67E80" }, +# { name = "gulpfile.js", text = "", fg = "#E67E80" }, +# { name = "gulpfile.ts", text = "", fg = "#E67E80" }, +# { name = "hypridle.conf", text = "", fg = "#83C092" }, +# { name = "hyprland.conf", text = "", fg = "#83C092" }, +# { name = "hyprlandd.conf", text = "", fg = "#83C092" }, +# { name = "hyprlock.conf", text = "", fg = "#83C092" }, +# { name = "hyprpaper.conf", text = "", fg = "#83C092" }, +# { name = "hyprsunset.conf", text = "", fg = "#83C092" }, +# { name = "i18n.config.js", text = "󰗊", fg = "#D699B6" }, +# { name = "i18n.config.ts", text = "󰗊", fg = "#D699B6" }, +# { name = "i3blocks.conf", text = "", fg = "#D3C6AA" }, +# { name = "i3status.conf", text = "", fg = "#D3C6AA" }, +# { name = "index.theme", text = "", fg = "#A7C080" }, +# { name = "ionic.config.json", text = "", fg = "#7FBBB3" }, +# { name = "Jenkinsfile", text = "", fg = "#E67E80" }, +# { name = "justfile", text = "", fg = "#374145" }, +# { name = "kalgebrarc", text = "", fg = "#7FBBB3" }, +# { name = "kdeglobals", text = "", fg = "#7FBBB3" }, +# { name = "kdenlive-layoutsrc", text = "", fg = "#83C092" }, +# { name = "kdenliverc", text = "", fg = "#83C092" }, +# { name = "kritadisplayrc", text = "", fg = "#D699B6" }, +# { name = "kritarc", text = "", fg = "#D699B6" }, +# { name = "license", text = "", fg = "#DBBC7F" }, +# { name = "license.md", text = "", fg = "#DBBC7F" }, +# { name = "lxde-rc.xml", text = "", fg = "#D3C6AA" }, +# { name = "lxqt.conf", text = "", fg = "#7FBBB3" }, +# { name = "makefile", text = "", fg = "#374145" }, +# { name = "mix.lock", text = "", fg = "#D699B6" }, +# { name = "mpv.conf", text = "", fg = "#D699B6" }, +# { name = "next.config.cjs", text = "", fg = "#83C092" }, +# { name = "next.config.js", text = "", fg = "#83C092" }, +# { name = "next.config.ts", text = "", fg = "#83C092" }, +# { name = "node_modules", text = "", fg = "#D699B6" }, +# { name = "nuxt.config.cjs", text = "󱄆", fg = "#A7C080" }, +# { name = "nuxt.config.js", text = "󱄆", fg = "#A7C080" }, +# { name = "nuxt.config.mjs", text = "󱄆", fg = "#A7C080" }, +# { name = "nuxt.config.ts", text = "󱄆", fg = "#A7C080" }, +# { name = "package-lock.json", text = "", fg = "#E67E80" }, +# { name = "package.json", text = "", fg = "#D699B6" }, +# { name = "PKGBUILD", text = "", fg = "#83C092" }, +# { name = "platformio.ini", text = "", fg = "#DBBC7F" }, +# { name = "playwright.config.cjs", text = "", fg = "#A7C080" }, +# { name = "playwright.config.cts", text = "", fg = "#A7C080" }, +# { name = "playwright.config.js", text = "", fg = "#A7C080" }, +# { name = "playwright.config.mjs", text = "", fg = "#A7C080" }, +# { name = "playwright.config.mts", text = "", fg = "#A7C080" }, +# { name = "playwright.config.ts", text = "", fg = "#A7C080" }, +# { name = "pnpm-lock.yaml", text = "", fg = "#DBBC7F" }, +# { name = "pnpm-workspace.yaml", text = "", fg = "#DBBC7F" }, +# { name = "pom.xml", text = "", fg = "#E67E80" }, +# { name = "prettier.config.cjs", text = "", fg = "#7FBBB3" }, +# { name = "prettier.config.js", text = "", fg = "#7FBBB3" }, +# { name = "prettier.config.mjs", text = "", fg = "#7FBBB3" }, +# { name = "prettier.config.ts", text = "", fg = "#7FBBB3" }, +# { name = "procfile", text = "", fg = "#D699B6" }, +# { name = "PrusaSlicer.ini", text = "", fg = "#E67E80" }, +# { name = "PrusaSlicerGcodeViewer.ini", text = "", fg = "#E67E80" }, +# { name = "py.typed", text = "", fg = "#DBBC7F" }, +# { name = "QtProject.conf", text = "", fg = "#A7C080" }, +# { name = "rakefile", text = "", fg = "#E67E80" }, +# { name = "readme", text = "󰂺", fg = "#D3C6AA" }, +# { name = "readme.md", text = "󰂺", fg = "#D3C6AA" }, +# { name = "rmd", text = "", fg = "#7FBBB3" }, +# { name = "robots.txt", text = "󰚩", fg = "#D699B6" }, +# { name = "security", text = "󰒃", fg = "#D3C6AA" }, +# { name = "security.md", text = "󰒃", fg = "#D3C6AA" }, +# { name = "settings.gradle", text = "", fg = "#7FBBB3" }, +# { name = "svelte.config.js", text = "", fg = "#E67E80" }, +# { name = "sxhkdrc", text = "", fg = "#374145" }, +# { name = "sym-lib-table", text = "", fg = "#83C092" }, +# { name = "tailwind.config.js", text = "󱏿", fg = "#83C092" }, +# { name = "tailwind.config.mjs", text = "󱏿", fg = "#83C092" }, +# { name = "tailwind.config.ts", text = "󱏿", fg = "#83C092" }, +# { name = "tmux.conf", text = "", fg = "#A7C080" }, +# { name = "tmux.conf.local", text = "", fg = "#A7C080" }, +# { name = "tsconfig.json", text = "", fg = "#7FBBB3" }, +# { name = "unlicense", text = "", fg = "#DBBC7F" }, +# { name = "vagrantfile", text = "", fg = "#7FBBB3" }, +# { name = "vercel.json", text = "", fg = "#83C092" }, +# { name = "vite.config.cjs", text = "", fg = "#DBBC7F" }, +# { name = "vite.config.cts", text = "", fg = "#DBBC7F" }, +# { name = "vite.config.js", text = "", fg = "#DBBC7F" }, +# { name = "vite.config.mjs", text = "", fg = "#DBBC7F" }, +# { name = "vite.config.mts", text = "", fg = "#DBBC7F" }, +# { name = "vite.config.ts", text = "", fg = "#DBBC7F" }, +# { name = "vitest.config.cjs", text = "", fg = "#DBBC7F" }, +# { name = "vitest.config.cts", text = "", fg = "#DBBC7F" }, +# { name = "vitest.config.js", text = "", fg = "#DBBC7F" }, +# { name = "vitest.config.mjs", text = "", fg = "#DBBC7F" }, +# { name = "vitest.config.mts", text = "", fg = "#DBBC7F" }, +# { name = "vitest.config.ts", text = "", fg = "#DBBC7F" }, +# { name = "vlcrc", text = "󰕼", fg = "#DBBC7F" }, +# { name = "webpack", text = "󰜫", fg = "#7FBBB3" }, +# { name = "weston.ini", text = "", fg = "#DBBC7F" }, +# { name = "workspace", text = "", fg = "#A7C080" }, +# { name = "wrangler.jsonc", text = "", fg = "#DBBC7F" }, +# { name = "wrangler.toml", text = "", fg = "#DBBC7F" }, +# { name = "xdph.conf", text = "", fg = "#83C092" }, +# { name = "xmobarrc", text = "", fg = "#E67E80" }, +# { name = "xmobarrc.hs", text = "", fg = "#E67E80" }, +# { name = "xmonad.hs", text = "", fg = "#E67E80" }, +# { name = "xorg.conf", text = "", fg = "#E67E80" }, +# { name = "xsettingsd.conf", text = "", fg = "#E67E80" }, +# ] +# exts = [ +# { name = "3gp", text = "", fg = "#DBBC7F" }, +# { name = "3mf", text = "󰆧", fg = "#D699B6" }, +# { name = "7z", text = "", fg = "#DBBC7F" }, +# { name = "a", text = "", fg = "#D3C6AA" }, +# { name = "aac", text = "", fg = "#7FBBB3" }, +# { name = "ada", text = "", fg = "#7FBBB3" }, +# { name = "adb", text = "", fg = "#7FBBB3" }, +# { name = "ads", text = "", fg = "#D699B6" }, +# { name = "ai", text = "", fg = "#DBBC7F" }, +# { name = "aif", text = "", fg = "#7FBBB3" }, +# { name = "aiff", text = "", fg = "#7FBBB3" }, +# { name = "android", text = "", fg = "#A7C080" }, +# { name = "ape", text = "", fg = "#7FBBB3" }, +# { name = "apk", text = "", fg = "#A7C080" }, +# { name = "apl", text = "", fg = "#A7C080" }, +# { name = "app", text = "", fg = "#E67E80" }, +# { name = "applescript", text = "", fg = "#374145" }, +# { name = "asc", text = "󰦝", fg = "#374145" }, +# { name = "asm", text = "", fg = "#7FBBB3" }, +# { name = "ass", text = "󰨖", fg = "#DBBC7F" }, +# { name = "astro", text = "", fg = "#D699B6" }, +# { name = "avif", text = "", fg = "#D699B6" }, +# { name = "awk", text = "", fg = "#374145" }, +# { name = "azcli", text = "", fg = "#7FBBB3" }, +# { name = "bak", text = "󰁯", fg = "#374145" }, +# { name = "bash", text = "", fg = "#A7C080" }, +# { name = "bat", text = "", fg = "#A7C080" }, +# { name = "bazel", text = "", fg = "#A7C080" }, +# { name = "bib", text = "󱉟", fg = "#DBBC7F" }, +# { name = "bicep", text = "", fg = "#7FBBB3" }, +# { name = "bicepparam", text = "", fg = "#D699B6" }, +# { name = "bin", text = "", fg = "#E67E80" }, +# { name = "blade.php", text = "", fg = "#E67E80" }, +# { name = "blend", text = "󰂫", fg = "#DBBC7F" }, +# { name = "blp", text = "󰺾", fg = "#7FBBB3" }, +# { name = "bmp", text = "", fg = "#D699B6" }, +# { name = "bqn", text = "", fg = "#A7C080" }, +# { name = "brep", text = "󰻫", fg = "#DBBC7F" }, +# { name = "bz", text = "", fg = "#DBBC7F" }, +# { name = "bz2", text = "", fg = "#DBBC7F" }, +# { name = "bz3", text = "", fg = "#DBBC7F" }, +# { name = "bzl", text = "", fg = "#A7C080" }, +# { name = "c", text = "", fg = "#7FBBB3" }, +# { name = "c++", text = "", fg = "#E67E80" }, +# { name = "cache", text = "", fg = "#83C092" }, +# { name = "cast", text = "", fg = "#DBBC7F" }, +# { name = "cbl", text = "", fg = "#7FBBB3" }, +# { name = "cc", text = "", fg = "#E67E80" }, +# { name = "ccm", text = "", fg = "#E67E80" }, +# { name = "cfc", text = "", fg = "#83C092" }, +# { name = "cfg", text = "", fg = "#374145" }, +# { name = "cfm", text = "", fg = "#83C092" }, +# { name = "cjs", text = "", fg = "#DBBC7F" }, +# { name = "clj", text = "", fg = "#A7C080" }, +# { name = "cljc", text = "", fg = "#A7C080" }, +# { name = "cljd", text = "", fg = "#7FBBB3" }, +# { name = "cljs", text = "", fg = "#7FBBB3" }, +# { name = "cmake", text = "", fg = "#D3C6AA" }, +# { name = "cob", text = "", fg = "#7FBBB3" }, +# { name = "cobol", text = "", fg = "#7FBBB3" }, +# { name = "coffee", text = "", fg = "#DBBC7F" }, +# { name = "conda", text = "", fg = "#A7C080" }, +# { name = "conf", text = "", fg = "#374145" }, +# { name = "config.ru", text = "", fg = "#E67E80" }, +# { name = "cow", text = "󰆚", fg = "#DBBC7F" }, +# { name = "cp", text = "", fg = "#7FBBB3" }, +# { name = "cpp", text = "", fg = "#7FBBB3" }, +# { name = "cppm", text = "", fg = "#7FBBB3" }, +# { name = "cpy", text = "", fg = "#7FBBB3" }, +# { name = "cr", text = "", fg = "#D3C6AA" }, +# { name = "crdownload", text = "", fg = "#83C092" }, +# { name = "cs", text = "󰌛", fg = "#DBBC7F" }, +# { name = "csh", text = "", fg = "#374145" }, +# { name = "cshtml", text = "󱦗", fg = "#D699B6" }, +# { name = "cson", text = "", fg = "#DBBC7F" }, +# { name = "csproj", text = "󰪮", fg = "#D699B6" }, +# { name = "css", text = "", fg = "#D699B6" }, +# { name = "csv", text = "", fg = "#A7C080" }, +# { name = "cts", text = "", fg = "#7FBBB3" }, +# { name = "cu", text = "", fg = "#A7C080" }, +# { name = "cue", text = "󰲹", fg = "#D699B6" }, +# { name = "cuh", text = "", fg = "#D699B6" }, +# { name = "cxx", text = "", fg = "#7FBBB3" }, +# { name = "cxxm", text = "", fg = "#7FBBB3" }, +# { name = "d", text = "", fg = "#E67E80" }, +# { name = "d.ts", text = "", fg = "#DBBC7F" }, +# { name = "dart", text = "", fg = "#7FBBB3" }, +# { name = "db", text = "", fg = "#83C092" }, +# { name = "dconf", text = "", fg = "#83C092" }, +# { name = "desktop", text = "", fg = "#D699B6" }, +# { name = "diff", text = "", fg = "#374145" }, +# { name = "dll", text = "", fg = "#E67E80" }, +# { name = "doc", text = "󰈬", fg = "#7FBBB3" }, +# { name = "Dockerfile", text = "󰡨", fg = "#7FBBB3" }, +# { name = "dockerignore", text = "󰡨", fg = "#7FBBB3" }, +# { name = "docx", text = "󰈬", fg = "#7FBBB3" }, +# { name = "dot", text = "󱁉", fg = "#7FBBB3" }, +# { name = "download", text = "", fg = "#83C092" }, +# { name = "drl", text = "", fg = "#E67E80" }, +# { name = "dropbox", text = "", fg = "#7FBBB3" }, +# { name = "dump", text = "", fg = "#83C092" }, +# { name = "dwg", text = "󰻫", fg = "#DBBC7F" }, +# { name = "dxf", text = "󰻫", fg = "#DBBC7F" }, +# { name = "ebook", text = "", fg = "#DBBC7F" }, +# { name = "ebuild", text = "", fg = "#D699B6" }, +# { name = "edn", text = "", fg = "#7FBBB3" }, +# { name = "eex", text = "", fg = "#D699B6" }, +# { name = "ejs", text = "", fg = "#DBBC7F" }, +# { name = "el", text = "", fg = "#D699B6" }, +# { name = "elc", text = "", fg = "#D699B6" }, +# { name = "elf", text = "", fg = "#E67E80" }, +# { name = "elm", text = "", fg = "#7FBBB3" }, +# { name = "eln", text = "", fg = "#D699B6" }, +# { name = "env", text = "", fg = "#DBBC7F" }, +# { name = "eot", text = "", fg = "#D3C6AA" }, +# { name = "epp", text = "", fg = "#DBBC7F" }, +# { name = "epub", text = "", fg = "#DBBC7F" }, +# { name = "erb", text = "", fg = "#E67E80" }, +# { name = "erl", text = "", fg = "#D699B6" }, +# { name = "ex", text = "", fg = "#D699B6" }, +# { name = "exe", text = "", fg = "#E67E80" }, +# { name = "exs", text = "", fg = "#D699B6" }, +# { name = "f#", text = "", fg = "#7FBBB3" }, +# { name = "f3d", text = "󰻫", fg = "#DBBC7F" }, +# { name = "f90", text = "󱈚", fg = "#D699B6" }, +# { name = "fbx", text = "󰆧", fg = "#D699B6" }, +# { name = "fcbak", text = "", fg = "#E67E80" }, +# { name = "fcmacro", text = "", fg = "#E67E80" }, +# { name = "fcmat", text = "", fg = "#E67E80" }, +# { name = "fcparam", text = "", fg = "#E67E80" }, +# { name = "fcscript", text = "", fg = "#E67E80" }, +# { name = "fcstd", text = "", fg = "#E67E80" }, +# { name = "fcstd1", text = "", fg = "#E67E80" }, +# { name = "fctb", text = "", fg = "#E67E80" }, +# { name = "fctl", text = "", fg = "#E67E80" }, +# { name = "fdmdownload", text = "", fg = "#83C092" }, +# { name = "feature", text = "", fg = "#A7C080" }, +# { name = "fish", text = "", fg = "#374145" }, +# { name = "flac", text = "", fg = "#7FBBB3" }, +# { name = "flc", text = "", fg = "#D3C6AA" }, +# { name = "flf", text = "", fg = "#D3C6AA" }, +# { name = "fnl", text = "", fg = "#DBBC7F" }, +# { name = "fodg", text = "", fg = "#DBBC7F" }, +# { name = "fodp", text = "", fg = "#DBBC7F" }, +# { name = "fods", text = "", fg = "#A7C080" }, +# { name = "fodt", text = "", fg = "#7FBBB3" }, +# { name = "frag", text = "", fg = "#83C092" }, +# { name = "fs", text = "", fg = "#7FBBB3" }, +# { name = "fsi", text = "", fg = "#7FBBB3" }, +# { name = "fsscript", text = "", fg = "#7FBBB3" }, +# { name = "fsx", text = "", fg = "#7FBBB3" }, +# { name = "gcode", text = "󰐫", fg = "#7FBBB3" }, +# { name = "gd", text = "", fg = "#374145" }, +# { name = "gemspec", text = "", fg = "#E67E80" }, +# { name = "geom", text = "", fg = "#83C092" }, +# { name = "gif", text = "", fg = "#D699B6" }, +# { name = "git", text = "", fg = "#E67E80" }, +# { name = "glb", text = "", fg = "#DBBC7F" }, +# { name = "gleam", text = "", fg = "#D699B6" }, +# { name = "glsl", text = "", fg = "#83C092" }, +# { name = "gnumakefile", text = "", fg = "#374145" }, +# { name = "go", text = "", fg = "#83C092" }, +# { name = "godot", text = "", fg = "#374145" }, +# { name = "gpr", text = "", fg = "#374145" }, +# { name = "gql", text = "", fg = "#D699B6" }, +# { name = "gradle", text = "", fg = "#7FBBB3" }, +# { name = "graphql", text = "", fg = "#D699B6" }, +# { name = "gresource", text = "", fg = "#83C092" }, +# { name = "gv", text = "󱁉", fg = "#7FBBB3" }, +# { name = "gz", text = "", fg = "#DBBC7F" }, +# { name = "h", text = "", fg = "#D699B6" }, +# { name = "haml", text = "", fg = "#D3C6AA" }, +# { name = "hbs", text = "", fg = "#E67E80" }, +# { name = "heex", text = "", fg = "#D699B6" }, +# { name = "hex", text = "", fg = "#7FBBB3" }, +# { name = "hh", text = "", fg = "#D699B6" }, +# { name = "hpp", text = "", fg = "#D699B6" }, +# { name = "hrl", text = "", fg = "#D699B6" }, +# { name = "hs", text = "", fg = "#D699B6" }, +# { name = "htm", text = "", fg = "#E67E80" }, +# { name = "html", text = "", fg = "#E67E80" }, +# { name = "http", text = "", fg = "#7FBBB3" }, +# { name = "huff", text = "󰡘", fg = "#D699B6" }, +# { name = "hurl", text = "", fg = "#D699B6" }, +# { name = "hx", text = "", fg = "#DBBC7F" }, +# { name = "hxx", text = "", fg = "#D699B6" }, +# { name = "ical", text = "", fg = "#7FBBB3" }, +# { name = "icalendar", text = "", fg = "#7FBBB3" }, +# { name = "ico", text = "", fg = "#DBBC7F" }, +# { name = "ics", text = "", fg = "#7FBBB3" }, +# { name = "ifb", text = "", fg = "#7FBBB3" }, +# { name = "ifc", text = "󰻫", fg = "#DBBC7F" }, +# { name = "ige", text = "󰻫", fg = "#DBBC7F" }, +# { name = "iges", text = "󰻫", fg = "#DBBC7F" }, +# { name = "igs", text = "󰻫", fg = "#DBBC7F" }, +# { name = "image", text = "", fg = "#E67E80" }, +# { name = "img", text = "", fg = "#E67E80" }, +# { name = "import", text = "", fg = "#D3C6AA" }, +# { name = "info", text = "", fg = "#DBBC7F" }, +# { name = "ini", text = "", fg = "#374145" }, +# { name = "ino", text = "", fg = "#83C092" }, +# { name = "ipynb", text = "", fg = "#DBBC7F" }, +# { name = "iso", text = "", fg = "#E67E80" }, +# { name = "ixx", text = "", fg = "#7FBBB3" }, +# { name = "jar", text = "", fg = "#DBBC7F" }, +# { name = "java", text = "", fg = "#E67E80" }, +# { name = "jl", text = "", fg = "#D699B6" }, +# { name = "jpeg", text = "", fg = "#D699B6" }, +# { name = "jpg", text = "", fg = "#D699B6" }, +# { name = "js", text = "", fg = "#DBBC7F" }, +# { name = "json", text = "", fg = "#DBBC7F" }, +# { name = "json5", text = "", fg = "#DBBC7F" }, +# { name = "jsonc", text = "", fg = "#DBBC7F" }, +# { name = "jsx", text = "", fg = "#83C092" }, +# { name = "jwmrc", text = "", fg = "#7FBBB3" }, +# { name = "jxl", text = "", fg = "#D699B6" }, +# { name = "kbx", text = "󰯄", fg = "#374145" }, +# { name = "kdb", text = "", fg = "#A7C080" }, +# { name = "kdbx", text = "", fg = "#A7C080" }, +# { name = "kdenlive", text = "", fg = "#83C092" }, +# { name = "kdenlivetitle", text = "", fg = "#83C092" }, +# { name = "kicad_dru", text = "", fg = "#83C092" }, +# { name = "kicad_mod", text = "", fg = "#83C092" }, +# { name = "kicad_pcb", text = "", fg = "#83C092" }, +# { name = "kicad_prl", text = "", fg = "#83C092" }, +# { name = "kicad_pro", text = "", fg = "#83C092" }, +# { name = "kicad_sch", text = "", fg = "#83C092" }, +# { name = "kicad_sym", text = "", fg = "#83C092" }, +# { name = "kicad_wks", text = "", fg = "#83C092" }, +# { name = "ko", text = "", fg = "#D3C6AA" }, +# { name = "kpp", text = "", fg = "#D699B6" }, +# { name = "kra", text = "", fg = "#D699B6" }, +# { name = "krz", text = "", fg = "#D699B6" }, +# { name = "ksh", text = "", fg = "#374145" }, +# { name = "kt", text = "", fg = "#7FBBB3" }, +# { name = "kts", text = "", fg = "#7FBBB3" }, +# { name = "lck", text = "", fg = "#D3C6AA" }, +# { name = "leex", text = "", fg = "#D699B6" }, +# { name = "less", text = "", fg = "#D699B6" }, +# { name = "lff", text = "", fg = "#D3C6AA" }, +# { name = "lhs", text = "", fg = "#D699B6" }, +# { name = "lib", text = "", fg = "#E67E80" }, +# { name = "license", text = "", fg = "#DBBC7F" }, +# { name = "liquid", text = "", fg = "#DBBC7F" }, +# { name = "lock", text = "", fg = "#D3C6AA" }, +# { name = "log", text = "󰌱", fg = "#D3C6AA" }, +# { name = "lrc", text = "󰨖", fg = "#DBBC7F" }, +# { name = "lua", text = "", fg = "#7FBBB3" }, +# { name = "luac", text = "", fg = "#7FBBB3" }, +# { name = "luau", text = "", fg = "#7FBBB3" }, +# { name = "m", text = "", fg = "#7FBBB3" }, +# { name = "m3u", text = "󰲹", fg = "#D699B6" }, +# { name = "m3u8", text = "󰲹", fg = "#D699B6" }, +# { name = "m4a", text = "", fg = "#7FBBB3" }, +# { name = "m4v", text = "", fg = "#DBBC7F" }, +# { name = "magnet", text = "", fg = "#E67E80" }, +# { name = "makefile", text = "", fg = "#374145" }, +# { name = "markdown", text = "", fg = "#D3C6AA" }, +# { name = "material", text = "", fg = "#D699B6" }, +# { name = "md", text = "", fg = "#D3C6AA" }, +# { name = "md5", text = "󰕥", fg = "#D699B6" }, +# { name = "mdx", text = "", fg = "#7FBBB3" }, +# { name = "mint", text = "󰌪", fg = "#A7C080" }, +# { name = "mjs", text = "", fg = "#DBBC7F" }, +# { name = "mk", text = "", fg = "#374145" }, +# { name = "mkv", text = "", fg = "#DBBC7F" }, +# { name = "ml", text = "", fg = "#DBBC7F" }, +# { name = "mli", text = "", fg = "#DBBC7F" }, +# { name = "mm", text = "", fg = "#7FBBB3" }, +# { name = "mo", text = "", fg = "#D699B6" }, +# { name = "mobi", text = "", fg = "#DBBC7F" }, +# { name = "mojo", text = "", fg = "#E67E80" }, +# { name = "mov", text = "", fg = "#DBBC7F" }, +# { name = "mp3", text = "", fg = "#7FBBB3" }, +# { name = "mp4", text = "", fg = "#DBBC7F" }, +# { name = "mpp", text = "", fg = "#7FBBB3" }, +# { name = "msf", text = "", fg = "#7FBBB3" }, +# { name = "mts", text = "", fg = "#7FBBB3" }, +# { name = "mustache", text = "", fg = "#DBBC7F" }, +# { name = "nfo", text = "", fg = "#DBBC7F" }, +# { name = "nim", text = "", fg = "#DBBC7F" }, +# { name = "nix", text = "", fg = "#83C092" }, +# { name = "norg", text = "", fg = "#7FBBB3" }, +# { name = "nswag", text = "", fg = "#A7C080" }, +# { name = "nu", text = "", fg = "#83C092" }, +# { name = "o", text = "", fg = "#E67E80" }, +# { name = "obj", text = "󰆧", fg = "#D699B6" }, +# { name = "odf", text = "", fg = "#E67E80" }, +# { name = "odg", text = "", fg = "#DBBC7F" }, +# { name = "odin", text = "󰟢", fg = "#7FBBB3" }, +# { name = "odp", text = "", fg = "#DBBC7F" }, +# { name = "ods", text = "", fg = "#A7C080" }, +# { name = "odt", text = "", fg = "#7FBBB3" }, +# { name = "oga", text = "", fg = "#7FBBB3" }, +# { name = "ogg", text = "", fg = "#7FBBB3" }, +# { name = "ogv", text = "", fg = "#DBBC7F" }, +# { name = "ogx", text = "", fg = "#DBBC7F" }, +# { name = "opus", text = "", fg = "#7FBBB3" }, +# { name = "org", text = "", fg = "#83C092" }, +# { name = "otf", text = "", fg = "#D3C6AA" }, +# { name = "out", text = "", fg = "#E67E80" }, +# { name = "part", text = "", fg = "#83C092" }, +# { name = "patch", text = "", fg = "#374145" }, +# { name = "pck", text = "", fg = "#374145" }, +# { name = "pcm", text = "", fg = "#7FBBB3" }, +# { name = "pdf", text = "", fg = "#E67E80" }, +# { name = "php", text = "", fg = "#D699B6" }, +# { name = "pl", text = "", fg = "#7FBBB3" }, +# { name = "pls", text = "󰲹", fg = "#D699B6" }, +# { name = "ply", text = "󰆧", fg = "#D699B6" }, +# { name = "pm", text = "", fg = "#7FBBB3" }, +# { name = "png", text = "", fg = "#D699B6" }, +# { name = "po", text = "", fg = "#7FBBB3" }, +# { name = "pot", text = "", fg = "#7FBBB3" }, +# { name = "pp", text = "", fg = "#DBBC7F" }, +# { name = "ppt", text = "󰈧", fg = "#E67E80" }, +# { name = "pptx", text = "󰈧", fg = "#E67E80" }, +# { name = "prisma", text = "", fg = "#7FBBB3" }, +# { name = "pro", text = "", fg = "#DBBC7F" }, +# { name = "ps1", text = "󰨊", fg = "#7FBBB3" }, +# { name = "psb", text = "", fg = "#7FBBB3" }, +# { name = "psd", text = "", fg = "#7FBBB3" }, +# { name = "psd1", text = "󰨊", fg = "#7FBBB3" }, +# { name = "psm1", text = "󰨊", fg = "#7FBBB3" }, +# { name = "pub", text = "󰷖", fg = "#DBBC7F" }, +# { name = "pxd", text = "", fg = "#7FBBB3" }, +# { name = "pxi", text = "", fg = "#7FBBB3" }, +# { name = "py", text = "", fg = "#DBBC7F" }, +# { name = "pyc", text = "", fg = "#DBBC7F" }, +# { name = "pyd", text = "", fg = "#DBBC7F" }, +# { name = "pyi", text = "", fg = "#DBBC7F" }, +# { name = "pyo", text = "", fg = "#DBBC7F" }, +# { name = "pyw", text = "", fg = "#7FBBB3" }, +# { name = "pyx", text = "", fg = "#7FBBB3" }, +# { name = "qm", text = "", fg = "#7FBBB3" }, +# { name = "qml", text = "", fg = "#A7C080" }, +# { name = "qrc", text = "", fg = "#A7C080" }, +# { name = "qss", text = "", fg = "#A7C080" }, +# { name = "query", text = "", fg = "#A7C080" }, +# { name = "r", text = "󰟔", fg = "#7FBBB3" }, +# { name = "R", text = "󰟔", fg = "#7FBBB3" }, +# { name = "rake", text = "", fg = "#E67E80" }, +# { name = "rar", text = "", fg = "#DBBC7F" }, +# { name = "rasi", text = "", fg = "#DBBC7F" }, +# { name = "razor", text = "󱦘", fg = "#D699B6" }, +# { name = "rb", text = "", fg = "#E67E80" }, +# { name = "res", text = "", fg = "#E67E80" }, +# { name = "resi", text = "", fg = "#E67E80" }, +# { name = "rlib", text = "", fg = "#E67E80" }, +# { name = "rmd", text = "", fg = "#7FBBB3" }, +# { name = "rproj", text = "󰗆", fg = "#A7C080" }, +# { name = "rs", text = "", fg = "#E67E80" }, +# { name = "rss", text = "", fg = "#DBBC7F" }, +# { name = "s", text = "", fg = "#7FBBB3" }, +# { name = "sass", text = "", fg = "#E67E80" }, +# { name = "sbt", text = "", fg = "#E67E80" }, +# { name = "sc", text = "", fg = "#E67E80" }, +# { name = "scad", text = "", fg = "#DBBC7F" }, +# { name = "scala", text = "", fg = "#E67E80" }, +# { name = "scm", text = "󰘧", fg = "#D3C6AA" }, +# { name = "scss", text = "", fg = "#E67E80" }, +# { name = "sh", text = "", fg = "#374145" }, +# { name = "sha1", text = "󰕥", fg = "#D699B6" }, +# { name = "sha224", text = "󰕥", fg = "#D699B6" }, +# { name = "sha256", text = "󰕥", fg = "#D699B6" }, +# { name = "sha384", text = "󰕥", fg = "#D699B6" }, +# { name = "sha512", text = "󰕥", fg = "#D699B6" }, +# { name = "sig", text = "󰘧", fg = "#DBBC7F" }, +# { name = "signature", text = "󰘧", fg = "#DBBC7F" }, +# { name = "skp", text = "󰻫", fg = "#DBBC7F" }, +# { name = "sldasm", text = "󰻫", fg = "#DBBC7F" }, +# { name = "sldprt", text = "󰻫", fg = "#DBBC7F" }, +# { name = "slim", text = "", fg = "#E67E80" }, +# { name = "sln", text = "", fg = "#D699B6" }, +# { name = "slnx", text = "", fg = "#D699B6" }, +# { name = "slvs", text = "󰻫", fg = "#DBBC7F" }, +# { name = "sml", text = "󰘧", fg = "#DBBC7F" }, +# { name = "so", text = "", fg = "#D3C6AA" }, +# { name = "sol", text = "", fg = "#7FBBB3" }, +# { name = "spec.js", text = "", fg = "#DBBC7F" }, +# { name = "spec.jsx", text = "", fg = "#83C092" }, +# { name = "spec.ts", text = "", fg = "#7FBBB3" }, +# { name = "spec.tsx", text = "", fg = "#7FBBB3" }, +# { name = "spx", text = "", fg = "#7FBBB3" }, +# { name = "sql", text = "", fg = "#83C092" }, +# { name = "sqlite", text = "", fg = "#83C092" }, +# { name = "sqlite3", text = "", fg = "#83C092" }, +# { name = "srt", text = "󰨖", fg = "#DBBC7F" }, +# { name = "ssa", text = "󰨖", fg = "#DBBC7F" }, +# { name = "ste", text = "󰻫", fg = "#DBBC7F" }, +# { name = "step", text = "󰻫", fg = "#DBBC7F" }, +# { name = "stl", text = "󰆧", fg = "#D699B6" }, +# { name = "stories.js", text = "", fg = "#E67E80" }, +# { name = "stories.jsx", text = "", fg = "#E67E80" }, +# { name = "stories.mjs", text = "", fg = "#E67E80" }, +# { name = "stories.svelte", text = "", fg = "#E67E80" }, +# { name = "stories.ts", text = "", fg = "#E67E80" }, +# { name = "stories.tsx", text = "", fg = "#E67E80" }, +# { name = "stories.vue", text = "", fg = "#E67E80" }, +# { name = "stp", text = "󰻫", fg = "#DBBC7F" }, +# { name = "strings", text = "", fg = "#7FBBB3" }, +# { name = "styl", text = "", fg = "#A7C080" }, +# { name = "sub", text = "󰨖", fg = "#DBBC7F" }, +# { name = "sublime", text = "", fg = "#DBBC7F" }, +# { name = "suo", text = "", fg = "#D699B6" }, +# { name = "sv", text = "󰍛", fg = "#A7C080" }, +# { name = "svelte", text = "", fg = "#E67E80" }, +# { name = "svg", text = "󰜡", fg = "#DBBC7F" }, +# { name = "svgz", text = "󰜡", fg = "#DBBC7F" }, +# { name = "svh", text = "󰍛", fg = "#A7C080" }, +# { name = "swift", text = "", fg = "#DBBC7F" }, +# { name = "t", text = "", fg = "#7FBBB3" }, +# { name = "tbc", text = "󰛓", fg = "#7FBBB3" }, +# { name = "tcl", text = "󰛓", fg = "#7FBBB3" }, +# { name = "templ", text = "", fg = "#DBBC7F" }, +# { name = "terminal", text = "", fg = "#A7C080" }, +# { name = "test.js", text = "", fg = "#DBBC7F" }, +# { name = "test.jsx", text = "", fg = "#83C092" }, +# { name = "test.ts", text = "", fg = "#7FBBB3" }, +# { name = "test.tsx", text = "", fg = "#7FBBB3" }, +# { name = "tex", text = "", fg = "#A7C080" }, +# { name = "tf", text = "", fg = "#D699B6" }, +# { name = "tfvars", text = "", fg = "#D699B6" }, +# { name = "tgz", text = "", fg = "#DBBC7F" }, +# { name = "tmpl", text = "", fg = "#DBBC7F" }, +# { name = "tmux", text = "", fg = "#A7C080" }, +# { name = "toml", text = "", fg = "#E67E80" }, +# { name = "torrent", text = "", fg = "#83C092" }, +# { name = "tres", text = "", fg = "#374145" }, +# { name = "ts", text = "", fg = "#7FBBB3" }, +# { name = "tscn", text = "", fg = "#374145" }, +# { name = "tsconfig", text = "", fg = "#DBBC7F" }, +# { name = "tsx", text = "", fg = "#7FBBB3" }, +# { name = "ttf", text = "", fg = "#D3C6AA" }, +# { name = "twig", text = "", fg = "#A7C080" }, +# { name = "txt", text = "󰈙", fg = "#A7C080" }, +# { name = "txz", text = "", fg = "#DBBC7F" }, +# { name = "typ", text = "", fg = "#83C092" }, +# { name = "typoscript", text = "", fg = "#DBBC7F" }, +# { name = "ui", text = "", fg = "#7FBBB3" }, +# { name = "v", text = "󰍛", fg = "#A7C080" }, +# { name = "vala", text = "", fg = "#D699B6" }, +# { name = "vert", text = "", fg = "#83C092" }, +# { name = "vh", text = "󰍛", fg = "#A7C080" }, +# { name = "vhd", text = "󰍛", fg = "#A7C080" }, +# { name = "vhdl", text = "󰍛", fg = "#A7C080" }, +# { name = "vi", text = "", fg = "#DBBC7F" }, +# { name = "vim", text = "", fg = "#A7C080" }, +# { name = "vsh", text = "", fg = "#83C092" }, +# { name = "vsix", text = "", fg = "#D699B6" }, +# { name = "vue", text = "", fg = "#A7C080" }, +# { name = "wasm", text = "", fg = "#7FBBB3" }, +# { name = "wav", text = "", fg = "#7FBBB3" }, +# { name = "webm", text = "", fg = "#DBBC7F" }, +# { name = "webmanifest", text = "", fg = "#DBBC7F" }, +# { name = "webp", text = "", fg = "#D699B6" }, +# { name = "webpack", text = "󰜫", fg = "#7FBBB3" }, +# { name = "wma", text = "", fg = "#7FBBB3" }, +# { name = "wmv", text = "", fg = "#DBBC7F" }, +# { name = "woff", text = "", fg = "#D3C6AA" }, +# { name = "woff2", text = "", fg = "#D3C6AA" }, +# { name = "wrl", text = "󰆧", fg = "#D699B6" }, +# { name = "wrz", text = "󰆧", fg = "#D699B6" }, +# { name = "wv", text = "", fg = "#7FBBB3" }, +# { name = "wvc", text = "", fg = "#7FBBB3" }, +# { name = "x", text = "", fg = "#7FBBB3" }, +# { name = "xaml", text = "󰙳", fg = "#D699B6" }, +# { name = "xcf", text = "", fg = "#374145" }, +# { name = "xcplayground", text = "", fg = "#DBBC7F" }, +# { name = "xcstrings", text = "", fg = "#7FBBB3" }, +# { name = "xls", text = "󰈛", fg = "#A7C080" }, +# { name = "xlsx", text = "󰈛", fg = "#A7C080" }, +# { name = "xm", text = "", fg = "#7FBBB3" }, +# { name = "xml", text = "󰗀", fg = "#DBBC7F" }, +# { name = "xpi", text = "", fg = "#E67E80" }, +# { name = "xul", text = "", fg = "#DBBC7F" }, +# { name = "xz", text = "", fg = "#DBBC7F" }, +# { name = "yaml", text = "", fg = "#374145" }, +# { name = "yml", text = "", fg = "#374145" }, +# { name = "zig", text = "", fg = "#DBBC7F" }, +# { name = "zip", text = "", fg = "#DBBC7F" }, +# { name = "zsh", text = "", fg = "#A7C080" }, +# { name = "zst", text = "", fg = "#DBBC7F" }, +# { name = "🔥", text = "", fg = "#E67E80" }, +# ] diff --git a/.config/yazi/yazi.toml b/.config/yazi/yazi.toml new file mode 100644 index 0000000..7137bf8 --- /dev/null +++ b/.config/yazi/yazi.toml @@ -0,0 +1,12 @@ +[mgr] +show_hidden = true + +[[plugin.prepend_fetchers]] +id = "git" +name = "*" +run = "git" + +[[plugin.prepend_fetchers]] +id = "git" +name = "*/" +run = "git" diff --git a/.config/yt-dlp/config b/.config/yt-dlp/config new file mode 100644 index 0000000..f437c16 --- /dev/null +++ b/.config/yt-dlp/config @@ -0,0 +1 @@ +--mtime diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc new file mode 100644 index 0000000..de92e4d --- /dev/null +++ b/.config/zathura/zathurarc @@ -0,0 +1,25 @@ +set sandbox none +set statusbar-h-padding 0 +set statusbar-v-padding 0 +set page-padding 1 +set selection-clipboard clipboard +map u scroll half-up +map d scroll half-down +map D toggle_page_mode +map r reload +map R rotate +map K zoom in +map J zoom out +map i recolor +map p print +map g goto top +map [fullscreen] u scroll half-up +map [fullscreen] d scroll half-down +map [fullscreen] D toggle_page_mode +map [fullscreen] r reload +map [fullscreen] R rotate +map [fullscreen] K zoom in +map [fullscreen] J zoom out +map [fullscreen] i recolor +map [fullscreen] p print +map [fullscreen] g goto top diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc new file mode 100644 index 0000000..44fa2c1 --- /dev/null +++ b/.config/zsh/.zshrc @@ -0,0 +1,143 @@ +# Enable colors and change prompt: +autoload -U colors && colors # Load colors + +clp(){ + yes | paru -Scc +} + +git_status(){ +if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then + gbranch=$(git branch --show-current) + + gstatus="" + gadded="no" + gwaiting="no" + + waiting_commits=$(git rev-list @{u}..@ --count 2> /dev/null) + + if [[ $waiting_commits -gt 0 ]]; then + gwaiting="yes" + gstatus+="⇡" + fi + + for i in $(git status --porcelain | tac); do + i=$(echo "$i" | sed 's/ *$//; s/^ *//' | cut -f1 -d " ") + + gsymbol="" + if [[ "$i" == "A"* ]]; then + if [[ $gadded == "no" ]]; then + gadded="yes" + gstatus+="+" + fi + i="${i:1}" + fi + + if [[ "$i" == "??" ]]; then + gsymbol="?" + elif [[ "$i" == "M" ]]; then + gsymbol="!" + elif [[ "$i" == "D" ]]; then + gsymbol="✘" + elif [[ "$i" == "R" ]]; then + gsymbol=">" + elif [[ "$i" == "C" ]]; then + gsymbol=">" + else + gsymbol="" + fi + + if [[ "$gstatus" == *"$gsymbol"* ]]; then + continue + else + gstatus+="$gsymbol" + fi + done + + # Output in the format: branch [status] + echo -n "$gbranch [$gstatus] " +else + echo -n "" +fi +} + +PS1='%{$fg[brightwhite]%}%n@%m %{$fg[yellow]%}%~ %{$fg[magenta]%}$(git_status)%{$fg[white]%}$ %{$reset_color%}' +setopt autocd # Automatically cd into typed directory. +stty stop undef # Disable ctrl-s to freeze terminal. +setopt interactive_comments +setopt prompt_subst +# History in cache directory: +HISTSIZE=10000000 +SAVEHIST=10000000 +HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/zsh/history" +setopt inc_append_history + +# Load aliases and shortcuts if existent. +[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" +[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc" +[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" +[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" + +# Basic auto/tab complete: +autoload -U compinit +zstyle ':completion:*' menu select +zmodload zsh/complist +compinit +_comp_options+=(globdots) # Include hidden files. + +# vi mode +bindkey -v +export KEYTIMEOUT=1 + +# Use vim keys in tab complete menu: +bindkey -M menuselect 'h' vi-backward-char +bindkey -M menuselect 'k' vi-up-line-or-history +bindkey -M menuselect 'l' vi-forward-char +bindkey -M menuselect 'j' vi-down-line-or-history +bindkey -v '^?' backward-delete-char + +# Change cursor shape for different vi modes. +function zle-keymap-select () { + case $KEYMAP in + vicmd) echo -ne '\e[6 q';; + viins|main) echo -ne '\033[0 q';; + esac +} +zle -N zle-keymap-select +zle-line-init() { + zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere) + echo -ne '\033[0 q' +} +zle -N zle-line-init + +function preexec { + print -Pn "\e]0;${(q)1}\e\\" +} + +# Use yazi to switch directories and bind it to ctrl-o +function y() { + local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd + yazi "$@" --cwd-file="$tmp" + if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then + builtin cd -- "$cwd" + fi + rm -f -- "$tmp" > /dev/null +} + +bindkey -s '^o' '^uy\n' + +bindkey -s '^a' '^ubc -lq\n' + +bindkey -s '^f' '^ucd "$(dirname "$(fzf)")"\n' + +bindkey '^[[P' delete-char + +# Edit line in vim with ctrl-e: +autoload edit-command-line; zle -N edit-command-line +bindkey '^e' edit-command-line +bindkey -M vicmd '^[[P' vi-delete-char +bindkey -M vicmd '^e' edit-command-line +bindkey -M visual '^[[P' vi-delete + +source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +# Load syntax highlighting; should be last. +source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null -- cgit v1.2.3