nomodoro plus lualine
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good

This commit is contained in:
Deepak Mallubhotla 2024-06-01 22:04:15 +00:00
parent d3109fe9d8
commit c738db242b
Signed by: deepak
GPG Key ID: 8F904A3FC7021497
5 changed files with 69 additions and 22 deletions

18
flake.lock generated
View File

@ -146,6 +146,23 @@
"type": "github"
}
},
"nomodoro": {
"flake": false,
"locked": {
"lastModified": 1716340390,
"narHash": "sha256-suGTjP5dROISQMd96GispnRk624sA5BVoLYz6xqwO6o=",
"owner": "dbinagi",
"repo": "nomodoro",
"rev": "104583311eb6f39fedcd2e1759c75fbfccb5aec6",
"type": "github"
},
"original": {
"owner": "dbinagi",
"ref": "main",
"repo": "nomodoro",
"type": "github"
}
},
"root": {
"inputs": {
"NixOS-WSL": "NixOS-WSL",
@ -154,6 +171,7 @@
"homeManager-23-11": "homeManager-23-11",
"nixpkgs": "nixpkgs",
"nixpkgs-23-11": "nixpkgs-23-11",
"nomodoro": "nomodoro",
"spaceport-nvim": "spaceport-nvim"
}
},

View File

@ -29,11 +29,15 @@
url = "github:CWood-sdf/spaceport.nvim/main";
flake = false;
};
nomodoro = {
url = "github:dbinagi/nomodoro/main";
flake = false;
};
};
outputs = { self, nixpkgs, homeManager, NixOS-WSL, nixpkgs-23-11, homeManager-23-11, cmp-vimtex, spaceport-nvim, ...}@inputs:
outputs = { self, nixpkgs, homeManager, NixOS-WSL, nixpkgs-23-11, homeManager-23-11, cmp-vimtex, spaceport-nvim, nomodoro, ...}@inputs:
let
customPackageOverlay = (import ./overlays/default.nix { inherit cmp-vimtex; inherit spaceport-nvim; }).overlay;
customPackageOverlay = (import ./overlays/default.nix { inherit cmp-vimtex; inherit spaceport-nvim; inherit nomodoro; }).overlay;
in
{
nixosConfigurations = (

View File

@ -89,7 +89,7 @@
wiki-vim
vim-markdown
cmp-buffer
vim-airline
# vim-airline
vim-fugitive
flash-nvim
gitsigns-nvim
@ -100,8 +100,10 @@
overseer-nvim
# prettiness
lualine-nvim
goyo-vim
limelight-vim
nui-nvim
# color schemes
rose-pine
@ -110,6 +112,7 @@
# custom plugins from flakes
pkgs.customVimPlugins.cmp-vimtex
pkgs.customVimPlugins.spaceport-nvim
pkgs.customVimPlugins.nomodoro
# syntax highlighting
vim-just

View File

@ -15,13 +15,25 @@ vim.opt.foldlevelstart = 99
vim.opt.number = true
vim.opt.relativenumber = true
vim.keymap.set("n", "<leader>n", "R<Enter><Esc>")
vim.keymap.set("n", "<leader>N", "R<Enter><Esc>")
-- ctrlp setup
vim.g.ctrlp_custom_ignore = {
file = '\\v\\.(aux|bbl|blg|bcf|fdb_latexmk|fls|run.xml|tdo|toc|log|pdf)$'
}
require('lualine').setup({
extensions = {"fugitive", "overseer"},
sections = {
lualine_c = {
"filename", require("nomodoro").status
},
lualine_x = {
"encoding", {"fileformat", icons_enabled = false}, "filetype"
}
}
})
${builtins.readFile ./spaceport.lua}
require('gitsigns').setup()
@ -44,5 +56,10 @@ require("overseer").setup()
vim.api.nvim_set_keymap('n', '<leader>oo', '<cmd>OverseerToggle<CR>', { noremap = true})
vim.api.nvim_set_keymap('n', '<leader>or', '<cmd>OverseerRun<CR>', { noremap = true})
require("nomodoro").setup({})
vim.api.nvim_set_keymap("n", "<leader>nw", "<cmd>NomoWork<CR>", { noremap = true})
vim.api.nvim_set_keymap("n", "<leader>nb", "<cmd>NomoBreak<CR>", { noremap = true})
vim.api.nvim_set_keymap("n", "<leader>ns", "<cmd>NomoStop<CR>", { noremap = true})
EOF
''

View File

@ -1,4 +1,4 @@
{ cmp-vimtex, spaceport-nvim }:
{ cmp-vimtex, spaceport-nvim, nomodoro }:
{
overlay = final: prev:
let
@ -10,11 +10,16 @@
src = spaceport-nvim;
name = "spaceport-nvim";
};
nomodoroNvimPlugin = prev.vimUtils.buildVimPlugin {
src = nomodoro;
name = "nomodoro";
};
in
{
customVimPlugins = {
cmp-vimtex = cmpVimtexPlugin;
spaceport-nvim = spaceportNvimPlugin;
nomodoro = nomodoroNvimPlugin;
};
};
}