Add matlab

This commit is contained in:
Ethan Simmons
2025-08-26 17:22:27 -05:00
parent f14771fe14
commit bf25d47f15
4 changed files with 24 additions and 1 deletions

View File

@@ -18,6 +18,8 @@
llama-cpp.url = "github:ggerganov/llama.cpp"; llama-cpp.url = "github:ggerganov/llama.cpp";
nix-matlab.url = "gitlab:doronbehar/nix-matlab";
}; };
outputs = inputs@{ self outputs = inputs@{ self
@@ -28,6 +30,7 @@
, flake-utils , flake-utils
, sops-nix , sops-nix
, llama-cpp , llama-cpp
, nix-matlab
, ... , ...
}: }:
let let
@@ -234,7 +237,7 @@
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
overlays = with overlays; [ printrun shadps4 ]; overlays = with overlays; [ printrun shadps4 nix-matlab.overlay ];
config = { config = {
allowUnfree = true; allowUnfree = true;
permittedInsecurePackages = [ permittedInsecurePackages = [

View File

@@ -65,8 +65,10 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
localPackages.x86_64-linux.jhelioviewer localPackages.x86_64-linux.jhelioviewer
bottles bottles
matlab
discord discord
wine wine
matlab-language-server
]; ];
services.printing.enable = false; services.printing.enable = false;

View File

@@ -14,6 +14,14 @@ iron.setup {
python = { python = {
command = { "python3" }, -- or { "ipython", "--no-autoindent" } command = { "python3" }, -- or { "ipython", "--no-autoindent" }
format = require("iron.fts.common").bracketed_paste_python format = require("iron.fts.common").bracketed_paste_python
},
matlab = {
command = {
"matlab",
"-nosplash",
"-nodesktop"
},
} }
}, },
-- How the repl window will be displayed -- How the repl window will be displayed

View File

@@ -24,6 +24,16 @@ lspconfig.rust_analyzer.setup {
}, },
} }
lspconfig.matlab_ls.setup {
capabilities = capabilities,
settings = {
MATLAB = {
indexWorkspace = false,
installPath = "",
},
},
}
lspconfig.omnisharp.setup { lspconfig.omnisharp.setup {
cmd = { "dotnet", "/usr/lib/omnisharp-roslyn/OmniSharp.dll"} cmd = { "dotnet", "/usr/lib/omnisharp-roslyn/OmniSharp.dll"}
} }