mirror of
https://github.com/dwinkler1/np.git
synced 2026-02-19 22:40:57 -05:00
exporting julia, python, r
This commit is contained in:
parent
31ae15abeb
commit
37eafcfee3
1 changed files with 38 additions and 14 deletions
|
|
@ -150,18 +150,18 @@
|
||||||
optionalLuaPreInit = {
|
optionalLuaPreInit = {
|
||||||
project = [
|
project = [
|
||||||
''
|
''
|
||||||
local predicate = function(notif)
|
local predicate = function(notif)
|
||||||
if not (notif.data.source == "lsp_progress" and notif.data.client_name == "lua_ls") then
|
if not (notif.data.source == "lsp_progress" and notif.data.client_name == "lua_ls") then
|
||||||
return true
|
return true
|
||||||
|
end
|
||||||
|
-- Filter out some LSP progress notifications from 'lua_ls'
|
||||||
|
return notif.msg:find("Diagnosing") == nil and notif.msg:find("semantic tokens") == nil
|
||||||
end
|
end
|
||||||
-- Filter out some LSP progress notifications from 'lua_ls'
|
local custom_sort = function(notif_arr)
|
||||||
return notif.msg:find("Diagnosing") == nil and notif.msg:find("semantic tokens") == nil
|
return MiniNotify.default_sort(vim.tbl_filter(predicate, notif_arr))
|
||||||
end
|
end
|
||||||
local custom_sort = function(notif_arr)
|
require("mini.notify").setup({ content = { sort = custom_sort } })
|
||||||
return MiniNotify.default_sort(vim.tbl_filter(predicate, notif_arr))
|
vim.notify = MiniNotify.make_notify()
|
||||||
end
|
|
||||||
require("mini.notify").setup({ content = { sort = custom_sort } })
|
|
||||||
vim.notify = MiniNotify.make_notify()
|
|
||||||
''
|
''
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -178,8 +178,8 @@
|
||||||
environmentVariables = {
|
environmentVariables = {
|
||||||
project = {
|
project = {
|
||||||
};
|
};
|
||||||
r = {
|
julia = {
|
||||||
R_LIBS_USER = "./.Rlibs";
|
JULIA_NUM_THREADS = "auto";
|
||||||
};
|
};
|
||||||
python = {
|
python = {
|
||||||
# Prevent uv from managing Python downloads
|
# Prevent uv from managing Python downloads
|
||||||
|
|
@ -187,6 +187,9 @@
|
||||||
# Force uv to use nixpkgs Python interpreter
|
# Force uv to use nixpkgs Python interpreter
|
||||||
UV_PYTHON = pkgs.python.interpreter;
|
UV_PYTHON = pkgs.python.interpreter;
|
||||||
};
|
};
|
||||||
|
r = {
|
||||||
|
R_LIBS_USER = "./.Rlibs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
extraWrapperArgs = {
|
extraWrapperArgs = {
|
||||||
|
|
@ -225,10 +228,31 @@
|
||||||
m = {
|
m = {
|
||||||
enable = true;
|
enable = true;
|
||||||
path = {
|
path = {
|
||||||
value = "${pkgs.uv}/bin/uv";
|
value = "${pkgs.marimo}/bin/marimo";
|
||||||
args = ["--add-flags" "run marimo edit"];
|
args = ["--add-flags" "run marimo edit"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
jl = {
|
||||||
|
enable = true;
|
||||||
|
path = {
|
||||||
|
value = "${pkgs.julia-bin}/bin/julia";
|
||||||
|
args = ["--project=@."];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
python3.enable = true;
|
||||||
|
r = {
|
||||||
|
enable = true;
|
||||||
|
path = {
|
||||||
|
value = "${pkgs.rWrapper}/bin/R";
|
||||||
|
args = [
|
||||||
|
"--no-save"
|
||||||
|
"--no-restore"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
node.enable = true;
|
||||||
|
perl.enable = true;
|
||||||
|
ruby.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
categories = {
|
categories = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue