From bec1f3cedfdade61209d203ac1b5c5b308d2f8c3 Mon Sep 17 00:00:00 2001 From: moons-14 Date: Wed, 11 Mar 2026 16:48:38 +0900 Subject: [PATCH] nixvim: remove dashboard-nvim and project-nvim Co-Authored-By: Claude Sonnet 4.6 --- .../home/nixvim/plugins/editor/default.nix | 1 - .../home/nixvim/plugins/editor/project.nix | 18 --- modules/home/nixvim/plugins/ui/dashboard.nix | 107 ------------------ modules/home/nixvim/plugins/ui/default.nix | 1 - 4 files changed, 127 deletions(-) delete mode 100644 modules/home/nixvim/plugins/editor/project.nix delete mode 100644 modules/home/nixvim/plugins/ui/dashboard.nix diff --git a/modules/home/nixvim/plugins/editor/default.nix b/modules/home/nixvim/plugins/editor/default.nix index 8702ad8..4808770 100644 --- a/modules/home/nixvim/plugins/editor/default.nix +++ b/modules/home/nixvim/plugins/editor/default.nix @@ -11,6 +11,5 @@ ./trouble.nix ./conform.nix ./surround.nix - ./project.nix ]; } diff --git a/modules/home/nixvim/plugins/editor/project.nix b/modules/home/nixvim/plugins/editor/project.nix deleted file mode 100644 index c79cf80..0000000 --- a/modules/home/nixvim/plugins/editor/project.nix +++ /dev/null @@ -1,18 +0,0 @@ -{...}: { - programs.nixvim = { - plugins.project-nvim = { - enable = true; - enableTelescope = true; - settings = { - detection_methods = ["pattern" "lsp"]; - patterns = [ - ".git" - "package.json" - "Cargo.toml" - "flake.nix" - "pyproject.toml" - ]; - }; - }; - }; -} diff --git a/modules/home/nixvim/plugins/ui/dashboard.nix b/modules/home/nixvim/plugins/ui/dashboard.nix deleted file mode 100644 index 762f84e..0000000 --- a/modules/home/nixvim/plugins/ui/dashboard.nix +++ /dev/null @@ -1,107 +0,0 @@ -{pkgs, ...}: { - programs.nixvim = { - extraPlugins = [pkgs.vimPlugins.dashboard-nvim]; - - extraConfigLua = '' - require("dashboard").setup({ - theme = "doom", - config = { - header = { - "", - " ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗", - " ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║", - " ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║", - " ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║", - " ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║", - " ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝", - "", - " ✦ · ☽ · ✦", - "", - }, - center = { - { - icon = " ", - icon_hl = "DashboardIconFind", - desc = "Find File", - desc_hl = "DashboardDesc", - key = "f", - key_hl = "DashboardKey", - action = function() require("telescope.builtin").find_files() end, - }, - { - icon = " ", - icon_hl = "DashboardIconRecent", - desc = "Recent Files", - desc_hl = "DashboardDesc", - key = "r", - key_hl = "DashboardKey", - action = function() require("telescope.builtin").oldfiles() end, - }, - { - icon = " ", - icon_hl = "DashboardIconProject", - desc = "Recent Projects", - desc_hl = "DashboardDesc", - key = "p", - key_hl = "DashboardKey", - action = function() require("telescope").extensions["projects"].projects() end, - }, - { - icon = " ", - icon_hl = "DashboardIconGrep", - desc = "Find Word", - desc_hl = "DashboardDesc", - key = "g", - key_hl = "DashboardKey", - action = function() require("telescope.builtin").live_grep() end, - }, - { - icon = " ", - icon_hl = "DashboardIconNew", - desc = "New File", - desc_hl = "DashboardDesc", - key = "n", - key_hl = "DashboardKey", - action = "enew", - }, - { - icon = " ", - icon_hl = "DashboardIconDots", - desc = "Dotfiles", - desc_hl = "DashboardDesc", - key = "d", - key_hl = "DashboardKey", - action = function() require("telescope.builtin").find_files({ cwd = vim.fn.expand("~/dotfiles") }) end, - }, - { - icon = " ", - icon_hl = "DashboardIconQuit", - desc = "Quit", - desc_hl = "DashboardDesc", - key = "q", - key_hl = "DashboardKey", - action = "qa", - }, - }, - footer = { - "", - " NixOS · nixvim · Catppuccin Mocha", - }, - }, - }) - - -- Catppuccin Mocha カラーに合わせたハイライト - vim.api.nvim_set_hl(0, "DashboardHeader", { fg = "#cba6f7", bold = true }) - vim.api.nvim_set_hl(0, "DashboardIconFind", { fg = "#89b4fa" }) - vim.api.nvim_set_hl(0, "DashboardIconRecent", { fg = "#fab387" }) - vim.api.nvim_set_hl(0, "DashboardIconProject", { fg = "#94e2d5" }) - vim.api.nvim_set_hl(0, "DashboardIconGrep", { fg = "#a6e3a1" }) - vim.api.nvim_set_hl(0, "DashboardIconNew", { fg = "#89dceb" }) - vim.api.nvim_set_hl(0, "DashboardIconDots", { fg = "#f5c2e7" }) - vim.api.nvim_set_hl(0, "DashboardIconQuit", { fg = "#f38ba8" }) - vim.api.nvim_set_hl(0, "DashboardDesc", { fg = "#cdd6f4" }) - vim.api.nvim_set_hl(0, "DashboardKey", { fg = "#b4befe", bold = true }) - vim.api.nvim_set_hl(0, "DashboardFooter", { fg = "#7f849c", italic = true }) - ''; - }; -} diff --git a/modules/home/nixvim/plugins/ui/default.nix b/modules/home/nixvim/plugins/ui/default.nix index 3610465..3399d49 100644 --- a/modules/home/nixvim/plugins/ui/default.nix +++ b/modules/home/nixvim/plugins/ui/default.nix @@ -10,6 +10,5 @@ ./barbar.nix ./lightbulb.nix ./colorizer.nix - ./dashboard.nix ]; }