diff --git a/README.md b/README.md index 69f90af..1053583 100644 --- a/README.md +++ b/README.md @@ -34,11 +34,16 @@ NixOS + Home Manager Shell environment. ## Declarative Defeat + Necessary configurations not achievable with dotfiles + ### Profile: cli-minimal + - SSH key registration Please register the value of ~/.ssh/id_ed25519.pub on GitHub. + ### Profile: laptop + - Fingerprint registration Please register the user's fingerprints by running fprintd-enroll. @@ -48,4 +53,6 @@ Necessary configurations not achievable with dotfiles - [fa0311/.zshrc](https://gist.github.com/fa0311/d37d53ff39c73c54c883379e8e3732df) - [AsianLovesLinux/Niri](https://github.com/AsianLovesLinux/Niri) - [natsukium/dotfiles](https://github.com/natsukium/dotfiles) -- [dracula](https://github.com/dracula) \ No newline at end of file +- [dracula](https://github.com/dracula) +- [akazdayo/nix-configs](https://github.com/akazdayo/nix-configs) + diff --git a/flake.lock b/flake.lock index 68fcb81..6234e9d 100644 --- a/flake.lock +++ b/flake.lock @@ -169,6 +169,27 @@ } }, "flake-parts_2": { + "inputs": { + "nixpkgs-lib": [ + "nixvim", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1768135262, + "narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_3": { "inputs": { "nixpkgs-lib": [ "stylix", @@ -209,7 +230,25 @@ }, "flake-utils_2": { "inputs": { - "systems": "systems_4" + "systems": "systems_2" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_3": { + "inputs": { + "systems": "systems_6" }, "locked": { "lastModified": 1731533236, @@ -323,6 +362,34 @@ "type": "github" } }, + "ixx": { + "inputs": { + "flake-utils": [ + "nixvim", + "nuschtosSearch", + "flake-utils" + ], + "nixpkgs": [ + "nixvim", + "nuschtosSearch", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1754860581, + "narHash": "sha256-EM0IE63OHxXCOpDHXaTyHIOk2cNvMCGPqLt/IdtVxgk=", + "owner": "NuschtOS", + "repo": "ixx", + "rev": "babfe85a876162c4acc9ab6fb4483df88fa1f281", + "type": "github" + }, + "original": { + "owner": "NuschtOS", + "ref": "v0.1.1", + "repo": "ixx", + "type": "github" + } + }, "lanzaboote": { "inputs": { "crane": "crane", @@ -561,6 +628,30 @@ "type": "github" } }, + "nixvim": { + "inputs": { + "flake-parts": "flake-parts_2", + "nixpkgs": [ + "nixpkgs" + ], + "nuschtosSearch": "nuschtosSearch", + "systems": "systems_3" + }, + "locked": { + "lastModified": 1769049374, + "narHash": "sha256-h0Os2qqNyycDY1FyZgtbn28VF1ySP74/n0f+LDd8j+w=", + "owner": "nix-community", + "repo": "nixvim", + "rev": "b8f76bf5751835647538ef8784e4e6ee8deb8f95", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "nixos-25.11", + "repo": "nixvim", + "type": "github" + } + }, "noctalia": { "inputs": { "nixpkgs": [ @@ -569,7 +660,7 @@ "quickshell": [ "quickshell" ], - "systems": "systems_2" + "systems": "systems_4" }, "locked": { "lastModified": 1762640266, @@ -610,6 +701,29 @@ "type": "github" } }, + "nuschtosSearch": { + "inputs": { + "flake-utils": "flake-utils_2", + "ixx": "ixx", + "nixpkgs": [ + "nixvim", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1768249818, + "narHash": "sha256-ANfn5OqIxq3HONPIXZ6zuI5sLzX1sS+2qcf/Pa0kQEc=", + "owner": "NuschtOS", + "repo": "search", + "rev": "b6f77b88e9009bfde28e2130e218e5123dc66796", + "type": "github" + }, + "original": { + "owner": "NuschtOS", + "repo": "search", + "type": "github" + } + }, "pre-commit-hooks-nix": { "inputs": { "flake-compat": [ @@ -666,6 +780,7 @@ "nixos-wsl": "nixos-wsl", "nixpkgs": "nixpkgs_5", "nixpkgs-unstable": "nixpkgs-unstable", + "nixvim": "nixvim", "noctalia": "noctalia", "quickshell": "quickshell", "stylix": "stylix", @@ -700,13 +815,13 @@ "base16-helix": "base16-helix", "base16-vim": "base16-vim", "firefox-gnome-theme": "firefox-gnome-theme", - "flake-parts": "flake-parts_2", + "flake-parts": "flake-parts_3", "gnome-shell": "gnome-shell", "nixpkgs": [ "nixpkgs" ], "nur": "nur", - "systems": "systems_3", + "systems": "systems_5", "tinted-foot": "tinted-foot", "tinted-kitty": "tinted-kitty", "tinted-schemes": "tinted-schemes", @@ -787,6 +902,36 @@ "type": "github" } }, + "systems_5": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_6": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "tinted-foot": { "flake": false, "locked": { @@ -870,7 +1015,7 @@ }, "vicinae": { "inputs": { - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils_3", "nixpkgs": "nixpkgs_6" }, "locked": { diff --git a/flake.nix b/flake.nix index 1077342..4b7a8fa 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,11 @@ url = "github:nix-community/lanzaboote"; inputs.nixpkgs.follows = "nixpkgs"; }; + + nixvim = { + url = "github:nix-community/nixvim/nixos-25.11"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = diff --git a/modules/core/packages.nix b/modules/core/packages.nix index e0e62c3..1c974ac 100644 --- a/modules/core/packages.nix +++ b/modules/core/packages.nix @@ -1,13 +1,15 @@ -{ pkgs, inputs, ... }: -let +{ + pkgs, + inputs, + ... +}: let unstable = import inputs.nixpkgs-unstable { system = pkgs.system; config = { allowUnfree = true; }; }; -in -{ +in { programs = { xwayland.enable = true; dconf.enable = true; @@ -19,7 +21,7 @@ in enableSSHSupport = true; }; zsh = { - enable = true; + enable = true; }; java.enable = true; java.package = pkgs.jdk25; @@ -29,7 +31,8 @@ in environment.systemPackages = with pkgs; [ tuigreet # The Login Manager (Sometimes Referred To As Display Manager) - htop btop # Simple Terminal Based System Monitor + htop + btop # Simple Terminal Based System Monitor unrar # Tool For Handling .rar Files unzip # Tool For Handling .zip Files uwsm # Universal Wayland Session Manager (optional must be enabled) @@ -46,10 +49,16 @@ in unstable._1password-gui unstable.ghostty sbctl - xwayland-satellite slurp grim wf-recorder + xwayland-satellite + slurp + grim + wf-recorder sqlite # Vscode Raycast Extension Dependency - jdk25 maven gradle + jdk25 + maven + gradle python312 uv + zellij ]; } diff --git a/modules/home/default.nix b/modules/home/default.nix index cc193c2..728ffc6 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -1,12 +1,11 @@ -{ ... }: -{ +{...}: { imports = [ ./btop ./git.nix ./fcitx5 ./ssh.nix - ./vim + ./nixvim ./zsh.nix ./environment.nix ]; -} \ No newline at end of file +} diff --git a/modules/home/ghostty/config b/modules/home/ghostty/config index 23c5217..2410ddb 100644 --- a/modules/home/ghostty/config +++ b/modules/home/ghostty/config @@ -13,7 +13,7 @@ keybind = ctrl+shift+c=copy_to_clipboard keybind = ctrl+shift+v=paste_from_clipboard # create new tab -keybind = ctrl+t=new_tab +keybind = ctrl+shift+t=new_tab # move tabs keybind = ctrl+alt+left_bracket=previous_tab @@ -27,4 +27,4 @@ keybind = ctrl+shift+semicolon=increase_font_size:1 keybind = ctrl+shift+minus=increase_font_size:1 -shell-integration-features = ssh-terminfo,ssh-env \ No newline at end of file +shell-integration-features = ssh-terminfo,ssh-env diff --git a/modules/home/nixvim/colorscheme.nix b/modules/home/nixvim/colorscheme.nix new file mode 100644 index 0000000..ff6c363 --- /dev/null +++ b/modules/home/nixvim/colorscheme.nix @@ -0,0 +1,6 @@ +{...}: { + programs.nixvim.colorschemes.catppuccin = { + enable = true; + settings.transparent_background = true; + }; +} diff --git a/modules/home/nixvim/default.nix b/modules/home/nixvim/default.nix new file mode 100644 index 0000000..066bc74 --- /dev/null +++ b/modules/home/nixvim/default.nix @@ -0,0 +1,64 @@ +{ + pkgs, + inputs, + ... +}: { + imports = [ + inputs.nixvim.homeModules.nixvim + ./options.nix + ./keymaps.nix + ./language.nix + ./colorscheme.nix + ./lsp.nix + ./plugins + ]; + + programs.nixvim = { + enable = true; + vimAlias = true; + viAlias = true; + withNodeJs = true; + + extraPackages = with pkgs; [ + git + ripgrep + fd + nodejs + zellij + + # LSP / formatter / misc + vtsls + vscode-langservers-extracted + tailwindcss-language-server + prettierd + prettier + biome + stylua + shfmt + alejandra + lua-language-server + nixd + ]; + + extraConfigLua = '' + require("conform").setup({ + formatters_by_ft = { + javascript = { "prettierd", "prettier", stop_after_first = true }, + javascriptreact = { "prettierd", "prettier", stop_after_first = true }, + typescript = { "prettierd", "prettier", stop_after_first = true }, + typescriptreact = { "prettierd", "prettier", stop_after_first = true }, + json = { "prettierd", "prettier", stop_after_first = true }, + yaml = { "prettierd", "prettier", stop_after_first = true }, + markdown = { "prettierd", "prettier", stop_after_first = true }, + lua = { "stylua" }, + nix = { "alejandra" }, + sh = { "shfmt" }, + }, + format_on_save = function(_) + return { timeout_ms = 1000, lsp_format = "fallback" } + end, + }) + + ''; + }; +} diff --git a/modules/home/nixvim/keymaps.nix b/modules/home/nixvim/keymaps.nix new file mode 100644 index 0000000..6429990 --- /dev/null +++ b/modules/home/nixvim/keymaps.nix @@ -0,0 +1,38 @@ +{...}: let + mk = key: action: desc: { + mode = "n"; + inherit key action; + options = { + silent = true; + inherit desc; + }; + }; + + mkRaw = key: raw: desc: { + mode = "n"; + key = key; + action.__raw = raw; + options = { + silent = true; + desc = desc; + }; + }; +in { + programs.nixvim.keymaps = [ + # LSP + (mkRaw "K" "vim.lsp.buf.hover" "LSPエラーのホバー表示") + (mkRaw "gd" "vim.lsp.buf.definition" "定義へ移動") + (mkRaw "gr" "vim.lsp.buf.references" "参照を表示") + (mkRaw "rn" "vim.lsp.buf.rename" "シンボル名を一括変換") + (mkRaw "cf" "vim.lsp.buf.format" "コードをフォーマット") + + # File tree + (mk "e" "Neotree toggle left" "ファイルツリー") + + # Terminal + (mk "tt" "ToggleTerm direction=float" "ターミナル") + + # Diagnostics + (mk "xx" "Trouble diagnostics toggle" "エラー一覧") + ]; +} diff --git a/modules/home/nixvim/language.nix b/modules/home/nixvim/language.nix new file mode 100644 index 0000000..3e66375 --- /dev/null +++ b/modules/home/nixvim/language.nix @@ -0,0 +1,13 @@ +{...}: { + programs.nixvim = { + env = { + LANG = "ja_JP.UTF-8"; + LC_MESSAGES = "ja_JP.UTF-8"; + }; + + extraConfigLua = '' + vim.cmd.language("ja_JP.utf8") + vim.opt.helplang = { "ja", "en" } + ''; + }; +} diff --git a/modules/home/nixvim/lsp.nix b/modules/home/nixvim/lsp.nix new file mode 100644 index 0000000..d843092 --- /dev/null +++ b/modules/home/nixvim/lsp.nix @@ -0,0 +1,64 @@ +{...}: { + programs.nixvim = { + plugins.lsp = { + enable = true; + + servers = { + # TypeScript / JavaScript + vtsls = { + enable = true; + packageFallback = true; + rootMarkers = [ + "pnpm-workspace.yaml" + "package.json" + "tsconfig.json" + "jsconfig.json" + ".git" + ]; + }; + + # Biome for lint / format + biome = { + enable = true; + packageFallback = true; + rootMarkers = [ + "biome.json" + "biome.jsonc" + "package.json" + "pnpm-workspace.yaml" + ".git" + ]; + }; + + # Frontend / config languages + tailwindcss.enable = true; + cssls.enable = true; + jsonls.enable = true; + yamlls.enable = true; + lua_ls.enable = true; + nixd.enable = true; + + # Other languages + rust_analyzer = { + enable = true; + installCargo = true; + installRustc = true; + }; + svelte.enable = true; + ty.enable = true; + ruff.enable = true; + astro.enable = true; + gopls.enable = true; + }; + }; + + # Diagnostic UI + diagnostic.settings = { + virtual_text = true; + float = { + border = "rounded"; + source = true; + }; + }; + }; +} diff --git a/modules/home/nixvim/options.nix b/modules/home/nixvim/options.nix new file mode 100644 index 0000000..ad68608 --- /dev/null +++ b/modules/home/nixvim/options.nix @@ -0,0 +1,43 @@ +{...}: { + programs.nixvim = { + opts = { + # display + number = true; + relativenumber = true; + signcolumn = "yes"; + termguicolors = true; + + # action + mouse = "a"; + clipboard = "unnamedplus"; + updatetime = 200; + + # search + ignorecase = true; + smartcase = true; + + # window split + splitright = true; + splitbelow = true; + + # indent + tabstop = 2; + shiftwidth = 2; + expandtab = true; + + # file encoding + encoding = "utf-8"; + fileencoding = "utf-8"; + fileencodings = "utf-8,sjis,euc-jp,iso-2022-jp"; + + # invisible characters + list = true; + listchars = "tab:»-,trail:-,extends:»,precedes:«,nbsp:%"; + }; + + globals = { + mapleader = " "; + maplocalleader = " "; + }; + }; +} diff --git a/modules/home/nixvim/plugins/default.nix b/modules/home/nixvim/plugins/default.nix new file mode 100644 index 0000000..8657654 --- /dev/null +++ b/modules/home/nixvim/plugins/default.nix @@ -0,0 +1,6 @@ +{...}: { + imports = [ + ./ui + ./editor + ]; +} diff --git a/modules/home/nixvim/plugins/editor/autopairs.nix b/modules/home/nixvim/plugins/editor/autopairs.nix new file mode 100644 index 0000000..810bcf2 --- /dev/null +++ b/modules/home/nixvim/plugins/editor/autopairs.nix @@ -0,0 +1,3 @@ +{...}: { + programs.nixvim.plugins.nvim-autopairs.enable = true; +} diff --git a/modules/home/nixvim/plugins/editor/blink-cmp.nix b/modules/home/nixvim/plugins/editor/blink-cmp.nix new file mode 100644 index 0000000..bbadc69 --- /dev/null +++ b/modules/home/nixvim/plugins/editor/blink-cmp.nix @@ -0,0 +1,26 @@ +{...}: { + programs.nixvim.plugins.blink-cmp = { + enable = true; + setupLspCapabilities = true; + + settings = { + keymap = { + preset = "enter"; + + "" = ["show"]; + "" = ["scroll_documentation_up"]; + "" = ["hide"]; + "" = ["scroll_documentation_down"]; + + "" = ["select_next" "fallback"]; + "" = ["select_prev" "fallback"]; + }; + + sources.default = [ + "lsp" + "path" + "buffer" + ]; + }; + }; +} diff --git a/modules/home/nixvim/plugins/editor/comment.nix b/modules/home/nixvim/plugins/editor/comment.nix new file mode 100644 index 0000000..2f68e6c --- /dev/null +++ b/modules/home/nixvim/plugins/editor/comment.nix @@ -0,0 +1,3 @@ +{...}: { + programs.nixvim.plugins.comment.enable = true; +} diff --git a/modules/home/nixvim/plugins/editor/conform.nix b/modules/home/nixvim/plugins/editor/conform.nix new file mode 100644 index 0000000..25e27f5 --- /dev/null +++ b/modules/home/nixvim/plugins/editor/conform.nix @@ -0,0 +1,3 @@ +{...}: { + programs.nixvim.plugins."conform-nvim".enable = true; +} diff --git a/modules/home/nixvim/plugins/editor/copilot.nix b/modules/home/nixvim/plugins/editor/copilot.nix new file mode 100644 index 0000000..5bb9f11 --- /dev/null +++ b/modules/home/nixvim/plugins/editor/copilot.nix @@ -0,0 +1,5 @@ +{...}: { + programs.nixvim.plugins.copilot-lua = { + enable = true; + }; +} diff --git a/modules/home/nixvim/plugins/editor/default.nix b/modules/home/nixvim/plugins/editor/default.nix new file mode 100644 index 0000000..7ca8eaa --- /dev/null +++ b/modules/home/nixvim/plugins/editor/default.nix @@ -0,0 +1,14 @@ +{...}: { + imports = [ + ./telescope.nix + ./treesitter.nix + ./blink-cmp.nix + ./gitsigns.nix + ./comment.nix + ./autopairs.nix + ./lsp-signature.nix + ./copilot.nix + ./trouble.nix + ./conform.nix + ]; +} diff --git a/modules/home/nixvim/plugins/editor/gitsigns.nix b/modules/home/nixvim/plugins/editor/gitsigns.nix new file mode 100644 index 0000000..eba120a --- /dev/null +++ b/modules/home/nixvim/plugins/editor/gitsigns.nix @@ -0,0 +1,15 @@ +{...}: { + # git change view + programs.nixvim.plugins.gitsigns = { + enable = true; + settings = { + signs = { + add = {text = "+";}; + change = {text = "~";}; + delete = {text = "_";}; + topdelete = {text = "‾";}; + changedelete = {text = "~";}; + }; + }; + }; +} diff --git a/modules/home/nixvim/plugins/editor/lsp-signature.nix b/modules/home/nixvim/plugins/editor/lsp-signature.nix new file mode 100644 index 0000000..b9a2711 --- /dev/null +++ b/modules/home/nixvim/plugins/editor/lsp-signature.nix @@ -0,0 +1,11 @@ +{...}: { + programs.nixvim.plugins.lsp-signature = { + enable = true; + settings = { + hint_enable = true; + hint_prefix = " "; + floating_window = true; + bind = true; + }; + }; +} diff --git a/modules/home/nixvim/plugins/editor/telescope.nix b/modules/home/nixvim/plugins/editor/telescope.nix new file mode 100644 index 0000000..b530186 --- /dev/null +++ b/modules/home/nixvim/plugins/editor/telescope.nix @@ -0,0 +1,43 @@ +{...}: { + programs.nixvim = { + plugins.telescope = { + enable = true; + extensions = { + fzf-native.enable = true; + }; + keymaps = { + "ff" = { + action = "find_files"; + options = { + desc = "ファイルを探す"; + silent = true; + }; + }; + + "fg" = { + action = "live_grep"; + options = { + desc = "文字列を全文検索"; + silent = true; + }; + }; + + "fb" = { + action = "buffers"; + options = { + desc = "開いているバッファを探す"; + silent = true; + }; + }; + + "fh" = { + action = "help_tags"; + options = { + desc = "ヘルプ項目を探す"; + silent = true; + }; + }; + }; + }; + }; +} diff --git a/modules/home/nixvim/plugins/editor/treesitter.nix b/modules/home/nixvim/plugins/editor/treesitter.nix new file mode 100644 index 0000000..335418d --- /dev/null +++ b/modules/home/nixvim/plugins/editor/treesitter.nix @@ -0,0 +1,9 @@ +{...}: { + programs.nixvim.plugins.treesitter = { + enable = true; + settings = { + highlight.enable = true; + indent.enable = true; + }; + }; +} diff --git a/modules/home/nixvim/plugins/editor/trouble.nix b/modules/home/nixvim/plugins/editor/trouble.nix new file mode 100644 index 0000000..b702029 --- /dev/null +++ b/modules/home/nixvim/plugins/editor/trouble.nix @@ -0,0 +1,3 @@ +{...}: { + programs.nixvim.plugins.trouble.enable = true; +} diff --git a/modules/home/nixvim/plugins/ui/blankline.nix b/modules/home/nixvim/plugins/ui/blankline.nix new file mode 100644 index 0000000..897dd40 --- /dev/null +++ b/modules/home/nixvim/plugins/ui/blankline.nix @@ -0,0 +1,3 @@ +{...}: { + programs.nixvim.plugins.indent-blankline.enable = true; +} diff --git a/modules/home/nixvim/plugins/ui/default.nix b/modules/home/nixvim/plugins/ui/default.nix new file mode 100644 index 0000000..5541dc5 --- /dev/null +++ b/modules/home/nixvim/plugins/ui/default.nix @@ -0,0 +1,11 @@ +{...}: { + imports = [ + ./lualine.nix + ./neo-tree.nix + ./blankline.nix + ./which-key.nix + ./web-devicons.nix + ./toggleterm.nix + ./treesitter.nix + ]; +} diff --git a/modules/home/nixvim/plugins/ui/lualine.nix b/modules/home/nixvim/plugins/ui/lualine.nix new file mode 100644 index 0000000..35e7be2 --- /dev/null +++ b/modules/home/nixvim/plugins/ui/lualine.nix @@ -0,0 +1,3 @@ +{...}: { + programs.nixvim.plugins.lualine.enable = true; +} diff --git a/modules/home/nixvim/plugins/ui/neo-tree.nix b/modules/home/nixvim/plugins/ui/neo-tree.nix new file mode 100644 index 0000000..e53fc53 --- /dev/null +++ b/modules/home/nixvim/plugins/ui/neo-tree.nix @@ -0,0 +1,16 @@ +{...}: { + programs.nixvim = { + plugins.neo-tree = { + enable = true; + settings = { + close_if_last_window = true; + filesystem = { + follow_current_file = { + enabled = true; + leave_dirs_open = true; + }; + }; + }; + }; + }; +} diff --git a/modules/home/nixvim/plugins/ui/toggleterm.nix b/modules/home/nixvim/plugins/ui/toggleterm.nix new file mode 100644 index 0000000..ccdee4b --- /dev/null +++ b/modules/home/nixvim/plugins/ui/toggleterm.nix @@ -0,0 +1,3 @@ +{...}: { + programs.nixvim.plugins.toggleterm.enable = true; +} diff --git a/modules/home/nixvim/plugins/ui/treesitter.nix b/modules/home/nixvim/plugins/ui/treesitter.nix new file mode 100644 index 0000000..b43df40 --- /dev/null +++ b/modules/home/nixvim/plugins/ui/treesitter.nix @@ -0,0 +1,3 @@ +{...}: { + programs.nixvim.plugins."treesitter-context".enable = true; +} diff --git a/modules/home/nixvim/plugins/ui/web-devicons.nix b/modules/home/nixvim/plugins/ui/web-devicons.nix new file mode 100644 index 0000000..4f251bf --- /dev/null +++ b/modules/home/nixvim/plugins/ui/web-devicons.nix @@ -0,0 +1,4 @@ +{...}: { + # icon set preview + programs.nixvim.plugins.web-devicons.enable = true; +} diff --git a/modules/home/nixvim/plugins/ui/which-key.nix b/modules/home/nixvim/plugins/ui/which-key.nix new file mode 100644 index 0000000..9499982 --- /dev/null +++ b/modules/home/nixvim/plugins/ui/which-key.nix @@ -0,0 +1,4 @@ +{...}: { + # key map help + programs.nixvim.plugins.which-key.enable = true; +} diff --git a/modules/home/vim/default.nix b/modules/home/vim/default.nix deleted file mode 100644 index dd7e6a2..0000000 --- a/modules/home/vim/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ lib, ... }: -{ - programs.neovim = { - enable = true; - viAlias = true; - vimAlias = true; - extraConfig = lib.fileContents ./init.vim; - }; -} \ No newline at end of file diff --git a/modules/home/vim/init.vim b/modules/home/vim/init.vim deleted file mode 100644 index e69de29..0000000