feat(nvim): setup for ipynb dev work
Some checks failed
/ check (push) Failing after 29s
/ build (audiomenu) (push) Successful in 2s
/ build (docs) (push) Successful in 3s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 26s
/ build (nvim) (push) Successful in 11s
Some checks failed
/ check (push) Failing after 29s
/ build (audiomenu) (push) Successful in 2s
/ build (docs) (push) Successful in 3s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 26s
/ build (nvim) (push) Successful in 11s
Setup: - molten (run python code) - otter (lsp in markdown codeblocks) - jupytext (convert .ipynb files to .md files transparently) - image (display images inside neovim (e.g. matplotlib graphs))
This commit is contained in:
parent
215b8f99e5
commit
76b8c36270
2 changed files with 21 additions and 0 deletions
|
@ -160,6 +160,15 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
gitsigns.enable = true;
|
gitsigns.enable = true;
|
||||||
|
image.enable = true;
|
||||||
|
jupytext = {
|
||||||
|
enable = true;
|
||||||
|
settings.custom_language_formatting.python = {
|
||||||
|
extension = "md";
|
||||||
|
style = "markdown";
|
||||||
|
force_ft = "markdown";
|
||||||
|
};
|
||||||
|
};
|
||||||
lint = {
|
lint = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lintersByFt = {
|
lintersByFt = {
|
||||||
|
@ -214,6 +223,15 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.update_events = "TextChanged,TextChangedI";
|
settings.update_events = "TextChanged,TextChangedI";
|
||||||
};
|
};
|
||||||
|
molten = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
image_provider = "image.nvim";
|
||||||
|
virt_text_output = true;
|
||||||
|
molten_auto_open_output = false;
|
||||||
|
molten_virt_lines_off_by_1 = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
noice = {
|
noice = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lsp.override = {
|
lsp.override = {
|
||||||
|
@ -245,6 +263,7 @@ in
|
||||||
mode = "virtualtext";
|
mode = "virtualtext";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
otter.enable = true;
|
||||||
rustaceanvim = {
|
rustaceanvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Install through rustup
|
# Install through rustup
|
||||||
|
@ -260,6 +279,7 @@ in
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
highlight.enable = true;
|
||||||
indent.enable = true;
|
indent.enable = true;
|
||||||
incremental_election.enable = true;
|
incremental_election.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
pkgs.unstable.typos
|
pkgs.unstable.typos
|
||||||
pkgs.unstable.yamlfmt
|
pkgs.unstable.yamlfmt
|
||||||
];
|
];
|
||||||
|
extraPython3Packages = p: [ p.jupytext ];
|
||||||
extraConfigLuaPre =
|
extraConfigLuaPre =
|
||||||
# lua
|
# lua
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue