From d2172acef84b6350441efa3bb74ca49e62ec7abe Mon Sep 17 00:00:00 2001 From: longendu Date: Tue, 22 Apr 2025 19:58:24 +0000 Subject: [PATCH 1/3] 1. add IDX config; 2. adopt ruff --- .idx/dev.nix | 18 ++++++++++++++++++ .vscode/settings.json | 4 ++++ Dockerfile | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .idx/dev.nix create mode 100644 .vscode/settings.json diff --git a/.idx/dev.nix b/.idx/dev.nix new file mode 100644 index 0000000..b403095 --- /dev/null +++ b/.idx/dev.nix @@ -0,0 +1,18 @@ +{pkgs, ...}: { + channel = "stable-24.11"; + packages = with pkgs; [ + neovim + ripgrep + rm-improved + bat + ]; + env = {}; + idx = { + # check extensions on https://open-vsx.org/ + extensions = [ + "asvetliakov.vscode-neovim" + ]; + # Enable previews and customize configuration + previews = {}; + }; +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..03adc8d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "IDX.aI.enableInlineCompletion": true, + "IDX.aI.enableCodebaseIndexing": true +} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e05dca9..7ba6533 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get update -y \ python3-all-dev python3-setuptools build-essential python3-wheel python3-apt \ #&& pip3 install -U --break-system-packages pip \ && pip3 install --break-system-packages \ - pytype pylint black[jupyter] isort pytest ipython \ + pytype ruff pytest ipython \ wajig \ && ln -svf /usr/bin/python3 /usr/bin/python \ && ln -svf /usr/bin/pip3 /usr/bin/pip \ From 3638c30f683c8bdcbb4bcf9e5788f6f07a518be1 Mon Sep 17 00:00:00 2001 From: longendu Date: Wed, 23 Apr 2025 06:03:27 +0000 Subject: [PATCH 2/3] update dev.nix --- .idx/dev.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.idx/dev.nix b/.idx/dev.nix index b403095..7c49e45 100644 --- a/.idx/dev.nix +++ b/.idx/dev.nix @@ -6,12 +6,26 @@ rm-improved bat ]; - env = {}; + env = { + PATH = [ + "$HOME/.local/bin" + ]; + }; idx = { # check extensions on https://open-vsx.org/ extensions = [ "asvetliakov.vscode-neovim" ]; + workspace = { + onCreate = { + }; + onStart = { + icon = '' + curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | bash -s -- \ + -d ~/.local/bin + ''; + }; + }; # Enable previews and customize configuration previews = {}; }; From a25411c09358dd3670b249036f89348d2bdae86f Mon Sep 17 00:00:00 2001 From: longendu Date: Tue, 29 Apr 2025 19:15:23 +0000 Subject: [PATCH 3/3] update dev.nix --- .idx/dev.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.idx/dev.nix b/.idx/dev.nix index 7c49e45..b83776c 100644 --- a/.idx/dev.nix +++ b/.idx/dev.nix @@ -1,6 +1,8 @@ {pkgs, ...}: { channel = "stable-24.11"; packages = with pkgs; [ + bash-completion + gitui neovim ripgrep rm-improved