summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
committeranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
commitb7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch)
tree366a68240fbc9da6b1d567bd6c46d1350ad814de
Nixos
-rw-r--r--configuration.nix160
-rwxr-xr-xdunst/dunstrc486
-rwxr-xr-xfastfetch/config.jsonc37
-rwxr-xr-xfastfetch/trueimage.jpgbin0 -> 20256 bytes
-rw-r--r--flake.lock145
-rw-r--r--flake.nix55
-rw-r--r--flameshot/flameshot.ini3
-rwxr-xr-xfoot/foot.ini13
-rw-r--r--hardware-configuration.nix31
-rwxr-xr-xhome.nix112
-rwxr-xr-xhypr/hypridle.conf16
-rwxr-xr-xhypr/hyprland.conf220
-rwxr-xr-xhypr/hyprlock.conf50
-rwxr-xr-xhypr/hyprpaper.conf2
-rwxr-xr-xhypr/monitors.conf5
-rwxr-xr-xhypr/screenshotwayland.sh21
-rwxr-xr-xmango/autostart.sh10
-rwxr-xr-xmango/config.conf276
-rwxr-xr-xmango/walls/wallpaper.jpgbin0 -> 122628 bytes
-rwxr-xr-xmango/waybar/config.jsonc96
-rwxr-xr-xmango/waybar/mediaplayer.py195
-rwxr-xr-xmango/waybar/style.css175
-rw-r--r--modules/android.nix51
-rw-r--r--modules/home-manager.nix12
-rw-r--r--modules/lsp.nix19
-rw-r--r--modules/mango.nix8
-rwxr-xr-xmutt/accounts/anand@heresanandp.in.muttrc19
-rwxr-xr-xmutt/muttrc5
-rwxr-xr-xniri/config.kdl276
-rwxr-xr-xniri/screenshotwayland.sh12
-rwxr-xr-xnvim/init.lua175
-rwxr-xr-xnvim/lsp/ada_ls.lua30
-rwxr-xr-xnvim/lsp/agda_ls.lua16
-rwxr-xr-xnvim/lsp/aiken.lua13
-rwxr-xr-xnvim/lsp/air.lua12
-rwxr-xr-xnvim/lsp/alloy_ls.lua28
-rwxr-xr-xnvim/lsp/anakin_language_server.lua69
-rwxr-xr-xnvim/lsp/angularls.lua84
-rwxr-xr-xnvim/lsp/ansiblels.lua36
-rwxr-xr-xnvim/lsp/antlersls.lua13
-rwxr-xr-xnvim/lsp/arduino_language_server.lua90
-rwxr-xr-xnvim/lsp/asm_lsp.lua13
-rwxr-xr-xnvim/lsp/ast_grep.lua37
-rwxr-xr-xnvim/lsp/astro.lua24
-rwxr-xr-xnvim/lsp/atlas.lua64
-rwxr-xr-xnvim/lsp/autohotkey_lsp.lua50
-rwxr-xr-xnvim/lsp/autotools_ls.lua23
-rwxr-xr-xnvim/lsp/awk_ls.lua13
-rwxr-xr-xnvim/lsp/azure_pipelines_ls.lua37
-rwxr-xr-xnvim/lsp/bacon_ls.lua45
-rwxr-xr-xnvim/lsp/ballerina.lua11
-rwxr-xr-xnvim/lsp/basedpyright.lua59
-rwxr-xr-xnvim/lsp/bashls.lua27
-rwxr-xr-xnvim/lsp/basics_ls.lua25
-rwxr-xr-xnvim/lsp/bazelrc_lsp.lua20
-rwxr-xr-xnvim/lsp/beancount.lua11
-rwxr-xr-xnvim/lsp/bicep.lua38
-rwxr-xr-xnvim/lsp/biome.lua46
-rwxr-xr-xnvim/lsp/bitbake_language_server.lua8
-rwxr-xr-xnvim/lsp/blueprint_ls.lua20
-rwxr-xr-xnvim/lsp/bqls.lua15
-rwxr-xr-xnvim/lsp/bright_script.lua13
-rwxr-xr-xnvim/lsp/bsl_ls.lua10
-rwxr-xr-xnvim/lsp/buck2.lua16
-rwxr-xr-xnvim/lsp/buddy_ls.lua11
-rwxr-xr-xnvim/lsp/buf_ls.lua12
-rwxr-xr-xnvim/lsp/bufls.lua15
-rwxr-xr-xnvim/lsp/bzl.lua13
-rwxr-xr-xnvim/lsp/c3_lsp.lua10
-rwxr-xr-xnvim/lsp/cairo_ls.lua18
-rwxr-xr-xnvim/lsp/ccls.lua52
-rwxr-xr-xnvim/lsp/cds_lsp.lua18
-rwxr-xr-xnvim/lsp/circom-lsp.lua10
-rwxr-xr-xnvim/lsp/clangd.lua102
-rwxr-xr-xnvim/lsp/clarinet.lua9
-rwxr-xr-xnvim/lsp/clojure_lsp.lua10
-rwxr-xr-xnvim/lsp/cmake.lua13
-rwxr-xr-xnvim/lsp/cobol_ls.lua8
-rwxr-xr-xnvim/lsp/codebook.lua32
-rwxr-xr-xnvim/lsp/coffeesense.lua14
-rwxr-xr-xnvim/lsp/contextive.lua15
-rwxr-xr-xnvim/lsp/coq_lsp.lua8
-rwxr-xr-xnvim/lsp/crystalline.lua10
-rwxr-xr-xnvim/lsp/csharp_ls.lua23
-rwxr-xr-xnvim/lsp/cspell_ls.lua22
-rwxr-xr-xnvim/lsp/css_variables.lua37
-rwxr-xr-xnvim/lsp/cssls.lua32
-rwxr-xr-xnvim/lsp/cssmodules_ls.lua15
-rwxr-xr-xnvim/lsp/cucumber_language_server.lua17
-rwxr-xr-xnvim/lsp/cue.lua10
-rwxr-xr-xnvim/lsp/custom_elements_ls.lua30
-rwxr-xr-xnvim/lsp/cypher_ls.lua16
-rwxr-xr-xnvim/lsp/daedalus_ls.lua26
-rwxr-xr-xnvim/lsp/dafny.lua13
-rwxr-xr-xnvim/lsp/dagger.lua10
-rwxr-xr-xnvim/lsp/dartls.lua23
-rwxr-xr-xnvim/lsp/dcmls.lua10
-rwxr-xr-xnvim/lsp/debputy.lua10
-rwxr-xr-xnvim/lsp/denols.lua110
-rwxr-xr-xnvim/lsp/dhall_lsp_server.lua17
-rwxr-xr-xnvim/lsp/diagnosticls.lua12
-rwxr-xr-xnvim/lsp/digestif.lua14
-rwxr-xr-xnvim/lsp/djlsp.lua12
-rwxr-xr-xnvim/lsp/docker_compose_language_service.lua18
-rwxr-xr-xnvim/lsp/docker_language_server.lua23
-rwxr-xr-xnvim/lsp/dockerls.lua28
-rwxr-xr-xnvim/lsp/dolmenls.lua13
-rwxr-xr-xnvim/lsp/dotls.lua13
-rwxr-xr-xnvim/lsp/dprint.lua24
-rwxr-xr-xnvim/lsp/ds_pinyin_lsp.lua66
-rwxr-xr-xnvim/lsp/dts_lsp.lua21
-rwxr-xr-xnvim/lsp/earthlyls.lua11
-rwxr-xr-xnvim/lsp/ecsact.lua13
-rwxr-xr-xnvim/lsp/efm.lua24
-rwxr-xr-xnvim/lsp/elixirls.lua38
-rwxr-xr-xnvim/lsp/elmls.lua34
-rwxr-xr-xnvim/lsp/elp.lua11
-rwxr-xr-xnvim/lsp/ember.lua14
-rwxr-xr-xnvim/lsp/emmet_language_server.lua29
-rwxr-xr-xnvim/lsp/emmet_ls.lua29
-rwxr-xr-xnvim/lsp/emmylua_ls.lua23
-rwxr-xr-xnvim/lsp/erg_language_server.lua18
-rwxr-xr-xnvim/lsp/erlangls.lua19
-rwxr-xr-xnvim/lsp/esbonio.lua49
-rwxr-xr-xnvim/lsp/eslint.lua183
-rwxr-xr-xnvim/lsp/facility_language_server.lua10
-rwxr-xr-xnvim/lsp/fennel_language_server.lua11
-rwxr-xr-xnvim/lsp/fennel_ls.lua25
-rwxr-xr-xnvim/lsp/fish_lsp.lua15
-rwxr-xr-xnvim/lsp/flow.lua18
-rwxr-xr-xnvim/lsp/flux_lsp.lua12
-rwxr-xr-xnvim/lsp/foam_ls.lua21
-rwxr-xr-xnvim/lsp/fortls.lua25
-rwxr-xr-xnvim/lsp/fsautocomplete.lua53
-rwxr-xr-xnvim/lsp/fsharp_language_server.lua29
-rwxr-xr-xnvim/lsp/fstar.lua10
-rwxr-xr-xnvim/lsp/futhark_lsp.lua15
-rwxr-xr-xnvim/lsp/gdscript.lua14
-rwxr-xr-xnvim/lsp/gdshader_lsp.lua10
-rwxr-xr-xnvim/lsp/gh_actions_ls.lua40
-rwxr-xr-xnvim/lsp/ghcide.lua11
-rwxr-xr-xnvim/lsp/ghdl_ls.lua13
-rwxr-xr-xnvim/lsp/ginko_ls.lua15
-rwxr-xr-xnvim/lsp/gitlab_ci_ls.lua25
-rwxr-xr-xnvim/lsp/glasgow.lua28
-rwxr-xr-xnvim/lsp/gleam.lua12
-rwxr-xr-xnvim/lsp/glint.lua53
-rwxr-xr-xnvim/lsp/glsl_analyzer.lua11
-rwxr-xr-xnvim/lsp/glslls.lua21
-rwxr-xr-xnvim/lsp/gnls.lua19
-rwxr-xr-xnvim/lsp/golangci_lint_ls.lua48
-rwxr-xr-xnvim/lsp/gopls.lua98
-rwxr-xr-xnvim/lsp/gradle_ls.lua27
-rwxr-xr-xnvim/lsp/grammarly.lua24
-rwxr-xr-xnvim/lsp/graphql.lua22
-rwxr-xr-xnvim/lsp/groovyls.lua28
-rwxr-xr-xnvim/lsp/guile_ls.lua19
-rwxr-xr-xnvim/lsp/harper_ls.lua48
-rwxr-xr-xnvim/lsp/hdl_checker.lua10
-rwxr-xr-xnvim/lsp/helm_ls.lua23
-rwxr-xr-xnvim/lsp/herb_ls.lua27
-rwxr-xr-xnvim/lsp/hhvm.lua12
-rwxr-xr-xnvim/lsp/hie.lua23
-rwxr-xr-xnvim/lsp/hlasm.lua10
-rwxr-xr-xnvim/lsp/hls.lua30
-rwxr-xr-xnvim/lsp/hoon_ls.lua15
-rwxr-xr-xnvim/lsp/html.lua34
-rwxr-xr-xnvim/lsp/htmx.lua62
-rwxr-xr-xnvim/lsp/hydra_lsp.lua10
-rwxr-xr-xnvim/lsp/hyprls.lua13
-rwxr-xr-xnvim/lsp/idris2_lsp.lua41
-rwxr-xr-xnvim/lsp/intelephense.lua32
-rwxr-xr-xnvim/lsp/janet_lsp.lua13
-rwxr-xr-xnvim/lsp/java_language_server.lua12
-rwxr-xr-xnvim/lsp/jdtls.lua146
-rwxr-xr-xnvim/lsp/jedi_language_server.lua17
-rwxr-xr-xnvim/lsp/jinja_lsp.lua21
-rwxr-xr-xnvim/lsp/jqls.lua22
-rwxr-xr-xnvim/lsp/jsonls.lua30
-rwxr-xr-xnvim/lsp/jsonnet_ls.lua18
-rwxr-xr-xnvim/lsp/julials.lua130
-rwxr-xr-xnvim/lsp/just.lua10
-rwxr-xr-xnvim/lsp/kcl.lua11
-rwxr-xr-xnvim/lsp/koka.lua9
-rwxr-xr-xnvim/lsp/kotlin_language_server.lua41
-rwxr-xr-xnvim/lsp/kotlin_lsp.lua21
-rwxr-xr-xnvim/lsp/kulala_ls.lua10
-rwxr-xr-xnvim/lsp/laravel_ls.lua13
-rwxr-xr-xnvim/lsp/lean3ls.lua39
-rwxr-xr-xnvim/lsp/lelwel_ls.lua15
-rwxr-xr-xnvim/lsp/lemminx.lua12
-rwxr-xr-xnvim/lsp/lexical.lua14
-rwxr-xr-xnvim/lsp/lsp_ai.lua22
-rwxr-xr-xnvim/lsp/ltex.lua84
-rwxr-xr-xnvim/lsp/ltex_plus.lua88
-rwxr-xr-xnvim/lsp/lua_ls.lua90
-rwxr-xr-xnvim/lsp/luau_lsp.lua18
-rwxr-xr-xnvim/lsp/lwc_ls.lua28
-rwxr-xr-xnvim/lsp/m68k.lua22
-rwxr-xr-xnvim/lsp/markdown_oxide.lua32
-rwxr-xr-xnvim/lsp/marko-js.lua15
-rwxr-xr-xnvim/lsp/marksman.lua18
-rwxr-xr-xnvim/lsp/matlab_ls.lua32
-rwxr-xr-xnvim/lsp/mdx_analyzer.lua21
-rwxr-xr-xnvim/lsp/mesonlsp.lua37
-rwxr-xr-xnvim/lsp/metals.lua30
-rwxr-xr-xnvim/lsp/millet.lua17
-rwxr-xr-xnvim/lsp/mint.lua11
-rwxr-xr-xnvim/lsp/mlir_lsp_server.lua12
-rwxr-xr-xnvim/lsp/mlir_pdll_lsp_server.lua12
-rwxr-xr-xnvim/lsp/mm0_ls.lua13
-rwxr-xr-xnvim/lsp/mojo.lua12
-rwxr-xr-xnvim/lsp/motoko_lsp.lua13
-rwxr-xr-xnvim/lsp/move_analyzer.lua18
-rwxr-xr-xnvim/lsp/msbuild_project_tools_server.lua46
-rwxr-xr-xnvim/lsp/muon.lua23
-rwxr-xr-xnvim/lsp/mutt_ls.lua15
-rwxr-xr-xnvim/lsp/nelua_lsp.lua29
-rwxr-xr-xnvim/lsp/neocmake.lua22
-rwxr-xr-xnvim/lsp/nextflow_ls.lua36
-rwxr-xr-xnvim/lsp/nextls.lua9
-rwxr-xr-xnvim/lsp/nginx_language_server.lua14
-rwxr-xr-xnvim/lsp/nickel_ls.lua30
-rwxr-xr-xnvim/lsp/nil_ls.lua15
-rwxr-xr-xnvim/lsp/nim_langserver.lua22
-rwxr-xr-xnvim/lsp/nimls.lua22
-rwxr-xr-xnvim/lsp/nixd.lua13
-rwxr-xr-xnvim/lsp/nomad_lsp.lua33
-rwxr-xr-xnvim/lsp/ntt.lua19
-rwxr-xr-xnvim/lsp/nushell.lua12
-rwxr-xr-xnvim/lsp/nxls.lua15
-rwxr-xr-xnvim/lsp/ocamlls.lua19
-rwxr-xr-xnvim/lsp/ocamllsp.lua35
-rwxr-xr-xnvim/lsp/ols.lua16
-rwxr-xr-xnvim/lsp/omnisharp.lua91
-rwxr-xr-xnvim/lsp/opencl_ls.lua12
-rwxr-xr-xnvim/lsp/openscad_ls.lua25
-rwxr-xr-xnvim/lsp/openscad_lsp.lua15
-rwxr-xr-xnvim/lsp/oxlint.lua30
-rwxr-xr-xnvim/lsp/pact_ls.lua10
-rwxr-xr-xnvim/lsp/pasls.lua27
-rwxr-xr-xnvim/lsp/pbls.lua17
-rwxr-xr-xnvim/lsp/perlls.lua28
-rwxr-xr-xnvim/lsp/perlnavigator.lua26
-rwxr-xr-xnvim/lsp/perlpls.lua19
-rwxr-xr-xnvim/lsp/pest_ls.lua10
-rwxr-xr-xnvim/lsp/phan.lua31
-rwxr-xr-xnvim/lsp/phpactor.lua12
-rwxr-xr-xnvim/lsp/pico8_ls.lua17
-rwxr-xr-xnvim/lsp/please.lua12
-rwxr-xr-xnvim/lsp/pli.lua10
-rwxr-xr-xnvim/lsp/poryscript_pls.lua10
-rwxr-xr-xnvim/lsp/postgres_lsp.lua12
-rwxr-xr-xnvim/lsp/powershell_es.lua55
-rwxr-xr-xnvim/lsp/prismals.lua18
-rwxr-xr-xnvim/lsp/prolog_ls.lua20
-rwxr-xr-xnvim/lsp/prosemd_lsp.lua12
-rwxr-xr-xnvim/lsp/protols.lua15
-rwxr-xr-xnvim/lsp/psalm.lua13
-rwxr-xr-xnvim/lsp/pug.lua12
-rwxr-xr-xnvim/lsp/puppet.lua26
-rwxr-xr-xnvim/lsp/purescriptls.lua13
-rwxr-xr-xnvim/lsp/pylsp.lua39
-rwxr-xr-xnvim/lsp/pylyzer.lua33
-rwxr-xr-xnvim/lsp/pyre.lua15
-rwxr-xr-xnvim/lsp/pyrefly.lua25
-rwxr-xr-xnvim/lsp/pyright.lua58
-rwxr-xr-xnvim/lsp/qmlls.lua12
-rwxr-xr-xnvim/lsp/quick_lint_js.lua12
-rwxr-xr-xnvim/lsp/r_language_server.lua18
-rwxr-xr-xnvim/lsp/racket_langserver.lua14
-rwxr-xr-xnvim/lsp/raku_navigator.lua26
-rwxr-xr-xnvim/lsp/reason_ls.lua10
-rwxr-xr-xnvim/lsp/regal.lua21
-rwxr-xr-xnvim/lsp/regols.lua21
-rwxr-xr-xnvim/lsp/remark_ls.lua44
-rwxr-xr-xnvim/lsp/rescriptls.lua56
-rwxr-xr-xnvim/lsp/rls.lua33
-rwxr-xr-xnvim/lsp/rnix.lua18
-rwxr-xr-xnvim/lsp/robotcode.lua13
-rwxr-xr-xnvim/lsp/robotframework_ls.lua10
-rwxr-xr-xnvim/lsp/roc_ls.lua11
-rwxr-xr-xnvim/lsp/rome.lua23
-rwxr-xr-xnvim/lsp/roslyn_ls.lua189
-rwxr-xr-xnvim/lsp/rpmspec.lua17
-rwxr-xr-xnvim/lsp/rubocop.lua8
-rwxr-xr-xnvim/lsp/ruby_lsp.lua21
-rwxr-xr-xnvim/lsp/ruff.lua33
-rwxr-xr-xnvim/lsp/ruff_lsp.lua28
-rwxr-xr-xnvim/lsp/rune_languageserver.lua11
-rwxr-xr-xnvim/lsp/rust_analyzer.lua119
-rwxr-xr-xnvim/lsp/salt_ls.lua14
-rwxr-xr-xnvim/lsp/scheme_langserver.lua16
-rwxr-xr-xnvim/lsp/scry.lua10
-rwxr-xr-xnvim/lsp/selene3p_ls.lua10
-rwxr-xr-xnvim/lsp/serve_d.lua11
-rwxr-xr-xnvim/lsp/shopify_theme_ls.lua24
-rwxr-xr-xnvim/lsp/sixtyfps.lua23
-rwxr-xr-xnvim/lsp/slangd.lua36
-rwxr-xr-xnvim/lsp/slint_lsp.lua22
-rwxr-xr-xnvim/lsp/smarty_ls.lua35
-rwxr-xr-xnvim/lsp/smithy_ls.lua43
-rwxr-xr-xnvim/lsp/snakeskin_ls.lua13
-rwxr-xr-xnvim/lsp/snyk_ls.lua27
-rwxr-xr-xnvim/lsp/solang.lua17
-rwxr-xr-xnvim/lsp/solargraph.lua22
-rwxr-xr-xnvim/lsp/solc.lua16
-rwxr-xr-xnvim/lsp/solidity.lua40
-rwxr-xr-xnvim/lsp/solidity_ls.lua26
-rwxr-xr-xnvim/lsp/solidity_ls_nomicfoundation.lua26
-rwxr-xr-xnvim/lsp/somesass_ls.lua28
-rwxr-xr-xnvim/lsp/sorbet.lua17
-rwxr-xr-xnvim/lsp/sourcekit.lua39
-rwxr-xr-xnvim/lsp/spectral.lua21
-rwxr-xr-xnvim/lsp/spyglassmc_language_server.lua22
-rwxr-xr-xnvim/lsp/sqlls.lua12
-rwxr-xr-xnvim/lsp/sqls.lua17
-rwxr-xr-xnvim/lsp/sqruff.lua11
-rwxr-xr-xnvim/lsp/standardrb.lua10
-rwxr-xr-xnvim/lsp/starlark_rust.lua14
-rwxr-xr-xnvim/lsp/starpls.lua10
-rwxr-xr-xnvim/lsp/statix.lua10
-rwxr-xr-xnvim/lsp/steep.lua12
-rwxr-xr-xnvim/lsp/stimulus_ls.lua20
-rwxr-xr-xnvim/lsp/stylelint_lsp.lua54
-rwxr-xr-xnvim/lsp/stylua3p_ls.lua10
-rwxr-xr-xnvim/lsp/superhtml.lua22
-rwxr-xr-xnvim/lsp/svelte.lua41
-rwxr-xr-xnvim/lsp/svlangserver.lua45
-rwxr-xr-xnvim/lsp/svls.lua15
-rwxr-xr-xnvim/lsp/swift_mesonls.lua10
-rwxr-xr-xnvim/lsp/syntax_tree.lua19
-rwxr-xr-xnvim/lsp/systemd_ls.lua15
-rwxr-xr-xnvim/lsp/tabby_ml.lua16
-rwxr-xr-xnvim/lsp/tailwindcss.lua134
-rwxr-xr-xnvim/lsp/taplo.lua15
-rwxr-xr-xnvim/lsp/tblgen_lsp_server.lua24
-rwxr-xr-xnvim/lsp/teal_ls.lua22
-rwxr-xr-xnvim/lsp/templ.lua10
-rwxr-xr-xnvim/lsp/termux_language_server.lua10
-rwxr-xr-xnvim/lsp/terraform_lsp.lua34
-rwxr-xr-xnvim/lsp/terraformls.lua38
-rwxr-xr-xnvim/lsp/texlab.lua221
-rwxr-xr-xnvim/lsp/textlsp.lua43
-rwxr-xr-xnvim/lsp/tflint.lua11
-rwxr-xr-xnvim/lsp/theme_check.lua23
-rwxr-xr-xnvim/lsp/thriftls.lua10
-rwxr-xr-xnvim/lsp/tilt_ls.lua16
-rwxr-xr-xnvim/lsp/tinymist.lua75
-rwxr-xr-xnvim/lsp/tofu_ls.lua9
-rwxr-xr-xnvim/lsp/tombi.lua11
-rwxr-xr-xnvim/lsp/ts_ls.lua104
-rwxr-xr-xnvim/lsp/ts_query_ls.lua39
-rwxr-xr-xnvim/lsp/tsp_server.lua15
-rwxr-xr-xnvim/lsp/ttags.lua8
-rwxr-xr-xnvim/lsp/turbo_ls.lua20
-rwxr-xr-xnvim/lsp/turtle_ls.lua38
-rwxr-xr-xnvim/lsp/tvm_ffi_navigator.lua13
-rwxr-xr-xnvim/lsp/twiggy_language_server.lua13
-rwxr-xr-xnvim/lsp/ty.lua12
-rwxr-xr-xnvim/lsp/typeprof.lua10
-rwxr-xr-xnvim/lsp/typos_lsp.lua13
-rwxr-xr-xnvim/lsp/typst_lsp.lua10
-rwxr-xr-xnvim/lsp/uiua.lua12
-rwxr-xr-xnvim/lsp/ungrammar_languageserver.lua24
-rwxr-xr-xnvim/lsp/unison.lua15
-rwxr-xr-xnvim/lsp/unocss.lua39
-rwxr-xr-xnvim/lsp/uvls.lua21
-rwxr-xr-xnvim/lsp/v_analyzer.lua12
-rwxr-xr-xnvim/lsp/vacuum.lua21
-rwxr-xr-xnvim/lsp/vala_ls.lua34
-rwxr-xr-xnvim/lsp/vale_ls.lua10
-rwxr-xr-xnvim/lsp/vectorcode_server.lua9
-rwxr-xr-xnvim/lsp/verible.lua15
-rwxr-xr-xnvim/lsp/veridian.lua22
-rwxr-xr-xnvim/lsp/veryl_ls.lua15
-rwxr-xr-xnvim/lsp/vespa_ls.lua37
-rwxr-xr-xnvim/lsp/vhdl_ls.lua36
-rwxr-xr-xnvim/lsp/vimls.lua27
-rwxr-xr-xnvim/lsp/visualforce_ls.lua29
-rwxr-xr-xnvim/lsp/vls.lua12
-rwxr-xr-xnvim/lsp/volar.lua8
-rwxr-xr-xnvim/lsp/vscoqtop.lua8
-rwxr-xr-xnvim/lsp/vtsls.lua72
-rwxr-xr-xnvim/lsp/vue_ls.lua50
-rwxr-xr-xnvim/lsp/wasm_language_tools.lua10
-rwxr-xr-xnvim/lsp/wgsl_analyzer.lua14
-rwxr-xr-xnvim/lsp/yamlls.lua69
-rwxr-xr-xnvim/lsp/yang_lsp.lua10
-rwxr-xr-xnvim/lsp/yls.lua14
-rwxr-xr-xnvim/lsp/ziggy.lua10
-rwxr-xr-xnvim/lsp/ziggy_schema.lua10
-rwxr-xr-xnvim/lsp/zk.lua68
-rwxr-xr-xnvim/lsp/zls.lua11
-rwxr-xr-xpolybar/config.ini247
-rwxr-xr-xpolybar/launcher.sh9
-rwxr-xr-xpolybar/playerctl.sh30
-rwxr-xr-xqutebrowser/autoconfig.yml31
-rwxr-xr-xqutebrowser/bookmarks/urls0
-rwxr-xr-xqutebrowser/config.py37
-rwxr-xr-xqutebrowser/qsettings/QtProject.conf8
-rwxr-xr-xqutebrowser/quickmarks9
-rwxr-xr-xrmpc/README.md102
-rwxr-xr-xrmpc/assets/adding_to_queue.gifbin0 -> 811296 bytes
-rwxr-xr-xrmpc/assets/lyrics.pngbin0 -> 950669 bytes
-rwxr-xr-xrmpc/assets/rmpc_screenshot.pngbin0 -> 2027249 bytes
-rwxr-xr-xrmpc/assets/search_demo.gifbin0 -> 1202005 bytes
-rwxr-xr-xrmpc/config.ron138
-rwxr-xr-xrmpc/genre_counts.txt152
-rwxr-xr-xrmpc/increment_play_count8
-rwxr-xr-xrmpc/inspect_log.sh26
-rwxr-xr-xrmpc/notify26
-rwxr-xr-xrmpc/themes/catppuccin_mocha.ron153
-rwxr-xr-xrmpc/utils/fetch_album_lyrics.sh109
-rwxr-xr-xrmpc/utils/tag_genres.sh38
-rwxr-xr-xrmpc/utils/tag_music.sh38
-rwxr-xr-xshell/Xresources21
-rwxr-xr-xshell/bash_profile7
-rwxr-xr-xshell/bashrc122
-rwxr-xr-xshell/profile10
-rwxr-xr-xshell/starship.toml190
-rwxr-xr-xshell/zshrc81
-rwxr-xr-xspectrwm/background.sh1
-rwxr-xr-xspectrwm/baraction.sh94
-rwxr-xr-xspectrwm/screenshot.sh18
-rwxr-xr-xspectrwm/spectrwm.conf275
-rwxr-xr-xtmux/tmux.conf97
-rwxr-xr-xwalls/lock.jpegbin0 -> 465619 bytes
-rw-r--r--walls/wallpaper.pngbin0 -> 110492 bytes
-rwxr-xr-xwalls/weird.jpgbin0 -> 135736 bytes
-rwxr-xr-xwaybar/config.jsonc141
-rwxr-xr-xwaybar/style.css87
-rwxr-xr-xwezterm/wezterm.lua15
433 files changed, 14629 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix
new file mode 100644
index 0000000..c838db0
--- /dev/null
+++ b/configuration.nix
@@ -0,0 +1,160 @@
+{ config, lib, pkgs, ... }:
+
+{
+ imports =
+ [
+ ./hardware-configuration.nix
+ ];
+
+ boot.loader.systemd-boot.enable = true;
+ boot.loader.systemd-boot.configurationLimit = 5;
+ boot.loader.efi.canTouchEfiVariables = true;
+
+ boot.kernelPackages = pkgs.linuxPackages_latest;
+
+ networking.hostName = "anand-mini";
+ networking.extraHosts = ''
+ 192.168.1.26 homelab
+ '';
+
+ networking.networkmanager.enable = true;
+
+ time.timeZone = "Asia/Kolkata";
+
+ nixpkgs.config.allowUnfree = true;
+
+ services.displayManager.ly = {
+ enable = true;
+ settings = {
+ clock = "%c";
+ bigclock = true;
+ };
+ };
+
+ services.printing.enable = true;
+
+ services.pipewire = {
+ enable = true;
+ pulse.enable = true;
+ };
+
+ services.libinput.enable = true;
+
+ users.users.anand = {
+ isNormalUser = true;
+ extraGroups = [ "wheel" "network" "input" "uinput" "video" "adbusers" "libvirtd" "kvm" "docker" ];
+ packages = with pkgs; [
+ tree
+ ];
+ };
+
+ environment.systemPackages = with pkgs; [
+ vim
+ neovim
+ wget
+ git
+ kitty
+ tmux
+ ly
+ pavucontrol
+ waybar
+ polybar
+ pass
+ rofi
+ rofimoji
+ wezterm
+ swww
+ networkmanagerapplet
+ zoxide
+ xfce.thunar
+ xfce.thunar-volman
+ xfce.thunar-archive-plugin
+ xfce.thunar-media-tags-plugin
+ javaPackages.compiler.temurin-bin.jdk-25
+ python315
+ rustup
+ brillo
+ gnome.gvfs
+ wlr-randr
+ bat
+ batsignal
+ vlc
+ zathura
+ localsend
+ docker
+ podman
+ kdePackages.kleopatra
+ gimp3
+ kdePackages.ark
+ spotifyd
+ ferdium
+ spotify-player
+ wl-clipboard
+ ];
+
+ fonts.packages = with pkgs; [
+ nerd-fonts.jetbrains-mono
+ ];
+
+ fonts.fontconfig = {
+ enable = true;
+ defaultFonts = {
+ monospace = ["JetBrainsMono Nerd Font"];
+ };
+ };
+
+ nix.settings.experimental-features = ["nix-command" "flakes"];
+
+ virtualisation.libvirtd.enable = true;
+ programs.virt-manager.enable = true;
+
+ programs.gnupg.agent = {
+ enable = true;
+ enableSSHSupport = true;
+ };
+
+ programs.hyprland = {
+ enable = true;
+ xwayland.enable = true;
+ };
+
+ programs.firefox.enable = true;
+
+ programs.auto-cpufreq.enable = true;
+ programs.auto-cpufreq.settings = {
+ charger = {
+ governer = "performance";
+ turbo = "auto";
+ };
+ battery = {
+ governer = "powersave";
+ turbo = "auto";
+ };
+ };
+
+ services.openssh.enable = true;
+
+ services.xserver.xkb.layout = "us";
+ services.xserver.xkb.options = "caps:escape";
+
+ # This option defines the first version of NixOS you have installed on this particular machine,
+ # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
+ #
+ # Most users should NEVER change this value after the initial install, for any reason,
+ # even if you've upgraded your system to a new NixOS release.
+ #
+ # This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
+ # so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
+ # to actually do that.
+ #
+ # This value being lower than the current NixOS release does NOT mean your system is
+ # out of date, out of support, or vulnerable.
+ #
+ # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
+ # and migrated your data accordingly.
+ #
+ # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
+ system.stateVersion = "25.11"; # Did you read the comment?
+
+}
+
diff --git a/dunst/dunstrc b/dunst/dunstrc
new file mode 100755
index 0000000..1c72936
--- /dev/null
+++ b/dunst/dunstrc
@@ -0,0 +1,486 @@
+# See dunst(5) for all configuration options
+
+[global]
+ ### Display ###
+
+ # Which monitor should the notifications be displayed on.
+ monitor = 0
+
+ # Display notification on focused monitor. Possible modes are:
+ # mouse: follow mouse pointer
+ # keyboard: follow window with keyboard focus
+ # none: don't follow anything
+ #
+ # "keyboard" needs a window manager that exports the
+ # _NET_ACTIVE_WINDOW property.
+ # This should be the case for almost all modern window managers.
+ #
+ # If this option is set to mouse or keyboard, the monitor option
+ # will be ignored.
+ follow = none
+
+ ### Geometry ###
+
+ # dynamic width from 0 to 300
+ # width = (0, 300)
+ # constant width of 300
+ width = (200, 400)
+
+ # The maximum height of a single notification, excluding the frame.
+ height = 300
+
+ # Position the notification in the top right corner
+ origin = top-right
+
+ # Offset from the origin
+ offset = 0x25
+
+ # Scale factor. It is auto-detected if value is 0.
+ scale = 0
+
+ # Maximum number of notification (0 means no limit)
+ notification_limit = 20
+
+ ### Progress bar ###
+
+ # Turn on the progress bar. It appears when a progress hint is passed with
+ # for example dunstify -h int:value:12
+ progress_bar = true
+
+ # Set the progress bar height. This includes the frame, so make sure
+ # it's at least twice as big as the frame width.
+ progress_bar_height = 10
+
+ # Set the frame width of the progress bar
+ progress_bar_frame_width = 1
+
+ # Set the minimum width for the progress bar
+ progress_bar_min_width = 150
+
+ # Set the maximum width for the progress bar
+ progress_bar_max_width = 300
+
+ # Corner radius for the progress bar. 0 disables rounded corners.
+ progress_bar_corner_radius = 0
+
+ # Define which corners to round when drawing the progress bar. If progress_bar_corner_radius
+ # is set to 0 this option will be ignored.
+ progress_bar_corners = all
+
+ # Corner radius for the icon image.
+ icon_corner_radius = 0
+
+ # Define which corners to round when drawing the icon image. If icon_corner_radius
+ # is set to 0 this option will be ignored.
+ icon_corners = all
+
+ # Show how many messages are currently hidden (because of
+ # notification_limit).
+ indicate_hidden = yes
+
+ # The transparency of the window. Range: [0; 100].
+ # This option will only work if a compositing window manager is
+ # present (e.g. xcompmgr, compiz, etc.). (X11 only)
+ transparency = 0
+
+ # Draw a line of "separator_height" pixel height between two
+ # notifications.
+ # Set to 0 to disable.
+ # If gap_size is greater than 0, this setting will be ignored.
+ separator_height = 2
+
+ # Padding between text and separator.
+ padding = 12
+
+ # Horizontal padding.
+ horizontal_padding = 18
+
+ # Padding between text and icon.
+ text_icon_padding = 20
+
+ # Defines width in pixels of frame around the notification window.
+ # Set to 0 to disable.
+ frame_width = 3
+
+ # Defines color of the frame around the notification window.
+ frame_color = "#aaaaaa"
+
+ # Size of gap to display between notifications - requires a compositor.
+ # If value is greater than 0, separator_height will be ignored and a border
+ # of size frame_width will be drawn around each notification instead.
+ # Click events on gaps do not currently propagate to applications below.
+ gap_size = 0
+
+ # Define a color for the separator.
+ # possible values are:
+ # * auto: dunst tries to find a color fitting to the background;
+ # * foreground: use the same color as the foreground;
+ # * frame: use the same color as the frame;
+ # * anything else will be interpreted as a X color.
+ separator_color = frame
+
+ # Sort type.
+ # possible values are:
+ # * id: sort by id
+ # * urgency_ascending: sort by urgency (low then normal then critical)
+ # * urgency_descending: sort by urgency (critical then normal then low)
+ # * update: sort by update (most recent always at the top)
+ sort = yes
+
+ # Don't remove messages, if the user is idle (no mouse or keyboard input)
+ # for longer than idle_threshold seconds.
+ # Set to 0 to disable.
+ # A client can set the 'transient' hint to bypass this. See the rules
+ # section for how to disable this if necessary
+ # idle_threshold = 120
+
+ ### Text ###
+
+ font = IntoneMono NF 10
+
+ # The spacing between lines. If the height is smaller than the
+ # font height, it will get raised to the font height.
+ line_height = 0
+
+ # Possible values are:
+ # full: Allow a small subset of html markup in notifications:
+ # <b>bold</b>
+ # <i>italic</i>
+ # <s>strikethrough</s>
+ # <u>underline</u>
+ #
+ # For a complete reference see
+ # <https://docs.gtk.org/Pango/pango_markup.html>.
+ #
+ # strip: This setting is provided for compatibility with some broken
+ # clients that send markup even though it's not enabled on the
+ # server. Dunst will try to strip the markup but the parsing is
+ # simplistic so using this option outside of matching rules for
+ # specific applications *IS GREATLY DISCOURAGED*.
+ #
+ # no: Disable markup parsing, incoming notifications will be treated as
+ # plain text. Dunst will not advertise that it has the body-markup
+ # capability if this is set as a global setting.
+ #
+ # It's important to note that markup inside the format option will be parsed
+ # regardless of what this is set to.
+ markup = full
+
+ # The format of the message. Possible variables are:
+ # %a appname
+ # %s summary
+ # %b body
+ # %i iconname (including its path)
+ # %I iconname (without its path)
+ # %p progress value if set ([ 0%] to [100%]) or nothing
+ # %n progress value if set without any extra characters
+ # %% Literal %
+ # Markup is allowed
+ format = "<b>%s</b>\n%b\n<i>%a</i>"
+
+ # Alignment of message text.
+ # Possible values are "left", "center" and "right".
+ alignment = left
+
+ # Vertical alignment of message text and icon.
+ # Possible values are "top", "center" and "bottom".
+ vertical_alignment = center
+
+ # Show age of message if message is older than show_age_threshold
+ # seconds.
+ # Set to -1 to disable.
+ show_age_threshold = 60
+
+ # Specify where to make an ellipsis in long lines.
+ # Possible values are "start", "middle" and "end".
+ ellipsize = middle
+
+ # Ignore newlines '\n' in notifications.
+ ignore_newline = no
+
+ # Stack together notifications with the same content
+ stack_duplicates = true
+
+ # Hide the count of stacked notifications with the same content
+ hide_duplicate_count = false
+
+ # Display indicators for URLs (U) and actions (A).
+ show_indicators = yes
+
+ ### Icons ###
+
+ # Recursive icon lookup. You can set a single theme, instead of having to
+ # define all lookup paths.
+ enable_recursive_icon_lookup = true
+
+ # Set icon theme (only used for recursive icon lookup)
+ icon_theme = Papirus, Adwaita
+ # You can also set multiple icon themes, with the leftmost one being used first.
+ # icon_theme = "Adwaita, breeze"
+
+ # Align icons left/right/top/off
+ icon_position = left
+
+ # Scale small icons up to this size, set to 0 to disable. Helpful
+ # for e.g. small files or high-dpi screens. In case of conflict,
+ # max_icon_size takes precedence over this.
+ min_icon_size = 32
+
+ # Scale larger icons down to this size, set to 0 to disable
+ max_icon_size = 128
+
+ # Paths to default icons (only necessary when not using recursive icon lookup)
+ icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
+
+ ### History ###
+
+ # Should a notification popped up from history be sticky or timeout
+ # as if it would normally do.
+ sticky_history = no
+
+ # Maximum amount of notifications kept in history
+ history_length = 20
+
+ ### Misc/Advanced ###
+
+ # dmenu path.
+ dmenu = /usr/bin/dmenu -p dunst:
+
+ # Browser for opening urls in context menu.
+ browser = /usr/bin/xdg-open
+
+ # Always run rule-defined scripts, even if the notification is suppressed
+ always_run_script = true
+
+ # Define the title of the windows spawned by dunst (X11 only)
+ title = Dunst
+
+ # Define the class of the windows spawned by dunst (X11 only)
+ class = Dunst
+
+ # Define the corner radius of the notification window
+ # in pixel size. If the radius is 0, you have no rounded
+ # corners.
+ # The radius will be automatically lowered if it exceeds half of the
+ # notification height to avoid clipping text and/or icons.
+ corner_radius = 0
+
+ # Define which corners to round when drawing the window. If the corner radius
+ # is set to 0 this option will be ignored.
+ #
+ # Comma-separated list of the corners. The accepted corner values are bottom-right,
+ # bottom-left, top-right, top-left, top, bottom, left, right or all.
+ corners = all
+
+ # Ignore the dbus closeNotification message.
+ # Useful to enforce the timeout set by dunst configuration. Without this
+ # parameter, an application may close the notification sent before the
+ # user defined timeout.
+ ignore_dbusclose = false
+
+ ### Wayland ###
+ # These settings are Wayland-specific. They have no effect when using X11
+
+ # Uncomment this if you want to let notifications appear under fullscreen
+ # applications (default: overlay)
+ # layer = top
+
+ # Set this to true to use X11 output on Wayland.
+ force_xwayland = false
+
+ ### Legacy
+
+ # Use the Xinerama extension instead of RandR for multi-monitor support.
+ # This setting is provided for compatibility with older nVidia drivers that
+ # do not support RandR and using it on systems that support RandR is highly
+ # discouraged.
+ #
+ # By enabling this setting dunst will not be able to detect when a monitor
+ # is connected or disconnected which might break follow mode if the screen
+ # layout changes.
+ force_xinerama = false
+
+ ### mouse
+
+ # Defines list of actions for each mouse event
+ # Possible values are:
+ # * none: Don't do anything.
+ # * do_action: Invoke the action determined by the action_name rule. If there is no
+ # such action, open the context menu.
+ # * open_url: If the notification has exactly one url, open it. If there are multiple
+ # ones, open the context menu.
+ # * close_current: Close current notification.
+ # * close_all: Close all notifications.
+ # * context: Open context menu for the notification.
+ # * context_all: Open context menu for all notifications.
+ # These values can be strung together for each mouse event, and
+ # will be executed in sequence.
+ mouse_left_click = close_current
+ mouse_middle_click = do_action, close_current
+ mouse_right_click = close_all
+
+# Experimental features that may or may not work correctly. Do not expect them
+# to have a consistent behaviour across releases.
+[experimental]
+ # Calculate the dpi to use on a per-monitor basis.
+ # If this setting is enabled the Xft.dpi value will be ignored and instead
+ # dunst will attempt to calculate an appropriate dpi value for each monitor
+ # using the resolution and physical size. This might be useful in setups
+ # where there are multiple screens with very different dpi values.
+ per_monitor_dpi = false
+
+
+[urgency_low]
+ # IMPORTANT: colors have to be defined in quotation marks.
+ # Otherwise the "#" and following would be interpreted as a comment.
+ background = "#222222"
+ foreground = "#888888"
+ timeout = 5
+ # Icon for notifications with low urgency, uncomment to enable
+ #default_icon = /path/to/icon
+
+[urgency_normal]
+ background = "#285577"
+ foreground = "#ffffff"
+ timeout = 5
+ override_pause_level = 30
+ # Icon for notifications with normal urgency, uncomment to enable
+ #default_icon = /path/to/icon
+
+[urgency_critical]
+ background = "#900000"
+ foreground = "#ffffff"
+ frame_color = "#ff0000"
+ timeout = 5
+ override_pause_level = 60
+ # Icon for notifications with critical urgency, uncomment to enable
+ #default_icon = /path/to/icon
+
+# Every section that isn't one of the above is interpreted as a rules to
+# override settings for certain messages.
+#
+# Messages can be matched by
+# appname (discouraged, see desktop_entry)
+# body
+# category
+# desktop_entry
+# icon
+# match_transient
+# msg_urgency
+# stack_tag
+# summary
+#
+# and you can override the
+# background
+# foreground
+# format
+# frame_color
+# fullscreen
+# new_icon
+# set_stack_tag
+# set_transient
+# set_category
+# timeout
+# urgency
+# icon_position
+# skip_display
+# history_ignore
+# action_name
+# word_wrap
+# ellipsize
+# alignment
+# hide_text
+# override_pause_level
+#
+# Shell-like globbing will get expanded.
+#
+# Instead of the appname filter, it's recommended to use the desktop_entry filter.
+# GLib based applications export their desktop-entry name. In comparison to the appname,
+# the desktop-entry won't get localized.
+#
+# You can also allow a notification to appear even when paused. Notification will appear whenever notification's override_pause_level >= dunst's paused level.
+# This can be used to set partial pause modes, where more urgent notifications get through, but less urgent stay paused. To do that, you can override the following in the rules:
+# override_pause_level = X
+
+# SCRIPTING
+# You can specify a script that gets run when the rule matches by
+# setting the "script" option.
+# The script will be called as follows:
+# script appname summary body icon urgency
+# where urgency can be "LOW", "NORMAL" or "CRITICAL".
+#
+# NOTE: It might be helpful to run dunst -print in a terminal in order
+# to find fitting options for rules.
+
+# Disable the transient hint so that idle_threshold cannot be bypassed from the
+# client
+#[transient_disable]
+# match_transient = yes
+# set_transient = no
+#
+# Make the handling of transient notifications more strict by making them not
+# be placed in history.
+#[transient_history_ignore]
+# match_transient = yes
+# history_ignore = yes
+
+# fullscreen values
+# show: show the notifications, regardless if there is a fullscreen window opened
+# delay: displays the new notification, if there is no fullscreen window active
+# If the notification is already drawn, it won't get undrawn.
+# pushback: same as delay, but when switching into fullscreen, the notification will get
+# withdrawn from screen again and will get delayed like a new notification
+#[fullscreen_delay_everything]
+# fullscreen = delay
+#[fullscreen_show_critical]
+# msg_urgency = critical
+# fullscreen = show
+
+#[espeak]
+# summary = "*"
+# script = dunst_espeak.sh
+
+#[script-test]
+# summary = "*script*"
+# script = dunst_test.sh
+
+#[ignore]
+# # This notification will not be displayed
+# summary = "foobar"
+# skip_display = true
+
+#[history-ignore]
+# # This notification will not be saved in history
+# summary = "foobar"
+# history_ignore = yes
+
+#[skip-display]
+# # This notification will not be displayed, but will be included in the history
+# summary = "foobar"
+# skip_display = yes
+
+#[signed_on]
+# appname = Pidgin
+# summary = "*signed on*"
+# urgency = low
+#
+#[signed_off]
+# appname = Pidgin
+# summary = *signed off*
+# urgency = low
+#
+#[says]
+# appname = Pidgin
+# summary = *says*
+# urgency = critical
+#
+#[twitter]
+# appname = Pidgin
+# summary = *twitter.com*
+# urgency = normal
+#
+#[stack-volumes]
+# appname = "some_volume_notifiers"
+# set_stack_tag = "volume"
+#
+# vim: ft=cfg
diff --git a/fastfetch/config.jsonc b/fastfetch/config.jsonc
new file mode 100755
index 0000000..854de4a
--- /dev/null
+++ b/fastfetch/config.jsonc
@@ -0,0 +1,37 @@
+{
+ "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
+ "logo": {
+ "source": ".config/fastfetch/trueimage.jpg"
+ },
+ "modules": [
+ "title",
+ "separator",
+ "os",
+ "host",
+ "kernel",
+ "uptime",
+ "packages",
+ // "shell",
+ // "display",
+ // "de",
+ "wm",
+ // "wmtheme",
+ // "theme",
+ // "icons",
+ // "font",
+ // "cursor",
+ // "terminal",
+ // "terminalfont",
+ "cpu",
+ "gpu",
+ "memory",
+ // "swap",
+ // "disk",
+ "localip",
+ "battery"
+ // "poweradapter",
+ // "locale",
+ // "break",
+ // "colors"
+ ]
+}
diff --git a/fastfetch/trueimage.jpg b/fastfetch/trueimage.jpg
new file mode 100755
index 0000000..28ef29e
--- /dev/null
+++ b/fastfetch/trueimage.jpg
Binary files differ
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..cffb528
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,145 @@
+{
+ "nodes": {
+ "auto-cpufreq": {
+ "inputs": {
+ "nixpkgs": [
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1765042799,
+ "narHash": "sha256-G7UJDUNcuHm1n2EuA+2iKPNISSWoUgqk85ktncJoelo=",
+ "owner": "AdnanHodzic",
+ "repo": "auto-cpufreq",
+ "rev": "2e5c725be0a7da2c749a345e09f3df3b9ef8c209",
+ "type": "github"
+ },
+ "original": {
+ "owner": "AdnanHodzic",
+ "repo": "auto-cpufreq",
+ "type": "github"
+ }
+ },
+ "flake-parts": {
+ "inputs": {
+ "nixpkgs-lib": "nixpkgs-lib"
+ },
+ "locked": {
+ "lastModified": 1749398372,
+ "narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=",
+ "owner": "hercules-ci",
+ "repo": "flake-parts",
+ "rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569",
+ "type": "github"
+ },
+ "original": {
+ "owner": "hercules-ci",
+ "repo": "flake-parts",
+ "type": "github"
+ }
+ },
+ "home-manager": {
+ "inputs": {
+ "nixpkgs": [
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1765682243,
+ "narHash": "sha256-yeCxFV/905Wr91yKt5zrVvK6O2CVXWRMSrxqlAZnLp0=",
+ "owner": "nix-community",
+ "repo": "home-manager",
+ "rev": "58bf3ecb2d0bba7bdf363fc8a6c4d49b4d509d03",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "home-manager",
+ "type": "github"
+ }
+ },
+ "mango": {
+ "inputs": {
+ "flake-parts": "flake-parts",
+ "nixpkgs": [
+ "nixpkgs"
+ ],
+ "scenefx": "scenefx"
+ },
+ "locked": {
+ "lastModified": 1765634050,
+ "narHash": "sha256-licqHOlNAeRSaFrs4LhNfMtZ+wbtGM7UkG9cfcKiw3g=",
+ "owner": "DreamMaoMao",
+ "repo": "mango",
+ "rev": "50b9de6f80d88d528d5afd1b47d82b1dbd98cce6",
+ "type": "github"
+ },
+ "original": {
+ "owner": "DreamMaoMao",
+ "repo": "mango",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1765472234,
+ "narHash": "sha256-9VvC20PJPsleGMewwcWYKGzDIyjckEz8uWmT0vCDYK0=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "2fbfb1d73d239d2402a8fe03963e37aab15abe8b",
+ "type": "github"
+ },
+ "original": {
+ "id": "nixpkgs",
+ "ref": "nixos-unstable",
+ "type": "indirect"
+ }
+ },
+ "nixpkgs-lib": {
+ "locked": {
+ "lastModified": 1748740939,
+ "narHash": "sha256-rQaysilft1aVMwF14xIdGS3sj1yHlI6oKQNBRTF40cc=",
+ "owner": "nix-community",
+ "repo": "nixpkgs.lib",
+ "rev": "656a64127e9d791a334452c6b6606d17539476e2",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "nixpkgs.lib",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "auto-cpufreq": "auto-cpufreq",
+ "home-manager": "home-manager",
+ "mango": "mango",
+ "nixpkgs": "nixpkgs"
+ }
+ },
+ "scenefx": {
+ "inputs": {
+ "nixpkgs": [
+ "mango",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1750785057,
+ "narHash": "sha256-tGX6j4W91rcb+glXJo43sjPI9zQvPotonknG1BdihR4=",
+ "owner": "wlrfx",
+ "repo": "scenefx",
+ "rev": "3a6cfb12e4ba97b43326357d14f7b3e40897adfc",
+ "type": "github"
+ },
+ "original": {
+ "owner": "wlrfx",
+ "repo": "scenefx",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..eef56bf
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,55 @@
+{
+ description = "Anand Nix";
+
+ inputs = {
+ nixpkgs.url = "nixpkgs/nixos-unstable";
+
+ home-manager = {
+ url = "github:nix-community/home-manager";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+
+ mango = {
+ url = "github:DreamMaoMao/mango";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+
+ auto-cpufreq = {
+ url = "github:AdnanHodzic/auto-cpufreq";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+
+ };
+ outputs =
+ {
+ nixpkgs,
+ home-manager,
+ auto-cpufreq,
+ mango,
+ ...
+ }:
+ let
+ system = "x86_64-linux";
+ pkgs = import nixpkgs {
+ inherit system;
+ config = {
+ allowUnfree = true;
+ };
+ };
+ in
+ {
+ nixosConfigurations.anand-mini = nixpkgs.lib.nixosSystem {
+ specialArgs = {
+ inherit home-manager mango;
+ };
+ modules = [
+ ./configuration.nix
+ ./modules/home-manager.nix
+ # ./modules/mango.nix
+ ./modules/android.nix
+ ./modules/lsp.nix
+ auto-cpufreq.nixosModules.default
+ ];
+ };
+ };
+}
diff --git a/flameshot/flameshot.ini b/flameshot/flameshot.ini
new file mode 100644
index 0000000..e26ab36
--- /dev/null
+++ b/flameshot/flameshot.ini
@@ -0,0 +1,3 @@
+[General]
+savePath=/home/anand/Pictures/Screenshots
+useGrimAdapter=true
diff --git a/foot/foot.ini b/foot/foot.ini
new file mode 100755
index 0000000..eadc4dd
--- /dev/null
+++ b/foot/foot.ini
@@ -0,0 +1,13 @@
+font=JetBrainsMono NF:size=12
+
+[colors]
+ alpha=1.0
+ foreground=dcdccc
+ background=111111
+
+ [key-bindings]
+ scrollback-up-line = Control+Shift+k
+ scrollback-down-line = Control+Shift+j
+ scrollback-up-half-page = Control+Shift+u
+ scrollback-down-half-page = Control+Shift+d
+ unicode-input = Control+Shift+Alt+u
diff --git a/hardware-configuration.nix b/hardware-configuration.nix
new file mode 100644
index 0000000..d121733
--- /dev/null
+++ b/hardware-configuration.nix
@@ -0,0 +1,31 @@
+# Do not modify this file! It was generated by โ€˜nixos-generate-configโ€™
+# and may be overwritten by future invocations. Please make changes
+# to /etc/nixos/configuration.nix instead.
+{ config, lib, pkgs, modulesPath, ... }:
+
+{
+ imports =
+ [ (modulesPath + "/installer/scan/not-detected.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/cfcc3269-9b1f-4f93-b166-88e14fed4e82";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/C57C-DD4D";
+ fsType = "vfat";
+ options = [ "fmask=0022" "dmask=0022" ];
+ };
+
+ swapDevices = [ ];
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}
diff --git a/home.nix b/home.nix
new file mode 100755
index 0000000..5096ddc
--- /dev/null
+++ b/home.nix
@@ -0,0 +1,112 @@
+{ config, pkgs, lib, ... }:
+let
+ dotfiles = "${config.home.homeDirectory}/dots/";
+ create_symlink = path: config.lib.file.mkOutOfStoreSymlink path;
+ programs.home-manager.enable = true;
+ configs = {
+ nvim = "nvim";
+ niri = "niri";
+ foot = "foot";
+ spectrwm = "spectrwm";
+ qutebrowser = "qutebrowser";
+ dunst = "dunst";
+ waybar = "waybar";
+ hypr = "hypr";
+ rmpc = "rmpc";
+ fastfetch = "fastfetch";
+ mutt = "mutt";
+ wezterm = "wezterm";
+ mango = "mango";
+ tmux = "tmux";
+ polybar = "polybar";
+ flameshot = "flameshot";
+ };
+in
+{
+ programs.bash = {
+ enable = true;
+ enableCompletion = true;
+ historyControl = [ "ignoreboth" ];
+ historyFile = "${config.home.homeDirectory}/.bash_history";
+ historyIgnore = [
+ "ls"
+ "eza"
+ "z"
+ "cd"
+ ];
+ initExtra = ''
+ set -o vi
+ eval "$(fzf --bash)"
+ eval "$(zoxide init bash)"
+ if [ "$TERM" != "dumb" ] || [ -n "$INSIDE_EMACS" ]; then
+ PROMPT_COLOR="1;31m"
+ ((UID)) && PROMPT_COLOR="1;34m"
+ if [ -n "$INSIDE_EMACS" ]; then
+ # Emacs term mode doesn't support xterm title escape sequence (\e]0;)
+ PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
+ else
+ PS1="\n\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] "
+ fi
+ if test "$TERM" = "xterm"; then
+ PS1="\[\033]2;\h:\u:\w\007\]$PS1"
+ fi
+ fi
+ '';
+ shellAliases = {
+ ls = "eza --icons";
+ grep = "grep --color=auto";
+ cd = "z";
+ cat = "bat";
+ ll = "eza --icons -la";
+ la = "eza --icons -a";
+ };
+ };
+ home.username = "anand";
+ home.homeDirectory = "/home/anand";
+ home.stateVersion = "25.11"; # NEVER CHANGE THIS
+ home.packages = [
+ pkgs.mpv
+ pkgs.dunst
+ pkgs.fzf
+ pkgs.nb
+ pkgs.eza
+ pkgs.yt-dlp
+ pkgs.mpv
+ pkgs.cmake
+ pkgs.copyq
+ pkgs.fastfetch
+ pkgs.scrcpy
+ pkgs.watch
+ pkgs.progress
+ pkgs.uv
+ pkgs.dysk
+ pkgs.glow
+ pkgs.termdown
+ pkgs.hugo
+ pkgs.pfetch
+ pkgs.laravel
+ pkgs.php
+ pkgs.flameshot
+ pkgs.grim
+ pkgs.slurp
+ pkgs.dmenu-wayland
+ ];
+
+ home.activation.dotfiles = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
+ ln -sf ${config.home.homeDirectory}/dots/shell/zshrc ${config.home.homeDirectory}/.zshrc
+ ln -sf ${config.home.homeDirectory}/dots/shell/bashrc ${config.home.homeDirectory}/.bashrc
+ ln -sf ${config.home.homeDirectory}/dots/shell/profile ${config.home.homeDirectory}/.profile
+ ln -sf ${config.home.homeDirectory}/dots/shell/bash_profile ${config.home.homeDirectory}/.bash_profile
+ ln -sf ${config.home.homeDirectory}/dots/shell/starship.toml ${config.home.homeDirectory}/.config/starship.toml
+ ln -sf ${config.home.homeDirectory}/dots/shell/Xresources ${config.home.homeDirectory}/.Xresources
+ '';
+
+ xdg.configFile = builtins.mapAttrs (name: subpath: {
+ source = create_symlink "${dotfiles}/${subpath}";
+ recursive = true;
+ }) configs;
+
+ home.sessionVariables = {
+ EDITOR = "nvim";
+ };
+}
diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf
new file mode 100755
index 0000000..197f65f
--- /dev/null
+++ b/hypr/hypridle.conf
@@ -0,0 +1,16 @@
+general {
+ ignore_dbus_inhibit=false
+ lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
+ before_sleep_cmd = loginctl lock-session # lock before suspend.
+ after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
+}
+
+listener {
+ timeout=300
+ on-timeout=hyprlock
+}
+
+listener {
+ timeout=800
+ on-timeout=systemctl suspend
+}
diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf
new file mode 100755
index 0000000..1a68a9d
--- /dev/null
+++ b/hypr/hyprland.conf
@@ -0,0 +1,220 @@
+monitor=,preferred,auto,auto
+
+input {
+ kb_layout = us
+ kb_options = caps:escape
+}
+
+#################
+### AUTOSTART ###
+################
+
+exec-once = nm-applet &
+exec-once = systemctl --user start hyprpolkitagent
+exec-once = dunst &
+exec-once = mpd &
+exec-once = flameshot &
+exec-once = mpd-mpris &
+exec-once = mpd-notification &
+exec-once = waybar
+exec-once = hypridle
+exec-once = playerctl daemon &
+exec-once = xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
+exec-once = xinput set-prop 10 "libinput Natural Scrolling Enabled" 1
+exec-once = swww-daemon &
+exec-once = swww img /home/anand/dots/walls/wallpaper.png
+exec-once = copyq &
+exec-once = xrdb ~/.Xresources &
+
+#############################
+### ENVIRONMENT VARIABLES ###
+#############################
+
+env = XCURSOR_SIZE,24
+env = HYPRCURSOR_SIZE,24
+
+#####################
+### LOOK AND FEEL ###
+#####################
+
+general {
+ gaps_in = 2
+ gaps_out = 2
+ border_size = 1
+ col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
+ col.inactive_border = rgba(595959aa)
+ resize_on_border = false
+ allow_tearing = false
+ layout = master
+}
+
+dwindle {
+ force_split=2
+}
+
+decoration {
+ rounding = 10
+ active_opacity = 1.0
+ inactive_opacity = 0.8
+ blur {
+ enabled = false
+ }
+}
+
+animations {
+ enabled = true
+ animation = windows, 1, 3, default
+ animation = windowsOut, 1, 3, default, popin 80%
+ animation = border, 1, 3, default
+ animation = borderangle, 1, 3, default
+ animation = fade, 1, 3, default
+ animation = workspaces, 1, 3, default
+}
+
+master {
+ new_status = inherit
+}
+
+misc {
+ force_default_wallpaper = 0
+ disable_hyprland_logo = true
+}
+
+
+#############
+### INPUT ###
+#############
+
+input {
+ kb_layout = us
+ kb_variant =
+ kb_model =
+ # kb_options = caps:swapescape
+ follow_mouse = 0
+ sensitivity = -0.1
+ touchpad {
+ natural_scroll = true
+ middle_button_emulation = true
+ tap-and-drag = true
+ tap-to-click = true
+ drag_lock = true
+ disable_while_typing = true
+ }
+ # Turning this on fucks with the sensitivity, no clue why
+ # force_no_accel = true
+}
+
+gestures {
+ workspace_swipe_touch = true
+}
+
+device {
+ name = synps/2-synaptics-touchpad
+ sensitivity = 0
+}
+
+
+###################
+### KEYBINDINGS ###
+###################
+
+$mainMod = SUPER # Sets "Windows" key as main modifier
+$terminal = wezterm
+$fileManager = thunar
+$textEditor = $terminal nvim
+$menu = rofi -show drun
+$browser = firefox
+
+bind = $mainMod, Return, exec, $terminal
+bind = $mainMod, Q, killactive,
+bind = $mainMod, E, exec, $fileManager
+bind = $mainMod SHIFT, E, exit
+bind = $mainMod, A, exec, $textEditor
+bind = $mainMod, T, togglefloating,
+bind = $mainMod, SPACE, exec, $menu
+bind = $mainMod, B, exec, $browser
+bind = $mainMod, M, fullscreen, 1
+bind = $mainMod SHIFT, M, fullscreen, 0
+bind = $mainMod, P, exec, passmenu
+bind = $mainMod, period, exec, rofi -show emoji
+bind = $mainMod SHIFT, S, exec, .config/hypr/screenshotwayland.sh
+bind = $mainMod, V, exec, copyq toggle
+bind = $mainMod SHIFT, P, exec, playerctl play-pause
+
+bind = $mainMod SHIFT, left, movewindow, l
+bind = $mainMod SHIFT, right, movewindow, r
+bind = $mainMod SHIFT, up, movewindow, u
+bind = $mainMod SHIFT, down, movewindow, d
+
+bind = $mainMod SHIFT, H, movewindow, l
+bind = $mainMod SHIFT, L, movewindow, r
+bind = $mainMod SHIFT, K, movewindow, u
+bind = $mainMod SHIFT, J, movewindow, d
+
+bind = $mainMod, left, movefocus, l
+bind = $mainMod, right, movefocus, r
+bind = $mainMod, up, movefocus, u
+bind = $mainMod, down, movefocus, d
+
+bind = $mainMod, H, movefocus, l
+bind = $mainMod, L, movefocus, r
+bind = $mainMod, K, movefocus, u
+bind = $mainMod, J, movefocus, d
+
+bind = $mainMod, 1, workspace, 1
+bind = $mainMod, 2, workspace, 2
+bind = $mainMod, 3, workspace, 3
+bind = $mainMod, 4, workspace, 4
+bind = $mainMod, 5, workspace, 5
+bind = $mainMod, 6, workspace, 6
+bind = $mainMod, 7, workspace, 7
+bind = $mainMod, 8, workspace, 8
+bind = $mainMod, 9, workspace, 9
+bind = $mainMod, 0, workspace, 10
+
+bind = $mainMod SHIFT, 1, movetoworkspace, 1
+bind = $mainMod SHIFT, 2, movetoworkspace, 2
+bind = $mainMod SHIFT, 3, movetoworkspace, 3
+bind = $mainMod SHIFT, 4, movetoworkspace, 4
+bind = $mainMod SHIFT, 5, movetoworkspace, 5
+bind = $mainMod SHIFT, 6, movetoworkspace, 6
+bind = $mainMod SHIFT, 7, movetoworkspace, 7
+bind = $mainMod SHIFT, 8, movetoworkspace, 8
+bind = $mainMod SHIFT, 9, movetoworkspace, 9
+bind = $mainMod SHIFT, 0, movetoworkspace, 10
+
+# make window wider / narrower
+bind = SUPER CTRL, L, resizeactive, 20 0
+bind = SUPER CTRL, H, resizeactive, -20 0
+
+# make window taller / shorter
+bind = SUPER CTRL, K, resizeactive, 0 -20
+bind = SUPER CTRL, J, resizeactive, 0 20
+
+bindm = $mainMod, mouse:272, movewindow
+bindm = $mainMod, mouse:273, resizewindow
+
+# Laptop multimedia keys for volume and LCD brightness
+bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
+bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
+bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
+bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
+bindel = ,XF86MonBrightnessUp, exec, brillo -qA 5
+bindel = ,XF86MonBrightnessDown, exec, brillo -qU 5
+
+##############################
+### WINDOWS AND WORKSPACES ###
+##############################
+
+windowrulev2 = float,class:com.github.hluk.copyq
+
+cursor {
+ sync_gsettings_theme = false
+ enable_hyprcursor = true
+ zoom_factor = 1
+}
+
+xwayland {
+ force_zero_scaling = true
+ use_nearest_neighbor = true
+}
diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf
new file mode 100755
index 0000000..a10c629
--- /dev/null
+++ b/hypr/hyprlock.conf
@@ -0,0 +1,50 @@
+background {
+ monitor=
+ path= $HOME/dots/walls/lock.jpeg
+}
+
+label {
+ monitor =
+ text = <span foreground='##000000'>Hi there, $USER</span>
+ color = rgba(0.0, 0.0, 0.0, 1.0)
+ font_size = 25
+ font_family = Iosevka NFM
+
+ position = 0, 80
+ halign = center
+ valign = center
+}
+
+label {
+ monitor =
+ text = cmd[update:1000] echo "<span foreground='##000000'>$(date)</span>"
+ color = rgba(0.0, 0.0, 0.0, 1.0)
+ font_size = 25
+ font_family = Iosevka NFM
+ position = 0,120
+ halign = center
+ valign = center
+}
+
+input-field {
+ monitor=
+ size=20%,5%
+ outine-thickness=1
+ dots_size=0.1
+ dots_spacing=0.5
+ fade_on_empty=true
+ hide_input=false
+ fade_timeout=1000
+}
+
+
+label {
+ monitor =
+ text = cmd[update:1000] echo "<span foreground='##000000'>$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage;)</span>"
+ color = rgba(0.0, 0.0, 0.0, 1.0)
+ font_size = 25
+ font_family = Iosevka NFM
+ position = 0,-120
+ halign = center
+ valign = center
+}
diff --git a/hypr/hyprpaper.conf b/hypr/hyprpaper.conf
new file mode 100755
index 0000000..a928b80
--- /dev/null
+++ b/hypr/hyprpaper.conf
@@ -0,0 +1,2 @@
+preload=/home/anand/Pictures/wallpapers/trueWallPaper.png
+wallpaper= ,/home/anand/Pictures/wallpapers/23_XZr6FXT.jpeg
diff --git a/hypr/monitors.conf b/hypr/monitors.conf
new file mode 100755
index 0000000..3701bc0
--- /dev/null
+++ b/hypr/monitors.conf
@@ -0,0 +1,5 @@
+# Generated by nwg-displays on 2025-09-25 at 18:45:22. Do not edit manually.
+
+monitor=eDP-1,1366x768@60.14,0x0,1.0
+monitor=eDP-1,disable
+monitor=DP-2,1920x1080@60.0,1935x768,1.0
diff --git a/hypr/screenshotwayland.sh b/hypr/screenshotwayland.sh
new file mode 100755
index 0000000..73e2c6e
--- /dev/null
+++ b/hypr/screenshotwayland.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+input_type=$(printf "region\nwindow" | rofi -dmenu)
+case "$input_type" in
+ "window")
+ hyprshot -m window --clipboard-only
+ ;;
+ *)
+ hyprshot -m region --clipboard-only
+ ;;
+esac
+
+choice=$(printf "save to clipboard\nsave to file" | rofi -dmenu)
+
+case "$choice" in
+ "save to file")
+ wl-paste > ~/Pictures/Screenshots/screenshot-$(date +%F_%H-%M-%S).png
+ ;;
+ *)
+ exit 0
+ ;;
+esac
diff --git a/mango/autostart.sh b/mango/autostart.sh
new file mode 100755
index 0000000..1bf75a2
--- /dev/null
+++ b/mango/autostart.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=wlroots >/dev/null 2>&1 &
+swww-daemon >/dev/null 2>&1 &
+nm-applet >/dev/null 2>&1 &
+copyq >/dev/null 2>&1 &
+dunst >/dev/null 2>&1 &
+waybar -c /home/anand/dots/mango/waybar/config.jsonc -s /home/anand/dots/mango/waybar/style.css >/dev/null 2>&1 &
+swww img /home/anand/dots/mango/walls/wallpaper.jpg >/dev/null 2>&1 &
+xrdb .Xresources >/dev/null 2>&1 &
+# The next line of command is not necessary. It is only to avoid some situations where it cannot start automatically
diff --git a/mango/config.conf b/mango/config.conf
new file mode 100755
index 0000000..c0e1952
--- /dev/null
+++ b/mango/config.conf
@@ -0,0 +1,276 @@
+# More option see https://github.com/DreamMaoMao/mango/wiki/
+
+exec-once = "bash ~/dots/mango/autostart.sh"
+
+# 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=6
+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=1
+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=1
+focus_cross_monitor=0
+focus_cross_tag=0
+enable_floating_snap=0
+snap_distance=30
+cursor_size=24
+drag_tile_to_tile=1
+
+# keyboard
+repeat_rate=30
+repeat_delay=200
+numlockon=0
+xxkb_rules_layout=us
+xkb_rules_options=caps:escape
+
+# 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=5
+gappiv=5
+gappoh=10
+gappov=10
+scratchpad_width_ratio=0.8
+scratchpad_height_ratio=0.9
+borderpx=4
+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
+
+# reload config
+bind=SUPER+SHIFT,r,reload_config
+
+# XF86 keys
+bind=NONE,XF86AudioRaiseVolume,spawn, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
+bind=NONE,XF86AudioLowerVolume,spawn, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
+bind=NONE,XF86AudioMute,spawn, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
+bind=NONE,XF86AudioMicMute,spawn, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
+bind=NONE,XF86MonBrightnessUp,spawn, brillo -qA 5
+bind=NONE,XF86MonBrightnessDown,spawn, brillo -qU 5
+
+bind=SUPER+SHIFT,s,spawn,/home/anand/dots/hypr/screenshotwayland.sh
+
+# menu and terminal
+bind=SUPER,space,spawn,rofi -show drun
+bind=SUPER,Return,spawn,wezterm
+bind=SUPER,b,spawn,firefox
+bind=SUPER,e,spawn,thunar
+bind=SUPER,v,spawn,copyq toggle
+bind=SUPER,p,spawn,passmenu
+
+# exit
+bind=SUPER+SHIFT,e,quit
+bind=SUPER,q,killclient,
+
+# switch window focus
+bind=SUPER,Tab,focusstack,next
+bind=SUPER,Left,focusdir,left
+bind=SUPER,Right,focusdir,right
+bind=SUPER,Up,focusdir,up
+bind=SUPER,Down,focusdir,down
+
+bind=SUPER,h,focusdir,left
+bind=SUPER,l,focusdir,right
+bind=SUPER,k,focusdir,up
+bind=SUPER,j,focusdir,down
+
+# swap window
+bind=SUPER+SHIFT,k,exchange_client,up
+bind=SUPER+SHIFT,j,exchange_client,down
+bind=SUPER+SHIFT,h,exchange_client,left
+bind=SUPER+SHIFT,l,exchange_client,right
+
+# switch window status
+bind=SUPER,g,toggleglobal,
+bind=SUPER,o,toggleoverview,
+bind=SUPER,backslash,togglefloating,
+bind=SUPER,f,togglemaximizescreen,
+bind=SUPER+SHIFT,f,togglefullscreen,
+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+SHIFT,Left,viewtoleft,0
+bind=SUPER+SHIFT,Right,viewtoright,0
+# bind=CTRL,Left,viewtoleft_have_client,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+SUPER,Up,movewin,+0,-50
+bind=CTRL+SHIFT+SUPER,Down,movewin,+0,+50
+bind=CTRL+SHIFT+SUPER,Left,movewin,-50,+0
+bind=CTRL+SHIFT+SUPER,Right,movewin,+50,+0
+
+# resizewin
+bind=CTRL+ALT+SUPER,Up,resizewin,+0,-50
+bind=CTRL+ALT+SUPER,Down,resizewin,+0,+50
+bind=CTRL+ALT+SUPER,Left,resizewin,-50,+0
+bind=CTRL+ALT+SUPER,Right,resizewin,+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/mango/walls/wallpaper.jpg b/mango/walls/wallpaper.jpg
new file mode 100755
index 0000000..0c94ed2
--- /dev/null
+++ b/mango/walls/wallpaper.jpg
Binary files differ
diff --git a/mango/waybar/config.jsonc b/mango/waybar/config.jsonc
new file mode 100755
index 0000000..598ae2c
--- /dev/null
+++ b/mango/waybar/config.jsonc
@@ -0,0 +1,96 @@
+{
+ "layer": "bottom",
+ "position": "top",
+ "height": 22,
+ "spacing": 4,
+
+ "modules-left": ["ext/workspaces", "dwl/window#layout", "dwl/window"],
+ "modules-center": ["clock"],
+ "modules-right": ["tray", "battery", "cpu", "memory", "custom/playerctl", "pulseaudio"],
+
+ "dwl/tags": {
+ "hide-vacant": false
+ },
+ "ext/workspaces": {
+ "disable-scroll": false,
+ "format": "{icon}",
+ "on-click": "activate"
+ },
+
+ "dwl/window#layout": {
+ "format": "[{layout}]"
+ },
+
+ "dwl/window": {
+ "format": "{title}",
+ "rewrite": {
+ "(.*)(- Brave)(.*)": "$1",
+ "(.*)(- Thunar)(.*)": "$1",
+ "(.*)(kitty)(.*)": "Kitty",
+ "(.*)(kew)(.*)": "$1"
+ },
+ "on-click": "",
+ "tooltip": false
+ },
+
+ "clock": { "format": "{:%I:%M %p <span color='#696969'>|</span> %b %d, %Y}",
+ "tooltip": false
+ },
+
+ "custom/playerctl": {
+ "exec": "/usr/bin/python3 /home/anand/dots/mango/waybar/mediaplayer.py",
+ "format": "{}",
+ "return-type": "json",
+ "on-click": "playerctl play-pause",
+ "on-click-right": "playerctl next"
+ },
+
+ "mpris": {
+ "format": "{stateIcon} {title}",
+ "format-disconnected": "Disconnected",
+ "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped",
+ "state-icons": {
+ "playing": "๏Œ",
+ "paused": "๏‹"
+ },
+ "tooltip-format": "{title}\nBy: {artist}\nFrom: {album}\n({elapsedTime:%M:%S}/{totalTime:%M:%S})\nVol. {volume}%",
+ "tooltip-format-disconnected": "MPD (disconnected)",
+ "on-click": "rmpc togglepause",
+ "on-click-right": "rmpc next",
+ "on-scroll-up": "rmpc volume +5",
+ "on-scroll-down": "rmpc volume -5"
+ },
+
+
+ "tray": {
+ "icon-size": 16,
+ "spacing": 16,
+ "show-passive-items": true
+ },
+
+ "battery": {
+ "states": {
+ "warning": 33,
+ "critical": 10
+ },
+ "format": "{capacity}%"
+ },
+
+ "memory": {
+ "format": "<span color='#8A2BE2'></span>{used:0.1f}G/{total:0.1f}G",
+ "tooltip": false,
+ "interval": 5,
+ "tooltip-format": "{used:0.2f}G/{total:0.2f}G"
+ },
+
+ "pulseaudio": {
+ "scroll-step": 1, // %, can be a float
+ "format": "{icon} {volume}%",
+ "format-muted": "๓ฐ–",
+ "format-icons": {
+ "default": ["๓ฐ•ฟ", "๓ฐ–€", "๓ฐ•พ"]
+ },
+ "tooltip-format": false,
+ "on-click": "pavucontrol"
+ }
+}
diff --git a/mango/waybar/mediaplayer.py b/mango/waybar/mediaplayer.py
new file mode 100755
index 0000000..f45e850
--- /dev/null
+++ b/mango/waybar/mediaplayer.py
@@ -0,0 +1,195 @@
+import gi
+gi.require_version("Playerctl", "2.0")
+from gi.repository import Playerctl, GLib
+from gi.repository.Playerctl import Player
+import argparse
+import logging
+import sys
+import signal
+import gi
+import json
+import os
+from typing import List
+
+logger = logging.getLogger(__name__)
+
+def signal_handler(sig, frame):
+ logger.info("Received signal to stop, exiting")
+ sys.stdout.write("\n")
+ sys.stdout.flush()
+ # loop.quit()
+ sys.exit(0)
+
+
+class PlayerManager:
+ def __init__(self, selected_player=None, excluded_player=[]):
+ self.manager = Playerctl.PlayerManager()
+ self.loop = GLib.MainLoop()
+ self.manager.connect(
+ "name-appeared", lambda *args: self.on_player_appeared(*args))
+ self.manager.connect(
+ "player-vanished", lambda *args: self.on_player_vanished(*args))
+
+ signal.signal(signal.SIGINT, signal_handler)
+ signal.signal(signal.SIGTERM, signal_handler)
+ signal.signal(signal.SIGPIPE, signal.SIG_DFL)
+ self.selected_player = selected_player
+ self.excluded_player = excluded_player.split(',') if excluded_player else []
+
+ self.init_players()
+
+ def init_players(self):
+ for player in self.manager.props.player_names:
+ if player.name in self.excluded_player:
+ continue
+ if self.selected_player is not None and self.selected_player != player.name:
+ logger.debug(f"{player.name} is not the filtered player, skipping it")
+ continue
+ self.init_player(player)
+
+ def run(self):
+ logger.info("Starting main loop")
+ self.loop.run()
+
+ def init_player(self, player):
+ logger.info(f"Initialize new player: {player.name}")
+ player = Playerctl.Player.new_from_name(player)
+ player.connect("playback-status",
+ self.on_playback_status_changed, None)
+ player.connect("metadata", self.on_metadata_changed, None)
+ self.manager.manage_player(player)
+ self.on_metadata_changed(player, player.props.metadata)
+
+ def get_players(self) -> List[Player]:
+ return self.manager.props.players
+
+ def write_output(self, text, player):
+ logger.debug(f"Writing output: {text}")
+
+ output = {"text": text,
+ "class": "custom-" + player.props.player_name,
+ "alt": player.props.player_name}
+
+ sys.stdout.write(json.dumps(output) + "\n")
+ sys.stdout.flush()
+
+ def clear_output(self):
+ sys.stdout.write("\n")
+ sys.stdout.flush()
+
+ def on_playback_status_changed(self, player, status, _=None):
+ logger.debug(f"Playback status changed for player {player.props.player_name}: {status}")
+ self.on_metadata_changed(player, player.props.metadata)
+
+ def get_first_playing_player(self):
+ players = self.get_players()
+ logger.debug(f"Getting first playing player from {len(players)} players")
+ if len(players) > 0:
+ # if any are playing, show the first one that is playing
+ # reverse order, so that the most recently added ones are preferred
+ for player in players[::-1]:
+ if player.props.status == "Playing":
+ return player
+ # if none are playing, show the first one
+ return players[0]
+ else:
+ logger.debug("No players found")
+ return None
+
+ def show_most_important_player(self):
+ logger.debug("Showing most important player")
+ # show the currently playing player
+ # or else show the first paused player
+ # or else show nothing
+ current_player = self.get_first_playing_player()
+ if current_player is not None:
+ self.on_metadata_changed(current_player, current_player.props.metadata)
+ else:
+ self.clear_output()
+
+ def on_metadata_changed(self, player, metadata, _=None):
+ logger.debug(f"Metadata changed for player {player.props.player_name}")
+ player_name = player.props.player_name
+ artist = player.get_artist()
+ artist = artist.replace("&", "&amp;")
+ title = player.get_title()
+ title = title.replace("&", "&amp;")
+
+ track_info = ""
+ if player_name == "spotify" and "mpris:trackid" in metadata.keys() and ":ad:" in player.props.metadata["mpris:trackid"]:
+ track_info = "Advertisement"
+ elif artist is not None and title is not None:
+ track_info = f"{title}"
+ else:
+ track_info = title
+
+ if track_info:
+ if player.props.status == "Playing":
+ track_info = "๏…„ " + track_info
+ else:
+ track_info = "๏Š‹ " + track_info
+ # only print output if no other player is playing
+ current_playing = self.get_first_playing_player()
+ if current_playing is None or current_playing.props.player_name == player.props.player_name:
+ self.write_output(track_info, player)
+ else:
+ logger.debug(f"Other player {current_playing.props.player_name} is playing, skipping")
+
+ def on_player_appeared(self, _, player):
+ logger.info(f"Player has appeared: {player.name}")
+ if player.name in self.excluded_player:
+ logger.debug(
+ "New player appeared, but it's in exclude player list, skipping")
+ return
+ if player is not None and (self.selected_player is None or player.name == self.selected_player):
+ self.init_player(player)
+ else:
+ logger.debug(
+ "New player appeared, but it's not the selected player, skipping")
+
+ def on_player_vanished(self, _, player):
+ logger.info(f"Player {player.props.player_name} has vanished")
+ self.show_most_important_player()
+
+def parse_arguments():
+ parser = argparse.ArgumentParser()
+
+ # Increase verbosity with every occurrence of -v
+ parser.add_argument("-v", "--verbose", action="count", default=0)
+
+ parser.add_argument("-x", "--exclude", "- Comma-separated list of excluded player")
+
+ # Define for which player we"re listening
+ parser.add_argument("--player")
+
+ parser.add_argument("--enable-logging", action="store_true")
+
+ return parser.parse_args()
+
+
+def main():
+ arguments = parse_arguments()
+
+ # Initialize logging
+ if arguments.enable_logging:
+ logfile = os.path.join(os.path.dirname(
+ os.path.realpath(__file__)), "media-player.log")
+ logging.basicConfig(filename=logfile, level=logging.DEBUG,
+ format="%(asctime)s %(name)s %(levelname)s:%(lineno)d %(message)s")
+
+ # Logging is set by default to WARN and higher.
+ # With every occurrence of -v it's lowered by one
+ logger.setLevel(max((3 - arguments.verbose) * 10, 0))
+
+ logger.info("Creating player manager")
+ if arguments.player:
+ logger.info(f"Filtering for player: {arguments.player}")
+ if arguments.exclude:
+ logger.info(f"Exclude player {arguments.exclude}")
+
+ player = PlayerManager(arguments.player, arguments.exclude)
+ player.run()
+
+
+if __name__ == "__main__":
+ main()
diff --git a/mango/waybar/style.css b/mango/waybar/style.css
new file mode 100755
index 0000000..cefb5e0
--- /dev/null
+++ b/mango/waybar/style.css
@@ -0,0 +1,175 @@
+/* =========================================
+ Waybar Theme โ€” Gray-tone Dim (Kitty Match)
+ Clean Flat Version (No Shadows / No Borders)
+ ========================================= */
+
+/* Global Defaults */
+* {
+ font-family: "JetBrainsMono Nerd Font", monospace;
+ font-weight: bold;
+ font-size: 15px;
+ margin: 0;
+ padding: 0;
+ box-shadow: none;
+ border: none;
+}
+
+window#waybar {
+ background-color: rgba(18, 18, 18, 0.8);
+ color: #C0C0C0;
+}
+
+/* --- WORKSPACES (ext/workspaces) --- */
+#workspaces {
+ margin: 0 4px;
+ background: transparent;
+ color: #C0C0C0;
+}
+
+#workspaces button {
+ background: transparent;
+ border: none;
+ border-radius: 4px;
+ padding: 0 8px;
+ margin: 0 2px;
+ font-family: "JetBrainsMono Nerd Font", monospace;
+ font-size: 16px;
+ color: #888888;
+ box-shadow: none;
+ min-width: 30px;
+}
+
+#workspaces button.active {
+ background-color: #333333;
+ color: #DDDDDD;
+}
+
+#workspaces button.occupied {
+ color: #C0C0C0;
+}
+
+#workspaces button.urgent {
+ background-color: #AA6666;
+ color: #0A0A0A;
+}
+
+#workspaces button:hover {
+ background-color: #252525;
+ color: #DDDDDD;
+}
+
+/* --- DWL TAGS (if using dwl/tags) --- */
+#tags {
+ margin: 0 4px;
+ background: transparent;
+ color: #C0C0C0;
+}
+
+#tags button {
+ background: transparent;
+ border: none;
+ border-radius: 4px;
+ margin-left: -2px;
+ font-family: "JetBrainsMono Nerd Font", monospace;
+ font-size: 0;
+ box-shadow: none;
+}
+
+#tags button.occupied {
+ padding: 0 24px;
+ margin-left: 1px;
+ background-color: transparent;
+ color: #C0C0C0;
+ font-size: 16px;
+}
+
+#tags button.focused {
+ padding: 0 24px;
+ margin-left: 1px;
+ background-color: #333333;
+ color: #DDDDDD;
+ font-size: 16px;
+}
+
+#tags button.urgent {
+ padding: 0 24px;
+ margin-left: 1px;
+ background-color: #AA6666;
+ color: #0A0A0A;
+ font-size: 16px;
+}
+
+/* --- WINDOW TITLE --- */
+#window {
+ margin: 0 4px 0 2px;
+ padding-right: 4px;
+ font-family: "JetBrainsMono Nerd Font", monospace;
+ font-size: 14px;
+ color: #C0C0C0;
+ background: transparent;
+ border: none;
+ box-shadow: none;
+}
+
+#waybar.empty #window {
+ background: none;
+}
+
+/* --- CLOCK --- */
+#clock {
+ padding: 0 6px;
+ font-family: "JetBrainsMono Nerd Font", monospace;
+ font-size: 16px;
+ color: #C0C0C0;
+ background-color: transparent;
+ border: none;
+ box-shadow: none;
+}
+
+/* --- SYSTEM TRAY --- */
+#tray {
+ margin-left: 8px;
+ padding: 0 8px;
+ font-family: "JetBrainsMono Nerd Font", monospace;
+ font-size: 12px;
+ color: #C0C0C0;
+ background-color: transparent;
+ border: none;
+ box-shadow: none;
+}
+
+/* --- BATTERY --- */
+#battery {
+ padding: 0 6px;
+ font-family: "Sans", monospace;
+ font-size: 16px;
+ color: #AAAA66;
+ background-color: transparent;
+ border: none;
+ box-shadow: none;
+}
+
+/* --- MEMORY --- */
+#memory {
+ padding: 0 6px;
+ font-family: "JetBrainsMono Nerd Font", monospace;
+ font-size: 16px;
+ color: #8A9BE2;
+ background-color: transparent;
+ border: none;
+ box-shadow: none;
+}
+
+/* --- TOOLTIP --- */
+tooltip {
+ background-color: rgba(18, 18, 18, 0.9);
+ border-radius: 4px;
+ border: none;
+ box-shadow: none;
+}
+
+tooltip label {
+ color: #C0C0C0;
+ font-family: "JetBrainsMono Nerd Font", monospace;
+ font-size: 14px;
+}
diff --git a/modules/android.nix b/modules/android.nix
new file mode 100644
index 0000000..7da4990
--- /dev/null
+++ b/modules/android.nix
@@ -0,0 +1,51 @@
+{ config, pkgs, ... }:
+
+{
+ #### SYSTEM (NixOS) ####
+
+ programs.adb.enable = true;
+
+ nixpkgs.config.android_sdk.accept_license = true;
+
+ users.users.anand.extraGroups = [ "adbusers" ];
+
+
+ #### USER (Home Manager) ####
+
+ home-manager.users.anand = { pkgs, ... }:
+ let
+ androidSdk = pkgs.androidenv.composeAndroidPackages {
+ platformVersions = [ "35" ];
+ buildToolsVersions = [ "35.0.0" ];
+ platformToolsVersion = "35.0.1";
+ includeEmulator = true;
+ includeSources = true;
+ cmdLineToolsVersion = "12.0";
+ };
+ in
+ {
+ home.packages = [
+ pkgs.flutter
+ androidSdk.androidsdk
+ androidSdk.emulator
+ ];
+
+ home.sessionPath = [
+ "${androidSdk.androidsdk}/libexec/android-sdk/platform-tools"
+ "${androidSdk.androidsdk}/libexec/android-sdk/cmdline-tools/latest/bin"
+ ];
+
+ home.sessionVariables = {
+ ANDROID_SDK_ROOT =
+ "${androidSdk.androidsdk}/libexec/android-sdk";
+
+ ANDROID_HOME =
+ "${androidSdk.androidsdk}/libexec/android-sdk";
+
+ # This makes Flutter happy even if layout differs
+ ANDROID_SDK_MANAGER =
+ "${androidSdk.androidsdk}/libexec/android-sdk/cmdline-tools/*/bin/sdkmanager";
+ };
+ };
+}
+
diff --git a/modules/home-manager.nix b/modules/home-manager.nix
new file mode 100644
index 0000000..ff14931
--- /dev/null
+++ b/modules/home-manager.nix
@@ -0,0 +1,12 @@
+{ home-manager, ... }:
+{
+ imports = [
+ home-manager.nixosModules.home-manager
+ ];
+ home-manager = {
+ useGlobalPkgs = true;
+ useUserPackages = true;
+ users.anand = import ../home.nix;
+ backupFileExtension = "hmbackup";
+ };
+}
diff --git a/modules/lsp.nix b/modules/lsp.nix
new file mode 100644
index 0000000..8cc7599
--- /dev/null
+++ b/modules/lsp.nix
@@ -0,0 +1,19 @@
+{ config, pkgs, ... }:
+
+{
+ home-manager.users.anand = { pkgs, ... }:
+
+ {
+ home.packages = [
+ pkgs.nil
+ pkgs.tinymist
+ pkgs.lua-language-server
+ pkgs.clang-tools
+ pkgs.jdt-language-server
+ pkgs.rust-analyzer
+ pkgs.emmet-ls
+ pkgs.cmake-language-server
+ pkgs.phpactor
+ ];
+ };
+}
diff --git a/modules/mango.nix b/modules/mango.nix
new file mode 100644
index 0000000..5ef2972
--- /dev/null
+++ b/modules/mango.nix
@@ -0,0 +1,8 @@
+{ mango, ... }:
+{
+ imports = [
+ mango.nixosModules.mango
+ ];
+
+ programs.mango.enable = true;
+}
diff --git a/mutt/accounts/anand@heresanandp.in.muttrc b/mutt/accounts/anand@heresanandp.in.muttrc
new file mode 100755
index 0000000..75c7d86
--- /dev/null
+++ b/mutt/accounts/anand@heresanandp.in.muttrc
@@ -0,0 +1,19 @@
+# vim: filetype=neomuttrc
+# muttrc file for account anand@heresanandp.in
+set real_name = "anand"
+set from = "anand@heresanandp.in"
+set sendmail = "msmtp -a anand@heresanandp.in"
+alias me anand <anand@heresanandp.in>
+set folder = "/home/anand/.local/share/mail/anand@heresanandp.in"
+set header_cache = "/home/anand/.cache/mutt-wizard/anand_heresanandp.in/headers"
+set message_cachedir = "/home/anand/.cache/mutt-wizard/anand_heresanandp.in/bodies"
+set mbox_type = Maildir
+set hostname = "heresanandp.in"
+source /usr/local/share/mutt-wizard/switch.muttrc
+set spool_file = "+INBOX"
+set postponed = "+Drafts"
+set trash = "+Trash"
+set record = "+Sent"
+
+macro index o "<shell-escape>mailsync anand@heresanandp.in<enter>" "sync anand@heresanandp.in"
+mailboxes "=Sent" "=Drafts" "=Trash" "=Junk" "=INBOX"
diff --git a/mutt/muttrc b/mutt/muttrc
new file mode 100755
index 0000000..5473514
--- /dev/null
+++ b/mutt/muttrc
@@ -0,0 +1,5 @@
+# vim: filetype=neomuttrc
+source /usr/local/share/mutt-wizard/mutt-wizard.muttrc
+source /home/anand/.config/mutt/accounts/anand@heresanandp.in.muttrc
+macro index,pager i1 '<sync-mailbox><enter-command>source /home/anand/.config/mutt/accounts/anand@heresanandp.in.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to anand@heresanandp.in"
+set header_cache_backend = "lmdb"
diff --git a/niri/config.kdl b/niri/config.kdl
new file mode 100755
index 0000000..bca951b
--- /dev/null
+++ b/niri/config.kdl
@@ -0,0 +1,276 @@
+// This config is in the KDL format: https://kdl.dev
+// "/-" comments out the following node.
+input {
+ keyboard {
+ xkb {
+ layout "in(eng)"
+ // options "caps:swapescape"
+ }
+ // numlock
+ }
+
+ touchpad {
+ // off
+ tap
+ dwt
+ dwtp
+ drag true
+ drag-lock
+ natural-scroll
+ accel-speed 0.0
+ accel-profile "flat"
+ scroll-method "two-finger"
+ }
+}
+
+output "eDP-1" {
+ mode "1366x768@60.138"
+ scale 1
+ transform "normal"
+ position x=1280 y=0
+}
+
+layout {
+ gaps 4
+ tab-indicator {
+ gap 8
+ length total-proportion=1.0
+ position "left"
+ place-within-column
+ }
+
+ center-focused-column "on-overflow" // "never"
+
+ preset-column-widths {
+ proportion 0.5
+ proportion 0.8
+ }
+
+ default-column-width { proportion 0.8; }
+
+ focus-ring {
+ // off
+ width 3
+ active-color "#7fc8ff"
+ inactive-color "#505050"
+ }
+
+ border {
+ off
+
+ width 4
+ active-color "#ffc87f"
+ inactive-color "#505050"
+
+ urgent-color "#9b0000"
+ }
+}
+spawn-at-startup "niriswitcher"
+// spawn-at-startup "foot --server"
+spawn-at-startup "waybar"
+spawn-at-startup "xwayland-satellite &"
+spawn-at-startup "swww-daemon"
+spawn-at-startup "swww restore"
+spawn-at-startup "xrdb .Xresources"
+spawn-at-startup "nm-applet"
+spawn-at-startup "hypridle"
+spawn-at-startup "copyq"
+spawn-at-startup "zapzap"
+spawn-at-startup "mpd"
+spawn-at-startup "systemctl --user start hyprpolkitagent"
+
+prefer-no-csd
+
+screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
+
+window-rule {
+ match app-id=r#"^org\.wezfurlong\.wezterm$"#
+ default-column-width {}
+}
+
+window-rule {
+ match app-id=r#"firefox$"# title="^Picture-in-Picture$"
+ open-floating true
+}
+
+window-rule {
+ match app-id=r#"^com\.github\.hluk\.copyq\.desktop$"#
+ open-floating true
+}
+
+window-rule {
+ match app-id=r#"^org\.keepassxc\.KeePassXC$"#
+ match app-id=r#"^org\.gnome\.World\.Secrets$"#
+
+ block-out-from "screen-capture"
+}
+
+window-rule {
+ geometry-corner-radius 5
+ clip-to-geometry true
+}
+
+hotkey-overlay {
+ skip-at-startup
+}
+
+binds {
+ Mod+Shift+Slash { show-hotkey-overlay; }
+
+ Mod+Return hotkey-overlay-title="Open a Terminal: wezterm" { spawn "wezterm"; }
+ Mod+R hotkey-overlay-title="Run an Application: rofi" { spawn "bash" "-c" "rofi -show drun"; }
+ Mod+B hotkey-overlay-title="Browser" { spawn "~/.nix-profile/bin/nixGL" "qutebrowser"; }
+ // Mod+B hotkey-overlay-title="Browser" { spawn "qutebrowser"; }
+ Mod+E hotkey-overlay-title="File Explorer" { spawn "thunar"; }
+ Mod+Shift+Period hotkey-overlay-title="Emoji" { spawn "bash" "-c" "rofi -show emoji"; }
+ Super+Alt+L hotkey-overlay-title="Power menu" { spawn "bash" "-c" "/home/anand/.local/bin/rofi-power-menu.sh"; }
+ Alt+Tab hotkey-overlay-title="Niriswitcher" { spawn "niriswitcherctl" "show" "--window"; }
+ Mod+P hotkey-overlay-title="Passwords" { spawn "passmenu"; }
+
+ XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; }
+ XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05-"; }
+ XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
+ XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
+ XF86MonBrightnessDown allow-when-locked=true { spawn "brillo" "-U" "5"; }
+ XF86MonBrightnessUP allow-when-locked=true { spawn "brillo" "-A" "5"; }
+
+ Mod+O repeat=false { toggle-overview; }
+
+ Mod+Q { close-window; }
+
+ Mod+Left { focus-column-left; }
+ Mod+Down { focus-window-down; }
+ Mod+Up { focus-window-up; }
+ Mod+Right { focus-column-right; }
+ Mod+H { focus-column-left; }
+ // Mod+J { focus-window-down; }
+ // Mod+K { focus-window-up; }
+ Mod+L { focus-column-right; }
+
+ Mod+Shift+Left { move-column-left; }
+ Mod+Shift+Down { move-window-down; }
+ Mod+Shift+Up { move-window-up; }
+ Mod+Shift+Right { move-column-right; }
+ Mod+Shift+H { move-column-left; }
+ // Mod+Ctrl+J { move-window-down; }
+ // Mod+Ctrl+K { move-window-up; }
+ Mod+Shift+L { move-column-right; }
+
+ Mod+J { focus-window-or-workspace-down; }
+ Mod+K { focus-window-or-workspace-up; }
+ Mod+Shift+J { move-window-down-or-to-workspace-down; }
+ Mod+Shift+K { move-window-up-or-to-workspace-up; }
+
+ Mod+Home { focus-column-first; }
+ Mod+End { focus-column-last; }
+ Mod+Ctrl+Home { move-column-to-first; }
+ Mod+Ctrl+End { move-column-to-last; }
+
+ Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
+ Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
+ Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
+ Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
+ Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
+ Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
+ Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
+ Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
+
+ Mod+Page_Down { focus-workspace-down; }
+ Mod+Page_Up { focus-workspace-up; }
+ Mod+U { focus-workspace-down; }
+ Mod+I { focus-workspace-up; }
+ Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
+ Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
+ Mod+Ctrl+U { move-column-to-workspace-down; }
+ Mod+Ctrl+I { move-column-to-workspace-up; }
+
+ Mod+Shift+Page_Down { move-workspace-down; }
+ Mod+Shift+Page_Up { move-workspace-up; }
+ Mod+Shift+U { move-workspace-down; }
+ Mod+Shift+I { move-workspace-up; }
+
+ Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
+ Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
+ Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
+ Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
+
+ Mod+WheelScrollRight { focus-column-right; }
+ Mod+WheelScrollLeft { focus-column-left; }
+ Mod+Ctrl+WheelScrollRight { move-column-right; }
+ Mod+Ctrl+WheelScrollLeft { move-column-left; }
+
+ Mod+Shift+WheelScrollDown { focus-column-right; }
+ Mod+Shift+WheelScrollUp { focus-column-left; }
+ Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
+ Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
+
+ Mod+1 { focus-workspace 1; }
+ Mod+2 { focus-workspace 2; }
+ Mod+3 { focus-workspace 3; }
+ Mod+4 { focus-workspace 4; }
+ Mod+5 { focus-workspace 5; }
+ Mod+6 { focus-workspace 6; }
+ Mod+7 { focus-workspace 7; }
+ Mod+8 { focus-workspace 8; }
+ Mod+9 { focus-workspace 9; }
+ Mod+0 { focus-workspace 10; }
+ Mod+Ctrl+1 { move-column-to-workspace 1; }
+ Mod+Ctrl+2 { move-column-to-workspace 2; }
+ Mod+Ctrl+3 { move-column-to-workspace 3; }
+ Mod+Ctrl+4 { move-column-to-workspace 4; }
+ Mod+Ctrl+5 { move-column-to-workspace 5; }
+ Mod+Ctrl+6 { move-column-to-workspace 6; }
+ Mod+Ctrl+7 { move-column-to-workspace 7; }
+ Mod+Ctrl+8 { move-column-to-workspace 8; }
+ Mod+Ctrl+9 { move-column-to-workspace 9; }
+ Mod+Ctrl+0 { move-column-to-workspace 10; }
+
+ Mod+BracketLeft { consume-or-expel-window-left; }
+ Mod+BracketRight { consume-or-expel-window-right; }
+
+ Mod+Comma { consume-window-into-column; }
+ Mod+Period { expel-window-from-column; }
+
+ Mod+D { switch-preset-column-width; }
+ Mod+Shift+R { switch-preset-window-height; }
+ Mod+Ctrl+R { reset-window-height; }
+ Mod+F { maximize-column; }
+ Mod+Shift+F { fullscreen-window; }
+
+ Mod+Ctrl+F { expand-column-to-available-width; }
+
+ Mod+C { center-column; }
+
+ Mod+Ctrl+C { center-visible-columns; }
+
+ Mod+Minus { set-column-width "-10%"; }
+ Mod+Equal { set-column-width "+10%"; }
+
+ // Finer height adjustments when in column with other windows.
+ Mod+Shift+Minus { set-window-height "-5%"; }
+ Mod+Shift+Equal { set-window-height "+5%"; }
+
+ // Move the focused window between the floating and the tiling layout.
+ Mod+V { toggle-window-floating; }
+ Mod+Shift+V { switch-focus-between-floating-and-tiling; }
+
+ // Toggle tabbed column display mode.
+ // Windows in this column will appear as vertical tabs,
+ // rather than stacked on top of each other.
+ Mod+W { toggle-column-tabbed-display; }
+
+ Mod+Shift+S { spawn "~/dots/niri/screenshotwayland.sh"; }
+ Ctrl+Print { screenshot-screen; }
+ Alt+Print { screenshot-window; }
+
+ Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
+
+ Mod+Shift+E { quit; }
+ Ctrl+Alt+Delete { quit; }
+
+ Mod+Shift+P { power-off-monitors; }
+}
+
+environment {
+ CHROME_EXECUTABLE "/usr/bin/chromium"
+}
diff --git a/niri/screenshotwayland.sh b/niri/screenshotwayland.sh
new file mode 100755
index 0000000..22bacd0
--- /dev/null
+++ b/niri/screenshotwayland.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+slurp | grim -g - - | wl-copy
+choice=$(printf "save to clipboard\nsave to file" | rofi -dmenu)
+
+case "$choice" in
+ "Save to File")
+ wl-paste > ~/Pictures/Screenshots/screenshot-$(date +%F_%H-%M-%S).png
+ ;;
+ *)
+ exit 0
+ ;;
+esac
diff --git a/nvim/init.lua b/nvim/init.lua
new file mode 100755
index 0000000..7ec606c
--- /dev/null
+++ b/nvim/init.lua
@@ -0,0 +1,175 @@
+vim.g.mapleader = ' '
+vim.o.number = true
+vim.o.tabstop = 2
+vim.o.softtabstop = 2
+vim.o.shiftwidth = 2
+vim.o.foldlevel = 2
+vim.o.expandtab = true
+vim.o.autoindent = true
+vim.o.smartindent = true
+vim.o.signcolumn = 'yes'
+vim.o.foldlevel = 99
+vim.o.hlsearch = false
+vim.o.swapfile = true
+vim.o.undodir = os.getenv("HOME") .. "/.vim/undodir"
+vim.o.undofile = true
+vim.o.smartcase = true
+vim.o.ignorecase = true
+vim.o.scrolloff = 8
+vim.opt.path:append("**")
+vim.o.winborder = 'rounded'
+vim.o.foldmethod = 'expr'
+vim.o.guifont = 'IntoneMono NF:h10'
+vim.o.foldexpr = 'v:lua.vim.lsp.foldexpr()'
+vim.api.nvim_create_autocmd('LspAttach', {
+ callback = function(args)
+ local client = vim.lsp.get_client_by_id(args.data.client_id)
+ if client ~= nil and client:supports_method('textDocument/foldingRange') then
+ local win = vim.api.nvim_get_current_win()
+ vim.wo[win][0].foldexpr = 'v:lua.vim.lsp.foldexpr()'
+ end
+ end,
+})
+
+-- Clone 'mini.nvim' manually in a way that it gets managed by 'mini.deps'
+local path_package = vim.fn.stdpath('data') .. '/site/'
+local mini_path = path_package .. 'pack/deps/start/mini.nvim'
+if not vim.loop.fs_stat(mini_path) then
+ vim.cmd('echo "Installing `mini.nvim`" | redraw')
+ local clone_cmd = {
+ 'git', 'clone', '--filter=blob:none',
+ 'https://github.com/nvim-mini/mini.nvim', mini_path
+ }
+ vim.fn.system(clone_cmd)
+ vim.cmd('packadd mini.nvim | helptags ALL')
+ vim.cmd('echo "Installed `mini.nvim`" | redraw')
+end
+
+vim.api.nvim_create_autocmd("TextYankPost", {
+ callback = function()
+ vim.highlight.on_yank()
+ end,
+})
+
+require('mini.deps').setup({ path = { package = path_package } })
+
+local add = require('mini.deps').add
+add({
+ source = 'nvim-flutter/flutter-tools.nvim',
+ depends = {
+ 'stevearc/dressing.nvim',
+ 'nvim-lua/plenary.nvim'
+ }
+})
+add({ source = 'lewis6991/gitsigns.nvim' })
+add({ source = 'tpope/vim-fugitive' })
+add({ source = 'folke/tokyonight.nvim' })
+add({ source = 'nvim-treesitter/nvim-treesitter' })
+add({ source = 'OXY2DEV/markview.nvim' })
+add({
+ source = 'nvim-mini/mini.completion',
+ dependencies = {
+ 'nvim-mini/mini.icons',
+ 'nvim-mini/mini-snippets'
+ }
+})
+add({ source = 'nvim-mini/mini.surround' })
+add({ source = 'nvim-mini/mini.ai' })
+add({ source = 'nvim-mini/mini.move' })
+add({ source = 'nvim-mini/mini.files' })
+add({ source = 'nvim-treesitter/nvim-treesitter-context' })
+add({ source = 'echasnovski/mini.pick' })
+add({ source = 'onsails/diaglist.nvim' })
+add({ source = 'mbbill/undotree' })
+add({ source = 'HakonHarnes/img-clip.nvim' })
+add({ source = 'akinsho/toggleterm.nvim' })
+add({ source = 'mason-org/mason.nvim' })
+add({ source = 'neovim/nvim-lspconfig' })
+add({ source = 'jghauser/follow-md-links.nvim' })
+add({ source = 'rachartier/tiny-inline-diagnostic.nvim' })
+add({
+ source = 'adibhanna/laravel.nvim',
+ dependencies = {
+ "MunifTanjim/nui.nvim",
+ "nvim-lua/plenary.nvim"
+ }
+})
+
+vim.lsp.enable({ 'jdtls', 'tinymist', 'clangd', 'emmet_language_server', 'lua_ls', 'neocmake', 'rust_analyzer', 'gopls' })
+
+-- Plugin Setup
+require('mason').setup()
+require('flutter-tools').setup {}
+require('mini.surround').setup()
+require('mini.ai').setup()
+require('mini.pick').setup()
+require('mini.move').setup()
+require('mini.files').setup()
+require('mini.completion').setup()
+require("tiny-inline-diagnostic").setup()
+require('toggleterm').setup()
+require('diaglist').init()
+require('gitsigns').setup()
+require("laravel").setup()
+require 'treesitter-context'.setup { enable = true }
+
+vim.cmd.colorscheme('tokyonight-night')
+vim.cmd.hi("StatusLine guibg=NONE")
+
+vim.api.nvim_create_autocmd("BufWritePre", {
+ pattern = "*.*",
+ callback = function() vim.lsp.buf.format() end,
+})
+
+-- Keymaps
+vim.keymap.set("i", "", "<C-S-H>", { desc = "Solution for xterm" })
+vim.keymap.set({ "n", "v" }, "j", "gj", { desc = "Personal preference" })
+vim.keymap.set({ "n", "v" }, "k", "gk", { desc = "Personal preference" })
+vim.keymap.set("n", "<leader><space>e", "<cmd>lua MiniFiles.open()<CR>", { desc = 'Open Mini.Files' })
+vim.keymap.set("n", "<leader>cw", require('diaglist').open_all_diagnostics, { desc = 'Open diagnostics' })
+vim.keymap.set("n", "<leader>cl", "<cmd>cclose<cr>", { desc = 'Open diagnostics' })
+vim.keymap.set('n', '<leader><leader>u', vim.cmd.UndotreeToggle, { desc = 'Toggle undo tree' })
+vim.keymap.set("n", "<leader>pv", "<cmd>Ex<CR>", { desc = "Open netrw" })
+vim.keymap.set("n", "<leader>ff", "<cmd>Pick files<CR>", { desc = "Open file Picker" })
+vim.keymap.set("n", "<leader>fg", "<cmd>Pick grep_live<CR>", { desc = "Open Live Grep" })
+vim.keymap.set("n", "<C-d>", "<C-d>zz")
+vim.keymap.set("n", "<C-u>", "<C-u>zz")
+vim.keymap.set("n", "n", "nzzzv")
+vim.keymap.set("n", "N", "Nzzzv")
+vim.keymap.set({ "n", "v" }, "<leader>y", "\"+y", { desc = "Copy to system clipboard" })
+vim.keymap.set({ "n", "v" }, "<leader>yy", "V\"+y", { desc = "Copy to system clipboard" })
+vim.keymap.set({ "n" }, "<leader>p", "\"+p", { desc = "Paste system clipboard" })
+vim.keymap.set("v", "<leader>d", "\"_d", { desc = "Delete without copying to buffer" })
+vim.keymap.set("n", "<leader>dd", "V\"+d", { desc = "Delete without copying to buffer" })
+vim.keymap.set({ 'n', 'i' }, '<C-l>', '<CMD>tabnext<CR>', { desc = "Move to next tab" })
+vim.keymap.set({ 'n', 'i' }, '<C-h>', '<CMD>tabprevious<CR>', { desc = "Move to previous tab" })
+vim.keymap.set("n", "<C-j>", "<cmd>cnext<CR>zz")
+vim.keymap.set("n", "<C-k>", "<cmd>cprev<CR>zz")
+vim.keymap.set({ "n", "t" }, "<leader>/", "<cmd>ToggleTerm<CR>")
+vim.keymap.set("n", "gx", function()
+ local url = vim.fn.expand("<cfile>")
+ vim.fn.jobstart({ "xdg-open", url }, { detach = true })
+end, { desc = "Open URL with xdg-open" })
+
+-- vim.keymap.set("i", "<C-e>", function()
+-- if vim.fn.pumvisible() == 1 then
+-- return "<C-y>"
+-- else
+-- return "<C-e>"
+-- end
+-- end, { expr = true, silent = true })a
+
+vim.api.nvim_create_autocmd('LspAttach', {
+ callback = function(ev)
+ local client = vim.lsp.get_client_by_id(ev.data.client_id)
+ if client ~= nil and client:supports_method('textDocument/completion') then
+ vim.opt.completeopt = { 'menu', 'menuone', 'noselect', 'fuzzy', 'popup' }
+ vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
+ vim.keymap.set('i', '<C-Space>', function()
+ vim.lsp.completion.get()
+ end, { desc = 'Start Completion' })
+ end
+ end,
+})
+
+vim.diagnostic.config({ virtual_text = false })
diff --git a/nvim/lsp/ada_ls.lua b/nvim/lsp/ada_ls.lua
new file mode 100755
index 0000000..ff43d9a
--- /dev/null
+++ b/nvim/lsp/ada_ls.lua
@@ -0,0 +1,30 @@
+---@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'
+
+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/nvim/lsp/agda_ls.lua b/nvim/lsp/agda_ls.lua
new file mode 100755
index 0000000..b10f14e
--- /dev/null
+++ b/nvim/lsp/agda_ls.lua
@@ -0,0 +1,16 @@
+---@brief
+---
+--- https://github.com/agda/agda-language-server
+---
+--- Language Server for Agda.
+
+local util = require 'lspconfig.util'
+
+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/nvim/lsp/aiken.lua b/nvim/lsp/aiken.lua
new file mode 100755
index 0000000..f0054c2
--- /dev/null
+++ b/nvim/lsp/aiken.lua
@@ -0,0 +1,13 @@
+---@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
+return {
+ cmd = { 'aiken', 'lsp' },
+ filetypes = { 'aiken' },
+ root_markers = { 'aiken.toml', '.git' },
+}
diff --git a/nvim/lsp/air.lua b/nvim/lsp/air.lua
new file mode 100755
index 0000000..8f90a73
--- /dev/null
+++ b/nvim/lsp/air.lua
@@ -0,0 +1,12 @@
+---@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.
+return {
+ cmd = { 'air', 'language-server' },
+ filetypes = { 'r' },
+ root_markers = { 'air.toml', '.air.toml', '.git' },
+}
diff --git a/nvim/lsp/alloy_ls.lua b/nvim/lsp/alloy_ls.lua
new file mode 100755
index 0000000..e1fe24e
--- /dev/null
+++ b/nvim/lsp/alloy_ls.lua
@@ -0,0 +1,28 @@
+---@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.
+return {
+ cmd = { 'alloy', 'lsp' },
+ filetypes = { 'alloy' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/anakin_language_server.lua b/nvim/lsp/anakin_language_server.lua
new file mode 100755
index 0000000..a993496
--- /dev/null
+++ b/nvim/lsp/anakin_language_server.lua
@@ -0,0 +1,69 @@
+---@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
+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/nvim/lsp/angularls.lua b/nvim/lsp/angularls.lua
new file mode 100755
index 0000000..f527e09
--- /dev/null
+++ b/nvim/lsp/angularls.lua
@@ -0,0 +1,84 @@
+---@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(',')
+
+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/nvim/lsp/ansiblels.lua b/nvim/lsp/ansiblels.lua
new file mode 100755
index 0000000..75f03ac
--- /dev/null
+++ b/nvim/lsp/ansiblels.lua
@@ -0,0 +1,36 @@
+---@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
+--- ```
+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/nvim/lsp/antlersls.lua b/nvim/lsp/antlersls.lua
new file mode 100755
index 0000000..fe01ea8
--- /dev/null
+++ b/nvim/lsp/antlersls.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://www.npmjs.com/package/antlers-language-server
+---
+--- `antlersls` can be installed via `npm`:
+--- ```sh
+--- npm install -g antlers-language-server
+--- ```
+return {
+ cmd = { 'antlersls', '--stdio' },
+ filetypes = { 'html', 'antlers' },
+ root_markers = { 'composer.json' },
+}
diff --git a/nvim/lsp/arduino_language_server.lua b/nvim/lsp/arduino_language_server.lua
new file mode 100755
index 0000000..0b47a70
--- /dev/null
+++ b/nvim/lsp/arduino_language_server.lua
@@ -0,0 +1,90 @@
+---@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'
+
+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/nvim/lsp/asm_lsp.lua b/nvim/lsp/asm_lsp.lua
new file mode 100755
index 0000000..368fa9c
--- /dev/null
+++ b/nvim/lsp/asm_lsp.lua
@@ -0,0 +1,13 @@
+---@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
+return {
+ cmd = { 'asm-lsp' },
+ filetypes = { 'asm', 'vmasm' },
+ root_markers = { '.asm-lsp.toml', '.git' },
+}
diff --git a/nvim/lsp/ast_grep.lua b/nvim/lsp/ast_grep.lua
new file mode 100755
index 0000000..6ba3d7c
--- /dev/null
+++ b/nvim/lsp/ast_grep.lua
@@ -0,0 +1,37 @@
+---@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
+--- ```
+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
+ 'c',
+ 'cpp',
+ 'rust',
+ 'go',
+ 'java',
+ 'python',
+ 'javascript',
+ 'javascriptreact',
+ 'javascript.jsx',
+ 'typescript',
+ 'typescriptreact',
+ 'typescript.tsx',
+ 'html',
+ 'css',
+ 'kotlin',
+ 'dart',
+ 'lua',
+ },
+ root_markers = { 'sgconfig.yaml', 'sgconfig.yml' },
+}
diff --git a/nvim/lsp/astro.lua b/nvim/lsp/astro.lua
new file mode 100755
index 0000000..6f33439
--- /dev/null
+++ b/nvim/lsp/astro.lua
@@ -0,0 +1,24 @@
+---@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'
+
+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/nvim/lsp/atlas.lua b/nvim/lsp/atlas.lua
new file mode 100755
index 0000000..fbcbab8
--- /dev/null
+++ b/nvim/lsp/atlas.lua
@@ -0,0 +1,64 @@
+---@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')
+--- ```
+---
+return {
+ cmd = { 'atlas', 'tool', 'lsp', '--stdio' },
+ filetypes = {
+ 'atlas-*',
+ },
+ root_markers = { 'atlas.hcl' },
+}
diff --git a/nvim/lsp/autohotkey_lsp.lua b/nvim/lsp/autohotkey_lsp.lua
new file mode 100755
index 0000000..eac26a7
--- /dev/null
+++ b/nvim/lsp/autohotkey_lsp.lua
@@ -0,0 +1,50 @@
+---@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
+
+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*(?<tag>.+)',
+ 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/nvim/lsp/autotools_ls.lua b/nvim/lsp/autotools_ls.lua
new file mode 100755
index 0000000..caa17b2
--- /dev/null
+++ b/nvim/lsp/autotools_ls.lua
@@ -0,0 +1,23 @@
+---@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' }
+
+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/nvim/lsp/awk_ls.lua b/nvim/lsp/awk_ls.lua
new file mode 100755
index 0000000..1c609cd
--- /dev/null
+++ b/nvim/lsp/awk_ls.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://github.com/Beaglefoot/awk-language-server/
+---
+--- `awk-language-server` can be installed via `npm`:
+--- ```sh
+--- npm install -g awk-language-server
+--- ```
+
+return {
+ cmd = { 'awk-language-server' },
+ filetypes = { 'awk' },
+}
diff --git a/nvim/lsp/azure_pipelines_ls.lua b/nvim/lsp/azure_pipelines_ls.lua
new file mode 100755
index 0000000..ade47eb
--- /dev/null
+++ b/nvim/lsp/azure_pipelines_ls.lua
@@ -0,0 +1,37 @@
+---@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`.
+return {
+ cmd = { 'azure-pipelines-language-server', '--stdio' },
+ filetypes = { 'yaml' },
+ root_markers = { 'azure-pipelines.yml' },
+ settings = {},
+}
diff --git a/nvim/lsp/bacon_ls.lua b/nvim/lsp/bacon_ls.lua
new file mode 100755
index 0000000..b3b271f
--- /dev/null
+++ b/nvim/lsp/bacon_ls.lua
@@ -0,0 +1,45 @@
+---@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,
+--- }
+--- ```
+return {
+ cmd = { 'bacon-ls' },
+ filetypes = { 'rust' },
+ root_markers = { '.bacon-locations', 'Cargo.toml' },
+ init_options = {},
+}
diff --git a/nvim/lsp/ballerina.lua b/nvim/lsp/ballerina.lua
new file mode 100755
index 0000000..55d3369
--- /dev/null
+++ b/nvim/lsp/ballerina.lua
@@ -0,0 +1,11 @@
+---@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.
+return {
+ cmd = { 'bal', 'start-language-server' },
+ filetypes = { 'ballerina' },
+ root_markers = { 'Ballerina.toml' },
+}
diff --git a/nvim/lsp/basedpyright.lua b/nvim/lsp/basedpyright.lua
new file mode 100755
index 0000000..2ec5944
--- /dev/null
+++ b/nvim/lsp/basedpyright.lua
@@ -0,0 +1,59 @@
+---@brief
+---
+--- https://detachhead.github.io/basedpyright
+---
+--- `basedpyright`, a static type checker and language server for python
+
+local function set_python_path(path)
+ 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
+
+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()
+ client:exec_cmd({
+ command = 'basedpyright.organizeimports',
+ arguments = { vim.uri_from_bufnr(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/nvim/lsp/bashls.lua b/nvim/lsp/bashls.lua
new file mode 100755
index 0000000..79d86d3
--- /dev/null
+++ b/nvim/lsp/bashls.lua
@@ -0,0 +1,27 @@
+---@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.
+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/nvim/lsp/basics_ls.lua b/nvim/lsp/basics_ls.lua
new file mode 100755
index 0000000..a932d22
--- /dev/null
+++ b/nvim/lsp/basics_ls.lua
@@ -0,0 +1,25 @@
+---@brief
+---
+--- https://github.com/antonk52/basics-language-server/
+---
+--- Buffer, path, and snippet completion
+---
+--- ```sh
+--- npm install -g basics-language-server
+--- ```
+return {
+ cmd = { 'basics-language-server' },
+ settings = {
+ buffer = {
+ enable = true,
+ minCompletionLength = 4,
+ },
+ path = {
+ enable = true,
+ },
+ snippet = {
+ enable = false,
+ sources = {},
+ },
+ },
+}
diff --git a/nvim/lsp/bazelrc_lsp.lua b/nvim/lsp/bazelrc_lsp.lua
new file mode 100755
index 0000000..bf17b5a
--- /dev/null
+++ b/nvim/lsp/bazelrc_lsp.lua
@@ -0,0 +1,20 @@
+---@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',
+--- },
+--- }
+--- ```
+return {
+ cmd = { 'bazelrc-lsp', 'lsp' },
+ filetypes = { 'bazelrc' },
+ root_markers = { 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel' },
+}
diff --git a/nvim/lsp/beancount.lua b/nvim/lsp/beancount.lua
new file mode 100755
index 0000000..d14ae25
--- /dev/null
+++ b/nvim/lsp/beancount.lua
@@ -0,0 +1,11 @@
+---@brief
+---
+--- https://github.com/polarmutex/beancount-language-server#installation
+---
+--- See https://github.com/polarmutex/beancount-language-server#configuration for configuration options
+return {
+ cmd = { 'beancount-language-server', '--stdio' },
+ filetypes = { 'beancount', 'bean' },
+ root_markers = { '.git' },
+ init_options = {},
+}
diff --git a/nvim/lsp/bicep.lua b/nvim/lsp/bicep.lua
new file mode 100755
index 0000000..fe3ddb1
--- /dev/null
+++ b/nvim/lsp/bicep.lua
@@ -0,0 +1,38 @@
+---@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)
+--- ```
+return {
+ filetypes = { 'bicep', 'bicep-params' },
+ root_markers = { '.git' },
+ init_options = {},
+}
diff --git a/nvim/lsp/biome.lua b/nvim/lsp/biome.lua
new file mode 100755
index 0000000..d58ae46
--- /dev/null
+++ b/nvim/lsp/biome.lua
@@ -0,0 +1,46 @@
+---@brief
+--- https://biomejs.dev
+---
+--- Toolchain of the web. [Successor of Rome](https://biomejs.dev/blog/annoucing-biome).
+---
+--- ```sh
+--- npm install [-g] @biomejs/biome
+--- ```
+
+local util = require 'lspconfig.util'
+
+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(_, on_dir)
+ -- To support monorepos, biome recommends starting the search for the root from cwd
+ -- https://biomejs.dev/guides/big-projects/#use-multiple-configuration-files
+ local cwd = vim.fn.getcwd()
+ local root_files = { 'biome.json', 'biome.jsonc' }
+ root_files = util.insert_package_json(root_files, 'biome', cwd)
+ local root_dir = vim.fs.dirname(vim.fs.find(root_files, { path = cwd, upward = true })[1])
+ on_dir(root_dir)
+ end,
+}
diff --git a/nvim/lsp/bitbake_language_server.lua b/nvim/lsp/bitbake_language_server.lua
new file mode 100755
index 0000000..3abdb8b
--- /dev/null
+++ b/nvim/lsp/bitbake_language_server.lua
@@ -0,0 +1,8 @@
+---@brief
+---
+--- ๐Ÿ› ๏ธ bitbake language server
+return {
+ cmd = { 'bitbake-language-server' },
+ filetypes = { 'bitbake' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/blueprint_ls.lua b/nvim/lsp/blueprint_ls.lua
new file mode 100755
index 0000000..f7c75ba
--- /dev/null
+++ b/nvim/lsp/blueprint_ls.lua
@@ -0,0 +1,20 @@
+---@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.
+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/nvim/lsp/bqls.lua b/nvim/lsp/bqls.lua
new file mode 100755
index 0000000..6ebc885
--- /dev/null
+++ b/nvim/lsp/bqls.lua
@@ -0,0 +1,15 @@
+---@brief
+---
+--- https://github.com/kitagry/bqls
+---
+--- The `bqls` BigQuery language server can be installed by running:
+---
+--- ```sh
+--- $ go install github.com/kitagry/bqls@latest
+--- ```
+return {
+ cmd = { 'bqls' },
+ filetypes = { 'sql' },
+ root_markers = { '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/bright_script.lua b/nvim/lsp/bright_script.lua
new file mode 100755
index 0000000..ead26fc
--- /dev/null
+++ b/nvim/lsp/bright_script.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://github.com/RokuCommunity/brighterscript
+---
+--- `brightscript` can be installed via `npm`:
+--- ```sh
+--- npm install -g brighterscript
+--- ```
+return {
+ cmd = { 'bsc', '--lsp', '--stdio' },
+ filetypes = { 'brs' },
+ root_markers = { 'makefile', 'Makefile', '.git' },
+}
diff --git a/nvim/lsp/bsl_ls.lua b/nvim/lsp/bsl_ls.lua
new file mode 100755
index 0000000..d96bf16
--- /dev/null
+++ b/nvim/lsp/bsl_ls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/1c-syntax/bsl-language-server
+---
+--- Language Server Protocol implementation for 1C (BSL) - 1C:Enterprise 8 and OneScript languages.
+
+return {
+ filetypes = { 'bsl', 'os' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/buck2.lua b/nvim/lsp/buck2.lua
new file mode 100755
index 0000000..8c64746
--- /dev/null
+++ b/nvim/lsp/buck2.lua
@@ -0,0 +1,16 @@
+---@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 ]]
+--- ```
+return {
+ cmd = { 'buck2', 'lsp' },
+ filetypes = { 'bzl' },
+ root_markers = { '.buckconfig' },
+}
diff --git a/nvim/lsp/buddy_ls.lua b/nvim/lsp/buddy_ls.lua
new file mode 100755
index 0000000..55f51ac
--- /dev/null
+++ b/nvim/lsp/buddy_ls.lua
@@ -0,0 +1,11 @@
+---@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)
+return {
+ cmd = { 'buddy-lsp-server' },
+ filetypes = { 'mlir' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/buf_ls.lua b/nvim/lsp/buf_ls.lua
new file mode 100755
index 0000000..16f5dc1
--- /dev/null
+++ b/nvim/lsp/buf_ls.lua
@@ -0,0 +1,12 @@
+--- @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
+
+return {
+ cmd = { 'buf', 'beta', 'lsp', '--timeout=0', '--log-format=text' },
+ filetypes = { 'proto' },
+ root_markers = { 'buf.yaml', '.git' },
+}
diff --git a/nvim/lsp/bufls.lua b/nvim/lsp/bufls.lua
new file mode 100755
index 0000000..cdde4e4
--- /dev/null
+++ b/nvim/lsp/bufls.lua
@@ -0,0 +1,15 @@
+---@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
+return {
+ cmd = { 'bufls', 'serve' },
+ filetypes = { 'proto' },
+ root_markers = { 'buf.work.yaml', '.git' },
+}
diff --git a/nvim/lsp/bzl.lua b/nvim/lsp/bzl.lua
new file mode 100755
index 0000000..565f7cb
--- /dev/null
+++ b/nvim/lsp/bzl.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://bzl.io/
+---
+--- https://docs.stack.build/docs/cli/installation
+---
+--- https://docs.stack.build/docs/vscode/starlark-language-server
+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/nvim/lsp/c3_lsp.lua b/nvim/lsp/c3_lsp.lua
new file mode 100755
index 0000000..a2c8dc2
--- /dev/null
+++ b/nvim/lsp/c3_lsp.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/pherrymason/c3-lsp
+---
+--- Language Server for c3.
+return {
+ cmd = { 'c3lsp' },
+ root_markers = { 'project.json', 'manifest.json', '.git' },
+ filetypes = { 'c3', 'c3i' },
+}
diff --git a/nvim/lsp/cairo_ls.lua b/nvim/lsp/cairo_ls.lua
new file mode 100755
index 0000000..69b508f
--- /dev/null
+++ b/nvim/lsp/cairo_ls.lua
@@ -0,0 +1,18 @@
+---@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 !*
+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/nvim/lsp/ccls.lua b/nvim/lsp/ccls.lua
new file mode 100755
index 0000000..0b72d6d
--- /dev/null
+++ b/nvim/lsp/ccls.lua
@@ -0,0 +1,52 @@
+---@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
+
+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/nvim/lsp/cds_lsp.lua b/nvim/lsp/cds_lsp.lua
new file mode 100755
index 0000000..b1832e6
--- /dev/null
+++ b/nvim/lsp/cds_lsp.lua
@@ -0,0 +1,18 @@
+---@brief
+---
+--- https://cap.cloud.sap/docs/
+---
+--- `cds-lsp` can be installed via `npm`:
+---
+--- ```sh
+--- npm i -g @sap/cds-lsp
+--- ```
+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/nvim/lsp/circom-lsp.lua b/nvim/lsp/circom-lsp.lua
new file mode 100755
index 0000000..2a6c3a3
--- /dev/null
+++ b/nvim/lsp/circom-lsp.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- [Circom Language Server](https://github.com/rubydusa/circom-lsp)
+---
+--- `circom-lsp`, the language server for the Circom language.
+return {
+ cmd = { 'circom-lsp' },
+ filetypes = { 'circom' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/clangd.lua b/nvim/lsp/clangd.lua
new file mode 100755
index 0000000..08544d0
--- /dev/null
+++ b/nvim/lsp/clangd.lua
@@ -0,0 +1,102 @@
+---@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)
+ local method_name = 'textDocument/switchSourceHeader'
+ local client = vim.lsp.get_clients({ bufnr = bufnr, name = 'clangd' })[1]
+ if not client 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)
+ 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()
+ local bufnr = vim.api.nvim_get_current_buf()
+ local clangd_client = vim.lsp.get_clients({ bufnr = bufnr, name = 'clangd' })[1]
+ if not clangd_client or not clangd_client.supports_method 'textDocument/symbolInfo' 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, clangd_client.offset_encoding)
+ clangd_client.request('textDocument/symbolInfo', params, function(err, res)
+ if err or #res == 0 then
+ -- Clangd always returns an error, there is not 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,
+ border = 'single',
+ title = 'Symbol Info',
+ })
+ end, bufnr)
+end
+
+---@class ClangdInitializeResult: lsp.InitializeResult
+---@field offsetEncoding? string
+
+return {
+ cmd = { 'clangd' },
+ filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' },
+ root_markers = {
+ '.clangd',
+ '.clang-tidy',
+ '.clang-format',
+ 'compile_commands.json',
+ 'compile_flags.txt',
+ 'configure.ac', -- AutoTools
+ '.git',
+ },
+ init_options = {
+ fallbackFlags = { '--std=c++23' }
+ },
+ capabilities = {
+ textDocument = {
+ completion = {
+ editsNearCursor = true,
+ },
+ },
+ offsetEncoding = { 'utf-8', 'utf-16' },
+ },
+ ---@param client vim.lsp.Client
+ ---@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(_, bufnr)
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspClangdSwitchSourceHeader', function()
+ switch_source_header(bufnr)
+ end, { desc = 'Switch between source/header' })
+
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspClangdShowSymbolInfo', function()
+ symbol_info()
+ end, { desc = 'Show symbol info' })
+ end,
+}
diff --git a/nvim/lsp/clarinet.lua b/nvim/lsp/clarinet.lua
new file mode 100755
index 0000000..2c25f6a
--- /dev/null
+++ b/nvim/lsp/clarinet.lua
@@ -0,0 +1,9 @@
+---@brief
+--- https://github.com/hirosystems/clarinet
+---
+--- Clarinet is the fastest way to build, test, and deploy smart contracts on the Stacks blockchain.
+return {
+ cmd = { 'clarinet', 'lsp' },
+ filetypes = { 'clar', 'clarity' },
+ root_markers = { 'Clarinet.toml' },
+}
diff --git a/nvim/lsp/clojure_lsp.lua b/nvim/lsp/clojure_lsp.lua
new file mode 100755
index 0000000..e3aef9d
--- /dev/null
+++ b/nvim/lsp/clojure_lsp.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/clojure-lsp/clojure-lsp
+---
+--- Clojure Language Server
+return {
+ cmd = { 'clojure-lsp' },
+ filetypes = { 'clojure', 'edn' },
+ root_markers = { 'project.clj', 'deps.edn', 'build.boot', 'shadow-cljs.edn', '.git', 'bb.edn' },
+}
diff --git a/nvim/lsp/cmake.lua b/nvim/lsp/cmake.lua
new file mode 100755
index 0000000..fc05aed
--- /dev/null
+++ b/nvim/lsp/cmake.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://github.com/regen100/cmake-language-server
+---
+--- CMake LSP Implementation
+return {
+ cmd = { 'cmake-language-server' },
+ filetypes = { 'cmake' },
+ root_markers = { 'CMakePresets.json', 'CTestConfig.cmake', '.git', 'build', 'cmake' },
+ init_options = {
+ buildDirectory = 'build',
+ },
+}
diff --git a/nvim/lsp/cobol_ls.lua b/nvim/lsp/cobol_ls.lua
new file mode 100755
index 0000000..0a4f4a9
--- /dev/null
+++ b/nvim/lsp/cobol_ls.lua
@@ -0,0 +1,8 @@
+---@brief
+---
+--- Cobol language support
+return {
+ cmd = { 'cobol-language-support' },
+ filetypes = { 'cobol' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/codebook.lua b/nvim/lsp/codebook.lua
new file mode 100755
index 0000000..8a8700b
--- /dev/null
+++ b/nvim/lsp/codebook.lua
@@ -0,0 +1,32 @@
+---@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`.
+---
+return {
+ cmd = { 'codebook-lsp', 'serve' },
+ filetypes = {
+ 'c',
+ 'css',
+ 'go',
+ 'haskell',
+ 'html',
+ 'javascript',
+ 'javascriptreact',
+ 'markdown',
+ 'python',
+ 'php',
+ 'ruby',
+ 'rust',
+ 'toml',
+ 'text',
+ 'typescript',
+ 'typescriptreact',
+ },
+ root_markers = { '.git', 'codebook.toml', '.codebook.toml' },
+}
diff --git a/nvim/lsp/coffeesense.lua b/nvim/lsp/coffeesense.lua
new file mode 100755
index 0000000..0aface5
--- /dev/null
+++ b/nvim/lsp/coffeesense.lua
@@ -0,0 +1,14 @@
+---@brief
+---
+--- https://github.com/phil294/coffeesense
+---
+--- CoffeeSense Language Server
+--- `coffeesense-language-server` can be installed via `npm`:
+--- ```sh
+--- npm install -g coffeesense-language-server
+--- ```
+return {
+ cmd = { 'coffeesense-language-server', '--stdio' },
+ filetypes = { 'coffee' },
+ root_markers = { 'package.json' },
+}
diff --git a/nvim/lsp/contextive.lua b/nvim/lsp/contextive.lua
new file mode 100755
index 0000000..5cb2544
--- /dev/null
+++ b/nvim/lsp/contextive.lua
@@ -0,0 +1,15 @@
+---@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.
+return {
+ cmd = { 'Contextive.LanguageServer' },
+ root_markers = { '.contextive', '.git' },
+}
diff --git a/nvim/lsp/coq_lsp.lua b/nvim/lsp/coq_lsp.lua
new file mode 100755
index 0000000..a8d6eb8
--- /dev/null
+++ b/nvim/lsp/coq_lsp.lua
@@ -0,0 +1,8 @@
+---@brief
+---
+--- https://github.com/ejgallego/coq-lsp/
+return {
+ cmd = { 'coq-lsp' },
+ filetypes = { 'coq' },
+ root_markers = { '_CoqProject', '.git' },
+}
diff --git a/nvim/lsp/crystalline.lua b/nvim/lsp/crystalline.lua
new file mode 100755
index 0000000..1b1ed5f
--- /dev/null
+++ b/nvim/lsp/crystalline.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/elbywan/crystalline
+---
+--- Crystal language server.
+return {
+ cmd = { 'crystalline' },
+ filetypes = { 'crystal' },
+ root_markers = { 'shard.yml', '.git' },
+}
diff --git a/nvim/lsp/csharp_ls.lua b/nvim/lsp/csharp_ls.lua
new file mode 100755
index 0000000..e44bc81
--- /dev/null
+++ b/nvim/lsp/csharp_ls.lua
@@ -0,0 +1,23 @@
+---@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'
+
+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/nvim/lsp/cspell_ls.lua b/nvim/lsp/cspell_ls.lua
new file mode 100755
index 0000000..3588a74
--- /dev/null
+++ b/nvim/lsp/cspell_ls.lua
@@ -0,0 +1,22 @@
+---@brief
+---
+--- [cspell language server](https://github.com/vlabo/cspell-lsp)
+---
+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/nvim/lsp/css_variables.lua b/nvim/lsp/css_variables.lua
new file mode 100755
index 0000000..1ee9c2b
--- /dev/null
+++ b/nvim/lsp/css_variables.lua
@@ -0,0 +1,37 @@
+---@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
+--- ```
+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/nvim/lsp/cssls.lua b/nvim/lsp/cssls.lua
new file mode 100755
index 0000000..9d69f40
--- /dev/null
+++ b/nvim/lsp/cssls.lua
@@ -0,0 +1,32 @@
+---@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,
+--- })
+--- ```
+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/nvim/lsp/cssmodules_ls.lua b/nvim/lsp/cssmodules_ls.lua
new file mode 100755
index 0000000..7837d32
--- /dev/null
+++ b/nvim/lsp/cssmodules_ls.lua
@@ -0,0 +1,15 @@
+---@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
+--- ```
+return {
+ cmd = { 'cssmodules-language-server' },
+ filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' },
+ root_markers = { 'package.json' },
+}
diff --git a/nvim/lsp/cucumber_language_server.lua b/nvim/lsp/cucumber_language_server.lua
new file mode 100755
index 0000000..8ca784d
--- /dev/null
+++ b/nvim/lsp/cucumber_language_server.lua
@@ -0,0 +1,17 @@
+---@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
+--- ```
+return {
+ cmd = { 'cucumber-language-server', '--stdio' },
+ filetypes = { 'cucumber' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/cue.lua b/nvim/lsp/cue.lua
new file mode 100755
index 0000000..d2760f9
--- /dev/null
+++ b/nvim/lsp/cue.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/cue-lang/cue
+---
+--- CUE makes it easy to validate data, write schemas, and ensure configurations align with policies.
+return {
+ cmd = { 'cue', 'lsp' },
+ filetypes = { 'cue' },
+ root_markers = { 'cue.mod', '.git' },
+}
diff --git a/nvim/lsp/custom_elements_ls.lua b/nvim/lsp/custom_elements_ls.lua
new file mode 100755
index 0000000..59acf70
--- /dev/null
+++ b/nvim/lsp/custom_elements_ls.lua
@@ -0,0 +1,30 @@
+---@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"
+--- ]
+--- }
+--- ```
+return {
+ init_options = { hostInfo = 'neovim' },
+ cmd = { 'custom-elements-languageserver', '--stdio' },
+ root_dir = { 'tsconfig.json', 'package.json', 'jsconfig.json', '.git' },
+}
diff --git a/nvim/lsp/cypher_ls.lua b/nvim/lsp/cypher_ls.lua
new file mode 100755
index 0000000..5c41a93
--- /dev/null
+++ b/nvim/lsp/cypher_ls.lua
@@ -0,0 +1,16 @@
+---@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
+--- ```
+return {
+ cmd = { 'cypher-language-server', '--stdio' },
+ filetypes = { 'cypher' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/daedalus_ls.lua b/nvim/lsp/daedalus_ls.lua
new file mode 100755
index 0000000..95da1eb
--- /dev/null
+++ b/nvim/lsp/daedalus_ls.lua
@@ -0,0 +1,26 @@
+--- @brief
+---
+--- DaedalusLanguageServer
+
+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/nvim/lsp/dafny.lua b/nvim/lsp/dafny.lua
new file mode 100755
index 0000000..fbabe83
--- /dev/null
+++ b/nvim/lsp/dafny.lua
@@ -0,0 +1,13 @@
+---@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", "<Path to your language server>"}`.
+return {
+ cmd = { 'dafny', 'server' },
+ filetypes = { 'dfy', 'dafny' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/dagger.lua b/nvim/lsp/dagger.lua
new file mode 100755
index 0000000..352b569
--- /dev/null
+++ b/nvim/lsp/dagger.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/dagger/cuelsp
+---
+--- Dagger's lsp server for cuelang.
+return {
+ cmd = { 'cuelsp' },
+ filetypes = { 'cue' },
+ root_markers = { 'cue.mod', '.git' },
+}
diff --git a/nvim/lsp/dartls.lua b/nvim/lsp/dartls.lua
new file mode 100755
index 0000000..db8684e
--- /dev/null
+++ b/nvim/lsp/dartls.lua
@@ -0,0 +1,23 @@
+---@brief
+---
+--- https://github.com/dart-lang/sdk/tree/master/pkg/analysis_server/tool/lsp_spec
+---
+--- Language server for dart.
+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/nvim/lsp/dcmls.lua b/nvim/lsp/dcmls.lua
new file mode 100755
index 0000000..83b6a97
--- /dev/null
+++ b/nvim/lsp/dcmls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://dcm.dev/
+---
+--- Language server for DCM analyzer.
+return {
+ cmd = { 'dcm', 'start-server', '--client=neovim' },
+ filetypes = { 'dart' },
+ root_markers = { 'pubspec.yaml' },
+}
diff --git a/nvim/lsp/debputy.lua b/nvim/lsp/debputy.lua
new file mode 100755
index 0000000..7aa71bf
--- /dev/null
+++ b/nvim/lsp/debputy.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://salsa.debian.org/debian/debputy
+---
+--- Language Server for Debian packages.
+return {
+ cmd = { 'debputy', 'lsp', 'server' },
+ filetypes = { 'debcontrol', 'debcopyright', 'debchangelog', 'autopkgtest', 'make', 'yaml' },
+ root_markers = { 'debian' },
+}
diff --git a/nvim/lsp/denols.lua b/nvim/lsp/denols.lua
new file mode 100755
index 0000000..c6052ef
--- /dev/null
+++ b/nvim/lsp/denols.lua
@@ -0,0 +1,110 @@
+---@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
+
+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, _result, ctx)
+ if err then
+ local uri = ctx.params.arguments[2]
+ vim.api.nvim_err_writeln('cache command failed for ' .. vim.uri_to_fname(uri))
+ end
+ end)
+ end, {
+ desc = 'Cache a module and all of its dependencies.',
+ })
+ end,
+}
diff --git a/nvim/lsp/dhall_lsp_server.lua b/nvim/lsp/dhall_lsp_server.lua
new file mode 100755
index 0000000..607d3fc
--- /dev/null
+++ b/nvim/lsp/dhall_lsp_server.lua
@@ -0,0 +1,17 @@
+---@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).
+
+return {
+ cmd = { 'dhall-lsp-server' },
+ filetypes = { 'dhall' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/diagnosticls.lua b/nvim/lsp/diagnosticls.lua
new file mode 100755
index 0000000..f4a9391
--- /dev/null
+++ b/nvim/lsp/diagnosticls.lua
@@ -0,0 +1,12 @@
+---@brief
+---
+--- https://github.com/iamcco/diagnostic-languageserver
+---
+--- Diagnostic language server integrate with linters.
+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/nvim/lsp/digestif.lua b/nvim/lsp/digestif.lua
new file mode 100755
index 0000000..064c32b
--- /dev/null
+++ b/nvim/lsp/digestif.lua
@@ -0,0 +1,14 @@
+---@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.
+return {
+ cmd = { 'digestif' },
+ filetypes = { 'tex', 'plaintex', 'context' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/djlsp.lua b/nvim/lsp/djlsp.lua
new file mode 100755
index 0000000..dca6f37
--- /dev/null
+++ b/nvim/lsp/djlsp.lua
@@ -0,0 +1,12 @@
+---@brief
+---
+--- https://github.com/fourdigits/django-template-lsp
+---
+--- `djlsp`, a language server for Django templates.
+
+return {
+ cmd = { 'djlsp' },
+ filetypes = { 'html', 'htmldjango' },
+ root_markers = { '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/docker_compose_language_service.lua b/nvim/lsp/docker_compose_language_service.lua
new file mode 100755
index 0000000..a146be2
--- /dev/null
+++ b/nvim/lsp/docker_compose_language_service.lua
@@ -0,0 +1,18 @@
+---@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`.
+
+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/nvim/lsp/docker_language_server.lua b/nvim/lsp/docker_language_server.lua
new file mode 100755
index 0000000..76236ff
--- /dev/null
+++ b/nvim/lsp/docker_language_server.lua
@@ -0,0 +1,23 @@
+---@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
+--- ```
+return {
+ cmd = { 'docker-language-server', 'start', '--stdio' },
+ filetypes = { 'dockerfile', 'yaml.docker-compose' },
+ 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/nvim/lsp/dockerls.lua b/nvim/lsp/dockerls.lua
new file mode 100755
index 0000000..f497035
--- /dev/null
+++ b/nvim/lsp/dockerls.lua
@@ -0,0 +1,28 @@
+---@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,
+--- },
+--- },
+--- }
+--- }
+--- })
+--- ```
+return {
+ cmd = { 'docker-langserver', '--stdio' },
+ filetypes = { 'dockerfile' },
+ root_markers = { 'Dockerfile' },
+}
diff --git a/nvim/lsp/dolmenls.lua b/nvim/lsp/dolmenls.lua
new file mode 100755
index 0000000..c0eefb4
--- /dev/null
+++ b/nvim/lsp/dolmenls.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://github.com/Gbury/dolmen/blob/master/doc/lsp.md
+---
+--- `dolmenls` can be installed via `opam`
+--- ```sh
+--- opam install dolmen_lsp
+--- ```
+return {
+ cmd = { 'dolmenls' },
+ filetypes = { 'smt2', 'tptp', 'p', 'cnf', 'icnf', 'zf' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/dotls.lua b/nvim/lsp/dotls.lua
new file mode 100755
index 0000000..8867fcf
--- /dev/null
+++ b/nvim/lsp/dotls.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://github.com/nikeee/dot-language-server
+---
+--- `dot-language-server` can be installed via `npm`:
+--- ```sh
+--- npm install -g dot-language-server
+--- ```
+return {
+ cmd = { 'dot-language-server', '--stdio' },
+ filetypes = { 'dot' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/dprint.lua b/nvim/lsp/dprint.lua
new file mode 100755
index 0000000..57d6c96
--- /dev/null
+++ b/nvim/lsp/dprint.lua
@@ -0,0 +1,24 @@
+---@brief
+---
+--- https://github.com/dprint/dprint
+---
+--- Pluggable and configurable code formatting platform written in Rust.
+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/nvim/lsp/ds_pinyin_lsp.lua b/nvim/lsp/ds_pinyin_lsp.lua
new file mode 100755
index 0000000..528a510
--- /dev/null
+++ b/nvim/lsp/ds_pinyin_lsp.lua
@@ -0,0 +1,66 @@
+---@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
+
+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/nvim/lsp/dts_lsp.lua b/nvim/lsp/dts_lsp.lua
new file mode 100755
index 0000000..a687fcb
--- /dev/null
+++ b/nvim/lsp/dts_lsp.lua
@@ -0,0 +1,21 @@
+---@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
+
+return {
+ name = 'dts_lsp',
+ cmd = { 'dts-lsp' },
+ filetypes = { 'dts', 'dtsi', 'overlay' },
+ root_markers = { '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/earthlyls.lua b/nvim/lsp/earthlyls.lua
new file mode 100755
index 0000000..f62466f
--- /dev/null
+++ b/nvim/lsp/earthlyls.lua
@@ -0,0 +1,11 @@
+---@brief
+---
+--- https://github.com/glehmann/earthlyls
+---
+--- A fast language server for earthly.
+
+return {
+ cmd = { 'earthlyls' },
+ filetypes = { 'earthfile' },
+ root_markers = { 'Earthfile' },
+}
diff --git a/nvim/lsp/ecsact.lua b/nvim/lsp/ecsact.lua
new file mode 100755
index 0000000..2c9876c
--- /dev/null
+++ b/nvim/lsp/ecsact.lua
@@ -0,0 +1,13 @@
+---@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
+return {
+ cmd = { 'ecsact_lsp_server', '--stdio' },
+ filetypes = { 'ecsact' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/efm.lua b/nvim/lsp/efm.lua
new file mode 100755
index 0000000..4515daf
--- /dev/null
+++ b/nvim/lsp/efm.lua
@@ -0,0 +1,24 @@
+--- @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
+--- })
+--- ```
+
+return {
+ cmd = { 'efm-langserver' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/elixirls.lua b/nvim/lsp/elixirls.lua
new file mode 100755
index 0000000..d3e5cb3
--- /dev/null
+++ b/nvim/lsp/elixirls.lua
@@ -0,0 +1,38 @@
+---@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.
+return {
+ filetypes = { 'elixir', 'eelixir', 'heex', 'surface' },
+ root_dir = function(bufnr, on_dir)
+ local fname = vim.api.nvim_buf_get_name(bufnr)
+ 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/nvim/lsp/elmls.lua b/nvim/lsp/elmls.lua
new file mode 100755
index 0000000..a7f2778
--- /dev/null
+++ b/nvim/lsp/elmls.lua
@@ -0,0 +1,34 @@
+---@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
+
+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 = api.nvim_buf_get_option(0, '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/nvim/lsp/elp.lua b/nvim/lsp/elp.lua
new file mode 100755
index 0000000..0731601
--- /dev/null
+++ b/nvim/lsp/elp.lua
@@ -0,0 +1,11 @@
+---@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.
+return {
+ cmd = { 'elp', 'server' },
+ filetypes = { 'erlang' },
+ root_markers = { 'rebar.config', 'erlang.mk', '.git' },
+}
diff --git a/nvim/lsp/ember.lua b/nvim/lsp/ember.lua
new file mode 100755
index 0000000..73ceae1
--- /dev/null
+++ b/nvim/lsp/ember.lua
@@ -0,0 +1,14 @@
+---@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
+--- ```
+return {
+ cmd = { 'ember-language-server', '--stdio' },
+ filetypes = { 'handlebars', 'typescript', 'javascript', 'typescript.glimmer', 'javascript.glimmer' },
+ root_markers = { 'ember-cli-build.js', '.git' },
+}
diff --git a/nvim/lsp/emmet_language_server.lua b/nvim/lsp/emmet_language_server.lua
new file mode 100755
index 0000000..c3ee04d
--- /dev/null
+++ b/nvim/lsp/emmet_language_server.lua
@@ -0,0 +1,29 @@
+---@brief
+---
+--- https://github.com/olrtg/emmet-language-server
+---
+--- Package can be installed via `npm`:
+--- ```sh
+--- npm install -g @olrtg/emmet-language-server
+--- ```
+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/nvim/lsp/emmet_ls.lua b/nvim/lsp/emmet_ls.lua
new file mode 100755
index 0000000..148e4c0
--- /dev/null
+++ b/nvim/lsp/emmet_ls.lua
@@ -0,0 +1,29 @@
+---@brief
+---
+--- https://github.com/aca/emmet-ls
+---
+--- Package can be installed via `npm`:
+--- ```sh
+--- npm install -g emmet-ls
+--- ```
+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/nvim/lsp/emmylua_ls.lua b/nvim/lsp/emmylua_ls.lua
new file mode 100755
index 0000000..c204655
--- /dev/null
+++ b/nvim/lsp/emmylua_ls.lua
@@ -0,0 +1,23 @@
+---@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.
+
+return {
+ cmd = { 'emmylua_ls' },
+ filetypes = { 'lua' },
+ root_markers = {
+ '.luarc.json',
+ '.emmyrc.json',
+ '.luacheckrc',
+ '.git',
+ },
+ workspace_required = false,
+}
diff --git a/nvim/lsp/erg_language_server.lua b/nvim/lsp/erg_language_server.lua
new file mode 100755
index 0000000..5bd7014
--- /dev/null
+++ b/nvim/lsp/erg_language_server.lua
@@ -0,0 +1,18 @@
+---@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
+--- ```
+
+return {
+ cmd = { 'erg', '--language-server' },
+ filetypes = { 'erg' },
+ root_markers = { 'package.er', '.git' },
+}
diff --git a/nvim/lsp/erlangls.lua b/nvim/lsp/erlangls.lua
new file mode 100755
index 0000000..2487df6
--- /dev/null
+++ b/nvim/lsp/erlangls.lua
@@ -0,0 +1,19 @@
+---@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)
+return {
+ cmd = { 'erlang_ls' },
+ filetypes = { 'erlang' },
+ root_markers = { 'rebar.config', 'erlang.mk', '.git' },
+}
diff --git a/nvim/lsp/esbonio.lua b/nvim/lsp/esbonio.lua
new file mode 100755
index 0000000..9069e78
--- /dev/null
+++ b/nvim/lsp/esbonio.lua
@@ -0,0 +1,49 @@
+---@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)
+return {
+ cmd = { 'python3', '-m', 'esbonio' },
+ filetypes = { 'rst' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/eslint.lua b/nvim/lsp/eslint.lua
new file mode 100755
index 0000000..183343b
--- /dev/null
+++ b/nvim/lsp/eslint.lua
@@ -0,0 +1,183 @@
+--- @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`
+
+local util = require 'lspconfig.util'
+local lsp = vim.lsp
+
+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,
+ -- https://eslint.org/docs/user-guide/configuring/configuration-files#configuration-file-formats
+ root_dir = function(bufnr, on_dir)
+ local root_file_patterns = {
+ '.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',
+ }
+
+ local fname = vim.api.nvim_buf_get_name(bufnr)
+ root_file_patterns = util.insert_package_json(root_file_patterns, 'eslintConfig', fname)
+ on_dir(vim.fs.dirname(vim.fs.find(root_file_patterns, { path = fname, upward = true })[1]))
+ 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 = 'location' },
+ 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
+ local flat_config_files = {
+ 'eslint.config.js',
+ 'eslint.config.mjs',
+ 'eslint.config.cjs',
+ 'eslint.config.ts',
+ 'eslint.config.mts',
+ 'eslint.config.cts',
+ }
+
+ for _, file in ipairs(flat_config_files) do
+ if vim.fn.filereadable(root_dir .. '/' .. file) == 1 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/nvim/lsp/facility_language_server.lua b/nvim/lsp/facility_language_server.lua
new file mode 100755
index 0000000..1e81a2b
--- /dev/null
+++ b/nvim/lsp/facility_language_server.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/FacilityApi/FacilityLanguageServer
+---
+--- Facility language server protocol (LSP) support.
+return {
+ cmd = { 'facility-language-server' },
+ filetypes = { 'fsd' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/fennel_language_server.lua b/nvim/lsp/fennel_language_server.lua
new file mode 100755
index 0000000..a0b69c0
--- /dev/null
+++ b/nvim/lsp/fennel_language_server.lua
@@ -0,0 +1,11 @@
+---@brief
+---
+--- https://github.com/rydesun/fennel-language-server
+---
+--- Fennel language server protocol (LSP) support.
+return {
+ cmd = { 'fennel-language-server' },
+ filetypes = { 'fennel' },
+ root_markers = { '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/fennel_ls.lua b/nvim/lsp/fennel_ls.lua
new file mode 100755
index 0000000..4023e02
--- /dev/null
+++ b/nvim/lsp/fennel_ls.lua
@@ -0,0 +1,25 @@
+---@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).
+
+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/nvim/lsp/fish_lsp.lua b/nvim/lsp/fish_lsp.lua
new file mode 100755
index 0000000..73055ca
--- /dev/null
+++ b/nvim/lsp/fish_lsp.lua
@@ -0,0 +1,15 @@
+---@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/)
+return {
+ cmd = { 'fish-lsp', 'start' },
+ filetypes = { 'fish' },
+ root_markers = { 'config.fish', '.git' },
+}
diff --git a/nvim/lsp/flow.lua b/nvim/lsp/flow.lua
new file mode 100755
index 0000000..bf91c59
--- /dev/null
+++ b/nvim/lsp/flow.lua
@@ -0,0 +1,18 @@
+---@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
+--- ```
+return {
+ cmd = { 'npx', '--no-install', 'flow', 'lsp' },
+ filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx' },
+ root_markers = { '.flowconfig' },
+}
diff --git a/nvim/lsp/flux_lsp.lua b/nvim/lsp/flux_lsp.lua
new file mode 100755
index 0000000..642eabf
--- /dev/null
+++ b/nvim/lsp/flux_lsp.lua
@@ -0,0 +1,12 @@
+---@brief
+---
+--- https://github.com/influxdata/flux-lsp
+--- `flux-lsp` can be installed via `cargo`:
+--- ```sh
+--- cargo install --git https://github.com/influxdata/flux-lsp
+--- ```
+return {
+ cmd = { 'flux-lsp' },
+ filetypes = { 'flux' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/foam_ls.lua b/nvim/lsp/foam_ls.lua
new file mode 100755
index 0000000..bbc9d72
--- /dev/null
+++ b/nvim/lsp/foam_ls.lua
@@ -0,0 +1,21 @@
+---@brief
+---
+--- https://github.com/FoamScience/foam-language-server
+---
+--- `foam-language-server` can be installed via `npm`
+--- ```sh
+--- npm install -g foam-language-server
+--- ```
+
+return {
+ cmd = { 'foam-ls', '--stdio' },
+ filetypes = { 'foam', 'OpenFOAM' },
+ root_dir = function(bufnr, on_dir)
+ local fname = vim.api.nvim_buf_get_name(bufnr)
+ on_dir(vim.iter(vim.fs.parents(fname)):find(function(path)
+ if vim.uv.fs_stat(path .. '/system/controlDict') then
+ return path
+ end
+ end))
+ end,
+}
diff --git a/nvim/lsp/fortls.lua b/nvim/lsp/fortls.lua
new file mode 100755
index 0000000..a96da1a
--- /dev/null
+++ b/nvim/lsp/fortls.lua
@@ -0,0 +1,25 @@
+---@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).
+return {
+ cmd = {
+ 'fortls',
+ '--notify_init',
+ '--hover_signature',
+ '--hover_language=fortran',
+ '--use_signature_help',
+ },
+ filetypes = { 'fortran' },
+ root_markers = { '.fortls', '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/fsautocomplete.lua b/nvim/lsp/fsautocomplete.lua
new file mode 100755
index 0000000..335da67
--- /dev/null
+++ b/nvim/lsp/fsautocomplete.lua
@@ -0,0 +1,53 @@
+---@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'
+
+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/nvim/lsp/fsharp_language_server.lua b/nvim/lsp/fsharp_language_server.lua
new file mode 100755
index 0000000..59a9ce5
--- /dev/null
+++ b/nvim/lsp/fsharp_language_server.lua
@@ -0,0 +1,29 @@
+---@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'
+
+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/nvim/lsp/fstar.lua b/nvim/lsp/fstar.lua
new file mode 100755
index 0000000..2921621
--- /dev/null
+++ b/nvim/lsp/fstar.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/FStarLang/FStar
+---
+--- LSP support is included in FStar. Make sure `fstar.exe` is in your PATH.
+return {
+ cmd = { 'fstar.exe', '--lsp' },
+ filetypes = { 'fstar' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/futhark_lsp.lua b/nvim/lsp/futhark_lsp.lua
new file mode 100755
index 0000000..b467ed0
--- /dev/null
+++ b/nvim/lsp/futhark_lsp.lua
@@ -0,0 +1,15 @@
+---@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
+--- ```
+return {
+ cmd = { 'futhark', 'lsp' },
+ filetypes = { 'futhark', 'fut' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/gdscript.lua b/nvim/lsp/gdscript.lua
new file mode 100755
index 0000000..79fe975
--- /dev/null
+++ b/nvim/lsp/gdscript.lua
@@ -0,0 +1,14 @@
+---@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))
+
+return {
+ cmd = cmd,
+ filetypes = { 'gd', 'gdscript', 'gdscript3' },
+ root_markers = { 'project.godot', '.git' },
+}
diff --git a/nvim/lsp/gdshader_lsp.lua b/nvim/lsp/gdshader_lsp.lua
new file mode 100755
index 0000000..2e0c08d
--- /dev/null
+++ b/nvim/lsp/gdshader_lsp.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/godofavacyn/gdshader-lsp
+---
+--- A language server for the Godot Shading language.
+return {
+ cmd = { 'gdshader-lsp', '--stdio' },
+ filetypes = { 'gdshader', 'gdshaderinc' },
+ root_markers = { 'project.godot' },
+}
diff --git a/nvim/lsp/gh_actions_ls.lua b/nvim/lsp/gh_actions_ls.lua
new file mode 100755
index 0000000..62e3d9e
--- /dev/null
+++ b/nvim/lsp/gh_actions_ls.lua
@@ -0,0 +1,40 @@
+---@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
+--- ```
+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,
+
+ init_options = {}, -- needs to be present https://github.com/neovim/nvim-lspconfig/pull/3713#issuecomment-2857394868
+ capabilities = {
+ workspace = {
+ didChangeWorkspaceFolders = {
+ dynamicRegistration = true,
+ },
+ },
+ },
+}
diff --git a/nvim/lsp/ghcide.lua b/nvim/lsp/ghcide.lua
new file mode 100755
index 0000000..65b83e8
--- /dev/null
+++ b/nvim/lsp/ghcide.lua
@@ -0,0 +1,11 @@
+---@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".
+return {
+ cmd = { 'ghcide', '--lsp' },
+ filetypes = { 'haskell', 'lhaskell' },
+ root_markers = { 'stack.yaml', 'hie-bios', 'BUILD.bazel', 'cabal.config', 'package.yaml' },
+}
diff --git a/nvim/lsp/ghdl_ls.lua b/nvim/lsp/ghdl_ls.lua
new file mode 100755
index 0000000..12a394a
--- /dev/null
+++ b/nvim/lsp/ghdl_ls.lua
@@ -0,0 +1,13 @@
+---@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).
+return {
+ cmd = { 'ghdl-ls' },
+ filetypes = { 'vhdl' },
+ root_markers = { 'hdl-prj.json', '.git' },
+}
diff --git a/nvim/lsp/ginko_ls.lua b/nvim/lsp/ginko_ls.lua
new file mode 100755
index 0000000..501c5e7
--- /dev/null
+++ b/nvim/lsp/ginko_ls.lua
@@ -0,0 +1,15 @@
+---@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.
+return {
+ cmd = { 'ginko_ls' },
+ filetypes = { 'dts' },
+ root_markers = { '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/gitlab_ci_ls.lua b/nvim/lsp/gitlab_ci_ls.lua
new file mode 100755
index 0000000..4832a91
--- /dev/null
+++ b/nvim/lsp/gitlab_ci_ls.lua
@@ -0,0 +1,25 @@
+---@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/'
+
+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('.gitlab*', '.git')(fname))
+ end,
+ init_options = {
+ cache_path = cache_dir,
+ log_path = cache_dir .. '/log/gitlab-ci-ls.log',
+ },
+}
diff --git a/nvim/lsp/glasgow.lua b/nvim/lsp/glasgow.lua
new file mode 100755
index 0000000..e7aff60
--- /dev/null
+++ b/nvim/lsp/glasgow.lua
@@ -0,0 +1,28 @@
+---@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
+--- ```
+return {
+ cmd = { 'glasgow' },
+ filetypes = { 'wgsl' },
+ root_markers = { '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/gleam.lua b/nvim/lsp/gleam.lua
new file mode 100755
index 0000000..29e2994
--- /dev/null
+++ b/nvim/lsp/gleam.lua
@@ -0,0 +1,12 @@
+---@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/)
+return {
+ cmd = { 'gleam', 'lsp' },
+ filetypes = { 'gleam' },
+ root_markers = { 'gleam.toml', '.git' },
+}
diff --git a/nvim/lsp/glint.lua b/nvim/lsp/glint.lua
new file mode 100755
index 0000000..2ed30bb
--- /dev/null
+++ b/nvim/lsp/glint.lua
@@ -0,0 +1,53 @@
+---@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,
+--- },
+--- },
+--- })
+
+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/nvim/lsp/glsl_analyzer.lua b/nvim/lsp/glsl_analyzer.lua
new file mode 100755
index 0000000..91f5861
--- /dev/null
+++ b/nvim/lsp/glsl_analyzer.lua
@@ -0,0 +1,11 @@
+---@brief
+---
+--- https://github.com/nolanderc/glsl_analyzer
+---
+--- Language server for GLSL
+return {
+ cmd = { 'glsl_analyzer' },
+ filetypes = { 'glsl', 'vert', 'tesc', 'tese', 'frag', 'geom', 'comp' },
+ root_markers = { '.git' },
+ capabilities = {},
+}
diff --git a/nvim/lsp/glslls.lua b/nvim/lsp/glslls.lua
new file mode 100755
index 0000000..1c30101
--- /dev/null
+++ b/nvim/lsp/glslls.lua
@@ -0,0 +1,21 @@
+---@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
+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/nvim/lsp/gnls.lua b/nvim/lsp/gnls.lua
new file mode 100755
index 0000000..a44b8c8
--- /dev/null
+++ b/nvim/lsp/gnls.lua
@@ -0,0 +1,19 @@
+---@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=</path/to/gnls>
+---
+--- exec node ${GNLS_SRC_DIR}/build/server.js $@
+--- ```
+return {
+ cmd = { 'gnls', '--stdio' },
+ filetypes = { 'gn' },
+ root_markers = { '.gn', '.git' },
+}
diff --git a/nvim/lsp/golangci_lint_ls.lua b/nvim/lsp/golangci_lint_ls.lua
new file mode 100755
index 0000000..9d6cd48
--- /dev/null
+++ b/nvim/lsp/golangci_lint_ls.lua
@@ -0,0 +1,48 @@
+---@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
+--- ```
+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
+ -- 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')
+ else
+ 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/nvim/lsp/gopls.lua b/nvim/lsp/gopls.lua
new file mode 100755
index 0000000..0b4c59f
--- /dev/null
+++ b/nvim/lsp/gopls.lua
@@ -0,0 +1,98 @@
+---@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
+
+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/nvim/lsp/gradle_ls.lua b/nvim/lsp/gradle_ls.lua
new file mode 100755
index 0000000..373a926
--- /dev/null
+++ b/nvim/lsp/gradle_ls.lua
@@ -0,0 +1,27 @@
+---@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
+
+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/nvim/lsp/grammarly.lua b/nvim/lsp/grammarly.lua
new file mode 100755
index 0000000..4c7d379
--- /dev/null
+++ b/nvim/lsp/grammarly.lua
@@ -0,0 +1,24 @@
+---@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.
+return {
+ cmd = { 'grammarly-languageserver', '--stdio' },
+ filetypes = { 'markdown' },
+ root_markers = { '.git' },
+ handlers = {
+ ['$/updateDocumentState'] = function()
+ return ''
+ end,
+ },
+ init_options = {
+ clientId = 'client_BaDkMgx4X19X9UxxYRCXZo',
+ },
+}
diff --git a/nvim/lsp/graphql.lua b/nvim/lsp/graphql.lua
new file mode 100755
index 0000000..8620680
--- /dev/null
+++ b/nvim/lsp/graphql.lua
@@ -0,0 +1,22 @@
+---@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'
+
+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/nvim/lsp/groovyls.lua b/nvim/lsp/groovyls.lua
new file mode 100755
index 0000000..7610bf0
--- /dev/null
+++ b/nvim/lsp/groovyls.lua
@@ -0,0 +1,28 @@
+---@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" },
+--- ...
+--- })
+--- ```
+return {
+ cmd = {
+ 'java',
+ '-jar',
+ 'groovy-language-server-all.jar',
+ },
+ filetypes = { 'groovy' },
+ root_markers = { 'Jenkinsfile', '.git' },
+}
diff --git a/nvim/lsp/guile_ls.lua b/nvim/lsp/guile_ls.lua
new file mode 100755
index 0000000..8beb253
--- /dev/null
+++ b/nvim/lsp/guile_ls.lua
@@ -0,0 +1,19 @@
+---@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.
+return {
+ cmd = { 'guile-lsp-server' },
+ filetypes = {
+ 'scheme.guile',
+ },
+ root_markers = { 'guix.scm', '.git' },
+}
diff --git a/nvim/lsp/harper_ls.lua b/nvim/lsp/harper_ls.lua
new file mode 100755
index 0000000..922df06
--- /dev/null
+++ b/nvim/lsp/harper_ls.lua
@@ -0,0 +1,48 @@
+---@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"
+--- }
+--- },
+--- })
+--- ```
+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',
+ },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/hdl_checker.lua b/nvim/lsp/hdl_checker.lua
new file mode 100755
index 0000000..0ef83be
--- /dev/null
+++ b/nvim/lsp/hdl_checker.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/suoto/hdl_checker
+--- Language server for hdl-checker.
+--- Install using: `pip install hdl-checker --upgrade`
+return {
+ cmd = { 'hdl_checker', '--lsp' },
+ filetypes = { 'vhdl', 'verilog', 'systemverilog' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/helm_ls.lua b/nvim/lsp/helm_ls.lua
new file mode 100755
index 0000000..9c92fa0
--- /dev/null
+++ b/nvim/lsp/helm_ls.lua
@@ -0,0 +1,23 @@
+---@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.
+return {
+ cmd = { 'helm_ls', 'serve' },
+ filetypes = { 'helm', 'yaml.helm-values' },
+ root_markers = { 'Chart.yaml' },
+ capabilities = {
+ workspace = {
+ didChangeWatchedFiles = {
+ dynamicRegistration = true,
+ },
+ },
+ },
+}
diff --git a/nvim/lsp/herb_ls.lua b/nvim/lsp/herb_ls.lua
new file mode 100755
index 0000000..865a435
--- /dev/null
+++ b/nvim/lsp/herb_ls.lua
@@ -0,0 +1,27 @@
+---@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
+--- ```
+return {
+ cmd = { 'herb-language-server', '--stdio' },
+ filetypes = { 'html', 'ruby', 'eruby' },
+ root_markers = { 'Gemfile', '.git' },
+}
diff --git a/nvim/lsp/hhvm.lua b/nvim/lsp/hhvm.lua
new file mode 100755
index 0000000..4a08a86
--- /dev/null
+++ b/nvim/lsp/hhvm.lua
@@ -0,0 +1,12 @@
+---@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
+return {
+ cmd = { 'hh_client', 'lsp' },
+ filetypes = { 'php', 'hack' },
+ root_markers = { '.hhconfig' },
+}
diff --git a/nvim/lsp/hie.lua b/nvim/lsp/hie.lua
new file mode 100755
index 0000000..49d9f5d
--- /dev/null
+++ b/nvim/lsp/hie.lua
@@ -0,0 +1,23 @@
+---@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");
+--- }
+--- }
+--- ```
+return {
+ cmd = { 'hie-wrapper', '--lsp' },
+ filetypes = { 'haskell' },
+ root_markers = { 'stack.yaml', 'package.yaml', '.git' },
+}
diff --git a/nvim/lsp/hlasm.lua b/nvim/lsp/hlasm.lua
new file mode 100755
index 0000000..a7bcfcb
--- /dev/null
+++ b/nvim/lsp/hlasm.lua
@@ -0,0 +1,10 @@
+---@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).
+return {
+ cmd = { 'hlasm_language_server' },
+ filetypes = { 'hlasm' },
+ root_markers = { '.hlasmplugin' },
+}
diff --git a/nvim/lsp/hls.lua b/nvim/lsp/hls.lua
new file mode 100755
index 0000000..f6717e0
--- /dev/null
+++ b/nvim/lsp/hls.lua
@@ -0,0 +1,30 @@
+---@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'
+
+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/nvim/lsp/hoon_ls.lua b/nvim/lsp/hoon_ls.lua
new file mode 100755
index 0000000..f3e4fd1
--- /dev/null
+++ b/nvim/lsp/hoon_ls.lua
@@ -0,0 +1,15 @@
+---@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`
+return {
+ cmd = { 'hoon-language-server' },
+ filetypes = { 'hoon' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/html.lua b/nvim/lsp/html.lua
new file mode 100755
index 0000000..523b8b4
--- /dev/null
+++ b/nvim/lsp/html.lua
@@ -0,0 +1,34 @@
+---@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,
+--- })
+--- ```
+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/nvim/lsp/htmx.lua b/nvim/lsp/htmx.lua
new file mode 100755
index 0000000..2d20714
--- /dev/null
+++ b/nvim/lsp/htmx.lua
@@ -0,0 +1,62 @@
+---@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.
+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/nvim/lsp/hydra_lsp.lua b/nvim/lsp/hydra_lsp.lua
new file mode 100755
index 0000000..70c7960
--- /dev/null
+++ b/nvim/lsp/hydra_lsp.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/Retsediv/hydra-lsp
+---
+--- LSP for Hydra Python package config files.
+return {
+ cmd = { 'hydra-lsp' },
+ filetypes = { 'yaml' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/hyprls.lua b/nvim/lsp/hyprls.lua
new file mode 100755
index 0000000..ab8270f
--- /dev/null
+++ b/nvim/lsp/hyprls.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://github.com/hyprland-community/hyprls
+---
+--- `hyprls` can be installed via `go`:
+--- ```sh
+--- go install github.com/ewen-lbh/hyprls/cmd/hyprls@latest
+--- ```
+return {
+ cmd = { 'hyprls', '--stdio' },
+ filetypes = { 'hyprlang' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/idris2_lsp.lua b/nvim/lsp/idris2_lsp.lua
new file mode 100755
index 0000000..3997863
--- /dev/null
+++ b/nvim/lsp/idris2_lsp.lua
@@ -0,0 +1,41 @@
+---@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'
+
+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/nvim/lsp/intelephense.lua b/nvim/lsp/intelephense.lua
new file mode 100755
index 0000000..383da13
--- /dev/null
+++ b/nvim/lsp/intelephense.lua
@@ -0,0 +1,32 @@
+---@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;
+--- };
+--- };
+--- }
+--- ```
+
+return {
+ cmd = { 'intelephense', '--stdio' },
+ filetypes = { 'php' },
+ root_markers = { '.git', 'composer.json' },
+}
diff --git a/nvim/lsp/janet_lsp.lua b/nvim/lsp/janet_lsp.lua
new file mode 100755
index 0000000..0b2edbf
--- /dev/null
+++ b/nvim/lsp/janet_lsp.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://github.com/CFiggers/janet-lsp
+---
+--- A Language Server Protocol implementation for Janet.
+return {
+ cmd = {
+ 'janet-lsp',
+ '--stdio',
+ },
+ filetypes = { 'janet' },
+ root_markers = { 'project.janet', '.git' },
+}
diff --git a/nvim/lsp/java_language_server.lua b/nvim/lsp/java_language_server.lua
new file mode 100755
index 0000000..950e42b
--- /dev/null
+++ b/nvim/lsp/java_language_server.lua
@@ -0,0 +1,12 @@
+---@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
+return {
+ filetypes = { 'java' },
+ root_markers = { 'build.gradle', 'build.gradle.kts', 'pom.xml', '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/jdtls.lua b/nvim/lsp/jdtls.lua
new file mode 100755
index 0000000..e9cce6a
--- /dev/null
+++ b/nvim/lsp/jdtls.lua
@@ -0,0 +1,146 @@
+---@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=<param> 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 handlers = require 'vim.lsp.handlers'
+
+local env = {
+ HOME = vim.uv.os_homedir(),
+ XDG_CACHE_HOME = os.getenv 'XDG_CACHE_HOME',
+ JDTLS_JVM_ARGS = os.getenv 'JDTLS_JVM_ARGS',
+}
+
+local function get_cache_dir()
+ return env.XDG_CACHE_HOME and env.XDG_CACHE_HOME or env.HOME .. '/.cache'
+end
+
+local function get_jdtls_cache_dir()
+ return get_cache_dir() .. '/jdtls'
+end
+
+local function get_jdtls_config_dir()
+ return get_jdtls_cache_dir() .. '/config'
+end
+
+local function get_jdtls_workspace_dir()
+ return get_jdtls_cache_dir() .. '/workspace'
+end
+
+local function get_jdtls_jvm_args()
+ local args = {}
+ for a in string.gmatch((env.JDTLS_JVM_ARGS or ''), '%S+') do
+ local arg = string.format('--jvm-arg=%s', a)
+ table.insert(args, arg)
+ end
+ return unpack(args)
+end
+
+-- TextDocument version is reported as 0, override with nil so that
+-- the client doesn't think the document is newer and refuses to update
+-- See: https://github.com/eclipse/eclipse.jdt.ls/issues/1695
+local function fix_zero_version(workspace_edit)
+ if workspace_edit and workspace_edit.documentChanges then
+ for _, change in pairs(workspace_edit.documentChanges) do
+ local text_document = change.textDocument
+ if text_document and text_document.version and text_document.version == 0 then
+ text_document.version = nil
+ end
+ end
+ end
+ return workspace_edit
+end
+
+local function on_textdocument_codeaction(err, actions, ctx)
+ for _, action in ipairs(actions) do
+ -- TODO: (steelsojka) Handle more than one edit?
+ if action.command == 'java.apply.workspaceEdit' then -- 'action' is Command in java format
+ action.edit = fix_zero_version(action.edit or action.arguments[1])
+ elseif type(action.command) == 'table' and action.command.command == 'java.apply.workspaceEdit' then -- 'action' is CodeAction in java format
+ action.edit = fix_zero_version(action.edit or action.command.arguments[1])
+ end
+ end
+
+ handlers[ctx.method](err, actions, ctx)
+end
+
+local function on_textdocument_rename(err, workspace_edit, ctx)
+ handlers[ctx.method](err, fix_zero_version(workspace_edit), ctx)
+end
+
+local function on_workspace_applyedit(err, workspace_edit, ctx)
+ handlers[ctx.method](err, fix_zero_version(workspace_edit), ctx)
+end
+
+-- Non-standard notification that can be used to display progress
+local function on_language_status(_, result)
+ local command = vim.api.nvim_command
+ command 'echohl ModeMsg'
+ command(string.format('echo "%s"', result.message))
+ command 'echohl None'
+end
+
+return {
+ cmd = {
+ 'jdtls',
+ '-configuration',
+ get_jdtls_config_dir(),
+ '-data',
+ get_jdtls_workspace_dir(),
+ get_jdtls_jvm_args(),
+ },
+ filetypes = { 'java' },
+ root_markers = {
+ -- Multi-module projects
+ '.git',
+ 'build.gradle',
+ 'build.gradle.kts',
+ -- Single-module projects
+ 'build.xml', -- Ant
+ 'pom.xml', -- Maven
+ 'settings.gradle', -- Gradle
+ 'settings.gradle.kts', -- Gradle
+ },
+ init_options = {
+ workspace = get_jdtls_workspace_dir(),
+ jvm_args = {},
+ os_config = nil,
+ },
+ handlers = {
+ -- Due to an invalid protocol implementation in the jdtls we have to conform these to be spec compliant.
+ -- https://github.com/eclipse/eclipse.jdt.ls/issues/376
+ ['textDocument/codeAction'] = on_textdocument_codeaction,
+ ['textDocument/rename'] = on_textdocument_rename,
+ ['workspace/applyEdit'] = on_workspace_applyedit,
+ ['language/status'] = vim.schedule_wrap(on_language_status),
+ },
+}
diff --git a/nvim/lsp/jedi_language_server.lua b/nvim/lsp/jedi_language_server.lua
new file mode 100755
index 0000000..3cd7d20
--- /dev/null
+++ b/nvim/lsp/jedi_language_server.lua
@@ -0,0 +1,17 @@
+---@brief
+---
+--- https://github.com/pappasam/jedi-language-server
+---
+--- `jedi-language-server`, a language server for Python, built on top of jedi
+return {
+ cmd = { 'jedi-language-server' },
+ filetypes = { 'python' },
+ root_markers = {
+ 'pyproject.toml',
+ 'setup.py',
+ 'setup.cfg',
+ 'requirements.txt',
+ 'Pipfile',
+ '.git',
+ },
+}
diff --git a/nvim/lsp/jinja_lsp.lua b/nvim/lsp/jinja_lsp.lua
new file mode 100755
index 0000000..9807b17
--- /dev/null
+++ b/nvim/lsp/jinja_lsp.lua
@@ -0,0 +1,21 @@
+---@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',
+--- },
+--- }
+--- ```
+return {
+ name = 'jinja_lsp',
+ cmd = { 'jinja-lsp' },
+ filetypes = { 'jinja' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/jqls.lua b/nvim/lsp/jqls.lua
new file mode 100755
index 0000000..d03230d
--- /dev/null
+++ b/nvim/lsp/jqls.lua
@@ -0,0 +1,22 @@
+---@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]])
+--- ```
+return {
+ cmd = { 'jq-lsp' },
+ filetypes = { 'jq' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/jsonls.lua b/nvim/lsp/jsonls.lua
new file mode 100755
index 0000000..da8a338
--- /dev/null
+++ b/nvim/lsp/jsonls.lua
@@ -0,0 +1,30 @@
+---@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,
+--- })
+--- ```
+return {
+ cmd = { 'vscode-json-language-server', '--stdio' },
+ filetypes = { 'json', 'jsonc' },
+ init_options = {
+ provideFormatter = true,
+ },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/jsonnet_ls.lua b/nvim/lsp/jsonnet_ls.lua
new file mode 100755
index 0000000..7081204
--- /dev/null
+++ b/nvim/lsp/jsonnet_ls.lua
@@ -0,0 +1,18 @@
+--- @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
+--- ```
+return {
+ cmd = { 'jsonnet-language-server' },
+ filetypes = {
+ 'jsonnet',
+ 'libsonnet',
+ },
+ root_markers = { 'jsonnetfile.json', '.git' },
+}
diff --git a/nvim/lsp/julials.lua b/nvim/lsp/julials.lua
new file mode 100755
index 0000000..1208447
--- /dev/null
+++ b/nvim/lsp/julials.lua
@@ -0,0 +1,130 @@
+---@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)
+ ]],
+}
+
+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/nvim/lsp/just.lua b/nvim/lsp/just.lua
new file mode 100755
index 0000000..7242665
--- /dev/null
+++ b/nvim/lsp/just.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/terror/just-lsp
+---
+--- `just-lsp` is an LSP for just built on top of the tree-sitter-just parser.
+return {
+ cmd = { 'just-lsp' },
+ filetypes = { 'just' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/kcl.lua b/nvim/lsp/kcl.lua
new file mode 100755
index 0000000..50f1dd9
--- /dev/null
+++ b/nvim/lsp/kcl.lua
@@ -0,0 +1,11 @@
+---@brief
+---
+--- https://github.com/kcl-lang/kcl.nvim
+---
+--- Language server for the KCL configuration and policy language.
+---
+return {
+ cmd = { 'kcl-language-server' },
+ filetypes = { 'kcl' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/koka.lua b/nvim/lsp/koka.lua
new file mode 100755
index 0000000..f83aa4b
--- /dev/null
+++ b/nvim/lsp/koka.lua
@@ -0,0 +1,9 @@
+---@brief
+---
+--- https://koka-lang.github.io/koka/doc/index.html
+--- Koka is a functional programming language with effect types and handlers.
+return {
+ cmd = { 'koka', '--language-server', '--lsstdio' },
+ filetypes = { 'koka' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/kotlin_language_server.lua b/nvim/lsp/kotlin_language_server.lua
new file mode 100755
index 0000000..d70afa7
--- /dev/null
+++ b/nvim/lsp/kotlin_language_server.lua
@@ -0,0 +1,41 @@
+---@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
+}
+
+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/nvim/lsp/kotlin_lsp.lua b/nvim/lsp/kotlin_lsp.lua
new file mode 100755
index 0000000..a36faa8
--- /dev/null
+++ b/nvim/lsp/kotlin_lsp.lua
@@ -0,0 +1,21 @@
+---@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.
+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/nvim/lsp/kulala_ls.lua b/nvim/lsp/kulala_ls.lua
new file mode 100755
index 0000000..77f5dc8
--- /dev/null
+++ b/nvim/lsp/kulala_ls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/mistweaverco/kulala-ls
+---
+--- A minimal language server for HTTP syntax.
+return {
+ cmd = { 'kulala-ls', '--stdio' },
+ filetypes = { 'http' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/laravel_ls.lua b/nvim/lsp/laravel_ls.lua
new file mode 100755
index 0000000..448ebdb
--- /dev/null
+++ b/nvim/lsp/laravel_ls.lua
@@ -0,0 +1,13 @@
+---@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`.
+
+return {
+ cmd = { 'laravel-ls' },
+ filetypes = { 'php', 'blade' },
+ root_markers = { 'artisan' },
+}
diff --git a/nvim/lsp/lean3ls.lua b/nvim/lsp/lean3ls.lua
new file mode 100755
index 0000000..07ff059
--- /dev/null
+++ b/nvim/lsp/lean3ls.lua
@@ -0,0 +1,39 @@
+---@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`.
+
+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/nvim/lsp/lelwel_ls.lua b/nvim/lsp/lelwel_ls.lua
new file mode 100755
index 0000000..d9f5fd3
--- /dev/null
+++ b/nvim/lsp/lelwel_ls.lua
@@ -0,0 +1,15 @@
+---@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
+--- ```
+return {
+ cmd = { 'lelwel-ls' },
+ filetypes = { 'llw' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/lemminx.lua b/nvim/lsp/lemminx.lua
new file mode 100755
index 0000000..57beaa2
--- /dev/null
+++ b/nvim/lsp/lemminx.lua
@@ -0,0 +1,12 @@
+---@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.
+return {
+ cmd = { 'lemminx' },
+ filetypes = { 'xml', 'xsd', 'xsl', 'xslt', 'svg' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/lexical.lua b/nvim/lsp/lexical.lua
new file mode 100755
index 0000000..0e69545
--- /dev/null
+++ b/nvim/lsp/lexical.lua
@@ -0,0 +1,14 @@
+---@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.
+return {
+ filetypes = { 'elixir', 'eelixir', 'heex', 'surface' },
+ root_markers = { 'mix.exs', '.git' },
+}
diff --git a/nvim/lsp/lsp_ai.lua b/nvim/lsp/lsp_ai.lua
new file mode 100755
index 0000000..cf005f5
--- /dev/null
+++ b/nvim/lsp/lsp_ai.lua
@@ -0,0 +1,22 @@
+---@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.
+return {
+ cmd = { 'lsp-ai' },
+ filetypes = {},
+ root_dir = nil,
+ init_options = {
+ memory = {
+ file_store = vim.empty_dict(),
+ },
+ models = vim.empty_dict(),
+ },
+}
diff --git a/nvim/lsp/ltex.lua b/nvim/lsp/ltex.lua
new file mode 100755
index 0000000..c50b91e
--- /dev/null
+++ b/nvim/lsp/ltex.lua
@@ -0,0 +1,84 @@
+---@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
+
+return {
+ cmd = { 'ltex-ls' },
+ filetypes = filetypes,
+ root_markers = { '.git' },
+ get_language_id = get_language_id,
+ settings = {
+ ltex = {
+ enabled = enabled_ids,
+ },
+ },
+}
diff --git a/nvim/lsp/ltex_plus.lua b/nvim/lsp/ltex_plus.lua
new file mode 100755
index 0000000..e5444f9
--- /dev/null
+++ b/nvim/lsp/ltex_plus.lua
@@ -0,0 +1,88 @@
+---@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',
+}
+
+local function get_language_id(_, filetype)
+ return language_id_mapping[filetype] or filetype
+end
+
+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 = get_language_id,
+ 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/nvim/lsp/lua_ls.lua b/nvim/lsp/lua_ls.lua
new file mode 100755
index 0000000..b5107c6
--- /dev/null
+++ b/nvim/lsp/lua_ls.lua
@@ -0,0 +1,90 @@
+---@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)
+---
+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/nvim/lsp/luau_lsp.lua b/nvim/lsp/luau_lsp.lua
new file mode 100755
index 0000000..70f3ac1
--- /dev/null
+++ b/nvim/lsp/luau_lsp.lua
@@ -0,0 +1,18 @@
+---@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
+--- ```
+return {
+ cmd = { 'luau-lsp', 'lsp' },
+ filetypes = { 'luau' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/lwc_ls.lua b/nvim/lsp/lwc_ls.lua
new file mode 100755
index 0000000..b2f6a06
--- /dev/null
+++ b/nvim/lsp/lwc_ls.lua
@@ -0,0 +1,28 @@
+---@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'
+--- }
+--- })
+--- ```
+return {
+ cmd = { 'lwc-language-server', '--stdio' },
+ filetypes = { 'javascript', 'html' },
+ root_markers = { 'sfdx-project.json' },
+ init_options = {
+ embeddedLanguages = {
+ javascript = true,
+ },
+ },
+}
diff --git a/nvim/lsp/m68k.lua b/nvim/lsp/m68k.lua
new file mode 100755
index 0000000..2af060d
--- /dev/null
+++ b/nvim/lsp/m68k.lua
@@ -0,0 +1,22 @@
+---@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'
+--- ```
+return {
+ cmd = { 'm68k-lsp-server', '--stdio' },
+ filetypes = { 'asm68k' },
+ root_markers = { 'Makefile', '.git' },
+}
diff --git a/nvim/lsp/markdown_oxide.lua b/nvim/lsp/markdown_oxide.lua
new file mode 100755
index 0000000..8f2697b
--- /dev/null
+++ b/nvim/lsp/markdown_oxide.lua
@@ -0,0 +1,32 @@
+---@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.
+return {
+ root_markers = { '.git', '.obsidian', '.moxide.toml' },
+ filetypes = { 'markdown' },
+ cmd = { 'markdown-oxide' },
+ on_attach = function(_, bufnr)
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspToday', function()
+ vim.lsp.buf.execute_command { command = 'jump', arguments = { 'today' } }
+ end, {
+ desc = "Open today's daily note",
+ })
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspTomorrow', function()
+ vim.lsp.buf.execute_command { command = 'jump', arguments = { 'tomorrow' } }
+ end, {
+ desc = "Open tomorrow's daily note",
+ })
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspYesterday', function()
+ vim.lsp.buf.execute_command { command = 'jump', arguments = { 'yesterday' } }
+ end, {
+ desc = "Open yesterday's daily note",
+ })
+ end,
+}
diff --git a/nvim/lsp/marko-js.lua b/nvim/lsp/marko-js.lua
new file mode 100755
index 0000000..0075b05
--- /dev/null
+++ b/nvim/lsp/marko-js.lua
@@ -0,0 +1,15 @@
+---@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
+--- ```
+return {
+ cmd = { 'marko-language-server', '--stdio' },
+ filetypes = { 'marko' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/marksman.lua b/nvim/lsp/marksman.lua
new file mode 100755
index 0000000..6f436e4
--- /dev/null
+++ b/nvim/lsp/marksman.lua
@@ -0,0 +1,18 @@
+---@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
+
+local bin_name = 'marksman'
+local cmd = { bin_name, 'server' }
+
+return {
+ cmd = cmd,
+ filetypes = { 'markdown', 'markdown.mdx' },
+ root_markers = { '.marksman.toml', '.git' },
+}
diff --git a/nvim/lsp/matlab_ls.lua b/nvim/lsp/matlab_ls.lua
new file mode 100755
index 0000000..bf4f4f7
--- /dev/null
+++ b/nvim/lsp/matlab_ls.lua
@@ -0,0 +1,32 @@
+---@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',
+--- ...
+--- },
+--- },
+--- ```
+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/nvim/lsp/mdx_analyzer.lua b/nvim/lsp/mdx_analyzer.lua
new file mode 100755
index 0000000..ce87f53
--- /dev/null
+++ b/nvim/lsp/mdx_analyzer.lua
@@ -0,0 +1,21 @@
+---@brief
+--- https://github.com/mdx-js/mdx-analyzer
+---
+--- `mdx-analyzer`, a language server for MDX
+
+local util = require 'lspconfig.util'
+
+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/nvim/lsp/mesonlsp.lua b/nvim/lsp/mesonlsp.lua
new file mode 100755
index 0000000..c447043
--- /dev/null
+++ b/nvim/lsp/mesonlsp.lua
@@ -0,0 +1,37 @@
+---@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
+
+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/nvim/lsp/metals.lua b/nvim/lsp/metals.lua
new file mode 100755
index 0000000..573ca01
--- /dev/null
+++ b/nvim/lsp/metals.lua
@@ -0,0 +1,30 @@
+---@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`.
+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/nvim/lsp/millet.lua b/nvim/lsp/millet.lua
new file mode 100755
index 0000000..c3833d2
--- /dev/null
+++ b/nvim/lsp/millet.lua
@@ -0,0 +1,17 @@
+---@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`
+return {
+ cmd = { 'millet' },
+ filetypes = { 'sml' },
+ root_markers = { 'millet.toml' },
+}
diff --git a/nvim/lsp/mint.lua b/nvim/lsp/mint.lua
new file mode 100755
index 0000000..56172eb
--- /dev/null
+++ b/nvim/lsp/mint.lua
@@ -0,0 +1,11 @@
+---@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.
+return {
+ cmd = { 'mint', 'ls' },
+ filetypes = { 'mint' },
+ root_markers = { 'mint.json', '.git' },
+}
diff --git a/nvim/lsp/mlir_lsp_server.lua b/nvim/lsp/mlir_lsp_server.lua
new file mode 100755
index 0000000..75bed78
--- /dev/null
+++ b/nvim/lsp/mlir_lsp_server.lua
@@ -0,0 +1,12 @@
+---@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)
+return {
+ cmd = { 'mlir-lsp-server' },
+ filetypes = { 'mlir' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/mlir_pdll_lsp_server.lua b/nvim/lsp/mlir_pdll_lsp_server.lua
new file mode 100755
index 0000000..efcc871
--- /dev/null
+++ b/nvim/lsp/mlir_pdll_lsp_server.lua
@@ -0,0 +1,12 @@
+---@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)
+return {
+ cmd = { 'mlir-pdll-lsp-server' },
+ filetypes = { 'pdll' },
+ root_markers = { 'pdll_compile_commands.yml', '.git' },
+}
diff --git a/nvim/lsp/mm0_ls.lua b/nvim/lsp/mm0_ls.lua
new file mode 100755
index 0000000..aa8c480
--- /dev/null
+++ b/nvim/lsp/mm0_ls.lua
@@ -0,0 +1,13 @@
+---@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`.
+return {
+ cmd = { 'mm0-rs', 'server' },
+ root_markers = { '.git' },
+ filetypes = { 'metamath-zero' },
+}
diff --git a/nvim/lsp/mojo.lua b/nvim/lsp/mojo.lua
new file mode 100755
index 0000000..8b84d87
--- /dev/null
+++ b/nvim/lsp/mojo.lua
@@ -0,0 +1,12 @@
+---@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.
+return {
+ cmd = { 'mojo-lsp-server' },
+ filetypes = { 'mojo' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/motoko_lsp.lua b/nvim/lsp/motoko_lsp.lua
new file mode 100755
index 0000000..f479e2d
--- /dev/null
+++ b/nvim/lsp/motoko_lsp.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://github.com/dfinity/vscode-motoko
+---
+--- Language server for the Motoko programming language.
+return {
+ cmd = { 'motoko-lsp', '--stdio' },
+ filetypes = { 'motoko' },
+ root_markers = { 'dfx.json', '.git' },
+ init_options = {
+ formatter = 'auto',
+ },
+}
diff --git a/nvim/lsp/move_analyzer.lua b/nvim/lsp/move_analyzer.lua
new file mode 100755
index 0000000..71cfbe0
--- /dev/null
+++ b/nvim/lsp/move_analyzer.lua
@@ -0,0 +1,18 @@
+---@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.
+return {
+ cmd = { 'move-analyzer' },
+ filetypes = { 'move' },
+ root_markers = { 'Move.toml' },
+}
diff --git a/nvim/lsp/msbuild_project_tools_server.lua b/nvim/lsp/msbuild_project_tools_server.lua
new file mode 100755
index 0000000..bf2f2b4
--- /dev/null
+++ b/nvim/lsp/msbuild_project_tools_server.lua
@@ -0,0 +1,46 @@
+---@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'
+
+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/nvim/lsp/muon.lua b/nvim/lsp/muon.lua
new file mode 100755
index 0000000..7d2f546
--- /dev/null
+++ b/nvim/lsp/muon.lua
@@ -0,0 +1,23 @@
+---@brief
+---
+--- https://muon.build
+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/nvim/lsp/mutt_ls.lua b/nvim/lsp/mutt_ls.lua
new file mode 100755
index 0000000..21ae825
--- /dev/null
+++ b/nvim/lsp/mutt_ls.lua
@@ -0,0 +1,15 @@
+---@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
+--- ```
+return {
+ cmd = { 'mutt-language-server' },
+ filetypes = { 'muttrc', 'neomuttrc' },
+ root_markers = { '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/nelua_lsp.lua b/nvim/lsp/nelua_lsp.lua
new file mode 100755
index 0000000..7f81034
--- /dev/null
+++ b/nvim/lsp/nelua_lsp.lua
@@ -0,0 +1,29 @@
+--- @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" },
+--- })
+--- ```
+return {
+ filetypes = { 'nelua' },
+ root_markers = { 'Makefile', '.git', '*.nelua' },
+}
diff --git a/nvim/lsp/neocmake.lua b/nvim/lsp/neocmake.lua
new file mode 100755
index 0000000..8d066b0
--- /dev/null
+++ b/nvim/lsp/neocmake.lua
@@ -0,0 +1,22 @@
+---@brief
+---
+--- https://github.com/Decodetalkers/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,
+--- })
+--- ```
+return {
+ cmd = { 'neocmakelsp', '--stdio' },
+ filetypes = { 'cmake' },
+ root_markers = { '.git', 'build', 'cmake' },
+}
diff --git a/nvim/lsp/nextflow_ls.lua b/nvim/lsp/nextflow_ls.lua
new file mode 100755
index 0000000..8871b33
--- /dev/null
+++ b/nvim/lsp/nextflow_ls.lua
@@ -0,0 +1,36 @@
+---@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' },
+--- },
+--- },
+--- },
+--- })
+--- ```
+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/nvim/lsp/nextls.lua b/nvim/lsp/nextls.lua
new file mode 100755
index 0000000..d6c57ff
--- /dev/null
+++ b/nvim/lsp/nextls.lua
@@ -0,0 +1,9 @@
+---@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.**
+return {
+ filetypes = { 'elixir', 'eelixir', 'heex', 'surface' },
+ root_markers = { 'mix.exs', '.git' },
+}
diff --git a/nvim/lsp/nginx_language_server.lua b/nvim/lsp/nginx_language_server.lua
new file mode 100755
index 0000000..399ca36
--- /dev/null
+++ b/nvim/lsp/nginx_language_server.lua
@@ -0,0 +1,14 @@
+---@brief
+---
+--- https://pypi.org/project/nginx-language-server/
+---
+--- `nginx-language-server` can be installed via pip:
+---
+--- ```sh
+--- pip install -U nginx-language-server
+--- ```
+return {
+ cmd = { 'nginx-language-server' },
+ filetypes = { 'nginx' },
+ root_markers = { 'nginx.conf', '.git' },
+}
diff --git a/nvim/lsp/nickel_ls.lua b/nvim/lsp/nickel_ls.lua
new file mode 100755
index 0000000..1f70402
--- /dev/null
+++ b/nvim/lsp/nickel_ls.lua
@@ -0,0 +1,30 @@
+---@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).
+return {
+ cmd = { 'nls' },
+ filetypes = { 'ncl', 'nickel' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/nil_ls.lua b/nvim/lsp/nil_ls.lua
new file mode 100755
index 0000000..71c7ff2
--- /dev/null
+++ b/nvim/lsp/nil_ls.lua
@@ -0,0 +1,15 @@
+---@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._
+return {
+ cmd = { 'nil' },
+ filetypes = { 'nix' },
+ root_markers = { 'flake.nix', '.git' },
+}
diff --git a/nvim/lsp/nim_langserver.lua b/nvim/lsp/nim_langserver.lua
new file mode 100755
index 0000000..cd5dc65
--- /dev/null
+++ b/nvim/lsp/nim_langserver.lua
@@ -0,0 +1,22 @@
+---@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'
+
+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/nvim/lsp/nimls.lua b/nvim/lsp/nimls.lua
new file mode 100755
index 0000000..ada0d79
--- /dev/null
+++ b/nvim/lsp/nimls.lua
@@ -0,0 +1,22 @@
+---@brief
+---
+--- https://github.com/PMunch/nimlsp
+---
+--- `nimlsp` can be installed via the `nimble` package manager:
+---
+--- ```sh
+--- nimble install nimlsp
+--- ```
+
+local util = require 'lspconfig.util'
+
+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/nvim/lsp/nixd.lua b/nvim/lsp/nixd.lua
new file mode 100755
index 0000000..2d01ebe
--- /dev/null
+++ b/nvim/lsp/nixd.lua
@@ -0,0 +1,13 @@
+---@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.
+return {
+ cmd = { 'nixd' },
+ filetypes = { 'nix' },
+ root_markers = { 'flake.nix', 'git' },
+}
diff --git a/nvim/lsp/nomad_lsp.lua b/nvim/lsp/nomad_lsp.lua
new file mode 100755
index 0000000..efc0ce7
--- /dev/null
+++ b/nvim/lsp/nomad_lsp.lua
@@ -0,0 +1,33 @@
+---@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
+
+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/nvim/lsp/ntt.lua b/nvim/lsp/ntt.lua
new file mode 100755
index 0000000..03e0c93
--- /dev/null
+++ b/nvim/lsp/ntt.lua
@@ -0,0 +1,19 @@
+---@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 = {
+--- }
+--- }
+--- })
+--- ```
+
+return {
+ cmd = { 'ntt', 'langserver' },
+ filetypes = { 'ttcn' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/nushell.lua b/nvim/lsp/nushell.lua
new file mode 100755
index 0000000..b7f72f4
--- /dev/null
+++ b/nvim/lsp/nushell.lua
@@ -0,0 +1,12 @@
+---@brief
+---
+--- https://github.com/nushell/nushell
+---
+--- Nushell built-in language server.
+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/nvim/lsp/nxls.lua b/nvim/lsp/nxls.lua
new file mode 100755
index 0000000..0c36cba
--- /dev/null
+++ b/nvim/lsp/nxls.lua
@@ -0,0 +1,15 @@
+---@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
+--- ```
+return {
+ cmd = { 'nxls', '--stdio' },
+ filetypes = { 'json', 'jsonc' },
+ root_markers = { 'nx.json', '.git' },
+}
diff --git a/nvim/lsp/ocamlls.lua b/nvim/lsp/ocamlls.lua
new file mode 100755
index 0000000..5f6fde5
--- /dev/null
+++ b/nvim/lsp/ocamlls.lua
@@ -0,0 +1,19 @@
+---@brief
+---
+--- https://github.com/ocaml-lsp/ocaml-language-server
+---
+--- `ocaml-language-server` can be installed via `npm`
+--- ```sh
+--- npm install -g ocaml-language-server
+--- ```
+
+local util = require 'lspconfig.util'
+
+return {
+ cmd = { 'ocaml-language-server', '--stdio' },
+ filetypes = { 'ocaml', 'reason' },
+ root_dir = function(bufnr, on_dir)
+ local fname = vim.api.nvim_buf_get_name(bufnr)
+ on_dir(util.root_pattern('*.opam', 'esy.json', 'package.json')(fname))
+ end,
+}
diff --git a/nvim/lsp/ocamllsp.lua b/nvim/lsp/ocamllsp.lua
new file mode 100755
index 0000000..27dbf82
--- /dev/null
+++ b/nvim/lsp/ocamllsp.lua
@@ -0,0 +1,35 @@
+---@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
+--- ```
+
+local util = require 'lspconfig.util'
+
+local language_id_of = {
+ menhir = 'ocaml.menhir',
+ ocaml = 'ocaml',
+ ocamlinterface = 'ocaml.interface',
+ ocamllex = 'ocaml.ocamllex',
+ reason = 'reason',
+ dune = 'dune',
+}
+
+local get_language_id = function(_, ftype)
+ return language_id_of[ftype]
+end
+
+return {
+ cmd = { 'ocamllsp' },
+ filetypes = { 'ocaml', 'menhir', 'ocamlinterface', 'ocamllex', 'reason', 'dune' },
+ root_dir = function(bufnr, on_dir)
+ local fname = vim.api.nvim_buf_get_name(bufnr)
+ on_dir(util.root_pattern('*.opam', 'esy.json', 'package.json', '.git', 'dune-project', 'dune-workspace')(fname))
+ end,
+ get_language_id = get_language_id,
+}
diff --git a/nvim/lsp/ols.lua b/nvim/lsp/ols.lua
new file mode 100755
index 0000000..7aa1556
--- /dev/null
+++ b/nvim/lsp/ols.lua
@@ -0,0 +1,16 @@
+---@brief
+---
+--- https://github.com/DanielGavin/ols
+---
+--- `Odin Language Server`.
+
+local util = require 'lspconfig.util'
+
+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/nvim/lsp/omnisharp.lua b/nvim/lsp/omnisharp.lua
new file mode 100755
index 0000000..ee3c960
--- /dev/null
+++ b/nvim/lsp/omnisharp.lua
@@ -0,0 +1,91 @@
+---@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'
+
+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/nvim/lsp/opencl_ls.lua b/nvim/lsp/opencl_ls.lua
new file mode 100755
index 0000000..4e2dcc5
--- /dev/null
+++ b/nvim/lsp/opencl_ls.lua
@@ -0,0 +1,12 @@
+---@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).
+return {
+ cmd = { 'opencl-language-server' },
+ filetypes = { 'opencl' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/openscad_ls.lua b/nvim/lsp/openscad_ls.lua
new file mode 100755
index 0000000..813bb39
--- /dev/null
+++ b/nvim/lsp/openscad_ls.lua
@@ -0,0 +1,25 @@
+---@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
+return {
+ cmd = { 'openscad-language-server' },
+ filetypes = { 'openscad' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/openscad_lsp.lua b/nvim/lsp/openscad_lsp.lua
new file mode 100755
index 0000000..c68ad96
--- /dev/null
+++ b/nvim/lsp/openscad_lsp.lua
@@ -0,0 +1,15 @@
+---@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
+--- ```
+return {
+ cmd = { 'openscad-lsp', '--stdio' },
+ filetypes = { 'openscad' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/oxlint.lua b/nvim/lsp/oxlint.lua
new file mode 100755
index 0000000..67928f1
--- /dev/null
+++ b/nvim/lsp/oxlint.lua
@@ -0,0 +1,30 @@
+--- @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'
+
+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/nvim/lsp/pact_ls.lua b/nvim/lsp/pact_ls.lua
new file mode 100755
index 0000000..d240195
--- /dev/null
+++ b/nvim/lsp/pact_ls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/kadena-io/pact-lsp
+---
+--- The Pact language server
+return {
+ cmd = { 'pact-lsp' },
+ filetypes = { 'pact' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/pasls.lua b/nvim/lsp/pasls.lua
new file mode 100755
index 0000000..ef544c9
--- /dev/null
+++ b/nvim/lsp/pasls.lua
@@ -0,0 +1,27 @@
+---@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'
+
+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/nvim/lsp/pbls.lua b/nvim/lsp/pbls.lua
new file mode 100755
index 0000000..98ae1fe
--- /dev/null
+++ b/nvim/lsp/pbls.lua
@@ -0,0 +1,17 @@
+---@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
+return {
+ cmd = { 'pbls' },
+ filetypes = { 'proto' },
+ root_markers = { '.pbls.toml', '.git' },
+}
diff --git a/nvim/lsp/perlls.lua b/nvim/lsp/perlls.lua
new file mode 100755
index 0000000..e1deb61
--- /dev/null
+++ b/nvim/lsp/perlls.lua
@@ -0,0 +1,28 @@
+---@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.
+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/nvim/lsp/perlnavigator.lua b/nvim/lsp/perlnavigator.lua
new file mode 100755
index 0000000..0fef69c
--- /dev/null
+++ b/nvim/lsp/perlnavigator.lua
@@ -0,0 +1,26 @@
+---@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.
+return {
+ cmd = { 'perlnavigator' },
+ filetypes = { 'perl' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/perlpls.lua b/nvim/lsp/perlpls.lua
new file mode 100755
index 0000000..7e8c793
--- /dev/null
+++ b/nvim/lsp/perlpls.lua
@@ -0,0 +1,19 @@
+---@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
+return {
+ cmd = { 'pls' },
+ settings = {
+ perl = {
+ perlcritic = { enabled = false },
+ syntax = { enabled = true },
+ },
+ },
+ filetypes = { 'perl' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/pest_ls.lua b/nvim/lsp/pest_ls.lua
new file mode 100755
index 0000000..8ecf182
--- /dev/null
+++ b/nvim/lsp/pest_ls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/pest-parser/pest-ide-tools
+---
+--- Language server for pest grammars.
+return {
+ cmd = { 'pest-language-server' },
+ filetypes = { 'pest' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/phan.lua b/nvim/lsp/phan.lua
new file mode 100755
index 0000000..50b0a78
--- /dev/null
+++ b/nvim/lsp/phan.lua
@@ -0,0 +1,31 @@
+---@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',
+}
+
+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/nvim/lsp/phpactor.lua b/nvim/lsp/phpactor.lua
new file mode 100755
index 0000000..7116e26
--- /dev/null
+++ b/nvim/lsp/phpactor.lua
@@ -0,0 +1,12 @@
+---@brief
+---
+--- https://github.com/phpactor/phpactor
+---
+--- Installation: https://phpactor.readthedocs.io/en/master/usage/standalone.html#global-installation
+
+return {
+ cmd = { 'phpactor', 'language-server' },
+ filetypes = { 'php' },
+ root_markers = { '.git', 'composer.json', '.phpactor.json', '.phpactor.yml' },
+ workspace_required = true,
+}
diff --git a/nvim/lsp/pico8_ls.lua b/nvim/lsp/pico8_ls.lua
new file mode 100755
index 0000000..24eb0d7
--- /dev/null
+++ b/nvim/lsp/pico8_ls.lua
@@ -0,0 +1,17 @@
+---@brief
+---
+--- https://github.com/japhib/pico8-ls
+---
+--- Full language support for the PICO-8 dialect of Lua.
+
+local util = require 'lspconfig.util'
+
+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/nvim/lsp/please.lua b/nvim/lsp/please.lua
new file mode 100755
index 0000000..116fe51
--- /dev/null
+++ b/nvim/lsp/please.lua
@@ -0,0 +1,12 @@
+---@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
+return {
+ cmd = { 'plz', 'tool', 'lps' },
+ filetypes = { 'bzl' },
+ root_markers = { '.plzconfig' },
+}
diff --git a/nvim/lsp/pli.lua b/nvim/lsp/pli.lua
new file mode 100755
index 0000000..4292cad
--- /dev/null
+++ b/nvim/lsp/pli.lua
@@ -0,0 +1,10 @@
+---@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).
+return {
+ cmd = { 'pli_language_server' },
+ filetypes = { 'pli' },
+ root_markers = { '.pliplugin' },
+}
diff --git a/nvim/lsp/poryscript_pls.lua b/nvim/lsp/poryscript_pls.lua
new file mode 100755
index 0000000..d0ad861
--- /dev/null
+++ b/nvim/lsp/poryscript_pls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/huderlem/poryscript-pls
+---
+--- Language server for poryscript (a high level scripting language for GBA-era Pokรฉmon decompilation projects)
+return {
+ cmd = { 'poryscript-pls' },
+ filetypes = { 'pory' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/postgres_lsp.lua b/nvim/lsp/postgres_lsp.lua
new file mode 100755
index 0000000..3ae2669
--- /dev/null
+++ b/nvim/lsp/postgres_lsp.lua
@@ -0,0 +1,12 @@
+---@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.
+return {
+ cmd = { 'postgrestools', 'lsp-proxy' },
+ filetypes = {
+ 'sql',
+ },
+ root_markers = { 'postgrestools.jsonc' },
+}
diff --git a/nvim/lsp/powershell_es.lua b/nvim/lsp/powershell_es.lua
new file mode 100755
index 0000000..d734df2
--- /dev/null
+++ b/nvim/lsp/powershell_es.lua
@@ -0,0 +1,55 @@
+--- @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 ..."},
+--- })
+--- ```
+
+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/nvim/lsp/prismals.lua b/nvim/lsp/prismals.lua
new file mode 100755
index 0000000..41afed2
--- /dev/null
+++ b/nvim/lsp/prismals.lua
@@ -0,0 +1,18 @@
+---@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
+--- ```
+return {
+ cmd = { 'prisma-language-server', '--stdio' },
+ filetypes = { 'prisma' },
+ settings = {
+ prisma = {
+ prismaFmtBinPath = '',
+ },
+ },
+ root_markers = { '.git', 'package.json' },
+}
diff --git a/nvim/lsp/prolog_ls.lua b/nvim/lsp/prolog_ls.lua
new file mode 100755
index 0000000..bb8b6f3
--- /dev/null
+++ b/nvim/lsp/prolog_ls.lua
@@ -0,0 +1,20 @@
+---@brief
+---
+--- https://github.com/jamesnvc/lsp_server
+---
+--- Language Server Protocol server for SWI-Prolog
+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/nvim/lsp/prosemd_lsp.lua b/nvim/lsp/prosemd_lsp.lua
new file mode 100755
index 0000000..af8f988
--- /dev/null
+++ b/nvim/lsp/prosemd_lsp.lua
@@ -0,0 +1,12 @@
+---@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
+return {
+ cmd = { 'prosemd-lsp', '--stdio' },
+ filetypes = { 'markdown' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/protols.lua b/nvim/lsp/protols.lua
new file mode 100755
index 0000000..d534660
--- /dev/null
+++ b/nvim/lsp/protols.lua
@@ -0,0 +1,15 @@
+---@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.
+return {
+ cmd = { 'protols' },
+ filetypes = { 'proto' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/psalm.lua b/nvim/lsp/psalm.lua
new file mode 100755
index 0000000..8ccc96c
--- /dev/null
+++ b/nvim/lsp/psalm.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://github.com/vimeo/psalm
+---
+--- Can be installed with composer.
+--- ```sh
+--- composer global require vimeo/psalm
+--- ```
+return {
+ cmd = { 'psalm', '--language-server' },
+ filetypes = { 'php' },
+ root_markers = { 'psalm.xml', 'psalm.xml.dist' },
+}
diff --git a/nvim/lsp/pug.lua b/nvim/lsp/pug.lua
new file mode 100755
index 0000000..8b8910d
--- /dev/null
+++ b/nvim/lsp/pug.lua
@@ -0,0 +1,12 @@
+---@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)
+return {
+ cmd = { 'pug-lsp' },
+ filetypes = { 'pug' },
+ root_markers = { 'package.json' },
+}
diff --git a/nvim/lsp/puppet.lua b/nvim/lsp/puppet.lua
new file mode 100755
index 0000000..297e493
--- /dev/null
+++ b/nvim/lsp/puppet.lua
@@ -0,0 +1,26 @@
+---@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.
+return {
+ cmd = { 'puppet-languageserver', '--stdio' },
+ filetypes = { 'puppet' },
+ root_markers = {
+ 'manifests',
+ '.puppet-lint.rc',
+ 'hiera.yaml',
+ '.git',
+ },
+}
diff --git a/nvim/lsp/purescriptls.lua b/nvim/lsp/purescriptls.lua
new file mode 100755
index 0000000..dcec93e
--- /dev/null
+++ b/nvim/lsp/purescriptls.lua
@@ -0,0 +1,13 @@
+---@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
+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/nvim/lsp/pylsp.lua b/nvim/lsp/pylsp.lua
new file mode 100755
index 0000000..bb6fcf9
--- /dev/null
+++ b/nvim/lsp/pylsp.lua
@@ -0,0 +1,39 @@
+---@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`.
+return {
+ cmd = { 'pylsp' },
+ filetypes = { 'python' },
+ root_markers = {
+ 'pyproject.toml',
+ 'setup.py',
+ 'setup.cfg',
+ 'requirements.txt',
+ 'Pipfile',
+ '.git',
+ },
+}
diff --git a/nvim/lsp/pylyzer.lua b/nvim/lsp/pylyzer.lua
new file mode 100755
index 0000000..68c8cb5
--- /dev/null
+++ b/nvim/lsp/pylyzer.lua
@@ -0,0 +1,33 @@
+---@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`.
+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/nvim/lsp/pyre.lua b/nvim/lsp/pyre.lua
new file mode 100755
index 0000000..c46ec42
--- /dev/null
+++ b/nvim/lsp/pyre.lua
@@ -0,0 +1,15 @@
+---@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`.
+return {
+ cmd = { 'pyre', 'persistent' },
+ filetypes = { 'python' },
+ root_markers = { '.pyre_configuration' },
+}
diff --git a/nvim/lsp/pyrefly.lua b/nvim/lsp/pyrefly.lua
new file mode 100755
index 0000000..e8ac037
--- /dev/null
+++ b/nvim/lsp/pyrefly.lua
@@ -0,0 +1,25 @@
+---@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.
+
+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/nvim/lsp/pyright.lua b/nvim/lsp/pyright.lua
new file mode 100755
index 0000000..c44fecf
--- /dev/null
+++ b/nvim/lsp/pyright.lua
@@ -0,0 +1,58 @@
+---@brief
+---
+--- https://github.com/microsoft/pyright
+---
+--- `pyright`, a static type checker and language server for python
+
+local function set_python_path(path)
+ 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
+
+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()
+ client:exec_cmd({
+ command = 'pyright.organizeimports',
+ arguments = { vim.uri_from_bufnr(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/nvim/lsp/qmlls.lua b/nvim/lsp/qmlls.lua
new file mode 100755
index 0000000..22e7a07
--- /dev/null
+++ b/nvim/lsp/qmlls.lua
@@ -0,0 +1,12 @@
+---@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/)
+return {
+ cmd = { 'qmlls' },
+ filetypes = { 'qml', 'qmljs' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/quick_lint_js.lua b/nvim/lsp/quick_lint_js.lua
new file mode 100755
index 0000000..99645bd
--- /dev/null
+++ b/nvim/lsp/quick_lint_js.lua
@@ -0,0 +1,12 @@
+---@brief
+---
+--- https://quick-lint-js.com/
+---
+--- quick-lint-js finds bugs in JavaScript programs.
+---
+--- See installation [instructions](https://quick-lint-js.com/install/)
+return {
+ cmd = { 'quick-lint-js', '--lsp-server' },
+ filetypes = { 'javascript', 'typescript' },
+ root_markers = { 'package.json', 'jsconfig.json', '.git' },
+}
diff --git a/nvim/lsp/r_language_server.lua b/nvim/lsp/r_language_server.lua
new file mode 100755
index 0000000..8a54df1
--- /dev/null
+++ b/nvim/lsp/r_language_server.lua
@@ -0,0 +1,18 @@
+---@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")
+--- ```
+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/nvim/lsp/racket_langserver.lua b/nvim/lsp/racket_langserver.lua
new file mode 100755
index 0000000..a6ac1e2
--- /dev/null
+++ b/nvim/lsp/racket_langserver.lua
@@ -0,0 +1,14 @@
+---@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`
+return {
+ cmd = { 'racket', '--lib', 'racket-langserver' },
+ filetypes = { 'racket', 'scheme' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/raku_navigator.lua b/nvim/lsp/raku_navigator.lua
new file mode 100755
index 0000000..aa8f7b7
--- /dev/null
+++ b/nvim/lsp/raku_navigator.lua
@@ -0,0 +1,26 @@
+---@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', '<path_to_repo>/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.
+return {
+ cmd = {},
+ filetypes = { 'raku' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/reason_ls.lua b/nvim/lsp/reason_ls.lua
new file mode 100755
index 0000000..9fd8002
--- /dev/null
+++ b/nvim/lsp/reason_ls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- Reason language server
+---
+--- You can install reason language server from [reason-language-server](https://github.com/jaredly/reason-language-server) repository.
+return {
+ cmd = { 'reason-language-server' },
+ filetypes = { 'reason' },
+ root_markers = { 'bsconfig.json', '.git' },
+}
diff --git a/nvim/lsp/regal.lua b/nvim/lsp/regal.lua
new file mode 100755
index 0000000..08fa74b
--- /dev/null
+++ b/nvim/lsp/regal.lua
@@ -0,0 +1,21 @@
+---@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'
+
+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/nvim/lsp/regols.lua b/nvim/lsp/regols.lua
new file mode 100755
index 0000000..8953a09
--- /dev/null
+++ b/nvim/lsp/regols.lua
@@ -0,0 +1,21 @@
+---@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'
+
+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/nvim/lsp/remark_ls.lua b/nvim/lsp/remark_ls.lua
new file mode 100755
index 0000000..59cdbc2
--- /dev/null
+++ b/nvim/lsp/remark_ls.lua
@@ -0,0 +1,44 @@
+---@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
+--- ```
+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/nvim/lsp/rescriptls.lua b/nvim/lsp/rescriptls.lua
new file mode 100755
index 0000000..7f2af38
--- /dev/null
+++ b/nvim/lsp/rescriptls.lua
@@ -0,0 +1,56 @@
+---@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,
+--- },
+--- },
+--- }
+--- ```
+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/nvim/lsp/rls.lua b/nvim/lsp/rls.lua
new file mode 100755
index 0000000..c47c94a
--- /dev/null
+++ b/nvim/lsp/rls.lua
@@ -0,0 +1,33 @@
+---@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"}
+--- ```
+return {
+ cmd = { 'rls' },
+ filetypes = { 'rust' },
+ root_markers = { 'Cargo.toml' },
+}
diff --git a/nvim/lsp/rnix.lua b/nvim/lsp/rnix.lua
new file mode 100755
index 0000000..8a8f9b3
--- /dev/null
+++ b/nvim/lsp/rnix.lua
@@ -0,0 +1,18 @@
+---@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.
+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/nvim/lsp/robotcode.lua b/nvim/lsp/robotcode.lua
new file mode 100755
index 0000000..1193a3a
--- /dev/null
+++ b/nvim/lsp/robotcode.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://robotcode.io
+---
+--- RobotCode - Language Server Protocol implementation for Robot Framework.
+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/nvim/lsp/robotframework_ls.lua b/nvim/lsp/robotframework_ls.lua
new file mode 100755
index 0000000..5b9b5b5
--- /dev/null
+++ b/nvim/lsp/robotframework_ls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/robocorp/robotframework-lsp
+---
+--- Language Server Protocol implementation for Robot Framework.
+return {
+ cmd = { 'robotframework_ls' },
+ filetypes = { 'robot' },
+ root_markers = { 'robotidy.toml', 'pyproject.toml', 'conda.yaml', 'robot.yaml', '.git' },
+}
diff --git a/nvim/lsp/roc_ls.lua b/nvim/lsp/roc_ls.lua
new file mode 100755
index 0000000..fb0921a
--- /dev/null
+++ b/nvim/lsp/roc_ls.lua
@@ -0,0 +1,11 @@
+---@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)
+return {
+ cmd = { 'roc_language_server' },
+ filetypes = { 'roc' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/rome.lua b/nvim/lsp/rome.lua
new file mode 100755
index 0000000..5afbdac
--- /dev/null
+++ b/nvim/lsp/rome.lua
@@ -0,0 +1,23 @@
+---@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
+--- ```
+return {
+ cmd = { 'rome', 'lsp-proxy' },
+ filetypes = {
+ 'javascript',
+ 'javascriptreact',
+ 'json',
+ 'typescript',
+ 'typescript.tsx',
+ 'typescriptreact',
+ },
+ root_markers = { 'package.json', 'node_modules', '.git' },
+}
diff --git a/nvim/lsp/roslyn_ls.lua b/nvim/lsp/roslyn_ls.lua
new file mode 100755
index 0000000..58da15a
--- /dev/null
+++ b/nvim/lsp/roslyn_ls.lua
@@ -0,0 +1,189 @@
+---@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.<platform>/overview`
+-- replace `<platform>` 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',
+-- '<my_folder>/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 `<my_folder>` 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
+
+---@param client vim.lsp.Client
+---@param target string
+local function on_init_sln(client, target)
+ vim.notify('Initializing: ' .. target, vim.log.levels.INFO, { 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.INFO, { 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
+
+local function roslyn_handlers()
+ return {
+ ['workspace/projectInitializationComplete'] = function(_, _, ctx)
+ vim.notify('Roslyn project initialization complete', vim.log.levels.INFO, { title = 'roslyn_ls' })
+
+ local buffers = vim.lsp.get_buffers_by_client_id(ctx.client_id)
+ local client = assert(vim.lsp.get_client_by_id(ctx.client_id))
+ for _, buf in ipairs(buffers) do
+ client:request(vim.lsp.protocol.Methods.textDocument_diagnostic, {
+ textDocument = vim.lsp.util.make_text_document_params(buf),
+ }, nil, buf)
+ end
+ end,
+ ['workspace/_roslyn_projectHasUnresolvedDependencies'] = function()
+ vim.notify('Detected missing dependencies. Run `dotnet restore` command.', vim.log.levels.ERROR, {
+ title = 'roslyn_ls',
+ })
+ 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.ClientConfig
+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(),
+ 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$') ~= 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') 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,
+ },
+ 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/nvim/lsp/rpmspec.lua b/nvim/lsp/rpmspec.lua
new file mode 100755
index 0000000..c366ba1
--- /dev/null
+++ b/nvim/lsp/rpmspec.lua
@@ -0,0 +1,17 @@
+---@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
+--- ```
+return {
+ cmd = { 'rpm_lsp_server', '--stdio' },
+ filetypes = { 'spec' },
+ root_markers = { '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/rubocop.lua b/nvim/lsp/rubocop.lua
new file mode 100755
index 0000000..619df5c
--- /dev/null
+++ b/nvim/lsp/rubocop.lua
@@ -0,0 +1,8 @@
+---@brief
+---
+--- https://github.com/rubocop/rubocop
+return {
+ cmd = { 'rubocop', '--lsp' },
+ filetypes = { 'ruby' },
+ root_markers = { 'Gemfile', '.git' },
+}
diff --git a/nvim/lsp/ruby_lsp.lua b/nvim/lsp/ruby_lsp.lua
new file mode 100755
index 0000000..db6c4da
--- /dev/null
+++ b/nvim/lsp/ruby_lsp.lua
@@ -0,0 +1,21 @@
+---@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
+--- ```
+return {
+ cmd = { 'ruby-lsp' },
+ filetypes = { 'ruby', 'eruby' },
+ root_markers = { 'Gemfile', '.git' },
+ init_options = {
+ formatter = 'auto',
+ },
+}
diff --git a/nvim/lsp/ruff.lua b/nvim/lsp/ruff.lua
new file mode 100755
index 0000000..1df0b76
--- /dev/null
+++ b/nvim/lsp/ruff.lua
@@ -0,0 +1,33 @@
+---@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.
+return {
+ cmd = { 'ruff', 'server' },
+ filetypes = { 'python' },
+ root_markers = { 'pyproject.toml', 'ruff.toml', '.ruff.toml', '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/ruff_lsp.lua b/nvim/lsp/ruff_lsp.lua
new file mode 100755
index 0000000..127a4e0
--- /dev/null
+++ b/nvim/lsp/ruff_lsp.lua
@@ -0,0 +1,28 @@
+---@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 = {},
+--- }
+--- }
+--- })
+--- ```
+return {
+ cmd = { 'ruff-lsp' },
+ filetypes = { 'python' },
+ root_markers = { 'pyproject.toml', 'ruff.toml', '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/rune_languageserver.lua b/nvim/lsp/rune_languageserver.lua
new file mode 100755
index 0000000..fbf3347
--- /dev/null
+++ b/nvim/lsp/rune_languageserver.lua
@@ -0,0 +1,11 @@
+---@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
+return {
+ cmd = { 'rune-languageserver' },
+ filetypes = { 'rune' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/rust_analyzer.lua b/nvim/lsp/rust_analyzer.lua
new file mode 100755
index 0000000..660442c
--- /dev/null
+++ b/nvim/lsp/rust_analyzer.lua
@@ -0,0 +1,119 @@
+---@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'
+ 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
+
+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/nvim/lsp/salt_ls.lua b/nvim/lsp/salt_ls.lua
new file mode 100755
index 0000000..4710478
--- /dev/null
+++ b/nvim/lsp/salt_ls.lua
@@ -0,0 +1,14 @@
+---@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
+--- ```
+return {
+ cmd = { 'salt_lsp_server' },
+ filetypes = { 'sls' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/scheme_langserver.lua b/nvim/lsp/scheme_langserver.lua
new file mode 100755
index 0000000..b3fefa7
--- /dev/null
+++ b/nvim/lsp/scheme_langserver.lua
@@ -0,0 +1,16 @@
+---@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.
+
+local cmd = { 'scheme-langserver', '~/.scheme-langserver.log', 'enable', 'disable' }
+
+return {
+ cmd = cmd,
+ filetypes = { 'scheme' },
+ root_markers = {
+ 'Akku.manifest',
+ '.git',
+ },
+}
diff --git a/nvim/lsp/scry.lua b/nvim/lsp/scry.lua
new file mode 100755
index 0000000..895c80c
--- /dev/null
+++ b/nvim/lsp/scry.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/crystal-lang-tools/scry
+---
+--- Crystal language server.
+return {
+ cmd = { 'scry' },
+ filetypes = { 'crystal' },
+ root_markers = { 'shard.yml', '.git' },
+}
diff --git a/nvim/lsp/selene3p_ls.lua b/nvim/lsp/selene3p_ls.lua
new file mode 100755
index 0000000..72755cf
--- /dev/null
+++ b/nvim/lsp/selene3p_ls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/antonk52/lua-3p-language-servers
+---
+--- 3rd party Language Server for Selene lua linter
+return {
+ cmd = { 'selene-3p-language-server' },
+ filetypes = { 'lua' },
+ root_markers = { 'selene.toml' },
+}
diff --git a/nvim/lsp/serve_d.lua b/nvim/lsp/serve_d.lua
new file mode 100755
index 0000000..63e7eb1
--- /dev/null
+++ b/nvim/lsp/serve_d.lua
@@ -0,0 +1,11 @@
+---@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.
+return {
+ cmd = { 'serve-d' },
+ filetypes = { 'd' },
+ root_markers = { 'dub.json', 'dub.sdl', '.git' },
+}
diff --git a/nvim/lsp/shopify_theme_ls.lua b/nvim/lsp/shopify_theme_ls.lua
new file mode 100755
index 0000000..5415a30
--- /dev/null
+++ b/nvim/lsp/shopify_theme_ls.lua
@@ -0,0 +1,24 @@
+---@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.
+return {
+ cmd = {
+ 'shopify',
+ 'theme',
+ 'language-server',
+ },
+ filetypes = { 'liquid' },
+ root_markers = {
+ '.shopifyignore',
+ '.theme-check.yml',
+ '.theme-check.yaml',
+ 'shopify.theme.toml',
+ },
+ settings = {},
+}
diff --git a/nvim/lsp/sixtyfps.lua b/nvim/lsp/sixtyfps.lua
new file mode 100755
index 0000000..573c3ad
--- /dev/null
+++ b/nvim/lsp/sixtyfps.lua
@@ -0,0 +1,23 @@
+---@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
+return {
+ cmd = { 'sixtyfps-lsp' },
+ filetypes = { 'sixtyfps' },
+}
diff --git a/nvim/lsp/slangd.lua b/nvim/lsp/slangd.lua
new file mode 100755
index 0000000..6df1c87
--- /dev/null
+++ b/nvim/lsp/slangd.lua
@@ -0,0 +1,36 @@
+---@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
+
+return {
+ cmd = { bin_name },
+ filetypes = { 'hlsl', 'shaderslang' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/slint_lsp.lua b/nvim/lsp/slint_lsp.lua
new file mode 100755
index 0000000..6090450
--- /dev/null
+++ b/nvim/lsp/slint_lsp.lua
@@ -0,0 +1,22 @@
+---@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 ]]
+--- ```
+return {
+ cmd = { 'slint-lsp' },
+ filetypes = { 'slint' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/smarty_ls.lua b/nvim/lsp/smarty_ls.lua
new file mode 100755
index 0000000..5527c04
--- /dev/null
+++ b/nvim/lsp/smarty_ls.lua
@@ -0,0 +1,35 @@
+---@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
+--- ```
+
+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/nvim/lsp/smithy_ls.lua b/nvim/lsp/smithy_ls.lua
new file mode 100755
index 0000000..7a53adc
--- /dev/null
+++ b/nvim/lsp/smithy_ls.lua
@@ -0,0 +1,43 @@
+---@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
+--- ```
+
+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/nvim/lsp/snakeskin_ls.lua b/nvim/lsp/snakeskin_ls.lua
new file mode 100755
index 0000000..5a64776
--- /dev/null
+++ b/nvim/lsp/snakeskin_ls.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://www.npmjs.com/package/@snakeskin/cli
+---
+--- `snakeskin cli` can be installed via `npm`:
+--- ```sh
+--- npm install -g @snakeskin/cli
+--- ```
+return {
+ cmd = { 'snakeskin-cli', 'lsp', '--stdio' },
+ filetypes = { 'ss' },
+ root_markers = { 'package.json' },
+}
diff --git a/nvim/lsp/snyk_ls.lua b/nvim/lsp/snyk_ls.lua
new file mode 100755
index 0000000..f748060
--- /dev/null
+++ b/nvim/lsp/snyk_ls.lua
@@ -0,0 +1,27 @@
+---@brief
+---
+--- https://github.com/snyk/snyk-ls
+---
+--- LSP for Snyk Open Source, Snyk Infrastructure as Code, and Snyk Code.
+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/nvim/lsp/solang.lua b/nvim/lsp/solang.lua
new file mode 100755
index 0000000..97a6897
--- /dev/null
+++ b/nvim/lsp/solang.lua
@@ -0,0 +1,17 @@
+---@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.
+return {
+ cmd = { 'solang', 'language-server', '--target', 'evm' },
+ filetypes = { 'solidity' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/solargraph.lua b/nvim/lsp/solargraph.lua
new file mode 100755
index 0000000..0d44e99
--- /dev/null
+++ b/nvim/lsp/solargraph.lua
@@ -0,0 +1,22 @@
+---@brief
+---
+--- https://solargraph.org/
+---
+--- solargraph, a language server for Ruby
+---
+--- You can install solargraph via gem install.
+---
+--- ```sh
+--- gem install --user-install solargraph
+--- ```
+return {
+ cmd = { 'solargraph', 'stdio' },
+ settings = {
+ solargraph = {
+ diagnostics = true,
+ },
+ },
+ init_options = { formatting = true },
+ filetypes = { 'ruby' },
+ root_markers = { 'Gemfile', '.git' },
+}
diff --git a/nvim/lsp/solc.lua b/nvim/lsp/solc.lua
new file mode 100755
index 0000000..0e03bab
--- /dev/null
+++ b/nvim/lsp/solc.lua
@@ -0,0 +1,16 @@
+---@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'
+
+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/nvim/lsp/solidity.lua b/nvim/lsp/solidity.lua
new file mode 100755
index 0000000..3a20e66
--- /dev/null
+++ b/nvim/lsp/solidity.lua
@@ -0,0 +1,40 @@
+---@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.
+return {
+ cmd = { 'solidity-ls', '--stdio' },
+ filetypes = { 'solidity' },
+ root_markers = { '.git', 'package.json' },
+ settings = { solidity = { includePath = '', remapping = {} } },
+}
diff --git a/nvim/lsp/solidity_ls.lua b/nvim/lsp/solidity_ls.lua
new file mode 100755
index 0000000..01b15d7
--- /dev/null
+++ b/nvim/lsp/solidity_ls.lua
@@ -0,0 +1,26 @@
+---@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.
+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/nvim/lsp/solidity_ls_nomicfoundation.lua b/nvim/lsp/solidity_ls_nomicfoundation.lua
new file mode 100755
index 0000000..fb24b1c
--- /dev/null
+++ b/nvim/lsp/solidity_ls_nomicfoundation.lua
@@ -0,0 +1,26 @@
+---@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.
+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/nvim/lsp/somesass_ls.lua b/nvim/lsp/somesass_ls.lua
new file mode 100755
index 0000000..9d2d092
--- /dev/null
+++ b/nvim/lsp/somesass_ls.lua
@@ -0,0 +1,28 @@
+---@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.
+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/nvim/lsp/sorbet.lua b/nvim/lsp/sorbet.lua
new file mode 100755
index 0000000..637a4e1
--- /dev/null
+++ b/nvim/lsp/sorbet.lua
@@ -0,0 +1,17 @@
+---@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
+--- ```
+return {
+ cmd = { 'srb', 'tc', '--lsp' },
+ filetypes = { 'ruby' },
+ root_markers = { 'Gemfile', '.git' },
+}
diff --git a/nvim/lsp/sourcekit.lua b/nvim/lsp/sourcekit.lua
new file mode 100755
index 0000000..4292b5f
--- /dev/null
+++ b/nvim/lsp/sourcekit.lua
@@ -0,0 +1,39 @@
+---@brief
+---
+--- https://github.com/swiftlang/sourcekit-lsp
+---
+--- Language server for Swift and C/C++/Objective-C.
+
+local util = require 'lspconfig.util'
+
+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/nvim/lsp/spectral.lua b/nvim/lsp/spectral.lua
new file mode 100755
index 0000000..ea8a720
--- /dev/null
+++ b/nvim/lsp/spectral.lua
@@ -0,0 +1,21 @@
+---@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.
+
+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/nvim/lsp/spyglassmc_language_server.lua b/nvim/lsp/spyglassmc_language_server.lua
new file mode 100755
index 0000000..f1f0072
--- /dev/null
+++ b/nvim/lsp/spyglassmc_language_server.lua
@@ -0,0 +1,22 @@
+---@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.
+return {
+ cmd = { 'spyglassmc-language-server', '--stdio' },
+ filetypes = { 'mcfunction' },
+ root_markers = { 'pack.mcmeta' },
+}
diff --git a/nvim/lsp/sqlls.lua b/nvim/lsp/sqlls.lua
new file mode 100755
index 0000000..aebd4c9
--- /dev/null
+++ b/nvim/lsp/sqlls.lua
@@ -0,0 +1,12 @@
+---@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).
+
+return {
+ cmd = { 'sql-language-server', 'up', '--method', 'stdio' },
+ filetypes = { 'sql', 'mysql' },
+ root_markers = { '.sqllsrc.json' },
+ settings = {},
+}
diff --git a/nvim/lsp/sqls.lua b/nvim/lsp/sqls.lua
new file mode 100755
index 0000000..25dec93
--- /dev/null
+++ b/nvim/lsp/sqls.lua
@@ -0,0 +1,17 @@
+---@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).
+return {
+ cmd = { 'sqls' },
+ filetypes = { 'sql', 'mysql' },
+ root_markers = { 'config.yml' },
+ settings = {},
+}
diff --git a/nvim/lsp/sqruff.lua b/nvim/lsp/sqruff.lua
new file mode 100755
index 0000000..7fcdc1e
--- /dev/null
+++ b/nvim/lsp/sqruff.lua
@@ -0,0 +1,11 @@
+---@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)
+---
+return {
+ cmd = { 'sqruff', 'lsp' },
+ filetypes = { 'sql' },
+ root_markers = { '.sqruff', '.git' },
+}
diff --git a/nvim/lsp/standardrb.lua b/nvim/lsp/standardrb.lua
new file mode 100755
index 0000000..91ab2ce
--- /dev/null
+++ b/nvim/lsp/standardrb.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/testdouble/standard
+---
+--- Ruby Style Guide, with linter & automatic code fixer.
+return {
+ cmd = { 'standardrb', '--lsp' },
+ filetypes = { 'ruby' },
+ root_markers = { 'Gemfile', '.git' },
+}
diff --git a/nvim/lsp/starlark_rust.lua b/nvim/lsp/starlark_rust.lua
new file mode 100755
index 0000000..0954c98
--- /dev/null
+++ b/nvim/lsp/starlark_rust.lua
@@ -0,0 +1,14 @@
+---@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
+return {
+ cmd = { 'starlark', '--lsp' },
+ filetypes = { 'star', 'bzl', 'BUILD.bazel' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/starpls.lua b/nvim/lsp/starpls.lua
new file mode 100755
index 0000000..c73fae6
--- /dev/null
+++ b/nvim/lsp/starpls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/withered-magic/starpls
+---
+--- `starpls` is an LSP implementation for Starlark. Installation instructions can be found in the project's README.
+return {
+ cmd = { 'starpls' },
+ filetypes = { 'bzl' },
+ root_markers = { 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel' },
+}
diff --git a/nvim/lsp/statix.lua b/nvim/lsp/statix.lua
new file mode 100755
index 0000000..2d15249
--- /dev/null
+++ b/nvim/lsp/statix.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/nerdypepper/statix
+---
+--- lints and suggestions for the nix programming language
+return {
+ cmd = { 'statix', 'check', '--stdin' },
+ filetypes = { 'nix' },
+ root_markers = { 'flake.nix', '.git' },
+}
diff --git a/nvim/lsp/steep.lua b/nvim/lsp/steep.lua
new file mode 100755
index 0000000..760f97c
--- /dev/null
+++ b/nvim/lsp/steep.lua
@@ -0,0 +1,12 @@
+---@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`.
+return {
+ cmd = { 'steep', 'langserver' },
+ filetypes = { 'ruby', 'eruby' },
+ root_markers = { 'Steepfile', '.git' },
+}
diff --git a/nvim/lsp/stimulus_ls.lua b/nvim/lsp/stimulus_ls.lua
new file mode 100755
index 0000000..729d0b5
--- /dev/null
+++ b/nvim/lsp/stimulus_ls.lua
@@ -0,0 +1,20 @@
+---@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
+--- ```
+return {
+ cmd = { 'stimulus-language-server', '--stdio' },
+ filetypes = { 'html', 'ruby', 'eruby', 'blade', 'php' },
+ root_markers = { 'Gemfile', '.git' },
+}
diff --git a/nvim/lsp/stylelint_lsp.lua b/nvim/lsp/stylelint_lsp.lua
new file mode 100755
index 0000000..9d11eec
--- /dev/null
+++ b/nvim/lsp/stylelint_lsp.lua
@@ -0,0 +1,54 @@
+---@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')
+
+return {
+ cmd = { 'stylelint-lsp', '--stdio' },
+ filetypes = {
+ 'astro',
+ 'css',
+ 'html',
+ 'less',
+ 'scss',
+ 'sugarss',
+ 'vue',
+ 'wxss',
+ },
+ root_markers = root_file,
+ settings = {},
+}
diff --git a/nvim/lsp/stylua3p_ls.lua b/nvim/lsp/stylua3p_ls.lua
new file mode 100755
index 0000000..9bd7d76
--- /dev/null
+++ b/nvim/lsp/stylua3p_ls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/antonk52/lua-3p-language-servers
+---
+--- 3rd party Language Server for Stylua lua formatter
+return {
+ cmd = { 'stylua-3p-language-server' },
+ filetypes = { 'lua' },
+ root_markers = { '.stylua.toml', 'stylua.toml' },
+}
diff --git a/nvim/lsp/superhtml.lua b/nvim/lsp/superhtml.lua
new file mode 100755
index 0000000..581e4ce
--- /dev/null
+++ b/nvim/lsp/superhtml.lua
@@ -0,0 +1,22 @@
+---@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' }
+--- })
+--- ```
+return {
+ cmd = { 'superhtml', 'lsp' },
+ filetypes = { 'superhtml', 'html' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/svelte.lua b/nvim/lsp/svelte.lua
new file mode 100755
index 0000000..f18baf1
--- /dev/null
+++ b/nvim/lsp/svelte.lua
@@ -0,0 +1,41 @@
+---@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
+--- ```
+
+return {
+ cmd = { 'svelteserver', '--stdio' },
+ filetypes = { 'svelte' },
+ root_dir = function(bufnr, on_dir)
+ local root_files = { 'package.json', '.git' }
+ 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
+ on_dir(vim.fs.dirname(vim.fs.find(root_files, { path = fname, upward = true })[1]))
+ 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('svelte_js_ts_file_watch', {}),
+ 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({
+ command = 'migrate_to_svelte_5',
+ arguments = { vim.uri_from_bufnr(bufnr) },
+ })
+ end, { desc = 'Migrate Component to Svelte 5 Syntax' })
+ end,
+}
diff --git a/nvim/lsp/svlangserver.lua b/nvim/lsp/svlangserver.lua
new file mode 100755
index 0000000..9e205e2
--- /dev/null
+++ b/nvim/lsp/svlangserver.lua
@@ -0,0 +1,45 @@
+---@brief
+---
+--- https://github.com/imc-trading/svlangserver
+---
+--- Language server for SystemVerilog.
+---
+--- `svlangserver` can be installed via `npm`:
+---
+--- ```sh
+--- $ npm install -g @imc-trading/svlangserver
+--- ```
+
+local function build_index()
+ local params = {
+ command = 'systemverilog.build_index',
+ }
+ vim.lsp.buf.execute_command(params)
+end
+
+local function report_hierarchy()
+ local params = {
+ command = 'systemverilog.report_hierarchy',
+ arguments = { vim.fn.expand '<cword>' },
+ }
+ vim.lsp.buf.execute_command(params)
+end
+
+return {
+ cmd = { 'svlangserver' },
+ filetypes = { 'verilog', 'systemverilog' },
+ root_markers = { '.svlangserver', '.git' },
+ settings = {
+ systemverilog = {
+ includeIndexing = { '*.{v,vh,sv,svh}', '**/*.{v,vh,sv,svh}' },
+ },
+ },
+ on_attach = function(_, bufnr)
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspSvlangserverBuildIndex', build_index, {
+ desc = 'Instructs language server to rerun indexing',
+ })
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspSvlangserverReportHierarchy', report_hierarchy, {
+ desc = 'Generates hierarchy for the given module',
+ })
+ end,
+}
diff --git a/nvim/lsp/svls.lua b/nvim/lsp/svls.lua
new file mode 100755
index 0000000..114e31e
--- /dev/null
+++ b/nvim/lsp/svls.lua
@@ -0,0 +1,15 @@
+---@brief
+---
+--- https://github.com/dalance/svls
+---
+--- Language server for verilog and SystemVerilog
+---
+--- `svls` can be installed via `cargo`:
+--- ```sh
+--- cargo install svls
+--- ```
+return {
+ cmd = { 'svls' },
+ filetypes = { 'verilog', 'systemverilog' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/swift_mesonls.lua b/nvim/lsp/swift_mesonls.lua
new file mode 100755
index 0000000..810864c
--- /dev/null
+++ b/nvim/lsp/swift_mesonls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/JCWasmx86/Swift-MesonLSP
+---
+--- Meson language server written in Swift
+return {
+ cmd = { 'Swift-MesonLSP', '--lsp' },
+ filetypes = { 'meson' },
+ root_markers = { 'meson.build', 'meson_options.txt', 'meson.options', '.git' },
+}
diff --git a/nvim/lsp/syntax_tree.lua b/nvim/lsp/syntax_tree.lua
new file mode 100755
index 0000000..c50f797
--- /dev/null
+++ b/nvim/lsp/syntax_tree.lua
@@ -0,0 +1,19 @@
+---@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
+--- ```
+return {
+ cmd = { 'stree', 'lsp' },
+ filetypes = { 'ruby' },
+ root_markers = { '.streerc', 'Gemfile', '.git' },
+}
diff --git a/nvim/lsp/systemd_ls.lua b/nvim/lsp/systemd_ls.lua
new file mode 100755
index 0000000..409ab63
--- /dev/null
+++ b/nvim/lsp/systemd_ls.lua
@@ -0,0 +1,15 @@
+---@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
+return {
+ cmd = { 'systemd-language-server' },
+ filetypes = { 'systemd' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/tabby_ml.lua b/nvim/lsp/tabby_ml.lua
new file mode 100755
index 0000000..c1012bf
--- /dev/null
+++ b/nvim/lsp/tabby_ml.lua
@@ -0,0 +1,16 @@
+---@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
+--- ```
+return {
+ cmd = { 'tabby-agent', '--lsp', '--stdio' },
+ filetypes = {},
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/tailwindcss.lua b/nvim/lsp/tailwindcss.lua
new file mode 100755
index 0000000..8eb067a
--- /dev/null
+++ b/nvim/lsp/tailwindcss.lua
@@ -0,0 +1,134 @@
+---@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'
+
+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/nvim/lsp/taplo.lua b/nvim/lsp/taplo.lua
new file mode 100755
index 0000000..4de4c8d
--- /dev/null
+++ b/nvim/lsp/taplo.lua
@@ -0,0 +1,15 @@
+---@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
+--- ```
+return {
+ cmd = { 'taplo', 'lsp', 'stdio' },
+ filetypes = { 'toml' },
+ root_markers = { '.taplo.toml', 'taplo.toml', '.git' },
+}
diff --git a/nvim/lsp/tblgen_lsp_server.lua b/nvim/lsp/tblgen_lsp_server.lua
new file mode 100755
index 0000000..c99682a
--- /dev/null
+++ b/nvim/lsp/tblgen_lsp_server.lua
@@ -0,0 +1,24 @@
+---@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
+
+return {
+ cmd = get_command(),
+ filetypes = { 'tablegen' },
+ root_markers = { 'tablegen_compile_commands.yml', '.git' },
+}
diff --git a/nvim/lsp/teal_ls.lua b/nvim/lsp/teal_ls.lua
new file mode 100755
index 0000000..79c0367
--- /dev/null
+++ b/nvim/lsp/teal_ls.lua
@@ -0,0 +1,22 @@
+---@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
+return {
+ cmd = {
+ 'teal-language-server',
+ },
+ filetypes = {
+ 'teal',
+ },
+ root_markers = { 'tlconfig.lua' },
+}
diff --git a/nvim/lsp/templ.lua b/nvim/lsp/templ.lua
new file mode 100755
index 0000000..ea4fdc3
--- /dev/null
+++ b/nvim/lsp/templ.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://templ.guide
+---
+--- The official language server for the templ HTML templating language.
+return {
+ cmd = { 'templ', 'lsp' },
+ filetypes = { 'templ' },
+ root_markers = { 'go.work', 'go.mod', '.git' },
+}
diff --git a/nvim/lsp/termux_language_server.lua b/nvim/lsp/termux_language_server.lua
new file mode 100755
index 0000000..a7dc44c
--- /dev/null
+++ b/nvim/lsp/termux_language_server.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/termux/termux-language-server
+---
+--- Language server for various bash scripts such as Arch PKGBUILD, Gentoo ebuild, Termux build.sh, etc.
+return {
+ cmd = { 'termux-language-server' },
+ filetypes = { 'PKGBUILD' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/terraform_lsp.lua b/nvim/lsp/terraform_lsp.lua
new file mode 100755
index 0000000..2a4e714
--- /dev/null
+++ b/nvim/lsp/terraform_lsp.lua
@@ -0,0 +1,34 @@
+---@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)
+return {
+ cmd = { 'terraform-lsp' },
+ filetypes = { 'terraform', 'hcl' },
+ root_markers = { '.terraform', '.git' },
+}
diff --git a/nvim/lsp/terraformls.lua b/nvim/lsp/terraformls.lua
new file mode 100755
index 0000000..7b8c9d7
--- /dev/null
+++ b/nvim/lsp/terraformls.lua
@@ -0,0 +1,38 @@
+---@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).
+return {
+ cmd = { 'terraform-ls', 'serve' },
+ filetypes = { 'terraform', 'terraform-vars' },
+ root_markers = { '.terraform', '.git' },
+}
diff --git a/nvim/lsp/texlab.lua b/nvim/lsp/texlab.lua
new file mode 100755
index 0000000..dbff0bb
--- /dev/null
+++ b/nvim/lsp/texlab.lua
@@ -0,0 +1,221 @@
+---@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.
+
+local function client_with_fn(fn)
+ return function()
+ local bufnr = vim.api.nvim_get_current_buf()
+ local client = vim.lsp.get_clients({ bufnr = bufnr, name = 'texlab' })[1]
+ if not client then
+ return vim.notify(('texlab client not found in bufnr %d'):format(bufnr), vim.log.levels.ERROR)
+ end
+ fn(client, bufnr)
+ end
+end
+
+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)
+ if vim.fn.has 'nvim-0.11' == 1 then
+ return client:exec_cmd({
+ title = 'cancel',
+ command = 'texlab.cancelBuild',
+ }, { bufnr = bufnr })
+ end
+ vim.lsp.buf.execute_command { command = 'texlab.cancelBuild' }
+ vim.notify('Build cancelled', vim.log.levels.INFO)
+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',
+ CancelBuild = 'texlab.cancelBuild',
+ }
+ return function(client, bufnr)
+ if vim.fn.has 'nvim-0.11' == 1 then
+ 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
+
+ vim.lsp.buf.execute_command {
+ command = cmd_tbl[cmd],
+ arguments = { { uri = vim.uri_from_bufnr(bufnr) } },
+ }
+ vim.notify(('command %s executed successfully'):format(cmd_tbl[cmd]))
+ 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,
+ border = 'single',
+ title = 'Environments',
+ })
+ end)
+end
+
+local function buf_change_env(client, bufnr)
+ local new = vim.fn.input 'Enter the new environment name: '
+ if not new or new == '' then
+ return vim.notify('No environment name provided', vim.log.levels.WARN)
+ end
+ local pos = vim.api.nvim_win_get_cursor(0)
+ if vim.fn.has 'nvim-0.11' == 1 then
+ 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(new),
+ },
+ },
+ }, { bufnr = bufnr })
+ end
+
+ vim.lsp.buf.execute_command {
+ command = 'texlab.changeEnvironment',
+ arguments = {
+ {
+ textDocument = { uri = vim.uri_from_bufnr(bufnr) },
+ position = { line = pos[1] - 1, character = pos[2] },
+ newName = tostring(new),
+ },
+ },
+ }
+end
+
+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(_, buf)
+ vim.api.nvim_buf_create_user_command(buf, 'LspTexlabBuild', client_with_fn(buf_build), {
+ desc = 'Build the current buffer',
+ })
+ vim.api.nvim_buf_create_user_command(buf, 'LspTexlabForward', client_with_fn(buf_search), {
+ desc = 'Forward search from current position',
+ })
+ vim.api.nvim_buf_create_user_command(buf, 'LspTexlabCancelBuild', client_with_fn(buf_cancel_build), {
+ desc = 'Cancel the current build',
+ })
+ vim.api.nvim_buf_create_user_command(buf, 'LspTexlabDependencyGraph', client_with_fn(dependency_graph), {
+ desc = 'Show the dependency graph',
+ })
+ vim.api.nvim_buf_create_user_command(buf, 'LspTexlabCleanArtifacts', client_with_fn(command_factory('Artifacts')), {
+ desc = 'Clean the artifacts',
+ })
+ vim.api.nvim_buf_create_user_command(buf, 'LspTexlabCleanAuxiliary', client_with_fn(command_factory('Auxiliary')), {
+ desc = 'Clean the auxiliary files',
+ })
+ vim.api.nvim_buf_create_user_command(buf, 'LspTexlabFindEnvironments', client_with_fn(buf_find_envs), {
+ desc = 'Find the environments at current position',
+ })
+ vim.api.nvim_buf_create_user_command(buf, 'LspTexlabChangeEnvironment', client_with_fn(buf_change_env), {
+ desc = 'Change the environment at current position',
+ })
+ end,
+}
diff --git a/nvim/lsp/textlsp.lua b/nvim/lsp/textlsp.lua
new file mode 100755
index 0000000..5a95a0e
--- /dev/null
+++ b/nvim/lsp/textlsp.lua
@@ -0,0 +1,43 @@
+---@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`
+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/nvim/lsp/tflint.lua b/nvim/lsp/tflint.lua
new file mode 100755
index 0000000..e583799
--- /dev/null
+++ b/nvim/lsp/tflint.lua
@@ -0,0 +1,11 @@
+---@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.
+return {
+ cmd = { 'tflint', '--langserver' },
+ filetypes = { 'terraform' },
+ root_markers = { '.terraform', '.git', '.tflint.hcl' },
+}
diff --git a/nvim/lsp/theme_check.lua b/nvim/lsp/theme_check.lua
new file mode 100755
index 0000000..6698031
--- /dev/null
+++ b/nvim/lsp/theme_check.lua
@@ -0,0 +1,23 @@
+---@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' }
+--- })
+--- ```
+
+return {
+ cmd = { 'theme-check-language-server', '--stdio' },
+ filetypes = { 'liquid' },
+ root_markers = { '.theme-check.yml' },
+ settings = {},
+}
diff --git a/nvim/lsp/thriftls.lua b/nvim/lsp/thriftls.lua
new file mode 100755
index 0000000..2d7b1d7
--- /dev/null
+++ b/nvim/lsp/thriftls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/joyme123/thrift-ls
+---
+--- you can install thriftls by mason or download binary here: https://github.com/joyme123/thrift-ls/releases
+return {
+ cmd = { 'thriftls' },
+ filetypes = { 'thrift' },
+ root_markers = { '.thrift' },
+}
diff --git a/nvim/lsp/tilt_ls.lua b/nvim/lsp/tilt_ls.lua
new file mode 100755
index 0000000..83464f0
--- /dev/null
+++ b/nvim/lsp/tilt_ls.lua
@@ -0,0 +1,16 @@
+---@brief
+---
+--- https://github.com/tilt-dev/tilt
+---
+--- Tilt language server.
+---
+--- You might need to add filetype detection manually:
+---
+--- ```vim
+--- autocmd BufRead Tiltfile setf=tiltfile
+--- ```
+return {
+ cmd = { 'tilt', 'lsp', 'start' },
+ filetypes = { 'tiltfile' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/tinymist.lua b/nvim/lsp/tinymist.lua
new file mode 100755
index 0000000..3b182a6
--- /dev/null
+++ b/nvim/lsp/tinymist.lua
@@ -0,0 +1,75 @@
+---@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
+---@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
+ ---Execute the Tinymist command, supporting both 0.10 and 0.11 exec methods
+ ---@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
+ if vim.fn.has 'nvim-0.11' == 1 then
+ -- For Neovim 0.11+
+ return client:exec_cmd({
+ title = title_str,
+ command = command_name,
+ arguments = arguments,
+ }, { bufnr = bufnr }, handler)
+ else
+ return vim.notify('Tinymist commands require Neovim 0.11+', vim.log.levels.WARN)
+ end
+ end
+ -- Construct a readable command name/desc
+ local cmd_name = export_type and ('LspTinymistExport' .. cmd_display) or ('LspTinymist' .. 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
+
+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, cmd_name, cmd_func, { nargs = 0, desc = cmd_desc })
+ end
+ end,
+}
diff --git a/nvim/lsp/tofu_ls.lua b/nvim/lsp/tofu_ls.lua
new file mode 100755
index 0000000..dc006ab
--- /dev/null
+++ b/nvim/lsp/tofu_ls.lua
@@ -0,0 +1,9 @@
+---@brief
+---
+--- [OpenTofu Language Server](https://github.com/opentofu/tofu-ls)
+---
+return {
+ cmd = { 'tofu-ls', 'serve' },
+ filetypes = { 'opentofu', 'opentofu-vars' },
+ root_markers = { '.terraform', '.git' },
+}
diff --git a/nvim/lsp/tombi.lua b/nvim/lsp/tombi.lua
new file mode 100755
index 0000000..9200068
--- /dev/null
+++ b/nvim/lsp/tombi.lua
@@ -0,0 +1,11 @@
+---@brief
+---
+--- https://tombi-toml.github.io/tombi/
+---
+--- Language server for Tombi, a TOML toolkit.
+---
+return {
+ cmd = { 'tombi', 'lsp' },
+ filetypes = { 'toml' },
+ root_markers = { 'tombi.toml', 'pyproject.toml', '.git' },
+}
diff --git a/nvim/lsp/ts_ls.lua b/nvim/lsp/ts_ls.lua
new file mode 100755
index 0000000..e3cc99b
--- /dev/null
+++ b/nvim/lsp/ts_ls.lua
@@ -0,0 +1,104 @@
+---@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
+
+return {
+ init_options = { hostInfo = 'neovim' },
+ cmd = { 'typescript-language-server', '--stdio' },
+ filetypes = {
+ 'javascript',
+ 'javascriptreact',
+ 'javascript.jsx',
+ 'typescript',
+ 'typescriptreact',
+ 'typescript.tsx',
+ },
+ root_markers = { 'tsconfig.json', 'jsconfig.json', 'package.json', '.git' },
+ 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/nvim/lsp/ts_query_ls.lua b/nvim/lsp/ts_query_ls.lua
new file mode 100755
index 0000000..1886f43
--- /dev/null
+++ b/nvim/lsp/ts_query_ls.lua
@@ -0,0 +1,39 @@
+---@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', {
+--- settings = {
+--- parser_install_directories = {
+--- -- If using nvim-treesitter with lazy.nvim
+--- vim.fs.joinpath(
+--- vim.fn.stdpath('data'),
+--- '/lazy/nvim-treesitter/parser/'
+--- ),
+--- },
+--- -- This setting is provided by default
+--- parser_aliases = {
+--- ecma = 'javascript',
+--- jsx = 'javascript',
+--- php_only = 'php',
+--- },
+--- -- E.g. zed support
+--- language_retrieval_patterns = {
+--- 'languages/src/([^/]+)/[^/]+\\.scm$',
+--- },
+--- },
+--- })
+--- ```
+return {
+ cmd = { 'ts_query_ls' },
+ filetypes = { 'query' },
+ root_markers = { 'queries', '.git' },
+ settings = {
+ parser_aliases = {
+ ecma = 'javascript',
+ jsx = 'javascript',
+ php_only = 'php',
+ },
+ },
+}
diff --git a/nvim/lsp/tsp_server.lua b/nvim/lsp/tsp_server.lua
new file mode 100755
index 0000000..6e9b8d8
--- /dev/null
+++ b/nvim/lsp/tsp_server.lua
@@ -0,0 +1,15 @@
+---@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
+--- ```
+return {
+ cmd = { 'tsp-server', '--stdio' },
+ filetypes = { 'typespec' },
+ root_markers = { 'tspconfig.yaml', '.git' },
+}
diff --git a/nvim/lsp/ttags.lua b/nvim/lsp/ttags.lua
new file mode 100755
index 0000000..d1cfff1
--- /dev/null
+++ b/nvim/lsp/ttags.lua
@@ -0,0 +1,8 @@
+---@brief
+---
+--- https://github.com/npezza93/ttags
+return {
+ cmd = { 'ttags', 'lsp' },
+ filetypes = { 'ruby', 'rust', 'javascript', 'haskell' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/turbo_ls.lua b/nvim/lsp/turbo_ls.lua
new file mode 100755
index 0000000..a071693
--- /dev/null
+++ b/nvim/lsp/turbo_ls.lua
@@ -0,0 +1,20 @@
+---@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
+--- ```
+return {
+ cmd = { 'turbo-language-server', '--stdio' },
+ filetypes = { 'html', 'ruby', 'eruby', 'blade', 'php' },
+ root_markers = { 'Gemfile', '.git' },
+}
diff --git a/nvim/lsp/turtle_ls.lua b/nvim/lsp/turtle_ls.lua
new file mode 100755
index 0000000..ad28d9c
--- /dev/null
+++ b/nvim/lsp/turtle_ls.lua
@@ -0,0 +1,38 @@
+---@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
+
+return {
+ cmd = { 'node', full_path, '--stdio' },
+ filetypes = { 'turtle', 'ttl' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/tvm_ffi_navigator.lua b/nvim/lsp/tvm_ffi_navigator.lua
new file mode 100755
index 0000000..d4ddcda
--- /dev/null
+++ b/nvim/lsp/tvm_ffi_navigator.lua
@@ -0,0 +1,13 @@
+---@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
+return {
+ cmd = { 'python', '-m', 'ffi_navigator.langserver' },
+ filetypes = { 'python', 'cpp' },
+ root_markers = { 'pyproject.toml', '.git' },
+}
diff --git a/nvim/lsp/twiggy_language_server.lua b/nvim/lsp/twiggy_language_server.lua
new file mode 100755
index 0000000..0ccf60b
--- /dev/null
+++ b/nvim/lsp/twiggy_language_server.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://github.com/moetelo/twiggy
+---
+--- `twiggy-language-server` can be installed via `npm`:
+--- ```sh
+--- npm install -g twiggy-language-server
+--- ```
+return {
+ cmd = { 'twiggy-language-server', '--stdio' },
+ filetypes = { 'twig' },
+ root_markers = { 'composer.json', '.git' },
+}
diff --git a/nvim/lsp/ty.lua b/nvim/lsp/ty.lua
new file mode 100755
index 0000000..b478e70
--- /dev/null
+++ b/nvim/lsp/ty.lua
@@ -0,0 +1,12 @@
+---@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).
+return {
+ cmd = { 'ty', 'server' },
+ filetypes = { 'python' },
+ root_markers = { 'ty.toml', 'pyproject.toml', '.git' },
+}
diff --git a/nvim/lsp/typeprof.lua b/nvim/lsp/typeprof.lua
new file mode 100755
index 0000000..209eb3a
--- /dev/null
+++ b/nvim/lsp/typeprof.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/ruby/typeprof
+---
+--- `typeprof` is the built-in analysis and LSP tool for Ruby 3.1+.
+return {
+ cmd = { 'typeprof', '--lsp', '--stdio' },
+ filetypes = { 'ruby', 'eruby' },
+ root_markers = { 'Gemfile', '.git' },
+}
diff --git a/nvim/lsp/typos_lsp.lua b/nvim/lsp/typos_lsp.lua
new file mode 100755
index 0000000..645906b
--- /dev/null
+++ b/nvim/lsp/typos_lsp.lua
@@ -0,0 +1,13 @@
+---@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
+return {
+ cmd = { 'typos-lsp' },
+ root_markers = { 'typos.toml', '_typos.toml', '.typos.toml', 'pyproject.toml', 'Cargo.toml' },
+ settings = {},
+}
diff --git a/nvim/lsp/typst_lsp.lua b/nvim/lsp/typst_lsp.lua
new file mode 100755
index 0000000..2705e49
--- /dev/null
+++ b/nvim/lsp/typst_lsp.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/nvarner/typst-lsp
+---
+--- Language server for Typst.
+return {
+ cmd = { 'typst-lsp' },
+ filetypes = { 'typst' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/uiua.lua b/nvim/lsp/uiua.lua
new file mode 100755
index 0000000..3d210d3
--- /dev/null
+++ b/nvim/lsp/uiua.lua
@@ -0,0 +1,12 @@
+---@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`
+return {
+ cmd = { 'uiua', 'lsp' },
+ filetypes = { 'uiua' },
+ root_markers = { 'main.ua', '.fmt.ua', '.git' },
+}
diff --git a/nvim/lsp/ungrammar_languageserver.lua b/nvim/lsp/ungrammar_languageserver.lua
new file mode 100755
index 0000000..f7d9ceb
--- /dev/null
+++ b/nvim/lsp/ungrammar_languageserver.lua
@@ -0,0 +1,24 @@
+---@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
+--- ```
+return {
+ cmd = { 'ungrammar-languageserver', '--stdio' },
+ filetypes = { 'ungrammar' },
+ root_markers = { '.git' },
+ settings = {
+ ungrammar = {
+ validate = {
+ enable = true,
+ },
+ format = {
+ enable = true,
+ },
+ },
+ },
+}
diff --git a/nvim/lsp/unison.lua b/nvim/lsp/unison.lua
new file mode 100755
index 0000000..d4fb118
--- /dev/null
+++ b/nvim/lsp/unison.lua
@@ -0,0 +1,15 @@
+---@brief
+---
+--- https://github.com/unisonweb/unison/blob/trunk/docs/language-server.markdown
+
+local util = require 'lspconfig.util'
+
+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/nvim/lsp/unocss.lua b/nvim/lsp/unocss.lua
new file mode 100755
index 0000000..2c99512
--- /dev/null
+++ b/nvim/lsp/unocss.lua
@@ -0,0 +1,39 @@
+---@brief
+---
+--- https://github.com/xna00/unocss-language-server
+---
+--- UnoCSS Language Server can be installed via npm:
+--- ```sh
+--- npm i unocss-language-server -g
+--- ```
+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/nvim/lsp/uvls.lua b/nvim/lsp/uvls.lua
new file mode 100755
index 0000000..7b78c09
--- /dev/null
+++ b/nvim/lsp/uvls.lua
@@ -0,0 +1,21 @@
+---@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]])
+--- ```
+return {
+ cmd = { 'uvls' },
+ filetypes = { 'uvl' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/v_analyzer.lua b/nvim/lsp/v_analyzer.lua
new file mode 100755
index 0000000..1a9a92c
--- /dev/null
+++ b/nvim/lsp/v_analyzer.lua
@@ -0,0 +1,12 @@
+---@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).
+return {
+ cmd = { 'v-analyzer' },
+ filetypes = { 'v', 'vsh', 'vv' },
+ root_markers = { 'v.mod', '.git' },
+}
diff --git a/nvim/lsp/vacuum.lua b/nvim/lsp/vacuum.lua
new file mode 100755
index 0000000..709f8b0
--- /dev/null
+++ b/nvim/lsp/vacuum.lua
@@ -0,0 +1,21 @@
+---@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',
+--- },
+--- }
+--- ```
+return {
+ cmd = { 'vacuum', 'language-server' },
+ filetypes = { 'yaml.openapi', 'json.openapi' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/vala_ls.lua b/nvim/lsp/vala_ls.lua
new file mode 100755
index 0000000..a2d9059
--- /dev/null
+++ b/nvim/lsp/vala_ls.lua
@@ -0,0 +1,34 @@
+---@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
+
+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/nvim/lsp/vale_ls.lua b/nvim/lsp/vale_ls.lua
new file mode 100755
index 0000000..336c1a4
--- /dev/null
+++ b/nvim/lsp/vale_ls.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/errata-ai/vale-ls
+---
+--- An implementation of the Language Server Protocol (LSP) for the Vale command-line tool.
+return {
+ cmd = { 'vale-ls' },
+ filetypes = { 'markdown', 'text', 'tex', 'rst' },
+ root_markers = { '.vale.ini' },
+}
diff --git a/nvim/lsp/vectorcode_server.lua b/nvim/lsp/vectorcode_server.lua
new file mode 100755
index 0000000..4a59180
--- /dev/null
+++ b/nvim/lsp/vectorcode_server.lua
@@ -0,0 +1,9 @@
+---@brief
+--- https://github.com/Davidyz/VectorCode
+---
+--- A Language Server Protocol implementation for VectorCode, a code repository indexing tool.
+return {
+ cmd = { 'vectorcode-server' },
+ root_dir = vim.fs.root(0, { '.vectorcode', '.git' }),
+ settings = {},
+}
diff --git a/nvim/lsp/verible.lua b/nvim/lsp/verible.lua
new file mode 100755
index 0000000..ae0addc
--- /dev/null
+++ b/nvim/lsp/verible.lua
@@ -0,0 +1,15 @@
+---@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.
+return {
+ cmd = { 'verible-verilog-ls' },
+ filetypes = { 'systemverilog', 'verilog' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/veridian.lua b/nvim/lsp/veridian.lua
new file mode 100755
index 0000000..cb533c9
--- /dev/null
+++ b/nvim/lsp/veridian.lua
@@ -0,0 +1,22 @@
+---@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
+--- ```
+return {
+ cmd = { 'veridian' },
+ filetypes = { 'systemverilog', 'verilog' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/veryl_ls.lua b/nvim/lsp/veryl_ls.lua
new file mode 100755
index 0000000..53779e4
--- /dev/null
+++ b/nvim/lsp/veryl_ls.lua
@@ -0,0 +1,15 @@
+---@brief
+---
+--- https://github.com/veryl-lang/veryl
+---
+--- Language server for Veryl
+---
+--- `veryl-ls` can be installed via `cargo`:
+--- ```sh
+--- cargo install veryl-ls
+--- ```
+return {
+ cmd = { 'veryl-ls' },
+ filetypes = { 'veryl' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/vespa_ls.lua b/nvim/lsp/vespa_ls.lua
new file mode 100755
index 0000000..883005a
--- /dev/null
+++ b/nvim/lsp/vespa_ls.lua
@@ -0,0 +1,37 @@
+---@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',
+--- },
+--- }
+
+return {
+ cmd = { 'java', '-jar', 'vespa-language-server.jar' },
+ filetypes = { 'sd', 'profile', 'yql' },
+ root_markers = {
+ '.git',
+ },
+}
diff --git a/nvim/lsp/vhdl_ls.lua b/nvim/lsp/vhdl_ls.lua
new file mode 100755
index 0000000..5ca6810
--- /dev/null
+++ b/nvim/lsp/vhdl_ls.lua
@@ -0,0 +1,36 @@
+---@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'
+--- ]
+--- ```
+return {
+ cmd = { 'vhdl_ls' },
+ filetypes = { 'vhd', 'vhdl' },
+ root_markers = {
+ 'vhdl_ls.toml',
+ '.vhdl_ls.toml',
+ },
+}
diff --git a/nvim/lsp/vimls.lua b/nvim/lsp/vimls.lua
new file mode 100755
index 0000000..32cf93f
--- /dev/null
+++ b/nvim/lsp/vimls.lua
@@ -0,0 +1,27 @@
+---@brief
+---
+--- https://github.com/iamcco/vim-language-server
+---
+--- You can install vim-language-server via npm:
+--- ```sh
+--- npm install -g vim-language-server
+--- ```
+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/nvim/lsp/visualforce_ls.lua b/nvim/lsp/visualforce_ls.lua
new file mode 100755
index 0000000..6b19b9e
--- /dev/null
+++ b/nvim/lsp/visualforce_ls.lua
@@ -0,0 +1,29 @@
+---@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'
+--- }
+--- })
+--- ```
+return {
+ filetypes = { 'visualforce' },
+ root_markers = { 'sfdx-project.json' },
+ init_options = {
+ embeddedLanguages = {
+ css = true,
+ javascript = true,
+ },
+ },
+}
diff --git a/nvim/lsp/vls.lua b/nvim/lsp/vls.lua
new file mode 100755
index 0000000..b407667
--- /dev/null
+++ b/nvim/lsp/vls.lua
@@ -0,0 +1,12 @@
+---@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).
+return {
+ cmd = { 'v', 'ls' },
+ filetypes = { 'v', 'vlang' },
+ root_markers = { 'v.mod', '.git' },
+}
diff --git a/nvim/lsp/volar.lua b/nvim/lsp/volar.lua
new file mode 100755
index 0000000..bfa4bc9
--- /dev/null
+++ b/nvim/lsp/volar.lua
@@ -0,0 +1,8 @@
+---@brief
+---
+--- Renamed to [vue_ls](#vue_ls)
+---
+---
+vim.deprecate('volar', 'vue_ls', '3.0.0', 'lspconfig', false)
+
+return vim.lsp.config.vue_ls
diff --git a/nvim/lsp/vscoqtop.lua b/nvim/lsp/vscoqtop.lua
new file mode 100755
index 0000000..9eb353c
--- /dev/null
+++ b/nvim/lsp/vscoqtop.lua
@@ -0,0 +1,8 @@
+---@brief
+---
+--- https://github.com/coq-community/vscoq
+return {
+ cmd = { 'vscoqtop' },
+ filetypes = { 'coq' },
+ root_markers = { '_CoqProject', '.git' },
+}
diff --git a/nvim/lsp/vtsls.lua b/nvim/lsp/vtsls.lua
new file mode 100755
index 0000000..7b8c0b3
--- /dev/null
+++ b/nvim/lsp/vtsls.lua
@@ -0,0 +1,72 @@
+---@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.
+
+return {
+ cmd = { 'vtsls', '--stdio' },
+ filetypes = {
+ 'javascript',
+ 'javascriptreact',
+ 'javascript.jsx',
+ 'typescript',
+ 'typescriptreact',
+ 'typescript.tsx',
+ },
+ root_markers = { 'tsconfig.json', 'package.json', 'jsconfig.json', '.git' },
+}
diff --git a/nvim/lsp/vue_ls.lua b/nvim/lsp/vue_ls.lua
new file mode 100755
index 0000000..3900802
--- /dev/null
+++ b/nvim/lsp/vue_ls.lua
@@ -0,0 +1,50 @@
+---@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).
+
+return {
+ cmd = { 'vue-language-server', '--stdio' },
+ filetypes = { 'vue' },
+ root_markers = { 'package.json' },
+ on_init = function(client)
+ client.handlers['tsserver/request'] = function(_, result, context)
+ local clients = vim.lsp.get_clients({ bufnr = context.bufnr, name = 'vtsls' })
+ if #clients == 0 then
+ vim.notify('Could not find `vtsls` lsp client, required by `vue_ls`.', vim.log.levels.ERROR)
+ return
+ end
+ local ts_client = clients[1]
+
+ 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
+ end,
+}
diff --git a/nvim/lsp/wasm_language_tools.lua b/nvim/lsp/wasm_language_tools.lua
new file mode 100755
index 0000000..9b11896
--- /dev/null
+++ b/nvim/lsp/wasm_language_tools.lua
@@ -0,0 +1,10 @@
+---@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.
+return {
+ cmd = { 'wat_server' },
+ filetypes = { 'wat' },
+}
diff --git a/nvim/lsp/wgsl_analyzer.lua b/nvim/lsp/wgsl_analyzer.lua
new file mode 100755
index 0000000..938471a
--- /dev/null
+++ b/nvim/lsp/wgsl_analyzer.lua
@@ -0,0 +1,14 @@
+---@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
+--- ```
+return {
+ cmd = { 'wgsl-analyzer' },
+ filetypes = { 'wgsl' },
+ root_markers = { '.git' },
+ settings = {},
+}
diff --git a/nvim/lsp/yamlls.lua b/nvim/lsp/yamlls.lua
new file mode 100755
index 0000000..4d2ebca
--- /dev/null
+++ b/nvim/lsp/yamlls.lua
@@ -0,0 +1,69 @@
+---@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=<urlToTheSchema|relativeFilePath|absoluteFilePath}>
+--- ```
+---
+--- 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
+--- },
+--- },
+--- }
+--- })
+--- ```
+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 } },
+ },
+}
diff --git a/nvim/lsp/yang_lsp.lua b/nvim/lsp/yang_lsp.lua
new file mode 100755
index 0000000..b34f7c4
--- /dev/null
+++ b/nvim/lsp/yang_lsp.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://github.com/TypeFox/yang-lsp
+---
+--- A Language Server for the YANG data modeling language.
+return {
+ cmd = { 'yang-language-server' },
+ filetypes = { 'yang' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/yls.lua b/nvim/lsp/yls.lua
new file mode 100755
index 0000000..4722d56
--- /dev/null
+++ b/nvim/lsp/yls.lua
@@ -0,0 +1,14 @@
+---@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
+return {
+ cmd = { 'yls', '-vv' },
+ filetypes = { 'yar', 'yara' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/ziggy.lua b/nvim/lsp/ziggy.lua
new file mode 100755
index 0000000..40475b0
--- /dev/null
+++ b/nvim/lsp/ziggy.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://ziggy-lang.io/documentation/ziggy-lsp/
+---
+--- Language server for the Ziggy data serialization format
+return {
+ cmd = { 'ziggy', 'lsp' },
+ filetypes = { 'ziggy' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/ziggy_schema.lua b/nvim/lsp/ziggy_schema.lua
new file mode 100755
index 0000000..c83fa3c
--- /dev/null
+++ b/nvim/lsp/ziggy_schema.lua
@@ -0,0 +1,10 @@
+---@brief
+---
+--- https://ziggy-lang.io/documentation/ziggy-lsp/
+---
+--- Language server for schema files of the Ziggy data serialization format
+return {
+ cmd = { 'ziggy', 'lsp', '--schema' },
+ filetypes = { 'ziggy_schema' },
+ root_markers = { '.git' },
+}
diff --git a/nvim/lsp/zk.lua b/nvim/lsp/zk.lua
new file mode 100755
index 0000000..e8a4e16
--- /dev/null
+++ b/nvim/lsp/zk.lua
@@ -0,0 +1,68 @@
+---@brief
+---
+--- https://github.com/mickael-menu/zk
+---
+--- A plain text note-taking assistant
+
+local function find_zk_root(startpath)
+ for dir in vim.fs.parents(startpath) do
+ if vim.fn.isdirectory(vim.fs.joinpath(dir, '.zk')) == 1 then
+ return dir
+ end
+ end
+end
+
+return {
+ cmd = { 'zk', 'lsp' },
+ filetypes = { 'markdown' },
+ root_markers = { '.zk' },
+ on_attach = function(client, bufnr)
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspZkIndex', function()
+ vim.lsp.buf.execute_command {
+ command = 'zk.index',
+ arguments = { vim.api.nvim_buf_get_name(bufnr) },
+ }
+ end, {
+ desc = 'ZkIndex',
+ })
+
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspZkList', function()
+ local bufpath = vim.api.nvim_buf_get_name(bufnr)
+ local root = find_zk_root(bufpath)
+
+ client:exec_cmd({
+ command = 'zk.list',
+ arguments = { root, { select = { 'path' } } },
+ }, { bufnr = bufnr }, function(_err, result)
+ if not result then
+ return
+ end
+ local paths = vim.tbl_map(function(item)
+ return item.path
+ end, result)
+ vim.ui.select(paths, {}, function(choice)
+ vim.cmd('edit ' .. choice)
+ end)
+ end)
+ end, {
+ desc = 'ZkList',
+ })
+
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspZkNew', function(...)
+ client:exec_cmd({
+ command = 'zk.new',
+ arguments = {
+ vim.api.nvim_buf_get_name(bufnr),
+ ...,
+ },
+ }, { bufnr = bufnr }, function(_err, result)
+ if not (result and result.path) then
+ return
+ end
+ vim.cmd('edit ' .. result.path)
+ end)
+ end, {
+ desc = 'ZkNew',
+ })
+ end,
+}
diff --git a/nvim/lsp/zls.lua b/nvim/lsp/zls.lua
new file mode 100755
index 0000000..a21ae19
--- /dev/null
+++ b/nvim/lsp/zls.lua
@@ -0,0 +1,11 @@
+---@brief
+--- https://github.com/zigtools/zls
+---
+--- Zig LSP implementation + Zig Language Server
+
+return {
+ cmd = { 'zls' },
+ filetypes = { 'zig', 'zir' },
+ root_markers = { 'zls.json', 'build.zig', '.git' },
+ workspace_required = false,
+}
diff --git a/polybar/config.ini b/polybar/config.ini
new file mode 100755
index 0000000..71720a2
--- /dev/null
+++ b/polybar/config.ini
@@ -0,0 +1,247 @@
+[colors]
+background = #8a263434
+background-alt = #1e1e2e00
+foreground = #C5C8C6
+primary = #EAEAEA
+secondary = #9C9C9C
+alert = #A54242
+disabled = #707880
+
+[bar/mainbar]
+width = 100%
+height = 24pt
+radius = 0
+
+dpi = 96
+
+background = ${colors.background}
+foreground = ${colors.foreground}
+
+line-size = 3pt
+
+tray-position = right
+
+border-size = 0pt
+border-color = #00000000
+
+padding-left = 0
+padding-right = 1
+
+module-margin = 1
+
+separator = |
+separator-foreground = ${colors.disabled}
+
+font-0 = IntoneMono NFM
+
+modules-left = xworkspaces xwindow
+modules-center = date playerctl
+modules-right = pulseaudio systray battery
+
+cursor-click = pointer
+cursor-scroll = ns-resize
+
+enable-ipc = true
+
+wm-restack = generic
+; wm-restack = bspwm
+; wm-restack = i3
+
+; override-redirect = true
+
+; This module is not active by default (to enable it, add it to one of the
+; modules-* list above).
+; Please note that only a single tray can exist at any time. If you launch
+; multiple bars with this module, only a single one will show it, the others
+; will produce a warning. Which bar gets the module is timing dependent and can
+; be quite random.
+; For more information, see the documentation page for this module:
+; https://polybar.readthedocs.io/en/stable/user/modules/tray.html
+[module/systray]
+type = internal/tray
+
+format-margin = 8pt
+tray-spacing = 16pt
+
+[module/backlight]
+type = internal/backlight
+
+; Use the following command to list available cards:
+; $ ls -1 /sys/class/backlight/
+; Default: first usable card in /sys/class/backlight (new in version 3.7.0)
+card = intel_backlight
+
+; Use the `/sys/class/backlight/.../actual-brightness` file
+; rather than the regular `brightness` file.
+; New in version 3.6.0
+; Changed in version: 3.7.0: Defaults to true also on amdgpu backlights
+; Default: true
+use-actual-brightness = true
+
+; Interval in seconds after which after which the current brightness is read
+; (even if no update is detected).
+; Use this as a fallback if brightness updates are not registering in polybar
+; (which happens if the use-actual-brightness is false).
+; There is no guarantee on the precisio of this timing.
+; Set to 0 to turn off
+; New in version 3.7.0
+; Default: 0 (5 if use-actual-brightness is false)
+poll-interval = 5
+
+; Enable changing the backlight with the scroll wheel
+; NOTE: This may require additional configuration on some systems. Polybar will
+; write to `/sys/class/backlight/${self.card}/brightness` which requires polybar
+; to have write access to that file.
+; DO NOT RUN POLYBAR AS ROOT.
+; The recommended way is to add the user to the
+; `video` group and give that group write-privileges for the `brightness` file.
+; See the ArchWiki for more information:
+; https://wiki.archlinux.org/index.php/Backlight#ACPI
+; Default: false
+enable-scroll = false
+
+; Interval for changing the brightness (in percentage points).
+; New in version 3.7.0
+; Default: 5
+scroll-interval = 10
+
+[module/battery]
+type = internal/battery
+
+; This is useful in case the battery never reports 100% charge
+; Default: 100
+full-at = 100
+
+; format-low once this charge percentage is reached
+; Default: 10
+; New in version 3.6.0
+low-at = 25
+
+; Use the following command to list batteries and adapters:
+; $ ls -1 /sys/class/power_supply/
+battery = BAT0
+adapter = ADP1
+
+; If an inotify event haven't been reported in this many
+; seconds, manually poll for new values.
+;
+; Needed as a fallback for systems that don't report events
+; on sysfs/procfs.
+;
+; Disable polling by setting the interval to 0.
+;
+; Default: 5
+poll-interval = 5
+
+[module/xworkspaces]
+type = internal/xworkspaces
+
+label-active = %name%
+label-active-background = ${colors.background-alt}
+label-active-underline= ${colors.primary}
+label-active-padding = 1
+
+label-occupied = %name%
+label-occupied-padding = 1
+
+label-urgent = %name%
+label-urgent-background = ${colors.alert}
+label-urgent-padding = 1
+
+label-empty =
+label-empty-foreground = ${colors.disabled}
+label-empty-padding = 1
+
+[module/xwindow]
+type = internal/xwindow
+label = %title:0:60:...%
+label-maxlen = 45
+
+[module/filesystem]
+type = internal/fs
+interval = 25
+
+mount-0 = /
+
+label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
+
+label-unmounted = %mountpoint% not mounted
+label-unmounted-foreground = ${colors.disabled}
+
+[module/pulseaudio]
+type = internal/pulseaudio
+
+format-volume-prefix = "๓ฐ•พ "
+format-volume-prefix-foreground = ${colors.primary}
+format-volume = <label-volume>
+
+label-volume = %percentage%%
+
+label-muted = "๓ฐ– "
+label-muted-foreground = ${colors.disabled}
+
+[module/xkeyboard]
+type = internal/xkeyboard
+blacklist-0 = num lock
+
+label-layout = %layout%
+label-layout-foreground = ${colors.primary}
+
+label-indicator-padding = 2
+label-indicator-margin = 1
+label-indicator-foreground = ${colors.background}
+label-indicator-background = ${colors.secondary}
+
+[module/memory]
+type = internal/memory
+interval = 2
+format-prefix = "RAM "
+format-prefix-foreground = ${colors.primary}
+label = %percentage_used:2%%
+
+[module/cpu]
+type = internal/cpu
+interval = 2
+format-prefix = "CPU "
+format-prefix-foreground = ${colors.primary}
+label = %percentage:2%%
+
+[network-base]
+type = internal/network
+interval = 5
+format-connected = <label-connected>
+format-disconnected = <label-disconnected>
+; label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
+label-disconnected = ๓ฐคญ
+
+[module/wlan]
+inherit = network-base
+interface-type = wireless
+; label-connected = %{F#F0C674}%ifname%%{F-} %essid%
+label-connected = ๓ฐ–ฉ %essid%
+
+[module/eth]
+inherit = network-base
+interface-type = wired
+label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
+
+[module/date]
+type = internal/date
+interval = 1
+
+date = %H:%M
+date-alt = %Y-%m-%d %H:%M:%S
+
+label = %date%
+label-foreground = #FFFFFF
+
+[settings]
+screenchange-reload = true
+pseudo-transparency = false
+
+; vim:ft=dosini
+[module/playerctl]
+type = custom/script
+exec = /home/anand/dots/polybar/playerctl.sh
+interval = 0.5
+label-foreground = #ffffff
diff --git a/polybar/launcher.sh b/polybar/launcher.sh
new file mode 100755
index 0000000..e68e728
--- /dev/null
+++ b/polybar/launcher.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# Terminate already running bar instances
+killall -q polybar
+# If all your bars have ipc enabled, you can also use
+# polybar-msg cmd quit
+
+# Launch Polybar, using default config location ~/.config/polybar/config.ini
+polybar mainbar 2>&1 | tee -a /tmp/polybar.log & disown
diff --git a/polybar/playerctl.sh b/polybar/playerctl.sh
new file mode 100755
index 0000000..4646652
--- /dev/null
+++ b/polybar/playerctl.sh
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+
+CONFIG="$HOME/.config/polybar/config.ini"
+color=$(awk '
+ $0 ~ /^\[module\/playerctl\]/ { in_section=1 }
+ in_section && $0 ~ /^label-foreground/ {
+ gsub(/[ \t]+/, "", $0); split($0, a, "="); print a[2]; exit
+ }
+' "$CONFIG")
+
+color=${color:-#ffffff} # fallback
+
+icon_color="%{F$color}"
+reset_color="%{F-}"
+
+playerctlstatus=$(playerctl status 2>/dev/null)
+song=$(playerctl metadata title 2>/dev/null)
+artist=$(playerctl metadata artist 2>/dev/null)
+
+if [[ -z "$playerctlstatus" ]]; then
+ echo ""
+elif [[ "$playerctlstatus" =~ "Playing" ]]; then
+ if [[ -z "$artist" ]]; then
+ echo "%{A1:playerctl pause:}$icon_colorโธ๏ธ$reset_color $song%{A}"
+ else
+ echo "%{A1:playerctl pause:}$icon_colorโธ๏ธ$reset_color $song%{A}"
+ fi
+else
+ echo "%{A1:playerctl play:}$icon_colorโ–ถ๏ธ$reset_color $song%{A}"
+fi
diff --git a/qutebrowser/autoconfig.yml b/qutebrowser/autoconfig.yml
new file mode 100755
index 0000000..cec9d33
--- /dev/null
+++ b/qutebrowser/autoconfig.yml
@@ -0,0 +1,31 @@
+# If a config.py file exists, this file is ignored unless it's explicitly loaded
+# via config.load_autoconfig(). For more information, see:
+# https://github.com/qutebrowser/qutebrowser/blob/main/doc/help/configuring.asciidoc#loading-autoconfigyml
+# DO NOT edit this file by hand, qutebrowser will overwrite it.
+# Instead, create a config.py - see :help for details.
+
+config_version: 2
+settings:
+ colors.webpage.darkmode.enabled:
+ global: false
+ content.blocking.method:
+ global: auto
+ content.desktop_capture:
+ https://discord.com: true
+ content.javascript.clipboard:
+ https://chatgpt.com: access-paste
+ https://github.com: access-paste
+ content.notifications.enabled:
+ https://www.lenovo.com: false
+ https://www.youtube.com: false
+ content.register_protocol_handler:
+ https://app.tuta.com#url=%25s: false
+ https://mail.google.com?extsrc=mailto&url=%25s: false
+ https://mov.im: false
+ https://outlook.office.com?mailtouri=%25s: false
+ url.default_page:
+ global: about:blank
+ url.searchengines:
+ global:
+ DEFAULT: https://www.startpage.com/do/search?query={}&lui=english
+ wa: https://wiki.archlinux.org/?search={}
diff --git a/qutebrowser/bookmarks/urls b/qutebrowser/bookmarks/urls
new file mode 100755
index 0000000..e69de29
--- /dev/null
+++ b/qutebrowser/bookmarks/urls
diff --git a/qutebrowser/config.py b/qutebrowser/config.py
new file mode 100755
index 0000000..c132876
--- /dev/null
+++ b/qutebrowser/config.py
@@ -0,0 +1,37 @@
+from qutebrowser.api import interceptor
+config.load_autoconfig()
+c.content.blocking.method = 'both'
+c.content.blocking.adblock.lists = [
+ "https://easylist.to/easylist/easylist.txt",
+ "https://easylist.to/easylist/easyprivacy.txt",
+ "https://easylist.to/easylist/fanboy-social.txt",
+ "https://secure.fanboy.co.nz/fanboy-annoyance.txt",
+ "https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt",
+ "https://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts",
+ "https://github.com/uBlockOrigin/uAssets/raw/master/filters/legacy.txt",
+ "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters.txt",
+ "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2020.txt",
+ "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2021.txt",
+ "https://github.com/uBlockOrigin/uAssets/raw/master/filters/badware.txt",
+ "https://github.com/uBlockOrigin/uAssets/raw/master/filters/privacy.txt",
+ "https://github.com/uBlockOrigin/uAssets/raw/master/filters/badlists.txt",
+ "https://github.com/uBlockOrigin/uAssets/raw/master/filters/annoyances.txt",
+ "https://github.com/uBlockOrigin/uAssets/raw/master/filters/resource-abuse.txt",
+ "https://www.i-dont-care-about-cookies.eu/abp/",
+ "https://secure.fanboy.co.nz/fanboy-cookiemonster.txt",
+ "https://github.com/uBlockOrigin/uAssets/raw/master/filters/unbreak.txt"]
+
+c.content.pdfjs = True
+c.content.autoplay = False
+
+c.editor.command = ["wezterm", "-e", "nvim", "{file}", "-c", "normal {line}G{column0}l"]
+
+c.input.insert_mode.auto_load = True
+c.spellcheck.languages = ["en-US"]
+
+c.tabs.background = True
+c.tabs.title.format_pinned = '{index} {audio}'
+
+c.url.open_base_url = True
+c.url.start_pages = 'about:blank'
+c.url.default_page = 'about:blank'
diff --git a/qutebrowser/qsettings/QtProject.conf b/qutebrowser/qsettings/QtProject.conf
new file mode 100755
index 0000000..08f65b8
--- /dev/null
+++ b/qutebrowser/qsettings/QtProject.conf
@@ -0,0 +1,8 @@
+[FileDialog]
+history=file:///home/anand, file:///home/anand/Downloads, file:///home/anand/Downloads/LocalSend, file:///run/media/anand/ANAND16/sem11/ethicalHacking, file:///run/media/anand/ANAND16/sem11/cyberForensics
+lastVisited=file:///home/anand/Downloads
+qtVersion=6.9.2
+shortcuts=file:, file:///home/anand
+sidebarWidth=95
+treeViewHeader="@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\x1\0\0\0\x3\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xd1\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xf5\0\0\0\x1\0\0\0\0\0\0\0\x39\0\0\0\x1\0\0\0\0\0\0\0=\0\0\0\x1\0\0\0\0\0\0\0\x66\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1)"
+viewMode=Detail
diff --git a/qutebrowser/quickmarks b/qutebrowser/quickmarks
new file mode 100755
index 0000000..e3be0c8
--- /dev/null
+++ b/qutebrowser/quickmarks
@@ -0,0 +1,9 @@
+teams https://teams.microsoft.com/v2/
+nix search https://search.nixos.org/packages
+neverssl http://neverssl.com
+chatgpt https://chatgpt.com/?temporary-chat=true
+portal https://portal.svkm.ac.in/usermgmt/login
+django https://www.youtube.com/watch?v=opzK3E4Xx6o&list=PLu71SKxNbfoDOf-6vAcKmazT92uLnWAgy&index=9
+y https://www.youtube.com/
+mail https://mail.google.com/mail/u/0/#inbox
+pangolin https://www.youtube.com/watch?v=ISEP6SIrEVE&t=2740s
diff --git a/rmpc/README.md b/rmpc/README.md
new file mode 100755
index 0000000..efc0e35
--- /dev/null
+++ b/rmpc/README.md
@@ -0,0 +1,102 @@
+# RMPC Configuration
+
+## ๐Ÿง  Overview
+This is my personal configuration for rmpc, a command-line client for MPD (Music Player Daemon). It includes custom scripts and MPD settings optimized for a local music library.
+
+<div align="center">
+ <img src="assets/rmpc_screenshot.png" alt="rmpc UI Screenshot" width="800"><br>
+ <em>A snapshot of the rmpc interface showing the currently playing track.</em>
+</div>
+
+## ๐Ÿ“‚ Directory Structure
+```
+.
+โ”œโ”€โ”€ config.ron # Main rmpc configuration
+โ”œโ”€โ”€ increment_play_count # Script to track song plays
+โ”œโ”€โ”€ notify # Script to send track notifications on song change
+โ”œโ”€โ”€ README.md
+โ””โ”€โ”€ themes/
+ โ””โ”€โ”€ catppuccin_mocha.ron # Theme file (RON format)
+```
+
+## โš™๏ธ Setup
+1. Dependencies
+ - rmpc (https://mierak.github.io/rmpc/next/overview/)
+ - mpd (https://mpd.readthedocs.io/en/latest/mpd.conf.5.html)
+ - Some setup may be required to get mpd up and running, but there are plenty of tutorials available, and the process is relatively simple.
+ - any terminal notifier if you use the notify script
+2. Installation
+ - Follow rmpc install directions on their website
+ - Copy config.ron contents to your config file (e.g., `~/.config/rmpc/config.ron`)
+ - Copy over theme or create your own
+ - Make scripts executable by running `chmod +x increment_play_count notify`
+3. Set up a music directory to store your mp3 files. My config assumes `~/Music/mpd/` is the base directory for rmpc. Within `~/Music/mpd/`, each artist is given a folder containing folders for each of their albums (i.e., `~/Music/mpd/Daft Punk/Discovery/` is the path to a series of mp3's for the album Discovery by Daft Punk).
+
+## ๐ŸŽฌ Demo
+
+<div align="center">
+ <img src="assets/adding_to_queue.gif" alt="Adding to Queue" width="800">
+ <p><em>Adding to Queue</em></p>
+ <p>A demonstration of how tracks can be quickly added to the play queue using the rmpc interface.</p>
+</div>
+
+<br>
+
+<div align="center">
+ <img src="assets/search_demo.gif" alt="Search Demo" width="800">
+ <p><em>Search Demo</em></p>
+ <p>Using fuzzy search to find artists and albums instantly within a large local library. Assuming .mp3 files are tagged with metadata, you can create advanced searches based on artist, genre, features, etc., using regular expressions.</p>
+</div>
+
+# Utilities For Adding Music & Metadata
+
+I have a music directory that rmpc pulls from located at `~/Music/mpd/`, so much of the setup will depend on this assummption, but feel free to adjust to your setup.
+
+## `utils/tag_music.sh`
+
+I have the `tag_music.sh` script located in my `~/Music/` directory. This script adds standardized ID3 metadata (artist, album, track title, and track number) to each .mp3 file in an album folder using the eyeD3 tool. To use:
+- Set value for `ARTIST` variable
+- Set value for `ALBUM` variable
+- Set value for `DIR` variable, representing the path to the mp3 files for that album
+- Fill in the `TRACKS` array with the names of the album's tracks (matching the mp3 filenames) in track-order.
+- Run with `./tag_music.sh` from the same directory the script is in and ensure all tracks were found and tagged.
+
+## Adding Other Metadata
+
+### Recording Date
+To add the album's recording date, which rmpc will use to sort the albums, use one of the following commands (after replacing with the correct date) when in the album's directory:
+- `eyed3 --recording-date=2021 *.mp3`
+- `eyeD3 --recording-date=2025-01-31 *.mp3`
+
+### Features
+I use the `albumartist` tag (separate from the `artist` tag) to denote the artists who are featured on the album. To speed up the process of tagging features, I include the features in the track name using the following format (`"<song_title> (feat. <featured_artist>).mp3"`) and then run the following command from the album directory:
+
+```bash
+for f in *.mp3; do
+ if [[ "$f" =~ "\(feat\. ([^)]+)\)" ]]; then
+ FEATURED="${match[1]}"
+ echo "Setting album artist to '$FEATURED' for: $f"
+ eyeD3 --album-artist "$FEATURED" "$f"
+ fi
+done
+```
+
+### Album Art
+To add the album art to rmpc, make sure the album art is stored in the album directory and then run the following command (substituting in the name of the image file).
+```bash
+for f in *.mp3; do
+ eyeD3 --add-image=cover.png:FRONT_COVER "$f"
+done
+```
+
+## Adding Genres with `utils/tag_genres.sh`
+You can use the script `utils/tag_genres.sh` to add genre tags to each track in an album. Simply navigate to the script and run it as `./tag_genres.sh <path_to_album_directory>`. Then, as you are prompted for each track, enter the genres that describe the track as a list. My preference is to use semicolons as delimiters.
+
+## Adding Lyrics with `utils/fetch_album_lyrics.sh`
+You can download `.lrc` files, and rmpc will display synchronized scrolling lyrics in the Lyrics pane. Use the script `utils/fetch_album_lyrics.sh` to automatically fetch `.lrc` files from [LRCLIB](https://lrclib.net/) for all mp3 files in the album directory.
+- Usage: `./fetch_album_lyrics.sh <path_to_album_directory>`
+
+<div align="center">
+ <img src="assets/lyrics.png" alt="rmpc Lyrics Pane" width="800"><br>
+ <em>The rmpc synchronized scrolling lyrics in the Lyrics pane.</em>
+</div>
diff --git a/rmpc/assets/adding_to_queue.gif b/rmpc/assets/adding_to_queue.gif
new file mode 100755
index 0000000..ae92f42
--- /dev/null
+++ b/rmpc/assets/adding_to_queue.gif
Binary files differ
diff --git a/rmpc/assets/lyrics.png b/rmpc/assets/lyrics.png
new file mode 100755
index 0000000..30feb3f
--- /dev/null
+++ b/rmpc/assets/lyrics.png
Binary files differ
diff --git a/rmpc/assets/rmpc_screenshot.png b/rmpc/assets/rmpc_screenshot.png
new file mode 100755
index 0000000..8db0377
--- /dev/null
+++ b/rmpc/assets/rmpc_screenshot.png
Binary files differ
diff --git a/rmpc/assets/search_demo.gif b/rmpc/assets/search_demo.gif
new file mode 100755
index 0000000..3a735c2
--- /dev/null
+++ b/rmpc/assets/search_demo.gif
Binary files differ
diff --git a/rmpc/config.ron b/rmpc/config.ron
new file mode 100755
index 0000000..308102f
--- /dev/null
+++ b/rmpc/config.ron
@@ -0,0 +1,138 @@
+#![enable(implicit_some)]
+#![enable(unwrap_newtypes)]
+#![enable(unwrap_variant_newtypes)]
+(
+ cache_dir: Some("/tmp/rmpc/cache"),
+ password: None,
+ theme: "catppuccin_mocha",
+ on_song_change: ["~/.config/rmpc/increment_play_count"],
+ volume_step: 5,
+ max_fps: 30,
+ scrolloff: 0,
+ wrap_navigation: false,
+ enable_mouse: true,
+ status_update_interval_ms: 1000,
+ select_current_song_on_change: false,
+ browser_column_widths: [20, 38, 42],
+ album_art: (
+ method: Auto,
+ max_size_px: (width: 900, height: 900),
+ disabled_protocols: ["http://", "https://"],
+ vertical_align: Top,
+ horizontal_align: Center,
+ ),
+ keybinds: (
+ global: {
+ ":": CommandMode,
+ ",": VolumeDown,
+ "s": Stop,
+ ".": VolumeUp,
+ "<Tab>": NextTab,
+ "<S-Tab>": PreviousTab,
+ "1": SwitchToTab("Queue"),
+ "2": SwitchToTab("Artists"),
+ "3": SwitchToTab("Albums"),
+ "4": SwitchToTab("Search"),
+ "5": SwitchToTab("Directories"),
+ "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>": Up,
+ "<Down>": Down,
+ "<Left>": Left,
+ "<Right>": Right,
+ "<C-k>": PaneUp,
+ "<C-j>": PaneDown,
+ "<C-h>": PaneLeft,
+ "<C-l>": PaneRight,
+ "<C-u>": UpHalf,
+ "N": PreviousResult,
+ "a": Add,
+ "A": AddAll,
+ "r": Rename,
+ "n": NextResult,
+ "g": Top,
+ "<Space>": Select,
+ "<C-Space>": InvertSelection,
+ "G": Bottom,
+ "<CR>": Confirm,
+ "i": FocusInput,
+ "J": MoveDown,
+ "<C-d>": DownHalf,
+ "/": EnterSearch,
+ "<C-c>": Close,
+ "<Esc>": Close,
+ "K": MoveUp,
+ "D": Delete,
+ },
+ queue: {
+ "D": DeleteAll,
+ "<CR>": Play,
+ "<C-s>": 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: "title", label: "Title"),
+ (value: "filename", label: "Filename"),
+ (value: "genre", label: "Genre"),
+ (value: "albumartist", label: "Featured"),
+ ],
+ ),
+ artists: (
+ album_display_mode: SplitByDate,
+ album_sort_by: Date,
+ ),
+ tabs: [
+ (
+ name: "Queue",
+ pane: Split(
+ direction: Horizontal,
+ panes: [(size: "20%", pane: Pane(AlbumArt)), (size: "80%", pane: Pane(Queue))],
+ ),
+ ),
+ (
+ name: "Artists",
+ pane: Pane(Artists),
+ ),
+ (
+ name: "Albums",
+ pane: Pane(Albums),
+ ),
+ (
+ name: "Search",
+ pane: Pane(Search),
+ ),
+ (
+ name: "Directories",
+ pane: Pane(Directories),
+ ),
+ ],
+)
+
diff --git a/rmpc/genre_counts.txt b/rmpc/genre_counts.txt
new file mode 100755
index 0000000..f455533
--- /dev/null
+++ b/rmpc/genre_counts.txt
@@ -0,0 +1,152 @@
+R&B 101
+Soul 54
+Funk 46
+Trap 36
+Synth-pop 31
+Jazz Rap 26
+Alternative R&B 25
+Pop Rock 21
+Soft Rock 20
+West Coast hip-hop 12
+Neo-Soul 12
+Experimental 12
+Electronic 11
+Alternative Hip Hop 11
+Gospel 10
+Disco 10
+Blues Rock 10
+Adult Contemporary 10
+Singer-Songwriter 9
+Neo Soul 9
+Hip-Hop 9
+Pop 8
+Jazz Fusion 8
+Funk Rock 8
+Dance-pop 8
+Conscious Hip Hop 8
+Ambient Pop 8
+Ambient 8
+Southern Hip Hop 7
+Cloud Rap 7
+Spoken Word 6
+Quiet Storm 6
+G-funk 6
+Experimental Hip Hop 6
+Synthwave 5
+Hip-hop 5
+Hip hop 5
+Folk Rock 5
+Blues 5
+West Coast Hip Hop 4
+Psychedelic Hip Hop 4
+Lo-fi 4
+G-Funk 4
+Country Rock 4
+Americana 4
+Alternative Rock 4
+Techno 3
+Rock 3
+Psychedelic Soul 3
+Progressive Electronic 3
+Post-disco 3
+Mariachi 3
+Jazz rap 3
+Jazz 3
+Indie rock 3
+Funk mandelรฃo 3
+Folk 3
+Experimental R&B 3
+Dream Pop 3
+Contemporary R&B 3
+Brazilian funk 3
+Bebop Jazz 3
+Alternative 3
+Afrobeat 3
+Acoustic Rock 3
+funk 2
+experimental 2
+contemporary R&B 2
+ambient pop 2
+Witch House 2
+West Coast Hip-Hop 2
+Trap Soul 2
+Synth-funk 2
+Synth-Funk 2
+Psychedelic Rap 2
+Psychedelic Funk 2
+Pop Rap 2
+Pop Ballad 2
+Neo soul 2
+Memphis Rap 2
+Instrumental 2
+Industrial Hip Hop 2
+Indie Rock 2
+Hard Rock 2
+Experimental synthpop 2
+Experimental Rap 2
+Eurodisco 2
+Electropop 2
+Electro-Funk 2
+Drill 2
+Conscious hip-hop 2
+Conscious Hip-Hop 2
+Cinematic Pop 2
+Boogie 2
+Ballad 2
+Avant-Garde Hip Hop 2
+Ambient R&B 2
+Acoustic 2
+soul 1
+psychedelic soul 1
+industrial hip hop 1
+funk rock 1
+alternative R&B 1
+acoustic 1
+UK R&B 1
+Trap Metal 1
+Synthpop 1
+Smooth Jazz 1
+Retro Pop 1
+Reggae Fusion 1
+Ratchet music 1
+Rap 1
+Rage Rap 1
+Psychedelic hip hop 1
+Psychedelic funk 1
+Psychedelic Rock 1
+Psychedelic 1
+Protest Rap 1
+Power Pop 1
+Political Rap 1
+Piano Rock 1
+Philadelphia soul 1
+Minimalist soul 1
+Midtempo Funk 1
+Latin Soul 1
+Jazz-Funk 1
+Interlude 1
+Indie 1
+Hyphy 1
+Horror Pop 1
+Hardcore hip-hop 1
+Freestyle 1
+Experimental hip-hop 1
+Electro-funk 1
+Electro-Pop 1
+Downtempo 1
+Disco-funk 1
+Dancehall 1
+Dance 1
+Country Pop 1
+Comedy Rap 1
+Chipmunk Soul 1
+Chillout 1
+Brass-funk 1
+Boom Bap 1
+Baroque Pop 1
+Atmospheric Hip Hop 1
+Ambient Rock 1
+Alternative hip hop 1
+Alternative Hip-Hop 1
+Acoustic Soul 1
+1980s R&B 1
diff --git a/rmpc/increment_play_count b/rmpc/increment_play_count
new file mode 100755
index 0000000..6fa8570
--- /dev/null
+++ b/rmpc/increment_play_count
@@ -0,0 +1,8 @@
+#!/usr/bin/env sh
+
+sticker=$(rmpc sticker get "$FILE" "playCount" | jq -r '.value')
+if [ -z "$sticker" ]; then
+ rmpc sticker set "$FILE" "playCount" "1"
+else
+ rmpc sticker set "$FILE" "playCount" "$((sticker + 1))"
+fi
diff --git a/rmpc/inspect_log.sh b/rmpc/inspect_log.sh
new file mode 100755
index 0000000..660eae6
--- /dev/null
+++ b/rmpc/inspect_log.sh
@@ -0,0 +1,26 @@
+#!/usr/bin/env sh
+
+LOGFILE="$HOME/.mpd/log"
+OUTFILE="$HOME/.config/rmpc/genre_counts.txt"
+TMPFILE="$(mktemp)"
+
+# Extract and accumulate genres to tmpfile
+grep "player: played" "$LOGFILE" | while read -r line; do
+ filepath=$(echo "$line" | sed -n 's/.*player: played "\(.*\)"/\1/p')
+ fullpath="$HOME/Music/mpd/$filepath"
+
+ if [ -f "$fullpath" ]; then
+ genre=$(eyeD3 --no-color "$fullpath" | grep "genre:" | sed -E 's/.*genre: (.*) \(id.*/\1/')
+ IFS=';'
+ for g in $genre; do
+ clean_genre=$(echo "$g" | xargs)
+ [ -n "$clean_genre" ] && echo "$clean_genre" >> "$TMPFILE"
+ done
+ fi
+done
+
+# Count and sort genres
+sort "$TMPFILE" | uniq -c | sort -k1 -nr | awk '{ $1=$1; print substr($0, index($0,$2)) " " $1 }' > "$OUTFILE"
+
+rm "$TMPFILE"
+echo "โœ… Genre frequency list saved to $OUTFILE"
diff --git a/rmpc/notify b/rmpc/notify
new file mode 100755
index 0000000..84767d5
--- /dev/null
+++ b/rmpc/notify
@@ -0,0 +1,26 @@
+#!/usr/bin/env sh
+
+# Directory where to store temporary data
+TMP_DIR="/tmp/rmpc"
+
+# Ensure the directory is created
+mkdir -p "$TMP_DIR"
+
+# Where to temporarily store the album art received from rmpc
+ALBUM_ART_PATH="$TMP_DIR/notification_cover"
+
+# Path to fallback album art if no album art is found by rmpc/mpd
+# Change this to your needs
+DEFAULT_ALBUM_ART_PATH="$TMP_DIR/default_album_art.jpg"
+
+# Save album art of the currently playing song to a file
+if ! rmpc albumart --output "$ALBUM_ART_PATH"; then
+ # Use default album art if rmpc returns non-zero exit code
+ ALBUM_ART_PATH="${DEFAULT_ALBUM_ART_PATH}"
+fi
+
+MSG_TITLE=$(urlencode "$TITLE")
+MSG_ARTIST=$(urlencode "$ARTIST")
+
+# Integrates with hammerspoon, but use whatever terminal notifier you have set up.
+open "hammerspoon://canvasNotify?line1=$TITLE&line2=$ARTIST&duration=3"
diff --git a/rmpc/themes/catppuccin_mocha.ron b/rmpc/themes/catppuccin_mocha.ron
new file mode 100755
index 0000000..8b9459e
--- /dev/null
+++ b/rmpc/themes/catppuccin_mocha.ron
@@ -0,0 +1,153 @@
+#![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: "#1e1e2e",
+ text_color: "#cdd6f4",
+ header_background_color: None,
+ modal_background_color: "#11111b",
+ tab_bar: (
+ enabled: true,
+ active_style: (fg: "black", bg: "blue", modifiers: "Bold"),
+ inactive_style: (),
+ ),
+ highlighted_item_style: (fg: "#eba0ac", modifiers: "Bold"),
+ current_item_style: (fg: "black", bg: "blue", modifiers: "Bold"),
+ borders_style: (fg: "blue"),
+ highlight_border_style: (fg: "blue"),
+ symbols: (song: "๓ฐއ", dir: "๓ฐ‰‹", marker: "๏“ƒ ", ellipsis: "..."),
+ progress_bar: (
+ symbols: ["๎ธ„", "๎ธ…", " "],
+ track_style: (fg: "#1e2030"),
+ elapsed_style: (fg: "#eba0ac"),
+ thumb_style: (fg: "#eba0ac", bg: "#1e2030"),
+ ),
+ scrollbar: (
+ symbols: ["โ”‚", "โ–ˆ", "โ–ฒ", "โ–ผ"],
+ track_style: (),
+ ends_style: (),
+ thumb_style: (fg: "blue"),
+ ),
+ song_table_format: [ // view in the queue
+ (
+ prop: (kind: Property(Artist),
+ default: (kind: Text("Unknown"))
+ ),
+ width: "15%",
+ ),
+ (
+ prop: (kind: Property(Title),
+ default: (kind: Text("Unknown"))
+ ),
+ width: "55%",
+ ),
+ (
+ prop: (kind: Property(Album), style: (fg: "white"),
+ default: (kind: Text("Unknown Album"), style: (fg: "white"))
+ ),
+ width: "20%",
+ ),
+ (
+ prop: (kind: Sticker("playCount"), default: (kind: Text("0"))),
+ width: "9",
+ alignment: Right,
+ label: "Playcount"
+ ),
+ (
+ prop: (kind: Property(Duration),
+ default: (kind: Text("-"))
+ ),
+ width: "10%",
+ alignment: Right,
+ ),
+ ],
+ layout: Split(
+ direction: Vertical,
+ panes: [
+ (
+ pane: Pane(Header),
+ size: "2",
+ ),
+ (
+ pane: Pane(Tabs),
+ size: "3",
+ ),
+ (
+ pane: Pane(TabContent),
+ size: "100%",
+ ),
+ (
+ pane: Pane(ProgressBar),
+ size: "1",
+ ),
+ ],
+ ),
+ header: (
+ rows: [
+ (
+ left: [
+ (kind: Text("["), style: (fg: "yellow", modifiers: "Bold")),
+ (kind: Property(Status(StateV2(playing_label: "Playing", paused_label: "Paused", stopped_label: "Stopped"))), style: (fg: "yellow", modifiers: "Bold")),
+ (kind: Text("]"), style: (fg: "yellow", modifiers: "Bold"))
+ ],
+ center: [
+ (kind: Property(Song(Title)), style: (modifiers: "Bold"),
+ default: (kind: Text("No Song"), style: (modifiers: "Bold"))
+ )
+ ],
+ right: [
+ (kind: Property(Widget(Volume)), style: (fg: "blue"))
+ ]
+ ),
+ (
+ left: [
+ (kind: Property(Status(Elapsed))),
+ (kind: Text(" / ")),
+ (kind: Property(Status(Duration))),
+ (kind: Text(" (")),
+ (kind: Property(Status(Bitrate))),
+ (kind: Text(" kbps)"))
+ ],
+ center: [
+ (kind: Property(Song(Artist)), style: (fg: "yellow", modifiers: "Bold"),
+ default: (kind: Text("Unknown"), style: (fg: "yellow", modifiers: "Bold"))
+ ),
+ (kind: Text(" - ")),
+ (kind: Property(Song(Album)),
+ default: (kind: Text("Unknown Album"))
+ )
+ ],
+ right: [
+ (
+ kind: Property(Widget(States(
+ active_style: (fg: "white", modifiers: "Bold"),
+ separator_style: (fg: "white")))
+ ),
+ style: (fg: "dark_gray")
+ ),
+ ]
+ ),
+ ],
+ ),
+ browser_song_format: [
+ (
+ kind: Group([
+ (kind: Property(Track)), // track #
+ (kind: Text(" ")),
+ ])
+ ),
+ (
+ kind: Group([
+ (kind: Property(Artist)),
+ (kind: Text(" - ")),
+ (kind: Property(Title)),
+ ]),
+ default: (kind: Property(Filename))
+ ),
+ ],
+)
+
diff --git a/rmpc/utils/fetch_album_lyrics.sh b/rmpc/utils/fetch_album_lyrics.sh
new file mode 100755
index 0000000..cfc0d90
--- /dev/null
+++ b/rmpc/utils/fetch_album_lyrics.sh
@@ -0,0 +1,109 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Usage: fetch_album_lyrics_simple.sh "/path/to/Artist/Album"
+# Example: fetch_album_lyrics_simple.sh "$HOME/Music/mpd/Anderson .Paak/Ventura"
+
+LRCLIB_API="https://lrclib.net/api/get"
+
+if [ $# -ne 1 ]; then
+ echo "Usage: $0 \"/path/to/Artist/Album\""
+ exit 1
+fi
+
+ALBUM_DIR="$1"
+if [ ! -d "$ALBUM_DIR" ]; then
+ echo "Error: '$ALBUM_DIR' is not a directory."
+ exit 1
+fi
+
+ARTIST="$(basename "$(dirname "$ALBUM_DIR")")"
+ALBUM="$(basename "$ALBUM_DIR")"
+
+# Try to fetch synced lyrics (only the [mm:ss.xx] lines) for a given title
+# Arguments:
+# $1 = artist
+# $2 = album
+# $3 = title_to_try
+# Returns stdout = JSON .syncedLyrics (or "null"/empty)
+get_lyrics_for() {
+ local artist="$1"
+ local album="$2"
+ local title_try="$3"
+
+ curl -sG \
+ --data-urlencode "artist_name=${artist}" \
+ --data-urlencode "track_name=${title_try}" \
+ --data-urlencode "album_name=${album}" \
+ "$LRCLIB_API" \
+ | jq -r '.syncedLyrics'
+}
+
+# Attempt a single fetch:
+# 1) Try with TITLE_RAW (may include โ€œ(feat ...)โ€)
+# 2) If that yields "" or "null", strip โ€œ(โ€ฆ)" and retry
+# 3) If still no lyrics, give up
+# 4) If we do get lyrics, write them verbatim to the .lrc file
+#
+# Arguments:
+# $1 = ARTIST
+# $2 = ALBUM
+# $3 = TITLE_RAW
+# $4 = OUTPUT_LRC_FILE (full path, e.g. /.../Song.lrc)
+fetch_for_plain() {
+ local artist="$1"
+ local album="$2"
+ local title_try="$3"
+ local out_lrc="$4"
+
+ # 1. First-pass lookup
+ local lyrics
+ lyrics="$(get_lyrics_for "$artist" "$album" "$title_try")"
+
+ # 2. If empty or "null", try stripping "(...)" from title
+ if [ -z "$lyrics" ] || [ "$lyrics" == "null" ]; then
+ local stripped
+ stripped="$(echo "$title_try" | sed -E 's/ *\([^)]*\)//g')"
+ if [ "$stripped" != "$title_try" ]; then
+ title_try="$stripped"
+ lyrics="$(get_lyrics_for "$artist" "$album" "$title_try")"
+ fi
+ fi
+
+ # 3. If still empty/null โ†’ skip
+ if [ -z "$lyrics" ] || [ "$lyrics" == "null" ]; then
+ echo "โœ— No lyrics for: \"$title_try\""
+ return 1
+ fi
+
+ # 4. Write only the syncedโ€lyrics lines (timestamps + text)
+ # We drop any existing [ar:], [al:], [ti:] lines from the API payload,
+ # but typically lrclib returns only timestamped lines anyway.
+ echo "$lyrics" | sed -E '/^\[(ar|al|ti):/d' > "$out_lrc"
+ echo "โœ” Saved lyrics: $(basename "$out_lrc")"
+ return 0
+}
+
+echo "โ–ถ Fetching lyrics for all .mp3 in: $ALBUM_DIR"
+echo " Artist: $ARTIST"
+echo " Album: $ALBUM"
+echo
+
+shopt -s nullglob
+for mp3 in "$ALBUM_DIR"/*.mp3; do
+ TITLE_RAW="$(basename "$mp3" .mp3)"
+ LRC_FILE="${mp3%.mp3}.lrc"
+
+ if [ -f "$LRC_FILE" ]; then
+ echo "โ€“ Skipping \"$TITLE_RAW\" (already have .lrc)"
+ continue
+ fi
+
+ if ! fetch_for_plain "$ARTIST" "$ALBUM" "$TITLE_RAW" "$LRC_FILE"; then
+ # a failure just prints the โ€œNo lyrics forโ€ฆโ€ message and moves on
+ continue
+ fi
+done
+
+echo
+echo "Done."
diff --git a/rmpc/utils/tag_genres.sh b/rmpc/utils/tag_genres.sh
new file mode 100755
index 0000000..9d1e012
--- /dev/null
+++ b/rmpc/utils/tag_genres.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+if [[ $# -ne 1 ]]; then
+ echo "Usage: $0 <path-to-album-directory>"
+ exit 1
+fi
+
+DIR="$1"
+
+cd "$DIR" || { echo "โŒ Failed to navigate to $DIR"; exit 1; }
+
+# Get all mp3s sorted by eyeD3 track number
+FILES=()
+while IFS= read -r line; do
+ FILES+=("$line")
+done < <(
+ for f in *.mp3; do
+ track_num=$(eyeD3 "$f" 2>/dev/null | grep -i "^track:" | awk '{print $2}' | cut -d/ -f1)
+ printf "%03d|%s\n" "${track_num:-999}" "$f"
+ done | sort | cut -d'|' -f2
+)
+
+for file in "${FILES[@]}"; do
+ [[ -f "$file" ]] || continue
+
+ echo ""
+ echo "๐ŸŽต Now tagging: $file"
+ eyeD3 "$file" | grep -Ei "title:|track:|genre:"
+
+ read -rp "Enter genre(s) for this track (comma-separated): " genre
+
+ if [[ -n "$genre" ]]; then
+ eyeD3 --genre="$genre" "$file"
+ echo "โœ… Set genre to: $genre"
+ else
+ echo "โญ๏ธ Skipped (no genre entered)"
+ fi
+done
diff --git a/rmpc/utils/tag_music.sh b/rmpc/utils/tag_music.sh
new file mode 100755
index 0000000..32e3b2c
--- /dev/null
+++ b/rmpc/utils/tag_music.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+ARTIST="Anderson .Paak"
+ALBUM="Oxnard"
+DIR="$HOME/Music/mpd/Anderson .Paak/Oxnard"
+
+declare -a TRACKS=(
+ "The Chase (feat. Kadhja Bonet)"
+ "Headlow (feat. Norelle)"
+ "Tints (feat. Kendrick Lamar)"
+ "Who R U?"
+ "6 Summers"
+ "Saviers Road"
+ "SmileโงธPetty (feat. Sonyae Elise)"
+ "Mansa Musa (feat. Dr. Dre & Cocoa Sarai)"
+ "Brother's Keeper (feat. Pusha T)"
+ "Anywhere (feat. Snoop Dogg & The Last Artful, Dodgr)"
+ "Trippy (feat. J. Cole)"
+ "Cheers (feat. Q-Tip)"
+ "Sweet Chick (feat. BJ The Chicago Kid)"
+ "Left To Right"
+)
+
+cd "$DIR" || { echo "โŒ Failed to navigate to $DIR"; exit 1; }
+
+# Iterate over the tracks and apply metadata
+for i in "${!TRACKS[@]}"; do
+ track_num=$((i + 1))
+ title="${TRACKS[$i]}"
+ filename="$title.mp3"
+
+ if [[ -f "$filename" ]]; then
+ echo "โœ… Tagging: $filename"
+ eyeD3 -a "$ARTIST" -A "$ALBUM" -t "$title" -n "$track_num" "$filename"
+ else
+ echo "โš ๏ธ File not found: $filename"
+ fi
+done
diff --git a/shell/Xresources b/shell/Xresources
new file mode 100755
index 0000000..0d7978d
--- /dev/null
+++ b/shell/Xresources
@@ -0,0 +1,21 @@
+
+! Xcursor.theme: windows-cursors
+! Xcursor.size: 22
+*.font: xft:JetBrainsMono NF:style=Normal:size=12
+xterm*dynamicColors: true
+xterm*background: black
+xterm*foreground: grey
+xterm*saveLines: 35000
+XTerm.vt100.backarrowKey: true
+XTerm.vt100.deleteIsDEL: true
+XTerm*selectToClipboard: true
+! xterm*scrollBar: true
+! xterm*rightScrollBar: true
+
+XTerm*VT100.Translations: #override \
+ Ctrl Shift <Key>J: scroll-forw(5, line) \n\
+ Ctrl Shift <Key>K: scroll-back(5, line) \n\
+ Ctrl Shift <Key>Up: scroll-back(1, page) \n\
+ Ctrl Shift <Key>Down: scroll-forw(1, page) \n\
+ Ctrl Shift <Key>V: insert-selection(CLIPBOARD) \n\
+ Ctrl Shift <Key>C: select-end(CLIPBOARD)
diff --git a/shell/bash_profile b/shell/bash_profile
new file mode 100755
index 0000000..46cbf54
--- /dev/null
+++ b/shell/bash_profile
@@ -0,0 +1,7 @@
+#
+# ~/.bash_profile
+#
+# Source bashrc for login shells
+if [ -f ~/.bashrc ]; then
+ source ~/.bashrc
+fi
diff --git a/shell/bashrc b/shell/bashrc
new file mode 100755
index 0000000..623029d
--- /dev/null
+++ b/shell/bashrc
@@ -0,0 +1,122 @@
+# ~/.bashrc: executed by bash(1) for non-login shells.
+# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
+# for examples
+
+# If not running interactively, don't do anything
+case $- in
+ *i*) ;;
+ *) return;;
+esac
+
+# don't put duplicate lines or lines starting with space in the history.
+# See bash(1) for more options
+HISTCONTROL=ignoreboth
+
+# append to the history file, don't overwrite it
+shopt -s histappend
+
+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
+HISTSIZE=1000
+HISTFILESIZE=2000
+
+# check the window size after each command and, if necessary,
+# update the values of LINES and COLUMNS.
+shopt -s checkwinsize
+
+# If set, the pattern "**" used in a pathname expansion context will
+# match all files and zero or more directories and subdirectories.
+#shopt -s globstar
+
+# make less more friendly for non-text input files, see lesspipe(1)
+#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
+
+# set variable identifying the chroot you work in (used in the prompt below)
+if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
+ debian_chroot=$(cat /etc/debian_chroot)
+fi
+
+# set a fancy prompt (non-color, unless we know we "want" color)
+case "$TERM" in
+ xterm-color|*-256color) color_prompt=yes;;
+esac
+
+# uncomment for a colored prompt, if the terminal has the capability; turned
+# off by default to not distract the user: the focus in a terminal window
+# should be on the output of commands, not on the prompt
+force_color_prompt=yes
+
+if [ -n "$force_color_prompt" ]; then
+ if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
+ # We have color support; assume it's compliant with Ecma-48
+ # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
+ # a case would tend to support setf rather than setaf.)
+ color_prompt=yes
+ else
+ color_prompt=
+ fi
+fi
+
+if [ "$TERM" != "dumb" ] || [ -n "$INSIDE_EMACS" ]; then
+ PROMPT_COLOR="1;31m"
+ ((UID)) && PROMPT_COLOR="1;37m"
+ if [ -n "$INSIDE_EMACS" ]; then
+ # Emacs term mode doesn't support xterm title escape sequence (\e]0;)
+ PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
+ else
+ PS1="\n\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] "
+ fi
+ if test "$TERM" = "xterm"; then
+ PS1="\[\033]2;\h:\u:\w\007\]$PS1"
+ fi
+fi
+
+# If this is an xterm set the title to user@host:dir
+case "$TERM" in
+xterm*|rxvt*)
+ PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
+ ;;
+*)
+ ;;
+esac
+
+# enable color support of ls and also add handy aliases
+alias ls='eza --icons'
+alias grep='grep --color=auto'
+alias fgrep='fgrep --color=auto'
+alias egrep='egrep --color=auto'
+alias cd='z'
+alias cat='bat'
+
+set -o vi
+# colored GCC warnings and errors
+export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
+
+# some more ls aliases
+alias ll='eza -la'
+alias la='eza -a'
+
+# Alias definitions.
+# You may want to put all your additions into a separate file like
+# ~/.bash_aliases, instead of adding them here directly.
+# See /usr/share/doc/bash-doc/examples in the bash-doc package.
+
+if [ -f ~/.bash_aliases ]; then
+ . ~/.bash_aliases
+fi
+
+# enable programmable completion features (you don't need to enable
+# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
+# sources /etc/bash.bashrc).
+if ! shopt -oq posix; then
+ if [ -f /usr/share/bash-completion/bash_completion ]; then
+ . /usr/share/bash-completion/bash_completion
+ elif [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+ fi
+fi
+
+PATH=$HOME/.local/bin:/usr/local/texlive/2023/bin/x86_64-linux:$PATH
+
+[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
+eval "$(fzf --bash)"
+eval "$(zoxide init bash)"
diff --git a/shell/profile b/shell/profile
new file mode 100755
index 0000000..ee55aa5
--- /dev/null
+++ b/shell/profile
@@ -0,0 +1,10 @@
+export XDG_DATA_DIRS="/home/skainswo/.nix-profile/share:$XDG_DATA_DIRS"
+
+# Nix profile path
+if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
+ . "$HOME/.nix-profile/etc/profile.d/nix.sh"
+fi
+
+export XKB_DEFAULT_LAYOUT=us
+export XKB_DEFAULT_OPTIONS=caps:swapescape
+
diff --git a/shell/starship.toml b/shell/starship.toml
new file mode 100755
index 0000000..a7d9da4
--- /dev/null
+++ b/shell/starship.toml
@@ -0,0 +1,190 @@
+[aws]
+disabled = true
+
+[buf]
+symbol = "๏’ "
+
+[bun]
+symbol = "๎ฏ "
+
+[c]
+symbol = "๎˜ž "
+
+[cpp]
+symbol = "๎˜ "
+
+[cmake]
+symbol = "๎ž” "
+
+[conda]
+symbol = "๏„Œ "
+
+[crystal]
+symbol = "๎˜ฏ "
+
+[dart]
+symbol = "๎ž˜ "
+
+[deno]
+symbol = "๎Ÿ€ "
+
+[directory]
+read_only = " ๓ฐŒพ"
+
+[docker_context]
+symbol = "๏Œˆ "
+
+[elixir]
+symbol = "๎˜ญ "
+
+[elm]
+symbol = "๎˜ฌ "
+
+[fennel]
+symbol = "๎šฏ "
+
+[fossil_branch]
+symbol = "๏˜ "
+
+[gcloud]
+symbol = "๎Œฝ "
+
+[git_branch]
+symbol = "๏˜ "
+
+[git_commit]
+tag_symbol = ' ๏’ '
+
+[golang]
+symbol = "๎˜ง "
+
+[guix_shell]
+symbol = "๏Œฅ "
+
+[haskell]
+symbol = "๎ท "
+
+[haxe]
+symbol = "๎™ฆ "
+
+[hg_branch]
+symbol = "๏˜ "
+
+[hostname]
+ssh_symbol = "๎ฌ "
+
+[java]
+symbol = "๎‰– "
+
+[julia]
+symbol = "๎˜ค "
+
+[kotlin]
+symbol = "๎˜ด "
+
+[lua]
+symbol = "๎˜  "
+
+[memory_usage]
+symbol = "๓ฐ› "
+
+[meson]
+symbol = "๓ฐ”ท "
+
+[nim]
+symbol = "๓ฐ†ฅ "
+
+[nix_shell]
+symbol = "๏Œ“ "
+
+[nodejs]
+symbol = "๎œ˜ "
+
+[ocaml]
+symbol = "๎™บ "
+
+[os.symbols]
+Alpaquita = "๎ชข "
+Alpine = "๏Œ€ "
+AlmaLinux = "๏Œ "
+Amazon = "๏‰ฐ "
+Android = "๏…ป "
+Arch = "๏Œƒ "
+Artix = "๏ŒŸ "
+CachyOS = "๏Œƒ "
+CentOS = "๏Œ„ "
+Debian = "๏Œ† "
+DragonFly = "๎ŠŽ "
+Emscripten = "๏ˆ… "
+EndeavourOS = "๏†— "
+Fedora = "๏ŒŠ "
+FreeBSD = "๏ŒŒ "
+Garuda = "๓ฐ›“ "
+Gentoo = "๏Œ "
+HardenedBSD = "๓ฐžŒ "
+Illumos = "๓ฐˆธ "
+Kali = "๏Œง "
+Linux = "๏Œš "
+Mabox = "๎ฌฉ "
+Macos = "๏Œ‚ "
+Manjaro = "๏Œ’ "
+Mariner = "๏‡ "
+MidnightBSD = "๏†† "
+Mint = "๏ŒŽ "
+NetBSD = "๏€ค "
+NixOS = "๏Œ“ "
+Nobara = "๏Ž€ "
+OpenBSD = "๓ฐˆบ "
+openSUSE = "๏Œ” "
+OracleLinux = "๓ฐŒท "
+Pop = "๏Œช "
+Raspbian = "๏Œ• "
+Redhat = "๏Œ– "
+RedHatEnterprise = "๏Œ– "
+RockyLinux = "๏Œซ "
+Redox = "๓ฐ€˜ "
+Solus = "๓ฐ ณ "
+SUSE = "๏Œ” "
+Ubuntu = "๏Œ› "
+Unknown = "๏ˆญ "
+Void = "๏Œฎ "
+Windows = "๓ฐฒ "
+
+[package]
+symbol = "๓ฐ— "
+
+[perl]
+symbol = "๎™พ "
+
+[php]
+symbol = "๎˜ˆ "
+
+[pijul_channel]
+symbol = "๏˜ "
+
+[pixi]
+symbol = "๓ฐ— "
+
+[python]
+symbol = "๎ˆต "
+
+[rlang]
+symbol = "๓ฐŸ” "
+
+[ruby]
+symbol = "๎ž‘ "
+
+[rust]
+symbol = "๓ฑ˜— "
+
+[scala]
+symbol = "๎œท "
+
+[swift]
+symbol = "๎• "
+
+[zig]
+symbol = "๎šฉ "
+
+[gradle]
+symbol = "๎™  "
diff --git a/shell/zshrc b/shell/zshrc
new file mode 100755
index 0000000..4bac285
--- /dev/null
+++ b/shell/zshrc
@@ -0,0 +1,81 @@
+# The following lines were added by compinstall
+
+fpath=(~/.zsh/completion/ $fpath)
+
+autoload -Uz compinit; compinit
+source /home/anand/github/fzf-tab/fzf-tab.plugin.zsh
+# For zsh completion
+export PATH=/usr/bin/aws_completer:$PATH
+autoload bashcompinit && bashcompinit
+complete -C "$(which aws_completer)" aws
+
+autoload -Uz edit-command-line
+zle -N edit-command-line
+zstyle ':completion:*' completer _expand _complete _ignored
+zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
+zstyle :compinstall filename '/home/anand/.zshrc'
+
+autoload -Uz tetriscurses
+autoload -Uz colors && colors
+
+alias cls="clear"
+alias battery='upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage;upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep "time"'
+alias start_venv='source ~/Documents/prog/python/.venv/bin/activate'
+alias ls='[ $[$RANDOM % 1000] = 0 ] && sl || eza --icons="always"'
+alias hms='home-manager switch -f ~/dots/home.nix'
+alias feh='feh --info "echo %n"'
+please() {
+ sudo $(fc -ln -1)
+}
+alias cat='bat'
+alias ..='cd ..'
+alias cp='cp -i'
+alias rm='rm -i'
+alias mv='mv -i'
+alias df='df -h'
+alias ll='eza -lF --icons="always"'
+alias lla='eza -AlF --icons="always"'
+alias la='eza -AF --icons="always"'
+
+alias feh='feh --info "echo %n"'
+alias updateserver='rsync -avz --delete -e "ssh -i ~/.ssh/mailaws.pem" --rsync-path="sudo rsync" ~/Documents/prog/website/ admin@heresanandp.in:/var/www/website/'
+
+export EDITOR='/home/anand/.nix-profile/bin/nvim'
+export VISUAL='/home/anand/.nix-profile/bin/nvim'
+export HISTCONTROL=ignoreboth
+
+# Temporary fix
+alias man='batman'
+
+# End of lines added by compinstall
+# Lines configured by zsh-newuser-install
+HISTFILE=~/.histfile
+HISTSIZE=1000
+SAVEHIST=1000
+setopt notify
+unsetopt nomatch autocd beep extendedglob
+bindkey -v
+
+# Plugins
+source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
+source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
+fpath=(/home/anand/github/zsh-completions/src $fpath)
+
+# fzf
+source <(fzf --zsh)
+source <(jj util completion zsh)
+
+# Binds for history search
+bindkey '^[[A' history-substring-search-up
+bindkey '^[[B' history-substring-search-down
+
+eval "$(zoxide init zsh)"
+
+## [Completion]
+## Completion scripts setup. Remove the following line to uninstall
+[[ -f /home/anand/.dart-cli-completion/zsh-config.zsh ]] && . /home/anand/.dart-cli-completion/zsh-config.zsh || true
+## [/Completion]
+
+eval "$(starship init zsh)"
+bindkey "^X^E" edit-command-line
diff --git a/spectrwm/background.sh b/spectrwm/background.sh
new file mode 100755
index 0000000..5b3fe15
--- /dev/null
+++ b/spectrwm/background.sh
@@ -0,0 +1 @@
+feh --bg-fill /home/anand/dots/walls/wallpaper.jpg
diff --git a/spectrwm/baraction.sh b/spectrwm/baraction.sh
new file mode 100755
index 0000000..fa26087
--- /dev/null
+++ b/spectrwm/baraction.sh
@@ -0,0 +1,94 @@
+#!/bin/sh
+# Example Bar Action Script for Linux.
+# Requires: acpi, iostat.
+# Tested on: Debian 10, Fedora 31.
+#
+
+print_date() {
+ # The date is printed to the status bar by default.
+ # To print the date through this script, set clock_enabled to 0
+ # in spectrwm.conf. Uncomment "print_date" below.
+ FORMAT="%a %b %d %R %Z %Y"
+ DATE=`date "+${FORMAT}"`
+ echo -n "${DATE} "
+}
+
+print_mem() {
+ MEM=`/usr/bin/free -m | grep ^Mem: | sed -E 's/ +/ /g' | cut -d ' ' -f4`
+ echo -n "Free mem: ${MEM}M "
+}
+
+_print_cpu() {
+ printf "CPU: %3d%%" $1
+}
+
+print_cpu() {
+ OUT=""
+ # Remove the decimal part from all the percentages.
+ while [ "${1}x" != "x" ]; do
+ OUT="$OUT `echo "${1}" | cut -d '.' -f1`"
+ shift;
+ done
+ _print_cpu $OUT
+}
+
+print_bat() {
+ AC_STATUS="$3"
+ BAT_STATUS="$6"
+ # Most battery statuses fit into a single word, except "Not charging"
+ # for which we need to have special handling.
+ if [ "$BAT_STATUS" = "Not" ]; then
+ BAT_STATUS="$BAT_STATUS $7"
+ shift
+ fi
+ BAT_LEVEL="`echo "$7" | tr -d ','`"
+
+ if [ "$AC_STATUS" != "" -o "$BAT_STATUS" != "" ]; then
+ if [ "$BAT_STATUS" = "Discharging," ]; then
+ echo -n " on battery ($BAT_LEVEL)"
+ else
+ case "$AC_STATUS" in
+ on-line)
+ AC_STRING="on AC: "
+ ;;
+ *)
+ AC_STRING=""
+ ;;
+ esac
+ case "$BAT_STATUS" in
+ "")
+ BAT_STRING="(no battery)"
+ ;;
+ *harging,|Full,)
+ BAT_STRING="(battery $BAT_LEVEL)"
+ ;;
+ *)
+ BAT_STRING="(battery unknown)"
+ ;;
+ esac
+
+ FULL="${AC_STRING}${BAT_STRING}"
+ if [ "$FULL" != "" ]; then
+ echo -n "$FULL"
+ fi
+ fi
+ fi
+}
+
+# Cache the output of acpi(8), no need to call that every second.
+ACPI_DATA=""
+I=0
+while :; do
+ IOSTAT_DATA=`/usr/bin/iostat -c | grep '[0-9]$'`
+ if [ $I -eq 0 ]; then
+ ACPI_DATA=`/usr/bin/acpi -a 2>/dev/null; /usr/bin/acpi -b 2>/dev/null`
+ fi
+ # print_date
+ print_mem
+ print_cpu $IOSTAT_DATA
+ print_cpuspeed
+ print_bat $ACPI_DATA
+ echo ""
+ I=$(( ( ${I} + 1 ) % 11 ))
+ sleep 1
+done
diff --git a/spectrwm/screenshot.sh b/spectrwm/screenshot.sh
new file mode 100755
index 0000000..3a684ea
--- /dev/null
+++ b/spectrwm/screenshot.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+
+screenshot() {
+ case $1 in
+ full)
+ scrot -m
+ ;;
+ window)
+ sleep 1
+ scrot -s
+ ;;
+ *)
+ ;;
+ esac;
+}
+
+screenshot $1
diff --git a/spectrwm/spectrwm.conf b/spectrwm/spectrwm.conf
new file mode 100755
index 0000000..2ec04b3
--- /dev/null
+++ b/spectrwm/spectrwm.conf
@@ -0,0 +1,275 @@
+#
+# spectrwm Example Configuration File
+#
+# PLEASE READ THE MAN PAGE BEFORE EDITING THIS FILE!
+# https://htmlpreview.github.io/?https://github.com/conformal/spectrwm/blob/master/spectrwm.html
+#
+# All example settings in this file are commented out with a '#'.
+# See the spectrwm(1) man page for default values.
+#
+# NOTE: rgb color values are in hexadecimal! See XQueryColor(3) for details.
+
+workspace_limit = 10
+focus_mode = default
+focus_close = previous
+#focus_close_wrap = 1
+#focus_default = last
+spawn_position = next
+#workspace_autorotate = 1
+#workspace_clamp = 1
+#warp_focus = 1
+#warp_pointer = 1
+click_to_raise = 1
+
+# Include mapped workspaces when switching with any of the ws next/prev actions.
+#cycle_visible = 1
+
+# Sequence of layouts used by the cycle_layout action.
+#layout_order = vertical,horizontal,max,floating
+
+# Window Decoration
+border_width = 2
+color_focus = red
+color_focus_maximized = yellow
+color_unfocus = rgb:88/88/88
+color_unfocus_maximized = rgb:88/88/00
+color_urgent = rgb:ff/a5/00
+color_urgent_maximized = rgb:ff/a5/00
+color_focus_free = cyan
+color_focus_maximized_free = magenta
+color_unfocus_free = rgb:00/88/88
+color_unfocus_maximized_free = rgb:88/00/88
+color_urgent_free = rgb:b8/86/0b
+color_urgent_maximized_free = rgb:b8/86/0b
+region_padding = 0
+tile_gap = 0
+
+# Region containment
+# Distance window must be dragged/resized beyond the region edge before it is
+# allowed outside the region.
+boundary_width = 50
+
+# Remove window border when bar is disabled and there is only one window in workspace
+disable_border = 1
+bar_enabled = 0
+
+# Dialog box size ratio when using TRANSSZ quirk; 0.3 < dialog_ratio <= 1.0
+#dialog_ratio = 0.6
+
+# Split a non-RandR dual head setup into one region per monitor
+# (non-standard driver-based multihead is not seen by spectrwm)
+#region = screen[1]:1280x1024+0+0
+#region = screen[1]:1280x1024+1280+0
+
+# Customize workspace layout at start
+layout = ws[1]:0:0:0:0:vertical
+#layout = ws[2]:0:0:0:0:horizontal
+#layout = ws[3]:0:0:0:0:max
+#layout = ws[4]:4:0:0:0:vertical_flip
+#layout = ws[5]:0:0:0:0:horizontal_flip
+#layout = ws[6]:0:0:0:0:floating
+
+# Set workspace name at start
+# name = ws[1]:Term
+# name = ws[2]:Browse
+# name = ws[3]:Extra
+
+# Change the modifier to use when specifying 'MOD' in bindings.
+# This should come before configuring bindings, not after.
+# (Mod1: Alt key, Mod4: Windows key, Mod2: Apple key on OSX)
+modkey = Mod4
+
+# This allows you to include pre-defined key bindings for your keyboard layout.
+# All key bindings are cleared before loading bindings in the specified file.
+keyboard_mapping = /dev/null
+
+# PROGRAMS
+
+# Set the default spawn flags for 'autorun' and 'program' entries.
+# Note that this does not affect existing entries, including defaults.
+spawn_flags = nospawnws
+
+# A regex search pattern can be specified to change existing entries:
+#spawn_flags[menu|term] += nospawnws
+
+# Change spawn flags on all existing entries, including defaults:
+#spawn_flags[.*] += nospawnws
+
+# Launch applications in a workspace of choice.
+# Note that the specified workspace is ignored when 'nospawnws' is set.
+# autorun = ws[1]:trayer --edge bottom --align right --distancefrom right --transparent true --padding 25 --iconspacing 10 --alpha 256 # --SetDockTpe true
+autorun = ws[1]:polybar
+autorun = ws[1]:nm-applet
+autorun = ws[1]:copyq
+autorun = ws[1]:lxpolkit
+autorun = ws[1]:flameshot
+autorun = ws[1]:/home/anand/.config/spectrwm/background.sh
+autorun = ws[1]:dunst
+autorun = ws[1]:/usr/lib/xdg-desktop-portal-gtk
+autorun = ws[1]:/usr/lib/xdg-desktop-portal
+
+#autorun = ws[2]:xombrero http://www.openbsd.org
+
+# Validated default program entries:
+program[lock] = xlock -mode pipes
+program[term] = wezterm
+# program[menu] = dmenu_run $dmenu_bottom -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
+# program[menu] = rofi -show drun
+program[menu] = rofi -show drun
+program[menu2] = dmenu_run
+program[search] = dmenu $dmenu_bottom -i -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
+program[name_workspace] = dmenu $dmenu_bottom -p Workspace -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
+
+# Validation of the above can be disabled by setting the 'optional' spawn flag.
+# Note that these entries are required for included features. Instead of
+# disabling validation, it is recommended to resolve these dependencies or
+# override the entries with suitable alternatives.
+#spawn_flags[lock|term|menu|search|name_workspace] += optional
+
+# Alternatively, free the respective binding(s):
+#bind[] = MOD+Shift+Delete # disable lock
+#bind[] = MOD+Shift+Return # disable term
+#bind[] = MOD+p # disable menu
+
+# Default programs with the 'optional' spawn flag:
+program[screenshot] = flameshot gui
+#program[initscr] = initscreen.sh
+
+# EXAMPLE: Define 'firefox' action and bind to key.
+program[firefox] = qutebrowser
+bind[firefox] = MOD+b
+
+program[thunar] = thunar
+bind[thunar] = MOD+e
+
+program[passwords] = passmenu
+bind[passwords] = MOD+p
+
+# Volume
+program[raise_volume] = amixer -q -D pulse sset Master 5%+
+bind[raise_volume] = XF86AudioRaiseVolume
+program[lower_volume] = amixer -q -D pulse sset Master 5%-
+bind[lower_volume] = XF86AudioLowerVolume
+program[mute_volume] = amixer -q -D pulse sset Master toggle
+bind[mute_volume] = XF86AudioMute
+
+program[raise_brightness] = brillo -qA 5
+program[lower_brightness] = brillo -qU 5
+bind[raise_brightness] = XF86MonBrightnessUp
+bind[lower_brightness] = XF86MonBrightnessDown
+
+# QUIRKS
+# Default quirks, remove with: quirk[class:name] = NONE
+quirk[tint2:tint2] = FLOAT + ANYWHERE + NOFOCUSCYCLE + NOFOCUSONMAP + OBEYAPPFOCUSREQ
+quirk[.*:.*:.*:splash,dialog] = FLOAT
+quirk[.*:.*:.*:toolbar,utility] = FLOAT + ANYWHERE
+quirk[.*:.*:.*:notification] = FLOAT + ANYWHERE + MINIMALBORDER + NOFOCUSONMAP
+quirk[Xfce4-appfinder] = FLOAT
+quirk[MPlayer:xv] = FLOAT + FULLSCREEN + FOCUSPREV
+quirk[OpenOffice.org 2.4:VCLSalFrame] = FLOAT
+quirk[OpenOffice.org 3.0:VCLSalFrame] = FLOAT
+quirk[OpenOffice.org 3.1:VCLSalFrame] = FLOAT
+quirk[Firefox-bin:firefox-bin] = TRANSSZ
+quirk[Firefox:Dialog] = FLOAT
+quirk[Gimp:gimp] = FLOAT + ANYWHERE
+quirk[xine:Xine Window] = FLOAT + ANYWHERE
+quirk[Xitk:Xitk Combo] = FLOAT + ANYWHERE
+quirk[xine:xine Panel] = FLOAT + ANYWHERE
+quirk[Xitk:Xine Window] = FLOAT + ANYWHERE
+quirk[xine:xine Video Fullscreen Window] = FULLSCREEN + FLOAT
+quirk[pcb:pcb] = FLOAT
+bind[below_toggle] = MOD+Shift+t
+bind[button2] = MOD+v
+bind[cycle_layout] = MOD+n
+bind[flip_layout] = MOD+Shift+backslash
+bind[float_toggle] = MOD+t
+bind[focus_free] = MOD+grave
+bind[focus_next] = MOD+j
+bind[focus_next] = MOD+Tab
+bind[focus_prev] = MOD+k
+bind[focus_prev] = MOD+Shift+Tab
+bind[focus_prior] = MOD+Shift+a
+bind[focus_urgent] = MOD+u
+bind[free_toggle] = MOD+Shift+grave
+# bind[fullscreen_toggle] = MOD+Shift+e
+bind[height_grow] = MOD+Shift+equal
+bind[height_shrink] = MOD+Shift+minus
+bind[iconify] = MOD+w
+bind[initscr] = MOD+Shift+i
+bind[lock] = MOD+Shift+Delete
+bind[master_add] = MOD+comma
+bind[master_del] = MOD+period
+bind[master_grow] = MOD+l
+bind[master_shrink] = MOD+h
+bind[maximize_toggle] = MOD+m
+bind[menu] = MOD+space
+bind[move_down] = MOD+Shift+bracketright
+bind[move_left] = MOD+bracketleft
+bind[move_right] = MOD+bracketright
+bind[move_up] = MOD+Shift+bracketleft
+bind[mvrg_1] = MOD+Shift+KP_End
+bind[mvrg_2] = MOD+Shift+KP_Down
+bind[mvrg_3] = MOD+Shift+KP_Next
+bind[mvrg_4] = MOD+Shift+KP_Left
+bind[mvrg_5] = MOD+Shift+KP_Begin
+bind[mvrg_6] = MOD+Shift+KP_Right
+bind[mvrg_7] = MOD+Shift+KP_Home
+bind[mvrg_8] = MOD+Shift+KP_Up
+bind[mvrg_9] = MOD+Shift+KP_Prior
+bind[mvws_1] = MOD+Shift+1
+bind[mvws_2] = MOD+Shift+2
+bind[mvws_3] = MOD+Shift+3
+bind[mvws_4] = MOD+Shift+4
+bind[mvws_5] = MOD+Shift+5
+bind[mvws_6] = MOD+Shift+6
+bind[mvws_7] = MOD+Shift+7
+bind[mvws_8] = MOD+Shift+8
+bind[mvws_9] = MOD+Shift+9
+bind[mvws_10] = MOD+Shift+0
+bind[name_workspace] = MOD+Shift+slash
+bind[quit] = MOD+Shift+e
+bind[menu2] = MOD+Shift+space
+bind[restart] = MOD+Shift+c
+bind[rg_1] = MOD+KP_End
+bind[rg_2] = MOD+KP_Down
+bind[rg_3] = MOD+KP_Next
+bind[rg_4] = MOD+KP_Left
+bind[rg_5] = MOD+KP_Begin
+bind[rg_6] = MOD+KP_Right
+bind[rg_7] = MOD+KP_Home
+bind[rg_8] = MOD+KP_Up
+bind[rg_9] = MOD+KP_Prior
+bind[rg_next] = MOD+Shift+Right
+bind[rg_prev] = MOD+Shift+Left
+bind[screenshot] = MOD+Shift+s
+bind[search_win] = MOD+f
+bind[search_workspace] = MOD+slash
+bind[stack_dec] = MOD+Shift+period
+bind[stack_inc] = MOD+Shift+comma
+bind[stack_reset] = MOD+Shift+space
+bind[swap_next] = MOD+Shift+j
+bind[swap_prev] = MOD+Shift+k
+bind[term] = MOD+Return
+bind[width_grow] = MOD+equal
+bind[width_shrink] = MOD+minus
+bind[wind_del] = MOD+q
+bind[wind_kill] = MOD+Shift+q
+bind[ws_1] = MOD+1
+bind[ws_2] = MOD+2
+bind[ws_3] = MOD+3
+bind[ws_4] = MOD+4
+bind[ws_5] = MOD+5
+bind[ws_6] = MOD+6
+bind[ws_7] = MOD+7
+bind[ws_8] = MOD+8
+bind[ws_9] = MOD+9
+bind[ws_10] = MOD+0
+bind[ws_next] = MOD+Right
+bind[ws_next_all] = MOD+Up
+bind[ws_next_move] = MOD+Shift+Up
+bind[ws_prev] = MOD+Left
+bind[ws_prev_all] = MOD+Down
+bind[ws_prev_move] = MOD+Shift+Down
+bind[ws_prior] = MOD+a
+bind[debug_toggle] = MOD+d
+bind[dumpwins] = MOD+Shift+d
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
new file mode 100755
index 0000000..c53197a
--- /dev/null
+++ b/tmux/tmux.conf
@@ -0,0 +1,97 @@
+set -g default-terminal "tmux-256color"
+set -ga terminal-overrides ",*:RGB"
+set -g mouse on
+set -g set-clipboard on
+unbind C-b
+set -g prefix C-a
+bind-key C-a send-prefix
+
+unbind %
+unbind '"'
+bind v split-window -h -c "#{pane_current_path}"
+bind s split-window -v -c "#{pane_current_path}"
+
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
+
+unbind r
+bind r source-file $HOME/.config/tmux/tmux.conf
+
+bind -n C-M-h select-pane -L
+bind -n C-M-j select-pane -D
+bind -n C-M-k select-pane -U
+bind -n C-M-l select-pane -R
+
+set -g base-index 1
+set -g pane-base-index 1
+set-window-option -g pane-base-index 1
+set-option -g renumber-windows on
+
+bind -n M-1 select-window -t 1
+bind -n M-2 select-window -t 2
+bind -n M-3 select-window -t 3
+bind -n M-4 select-window -t 4
+bind -n M-5 select-window -t 5
+bind -n M-6 select-window -t 6
+bind -n M-7 select-window -t 7
+bind -n M-8 select-window -t 8
+bind -n M-9 select-window -t 9
+
+set-window-option -g mode-keys vi
+bind-key -T copy-mode-vi v send-keys -X begin-selection
+bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
+bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
+unbind -T copy-mode-vi MouseDragEnd1Pane
+
+# Tokyo Night Moon theme colors
+thm_bg="#222436"
+thm_fg="#c8d3f5"
+thm_cyan="#86e1fc"
+thm_black="#1b1d2b"
+thm_gray="#3a3f5a"
+thm_magenta="#c099ff"
+thm_pink="#ff757f"
+thm_red="#ff757f"
+thm_green="#c3e88d"
+thm_yellow="#ffc777"
+thm_blue="#82aaff"
+thm_orange="#ff9e64"
+thm_black4="#444a73"
+
+# Status bar settings
+set -g status "on"
+set -g status-bg "${thm_bg}"
+set -g status-justify "left"
+set -g status-left-length "100"
+set -g status-right-length "100"
+
+# Messages
+set -g message-style "fg=${thm_cyan},bg=${thm_gray},align=centre"
+set -g message-command-style "fg=${thm_cyan},bg=${thm_gray},align=centre"
+
+# Panes
+set -g pane-border-style "fg=${thm_gray}"
+set -g pane-active-border-style "fg=${thm_blue}"
+
+# Windows
+set -g window-status-activity-style "fg=${thm_fg},bg=${thm_bg},none"
+set -g window-status-separator ""
+set -g window-status-style "fg=${thm_fg},bg=${thm_bg},none"
+
+# Statusline - current window
+set -g window-status-current-format "#[fg=${thm_blue},bg=${thm_bg}] #I: #[fg=${thm_magenta},bg=${thm_bg}](โœ“) #[fg=${thm_cyan},bg=${thm_bg}]#(echo '#{pane_current_path}' | rev | cut -d'/' -f-2 | rev) #[fg=${thm_magenta},bg=${thm_bg}]"
+
+# Statusline - other windows
+set -g window-status-format "#[fg=${thm_blue},bg=${thm_bg}] #I: #[fg=${thm_fg},bg=${thm_bg}]#W"
+
+# Statusline - right side
+set -g status-right "#[fg=${thm_blue},bg=${thm_bg},nobold,nounderscore,noitalics]#[fg=${thm_bg},bg=${thm_blue},nobold,nounderscore,noitalics] #[fg=${thm_fg},bg=${thm_gray}] #W #{?client_prefix,#[fg=${thm_magenta}],#[fg=${thm_cyan}]}#[bg=${thm_gray}]#{?client_prefix,#[bg=${thm_magenta}],#[bg=${thm_cyan}]}#[fg=${thm_bg}] #[fg=${thm_fg},bg=${thm_gray}] #S "
+
+# Statusline - left side (empty)
+set -g status-left ""
+
+# Modes
+set -g clock-mode-colour "${thm_blue}"
+set -g mode-style "fg=${thm_blue} bg=${thm_black4} bold"
diff --git a/walls/lock.jpeg b/walls/lock.jpeg
new file mode 100755
index 0000000..7147601
--- /dev/null
+++ b/walls/lock.jpeg
Binary files differ
diff --git a/walls/wallpaper.png b/walls/wallpaper.png
new file mode 100644
index 0000000..487fe56
--- /dev/null
+++ b/walls/wallpaper.png
Binary files differ
diff --git a/walls/weird.jpg b/walls/weird.jpg
new file mode 100755
index 0000000..53089c6
--- /dev/null
+++ b/walls/weird.jpg
Binary files differ
diff --git a/waybar/config.jsonc b/waybar/config.jsonc
new file mode 100755
index 0000000..1ec08eb
--- /dev/null
+++ b/waybar/config.jsonc
@@ -0,0 +1,141 @@
+{
+ "layer": "top",
+ "position": "top",
+ "modules-left": [
+ "clock",
+ // "memory",
+ // "cpu",
+ // "temperature",
+ "hyprland/workspaces",
+ // "niri/window",
+ "hyprland/window"
+ ],
+ "modules-right": [
+ "mpd",
+ "tray",
+ "backlight",
+ "pulseaudio",
+ "battery"
+ ],
+
+ "mpd": {
+ "format": "{stateIcon} {title}",
+ "format-disconnected": "Disconnected",
+ "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped",
+ "state-icons": {
+ "paused": "๏Œ",
+ "playing": "๏‹"
+ },
+ "tooltip-format": "{title}\nBy: {artist}\nFrom: {album}\n({elapsedTime:%M:%S}/{totalTime:%M:%S})\nVol. {volume}%",
+ "tooltip-format-disconnected": "MPD (disconnected)",
+ "on-click": "rmpc togglepause",
+ "on-click-right": "rmpc next",
+ "on-scroll-up": "rmpc volume +5",
+ "on-scroll-down": "rmpc volume -5"
+ },
+
+ "reload_style_on_change":true,
+
+ "hyprland/workspaces": {
+ "format": "{icon}",
+ "format-icons": {
+ "1": "๏„ ",
+ "2": "๏’„",
+ "3": "๓ฐŠช",
+ "4": "เฅช",
+ "5": "เฅซ",
+ "6": "เฅฌ",
+ "7": "เฅญ",
+ "8": "เฅฎ",
+ "9": "เฅฏ",
+ "10": "เฅงเฅฆ",
+ "default": "๏„‘"
+ },
+ "persistent-workspaces": {
+ "*": [ 1, 2, 3 ]
+ }
+ },
+
+ "clock": {
+ "format": "{:%I:%M %p %d/%m/%y}",
+ "interval":1,
+ "on-click": "notify-send \"$(date)\""
+ },
+
+ "battery": {
+ "interval":1,
+ "states": {
+ "good": 95,
+ "warning": 30,
+ "critical": 20
+ },
+ "format": "{capacity}% {icon} ",
+ "format-charging": "{capacity}% C",
+ "format-plugged": "{capacity}% C P",
+ "on-click": "notify-send \"$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage;upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep \"time\")\""
+ },
+
+ "backlight": {
+ "device": "intel_backlight",
+ "format": "<span font='12'>{icon}</span>",
+ "format-icons": [
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9"
+ ],
+ "on-scroll-down": "brillo -A 10",
+ "on-scroll-up": "brillo -U 10",
+ "smooth-scrolling-threshold": 1
+ },
+
+ "cpu": {
+ "interval": 1,
+ "format": "C {usage}%",
+ "min-length": 6,
+ "max-length": 6
+ },
+
+ "memory": {
+ "format": "M {percentage}%"
+ },
+
+ "temperature": {
+ "format": "T {temperatureC}ยฐC",
+ "format-critical": "T {temperatureC}ยฐC",
+ "interval": 1,
+ "critical-threshold": 80,
+ "on-click": "kitty btop"
+ },
+
+ "pulseaudio": {
+ "format": "{volume}% {icon}",
+ "format-muted": "<span font='12'>M</span>",
+ "format-icons": {
+ "default": ["๏€จ"]
+ },
+ "justify": "center",
+ "on-click": "amixer sset Master toggle",
+ "on-click-right": "pavucontrol",
+ "tooltip-format": "{icon} {volume}%"
+ },
+
+ "tray": {
+ "icon-size": 14,
+ "spacing": 10
+ },
+
+ "upower": {
+ "show-icon": false,
+ "hide-if-empty": true,
+ "tooltip": true,
+ "tooltip-spacing": 20
+ }
+}
+
diff --git a/waybar/style.css b/waybar/style.css
new file mode 100755
index 0000000..2b263a7
--- /dev/null
+++ b/waybar/style.css
@@ -0,0 +1,87 @@
+* {
+ border: none;
+ font-family: "JetBrains Mono";
+ font-weight: bold;
+ font-size: 12px;
+ min-height: 0;
+ /* margin: 1px; */
+ padding: 2px;
+}
+
+window#waybar {
+ background: rgba(0, 0, 0, 0);
+ color: #ffffff;
+}
+
+tooltip {
+ background: #1e1e2e;
+ border-width: 2px;
+ border-style: solid;
+ border-color: #11111b;
+}
+
+#workspaces button {
+ color: #636777;
+}
+
+#workspaces button.active {
+ background-color: #EEE;
+}
+
+#workspaces button.focused {
+ color: #a6adc8;
+ background: #eba0ac;
+}
+
+#workspaces button.urgent {
+ color: #11111b;
+ background: #a6e3a1;
+}
+
+#workspaces button:hover {
+ background: #11111b;
+ color: #11111b;
+}
+
+#window,
+#clock,
+#battery,
+#pulseaudio,
+#network,
+#bluetooth,
+#temperature,
+#memory,
+#cpu,
+#workspaces,
+#mpd,
+#tray,
+#backlight {
+ background: #1e1e2e;
+}
+
+#workspaces {
+ background: #1e1e2e;
+}
+
+#cpu,
+#temperature,
+#clock,
+#memory {
+ color: #8ac3f9;
+}
+
+#pulseaudio {
+ color: #89b4fa;
+}
+
+#battery {
+ color: #a6efa1;
+}
+
+#battery.warning {
+ color: #ffaa00;
+}
+
+#battery.critical {
+ color: #f00000;
+}
diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua
new file mode 100755
index 0000000..f3c28b6
--- /dev/null
+++ b/wezterm/wezterm.lua
@@ -0,0 +1,15 @@
+local wezterm = require 'wezterm'
+local config = {}
+config.font = wezterm.font 'JetBrains Mono'
+config.font_size = 12
+config.window_decorations = "NONE"
+config.hide_tab_bar_if_only_one_tab = true
+config.window_close_confirmation = 'NeverPrompt'
+local act = wezterm.action
+config.keys = {
+ { key = 'K', mods = 'SHIFT|CTRL', action = act.ScrollByLine(-3) },
+ { key = 'J', mods = 'SHIFT|CTRL', action = act.ScrollByLine(3) },
+ { key = 'UpArrow', mods = 'SHIFT|CTRL', action = act.ScrollByLine(-10) },
+ { key = 'DownArrow', mods = 'SHIFT|CTRL', action = act.ScrollByLine(10) },
+}
+return config