bunch of vscode changes + add luau-lsp package

This commit is contained in:
cswimr 2025-01-11 18:09:03 -06:00
parent 6cc838119d
commit 20f42f88d5
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 467 additions and 415 deletions

View file

@ -28,432 +28,443 @@ rec {
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
stylua
rojo
(pkgs.callPackage ../packages/luau-lsp.nix { inherit pkgs; })
powershell powershell
ruff ruff
ruff-lsp ruff-lsp
]; ];
programs.vscode = let dotnettools = import inputs.dotnettoolsVscodeExtensions { programs.vscode =
inherit system; let
config.allowUnfree = true; dotnettools = import inputs.dotnettoolsVscodeExtensions {
}; in { inherit system;
enable = true; config.allowUnfree = true;
enableUpdateCheck = false; };
enableExtensionUpdateCheck = false; in
package = pkgs.vscode; {
# package = pkgs.vscode.fhsWithPackages ( enable = true;
# ps: with pkgs; [ enableUpdateCheck = false;
# dotnetCorePackages.sdk_8_0 enableExtensionUpdateCheck = false;
# jdk21 package = pkgs.vscode;
# go # package = pkgs.vscode.fhsWithPackages (
# ] # ps: with pkgs; [
# ); # dotnetCorePackages.sdk_8_0
extensions = # jdk21
with inputs.nix-vscode-extensions.extensions.${system}.vscode-marketplace; # go
with inputs.nix-vscode-extensions.extensions.${system}.vscode-marketplace-release; # ]
[ # );
# Themes extensions =
(pkgs.catppuccin-vsc.override { with inputs.nix-vscode-extensions.extensions.${system}.vscode-marketplace;
accent = "blue"; with inputs.nix-vscode-extensions.extensions.${system}.vscode-marketplace-release;
extraBordersEnabled = true; [
italicKeywords = false; # Themes
customUIColors = { (pkgs.catppuccin-vsc.override {
mocha = { accent = "blue";
"statusBar.foreground" = "accent"; extraBordersEnabled = true;
}; italicKeywords = false;
macchiato = { customUIColors = {
"statusBar.foreground" = "accent"; mocha = {
}; "statusBar.foreground" = "accent";
frappe = { };
"statusBar.foreground" = "accent"; macchiato = {
}; "statusBar.foreground" = "accent";
latte = { };
"statusBar.foreground" = "accent"; frappe = {
"statusBar.foreground" = "accent";
};
latte = {
"statusBar.foreground" = "accent";
};
}; };
})
catppuccin.catppuccin-vsc-icons
# C#
dotnettools.vscode-extensions.ms-dotnettools.csharp
dotnettools.vscode-extensions.ms-dotnettools.csdevkit
pkgs.vscode-extensions.ms-dotnettools.vscodeintellicode-csharp
pkgs.vscode-extensions.ms-dotnettools.vscode-dotnet-runtime
csharpier.csharpier-vscode
patcx.vscode-nuget-gallery
corylulu.csharp-interpolated-string-converter
adrianwilczynski.asp-net-core-switcher
kevin-chatham.aspnetcorerazor-html-css-class-completion
adrianwilczynski.blazor-snippet-pack
adrianwilczynski.csharp-to-typescript
adrianwilczynski.namespace
# Python
ms-python.python
ms-python.vscode-pylance
ms-python.debugpy
ms-python.black-formatter
ms-python.mypy-type-checker
charliermarsh.ruff
# JavaScript / TypeScript
dbaeumer.vscode-eslint
rvest.vs-code-prettier-eslint
yoavbls.pretty-ts-errors
gregorbiswanger.json2ts
vendicated.vencord-companion
# Lua
sumneko.lua
# Luau
evaera.vscode-rojo
johnnymorganz.stylua
johnnymorganz.luau-lsp
# Go
pkgs.vscode-extensions.golang.go
# Hugo
budparr.language-hugo-vscode
kaellarkin.hugo-shortcode-syntax
# Kotlin
mathiasfrohlich.kotlin
# Java
vscjava.vscode-java-debug
vscjava.vscode-gradle
vscjava.vscode-maven
vscjava.vscode-java-dependency
vscjava.vscode-java-test
redhat.java
# Bash
mads-hartmann.bash-ide-vscode
foxundermoon.shell-format
timonwong.shellcheck
shakram02.bash-beautify
# Paradox Interactive Scripting
tboby.cwtools-vscode
# Git
donjayamanne.githistory
codezombiech.gitignore
eamodio.gitlens
# GitHub
ziyasal.vscode-open-in-github
pkgs.vscode-extensions.github.vscode-github-actions
github.vscode-pull-request-github
# Misc - Language Support
bradlc.vscode-tailwindcss
jnoortheen.nix-ide
tamasfe.even-better-toml
jnoortheen.xonsh
matthewpi.caddyfile-support
editorconfig.editorconfig
prisma.prisma
redhat.vscode-yaml
ms-vscode.powershell
irongeek.vscode-env
wholroyd.jinja
ms-vscode.makefile-tools
tnze.snbt
logerfo.sln-support
tboby.paradox-syntax
xteal.mcmeta
footerman.heracles-support
# Misc - Debuggers
firefox-devtools.vscode-firefox-debug
rogalmic.zsh-debug
# Misc - Linters
tekumara.typos-vscode
stylelint.vscode-stylelint
davidanson.vscode-markdownlint
# Misc - Formatters
esbenp.prettier-vscode
# Misc - Visuals
aaron-bond.better-comments
naumovs.color-highlight
kshetline.ligatures-limited
# Misc - Utilities
vasubasraj.flashpost
adpyke.codesnap
elypia.magick-image-reader
adpyke.vscode-sql-formatter
qwtel.sqlite-viewer
yy0931.vscode-sqlite3-editor
leonardssh.vscord
alefragnani.project-manager
mkhl.direnv
ms-vsliveshare.vsliveshare
ms-azuretools.vscode-docker
ms-vscode-remote.remote-ssh
pkgs.vscode-extensions.ms-vscode-remote.remote-ssh-edit
ms-vscode.remote-server
ms-vscode.remote-explorer
pkgs.vscode-extensions.ms-vscode-remote.remote-containers
ms-vscode.remote-repositories
formulahendry.auto-rename-tag
prunoideae.probejs
d-koppenhagen.file-tree-to-text-generator
# Copilot
github.copilot
github.copilot-chat
];
userSettings = {
"DO-NOT-EDIT-1" =
"This file is managed by the Nix module located at `/etc/nixos/home-manager/vscode.nix`.";
"DO-NOT-EDIT-2" = "Changes will be overwritten when VSCode is restarted.";
"DO-NOT-EDIT-3" = "To persist changes, edit the module and run `upd` in your terminal.";
"editor.tokenColorCustomizations" = {
"[Catppuccin*]" = {
"variables" = "#82eaf0";
"textMateRules" = [
{
"scope" = "comment";
"settings" = {
"foreground" = "#f465ec";
"fontStyle" = "italic";
};
}
{
"scope" = "punctuation.definition.comment";
"settings" = {
"foreground" = "#f465ec";
"fontStyle" = "italic";
};
}
{
"scope" = "variable.other.readwrite";
"settings" = {
"foreground" = "#82eaf0";
};
}
{
"scope" = "keyword.operator";
"settings" = {
"foreground" = "#EBA0AC";
};
}
{
"scope" = "meta.block.paradox";
"settings" = {
"foreground" = "#EBA0AC";
};
}
{
"scope" = "meta.shebang.shell";
"settings" = {
"foreground" = "#fb5d1f";
"fontStyle" = "italic bold";
};
}
{
"scope" = "punctuation.definition.comment.shebang.shell";
"settings" = {
"foreground" = "#fb5d1f";
"fontStyle" = "italic bold";
};
}
{
"scope" = "string.quoted.double.shell variable.other.normal.shell";
"settings" = {
"foreground" = "#82e5f0";
};
}
{
"scope" = "variable.other.property.ts";
"settings" = {
"foreground" = "#32d5e7";
};
}
];
}; };
}) };
catppuccin.catppuccin-vsc-icons "[python]" = {
"editor.formatOnType" = true;
# C# "editor.formatOnSave" = true;
dotnettools.vscode-extensions.ms-dotnettools.csharp "editor.defaultFormatter" = "charliermarsh.ruff";
dotnettools.vscode-extensions.ms-dotnettools.csdevkit "editor.codeActionsOnSave" = {
pkgs.vscode-extensions.ms-dotnettools.vscodeintellicode-csharp "source.fixAll" = "explicit";
pkgs.vscode-extensions.ms-dotnettools.vscode-dotnet-runtime "source.organizeImports" = "explicit";
csharpier.csharpier-vscode };
patcx.vscode-nuget-gallery };
corylulu.csharp-interpolated-string-converter "ruff.path" = [ "${pkgs.ruff}/bin/ruff" ];
adrianwilczynski.asp-net-core-switcher "luau-lsp.serverPath" = "${pkgs.callPackage ../packages/luau-lsp.nix { inherit pkgs; }}/bin/luau-lsp";
adrianwilczynski.blazor-snippet-pack "python.terminal.activateEnvironment" = false;
adrianwilczynski.csharp-to-typescript "python.terminal.activateEnvInCurrentTerminal" = false;
adrianwilczynski.namespace "[csharp]" = {
"editor.defaultFormatter" = "csharpier.csharpier-vscode";
# Python "editor.formatOnSave" = true;
ms-python.python "editor.formatOnSaveMode" = "file";
ms-python.vscode-pylance };
ms-python.debugpy "[typescript]" = {
ms-python.black-formatter "editor.defaultFormatter" = "esbenp.prettier-vscode";
ms-python.mypy-type-checker "editor.formatOnType" = false;
charliermarsh.ruff "editor.formatOnPaste" = true;
"editor.formatOnSave" = true;
# JavaScript / TypeScript "editor.formatOnSaveMode" = "file";
dbaeumer.vscode-eslint "files.autoSave" = "onFocusChange";
rvest.vs-code-prettier-eslint };
yoavbls.pretty-ts-errors "[markdown]" = {
gregorbiswanger.json2ts "files.trimTrailingWhitespace" = false;
vendicated.vencord-companion };
"yaml.schemas" = {
# Lua "https://json.schemastore.org/github-workflow.json" = [
sumneko.lua ".github/workflows/*.{yml,yaml}"
".forgejo/workflows/*.{yml,yaml}"
# Luau ".gitea/workflows/*.{yml,yaml}"
evaera.vscode-rojo
undermywheel.roblox-lua
johnnymorganz.stylua
johnnymorganz.luau-lsp
nightrains.robloxlsp
# Go
pkgs.vscode-extensions.golang.go
# Hugo
budparr.language-hugo-vscode
kaellarkin.hugo-shortcode-syntax
# Kotlin
mathiasfrohlich.kotlin
# Java
vscjava.vscode-java-debug
vscjava.vscode-gradle
vscjava.vscode-maven
vscjava.vscode-java-dependency
vscjava.vscode-java-test
redhat.java
# Bash
mads-hartmann.bash-ide-vscode
foxundermoon.shell-format
timonwong.shellcheck
shakram02.bash-beautify
# Paradox Interactive Scripting
tboby.cwtools-vscode
# Git
donjayamanne.githistory
codezombiech.gitignore
eamodio.gitlens
# GitHub
ziyasal.vscode-open-in-github
pkgs.vscode-extensions.github.vscode-github-actions
github.vscode-pull-request-github
# Misc - Language Support
bradlc.vscode-tailwindcss
jnoortheen.nix-ide
tamasfe.even-better-toml
jnoortheen.xonsh
matthewpi.caddyfile-support
editorconfig.editorconfig
prisma.prisma
redhat.vscode-yaml
ms-vscode.powershell
irongeek.vscode-env
wholroyd.jinja
ms-vscode.makefile-tools
tnze.snbt
logerfo.sln-support
tboby.paradox-syntax
xteal.mcmeta
footerman.heracles-support
# Misc - Debuggers
firefox-devtools.vscode-firefox-debug
rogalmic.zsh-debug
# Misc - Linters
tekumara.typos-vscode
stylelint.vscode-stylelint
davidanson.vscode-markdownlint
# Misc - Formatters
esbenp.prettier-vscode
# Misc - Visuals
aaron-bond.better-comments
naumovs.color-highlight
kshetline.ligatures-limited
# Misc - Utilities
vasubasraj.flashpost
adpyke.codesnap
elypia.magick-image-reader
adpyke.vscode-sql-formatter
qwtel.sqlite-viewer
yy0931.vscode-sqlite3-editor
leonardssh.vscord
alefragnani.project-manager
mkhl.direnv
ms-vsliveshare.vsliveshare
ms-azuretools.vscode-docker
ms-vscode-remote.remote-ssh
pkgs.vscode-extensions.ms-vscode-remote.remote-ssh-edit
ms-vscode.remote-server
ms-vscode.remote-explorer
pkgs.vscode-extensions.ms-vscode-remote.remote-containers
ms-vscode.remote-repositories
formulahendry.auto-rename-tag
prunoideae.probejs
d-koppenhagen.file-tree-to-text-generator
# Copilot
github.copilot
github.copilot-chat
];
userSettings = {
"DO-NOT-EDIT-1" =
"This file is managed by the Nix module located at `/etc/nixos/home-manager/vscode.nix`.";
"DO-NOT-EDIT-2" = "Changes will be overwritten when VSCode is restarted.";
"DO-NOT-EDIT-3" = "To persist changes, edit the module and run `upd` in your terminal.";
"editor.tokenColorCustomizations" = {
"[Catppuccin*]" = {
"variables" = "#82eaf0";
"textMateRules" = [
{
"scope" = "comment";
"settings" = {
"foreground" = "#f465ec";
"fontStyle" = "italic";
};
}
{
"scope" = "punctuation.definition.comment";
"settings" = {
"foreground" = "#f465ec";
"fontStyle" = "italic";
};
}
{
"scope" = "variable.other.readwrite";
"settings" = {
"foreground" = "#82eaf0";
};
}
{
"scope" = "keyword.operator";
"settings" = {
"foreground" = "#EBA0AC";
};
}
{
"scope" = "meta.block.paradox";
"settings" = {
"foreground" = "#EBA0AC";
};
}
{
"scope" = "meta.shebang.shell";
"settings" = {
"foreground" = "#fb5d1f";
"fontStyle" = "italic bold";
};
}
{
"scope" = "punctuation.definition.comment.shebang.shell";
"settings" = {
"foreground" = "#fb5d1f";
"fontStyle" = "italic bold";
};
}
{
"scope" = "string.quoted.double.shell variable.other.normal.shell";
"settings" = {
"foreground" = "#82e5f0";
};
}
{
"scope" = "variable.other.property.ts";
"settings" = {
"foreground" = "#32d5e7";
};
}
]; ];
}; };
}; "yaml.schemaStore.enable" = true;
"[python]" = { "nix.enableLanguageServer" = true;
"editor.formatOnType" = true; "nix.serverSettings" = {
"editor.formatOnSave" = true; "nil" = {
"editor.defaultFormatter" = "charliermarsh.ruff"; "formatting" = {
"editor.codeActionsOnSave" = { "command" = [ "nixfmt" ];
"source.fixAll" = "explicit"; };
"source.organizeImports" = "explicit";
};
};
"ruff.path" = [ "${pkgs.ruff}/bin/ruff" ];
"python.terminal.activateEnvironment" = false;
"python.terminal.activateEnvInCurrentTerminal" = false;
"[csharp]" = {
"editor.defaultFormatter" = "csharpier.csharpier-vscode";
"editor.formatOnSave" = true;
"editor.formatOnSaveMode" = "file";
};
"[typescript]" = {
"editor.defaultFormatter" = "esbenp.prettier-vscode";
"editor.formatOnType" = false;
"editor.formatOnPaste" = true;
"editor.formatOnSave" = true;
"editor.formatOnSaveMode" = "file";
"files.autoSave" = "onFocusChange";
};
"[markdown]" = {
"files.trimTrailingWhitespace" = false;
};
"yaml.schemas" = {
"https://json.schemastore.org/github-workflow.json" = [
".github/workflows/*.{yml,yaml}"
".forgejo/workflows/*.{yml,yaml}"
".gitea/workflows/*.{yml,yaml}"
];
};
"yaml.schemaStore.enable" = true;
"nix.enableLanguageServer" = true;
"nix.serverSettings" = {
"nil" = {
"formatting" = {
"command" = [ "nixfmt" ];
}; };
}; };
}; "nix.serverPath" = "nil";
"nix.serverPath" = "nil"; "vscord.status.image.large.debugging.key" = "https://vscord.catppuccin.com/mocha/debugging.webp";
"vscord.status.image.large.debugging.key" = "https://vscord.catppuccin.com/mocha/debugging.webp"; "vscord.status.image.large.editing.key" = "https://vscord.catppuccin.com/mocha/{lang}.webp";
"vscord.status.image.large.editing.key" = "https://vscord.catppuccin.com/mocha/{lang}.webp"; "vscord.status.image.large.idle.key" = "https://vscord.catppuccin.com/mocha/idle-{app_id}.webp";
"vscord.status.image.large.idle.key" = "https://vscord.catppuccin.com/mocha/idle-{app_id}.webp"; "vscord.status.image.large.notInFile.key" =
"vscord.status.image.large.notInFile.key" = "https://vscord.catppuccin.com/mocha/idle-{app_id}.webp";
"https://vscord.catppuccin.com/mocha/idle-{app_id}.webp"; "vscord.status.image.large.viewing.key" = "https://vscord.catppuccin.com/mocha/{lang}.webp";
"vscord.status.image.large.viewing.key" = "https://vscord.catppuccin.com/mocha/{lang}.webp"; "vscord.status.image.small.debugging.key" = "https://vscord.catppuccin.com/mocha/debugging.webp";
"vscord.status.image.small.debugging.key" = "https://vscord.catppuccin.com/mocha/debugging.webp"; "vscord.status.image.small.editing.key" = "https://vscord.catppuccin.com/mocha/{app_id}.webp";
"vscord.status.image.small.editing.key" = "https://vscord.catppuccin.com/mocha/{app_id}.webp"; "vscord.status.image.small.idle.key" = "https://vscord.catppuccin.com/mocha/idle.webp";
"vscord.status.image.small.idle.key" = "https://vscord.catppuccin.com/mocha/idle.webp"; "vscord.status.image.small.notInFile.key" = "https://vscord.catppuccin.com/mocha/idle.webp";
"vscord.status.image.small.notInFile.key" = "https://vscord.catppuccin.com/mocha/idle.webp"; "vscord.status.image.small.viewing.key" = "https://vscord.catppuccin.com/mocha/{app_id}.webp";
"vscord.status.image.small.viewing.key" = "https://vscord.catppuccin.com/mocha/{app_id}.webp"; "stylua.styluaPath" = "${pkgs.stylua}/bin/stylua";
"git.enableSmartCommit" = true; "git.enableSmartCommit" = true;
"git.autofetch" = true; "git.autofetch" = true;
"git.confirmSync" = false; "luau-lsp.sourcemap.autogenerate" = true;
"security.workspace.trust.untrustedFiles" = "open"; "luau-lsp.completion.autocompleteEnd" = true;
"files.insertFinalNewline" = true; "luau-lsp.sourcemap.rojoPath" = "${pkgs.rojo}/bin/rojo";
"files.trimFinalNewlines" = true; "git.confirmSync" = false;
"files.trimTrailingWhitespace" = true; "security.workspace.trust.untrustedFiles" = "open";
"editor.inlineSuggest.enabled" = true; "files.insertFinalNewline" = true;
"diffEditor.ignoreTrimWhitespace" = false; "files.trimFinalNewlines" = true;
"git.enableCommitSigning" = true; "files.trimTrailingWhitespace" = true;
"editor.accessibilitySupport" = "off"; "editor.inlineSuggest.enabled" = true;
"git.inputValidationSubjectLength" = null; "diffEditor.ignoreTrimWhitespace" = false;
"git.inputValidationLength" = 150; "git.enableCommitSigning" = true;
"editor.fontLigatures" = "'cv01', 'cv02', 'ss05', 'ss08', 'ss03', 'cv29', 'cv30', 'cv11'"; "editor.accessibilitySupport" = "off";
"workbench.iconTheme" = "catppuccin-latte"; "git.inputValidationSubjectLength" = null;
"catppuccin.syncWithIconPack" = false; "git.inputValidationLength" = 150;
"codesnap.shutterAction" = "copy"; "editor.fontLigatures" = "'cv01', 'cv02', 'ss05', 'ss08', 'ss03', 'cv29', 'cv30', 'cv11'";
"codesnap.transparentBackground" = true; "workbench.iconTheme" = "catppuccin-latte";
"codesnap.realLineNumbers" = true; "catppuccin.syncWithIconPack" = false;
"codesnap.roundedCorners" = true; "codesnap.shutterAction" = "copy";
"codesnap.showWindowTitle" = true; "codesnap.transparentBackground" = true;
"codesnap.showWindowControls" = false; "codesnap.realLineNumbers" = true;
"gitlens.remotes" = [ "codesnap.roundedCorners" = true;
{ "codesnap.showWindowTitle" = true;
"domain" = "www.coastalcommits.com"; "codesnap.showWindowControls" = false;
"type" = "Gitea"; "gitlens.remotes" = [
} {
]; "domain" = "www.coastalcommits.com";
"markdownlint.config" = { "type" = "Gitea";
"ol-prefix" = false; }
"html" = false; ];
}; "markdownlint.config" = {
"markdownlint.lintWorkspaceGlobs" = [ "ol-prefix" = false;
"**/*.{md,mkd,mdwn,mdown,markdown,markdn,mdtxt,mdtext,workbook}" "html" = false;
"!**/node_modules" };
"!**/bower_components" "markdownlint.lintWorkspaceGlobs" = [
"!**/.git" "**/*.{md,mkd,mdwn,mdown,markdown,markdn,mdtxt,mdtext,workbook}"
"!**/LICENSE" "!**/node_modules"
"!**/LICENSE.md" "!**/bower_components"
]; "!**/.git"
"editor.largeFileOptimizations" = false; "!**/LICENSE"
"files.associations" = { "!**/LICENSE.md"
".env" = "properties"; ];
"*.ini" = "paradox"; "editor.largeFileOptimizations" = false;
"*.kt" = "kotlin"; "files.associations" = {
"**/xonsh/*.py" = "xonsh"; ".env" = "properties";
}; "*.ini" = "paradox";
"editor.semanticHighlighting.enabled" = true; "*.kt" = "kotlin";
"[css]" = { "**/xonsh/*.py" = "xonsh";
"editor.defaultFormatter" = "esbenp.prettier-vscode"; };
}; "editor.semanticHighlighting.enabled" = true;
"git.ignoreRebaseWarning" = true; "[css]" = {
"remote.autoForwardPortsSource" = "hybrid"; "editor.defaultFormatter" = "esbenp.prettier-vscode";
"git.replaceTagsWhenPull" = true; };
"redhat.telemetry.enabled" = true; "git.ignoreRebaseWarning" = true;
"editor.fontSize" = 14; "remote.autoForwardPortsSource" = "hybrid";
"workbench.colorTheme" = "Catppuccin Mocha"; "git.replaceTagsWhenPull" = true;
"editor.codeLensFontFamily" = "redhat.telemetry.enabled" = true;
"'ComicCodeLigatures Nerd Font', 'Comic Code Ligatures', 'FiraCode Nerd Font'"; "editor.fontSize" = 14;
"editor.inlayHints.fontFamily" = "workbench.colorTheme" = "Catppuccin Mocha";
"'ComicCodeLigatures Nerd Font', 'Comic Code Ligatures', 'FiraCode Nerd Font', 'FiraCode Nerd Font Light'"; "editor.codeLensFontFamily" =
"editor.fontFamily" = "'ComicCodeLigatures Nerd Font', 'Comic Code Ligatures', 'FiraCode Nerd Font'";
"'ComicCodeLigatures Nerd Font', 'Comic Code Ligatures', 'FiraCode Nerd Font'"; "editor.inlayHints.fontFamily" =
"explorer.confirmDelete" = false; "'ComicCodeLigatures Nerd Font', 'Comic Code Ligatures', 'FiraCode Nerd Font', 'FiraCode Nerd Font Light'";
"window.confirmSaveUntitledWorkspace" = false; "editor.fontFamily" =
"cwtools.cache.stellaris" = "/bulk/steam/steamapps/common/Stellaris"; "'ComicCodeLigatures Nerd Font', 'Comic Code Ligatures', 'FiraCode Nerd Font'";
"python.analysis.inlayHints.callArgumentNames" = "partial"; "explorer.confirmDelete" = false;
"python.analysis.inlayHints.functionReturnTypes" = true; "window.confirmSaveUntitledWorkspace" = false;
"explorer.confirmDragAndDrop" = false; "cwtools.cache.stellaris" = "/bulk/steam/steamapps/common/Stellaris";
"editor.unicodeHighlight.allowedLocales" = { "python.analysis.inlayHints.callArgumentNames" = "partial";
ru = true; "python.analysis.inlayHints.functionReturnTypes" = true;
}; "explorer.confirmDragAndDrop" = false;
"terminal.integrated.defaultProfile.linux" = "xonsh"; "editor.unicodeHighlight.allowedLocales" = {
"explorer.confirmPasteNative" = false; ru = true;
"editor.renderWhitespace" = "none"; };
"explorer.fileNesting.patterns" = { "terminal.integrated.defaultProfile.linux" = "xonsh";
"*.ts" = "\${capture}.js"; "explorer.confirmPasteNative" = false;
"*.js" = "\${capture}.js.map, \${capture}.min.js, \${capture}.d.ts"; "editor.renderWhitespace" = "none";
"*.jsx" = "\${capture}.js"; "explorer.fileNesting.patterns" = {
"*.tsx" = "\${capture}.ts"; "*.ts" = "\${capture}.js";
"tsconfig.json" = "tsconfig.*.json"; "*.js" = "\${capture}.js.map, \${capture}.min.js, \${capture}.d.ts";
"package.json" = "package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb"; "*.jsx" = "\${capture}.js";
"Cargo.toml" = "Cargo.lock"; "*.tsx" = "\${capture}.ts";
"*.sqlite" = "\${capture}.\${extname}-*"; "tsconfig.json" = "tsconfig.*.json";
"*.db" = "\${capture}.\${extname}-*"; "package.json" = "package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb";
"*.sqlite3" = "\${capture}.\${extname}-*"; "Cargo.toml" = "Cargo.lock";
"*.db3" = "\${capture}.\${extname}-*"; "*.sqlite" = "\${capture}.\${extname}-*";
"*.sdb" = "\${capture}.\${extname}-*"; "*.db" = "\${capture}.\${extname}-*";
"*.s3db" = "\${capture}.\${extname}-*"; "*.sqlite3" = "\${capture}.\${extname}-*";
}; "*.db3" = "\${capture}.\${extname}-*";
"[shellscript]" = { "*.sdb" = "\${capture}.\${extname}-*";
"editor.defaultFormatter" = "shakram02.bash-beautify"; "*.s3db" = "\${capture}.\${extname}-*";
}; };
"vscord.app.name" = "Visual Studio Code"; "[shellscript]" = {
"workbench.editorAssociations" = { "editor.defaultFormatter" = "shakram02.bash-beautify";
"*.db" = "sqlite3-editor.editor"; };
}; "vscord.app.name" = "Visual Studio Code";
"typescript.updateImportsOnFileMove.enabled" = "always"; "workbench.editorAssociations" = {
"[javascript]" = { "*.db" = "sqlite3-editor.editor";
"editor.defaultFormatter" = "esbenp.prettier-vscode"; };
}; "typescript.updateImportsOnFileMove.enabled" = "always";
"[json]" = { "[javascript]" = {
"editor.defaultFormatter" = "esbenp.prettier-vscode"; "editor.defaultFormatter" = "esbenp.prettier-vscode";
}; };
"go.toolsManagement.autoUpdate" = true; "[json]" = {
"remote.SSH.remotePlatform" = { "editor.defaultFormatter" = "esbenp.prettier-vscode";
"eclipse" = "linux"; };
}; "go.toolsManagement.autoUpdate" = true;
"terminal.integrated.fontWeightBold" = "bold"; "remote.SSH.remotePlatform" = {
"terminal.integrated.fontFamily" = "eclipse" = "linux";
"'ComicCodeLigatures Nerd Font', 'Comic Code Ligatures', 'FiraCode Nerd Font'"; };
"[jsonc]" = { "terminal.integrated.fontWeightBold" = "bold";
"editor.defaultFormatter" = "esbenp.prettier-vscode"; "terminal.integrated.fontFamily" =
}; "'ComicCodeLigatures Nerd Font', 'Comic Code Ligatures', 'FiraCode Nerd Font'";
"github.copilot.enable" = { "[jsonc]" = {
"markdown" = true; "editor.defaultFormatter" = "esbenp.prettier-vscode";
};
"github.copilot.enable" = {
"markdown" = true;
};
}; };
}; };
};
} }

41
packages/luau-lsp.nix Normal file
View file

@ -0,0 +1,41 @@
{ pkgs, lib, ...
}:
pkgs.stdenv.mkDerivation (finalAttrs: {
pname = "luau-lsp";
version = "1.38.0";
src = pkgs.fetchFromGitHub {
owner = "JohnnyMorganz";
repo = "luau-lsp";
rev = finalAttrs.version;
hash = "sha256-31EdtCQftxhpp2b7fpM5XqRh+r0rBE/k9SpYEPpGpV0=";
fetchSubmodules = true;
};
nativeBuildInputs = [ pkgs.cmake ]
++ lib.optional pkgs.stdenv.isLinux pkgs.gcc9;
buildPhase = ''
runHook preBuild
cmake ..
cmake --build . --target Luau.LanguageServer.CLI --config Release
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp ./luau-lsp $out/bin/luau-lsp
runHook postInstall
'';
meta = {
description = "Language Server for Luau";
homepage = "https://github.com/JohnnyMorganz/luau-lsp";
downloadPage = "https://github.com/JohnnyMorganz/luau-lsp/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ cswimr ];
mainProgram = "luau-lsp";
};
})