WIP: Switch to NixOS #5

Draft
FunctionalHacker wants to merge 1349 commits from nix into main
4 changed files with 24 additions and 33 deletions
Showing only changes of commit e6b6534c8d - Show all commits

View file

@ -0,0 +1,10 @@
-- Startup dashboard
--- @type LazyPluginSpec
return {
"goolord/alpha-nvim",
config = function()
local alpha = require("alpha")
local theta = require("alpha.themes.theta")
alpha.setup(theta.config)
end,
}

View file

@ -1,32 +0,0 @@
-- Startup dashboard
--- @type LazyPluginSpec
return {
"glepnir/dashboard-nvim",
event = "VimEnter",
dependencies = { "kyazdani42/nvim-web-devicons" },
opts = {
theme = "hyper",
config = {
week_header = {
enable = true,
},
shortcut = {
{
icon = "🧲 ",
desc = "Update",
group = "@property",
action = "Lazy update",
key = "u",
},
},
project = {
enable = true,
limit = 8,
label = "Projects",
action = function(path)
require("telescope.builtin").find_files({ cwd = path })
end,
},
},
},
}

View file

@ -8,7 +8,7 @@ return {
filetypes = { filetypes = {
"", "",
"checkhealth", "checkhealth",
"dashboard", "alpha",
"git", "git",
"gitcommit", "gitcommit",
"TelescopePrompt", "TelescopePrompt",

View file

@ -17,6 +17,13 @@ return {
-- cd plugin for telescope -- cd plugin for telescope
"zane-/cder.nvim", "zane-/cder.nvim",
-- Switch to a project
{
"ahmedkhalf/project.nvim",
main = "project_nvim",
config = true,
},
}, },
opts = { opts = {
-- Set layout to vertical -- Set layout to vertical
@ -77,6 +84,11 @@ return {
"<C-g>", "<C-g>",
"<cmd>Telescope live_grep<cr>", "<cmd>Telescope live_grep<cr>",
}, },
{
desc = "Change to a project",
"<C-p>",
"<cmd>Telescope projects<cr>",
},
}, },
config = function(_, opts) config = function(_, opts)
local telescope = require("telescope") local telescope = require("telescope")
@ -86,5 +98,6 @@ return {
telescope.load_extension("fzf") telescope.load_extension("fzf")
telescope.load_extension("ui-select") telescope.load_extension("ui-select")
telescope.load_extension("cder") telescope.load_extension("cder")
telescope.load_extension("projects")
end, end,
} }