Compare commits

...

3 commits

Author SHA1 Message Date
a3cfc55e0a
nushell: new aliases
All checks were successful
ci/woodpecker/push/checks Pipeline was successful
2024-01-26 08:07:53 -05:00
7794b28b05
home: rename helix 2024-01-26 08:05:59 -05:00
92bacd3acd
home: init neovim 2024-01-26 08:05:25 -05:00
9 changed files with 76 additions and 1 deletions

View file

@ -1,9 +1,9 @@
{pkgs, ...}: {
imports = [
./editors/helix
./neofetch
./nushell
./starship
./helix
./git
./lazygit
./direnv

View file

@ -20,6 +20,13 @@
command = lib.getExe rustfmt;
};
}
{
name = "lua";
auto-format = true;
formatter = {
command = lib.getExe luaformatter;
};
}
];
language-server = with pkgs; {
nil = {

View file

@ -0,0 +1,34 @@
vim.opt.shiftwidth = 2
vim.opt.tabstop = 2
vim.opt.relativenumber = true
-- general
lvim.log.level = "info"
lvim.format_on_save = { enabled = true, pattern = "*.lua", timeout = 1000 }
-- to disable icons and use a minimalist setup, uncomment the following
-- keymappings <https://www.lunarvim.org/docs/configuration/keybindings>
lvim.leader = "space"
-- add your own keymapping
lvim.keys.normal_mode["<C-s>"] = ":w<cr>"
-- -- Change theme settings
lvim.colorscheme = "lunar"
lvim.transparent_window = true
lvim.builtin.alpha.active = true
lvim.builtin.alpha.mode = "dashboard"
lvim.builtin.terminal.active = true
lvim.builtin.nvimtree.setup.view.side = "left"
lvim.builtin.nvimtree.setup.renderer.icons.show.git = false
-- Automatically install missing parsers when entering buffer
lvim.builtin.treesitter.auto_install = true
lvim.plugins = {
{
"andweeb/presence.nvim",
config = function() require("user.presence").config() end
}
}

View file

@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = [pkgs.lunarvim];
xdg.configFile."lvim/config.lua".source = ./config.lua;
xdg.configFile."lvim/lua/user/presence.lua".source = ./lua/presence.lua;
}

View file

@ -0,0 +1,26 @@
local M = {}
M.config = function()
local status_ok, presence = pcall(require, "presence")
if not status_ok then return end
presence:setup {
auto_update = true,
neovim_image_text = "LunarVim",
main_image = "file",
client_id = "793271441293967371",
buttons = true,
log_level = nil,
debounce_timeout = 10,
enable_line_number = true, -- Displays the current line number instead of the current project
editing_text = "Editing %s", -- string rendered when an editable file is loaded in the buffer
file_explorer_text = "Browsing %s", -- Format string rendered when browsing a file explorer
git_commit_text = "Committing changes", -- string rendered when commiting changes in git
plugin_manager_text = "Managing plugins", -- Format string rendered when managing plugins
reading_text = "Reading %s", -- string rendered when a read-only file is loaded in the buffer
workspace_text = "Working on %s", -- Workspace format string (either string or function(git_project_name: string|nil, buffer: string): string)
line_number_text = "Line %s out of %s" -- Line number string (for when enable_line_number is set to true)
}
end
return M

View file

@ -9,12 +9,14 @@ alias la = eza -alughH --git --icons
alias calc = eva
alias c = clear
alias f = yazi
alias v = lvim
alias cat = bat
alias rm = rm -i
alias cp = cp -i
alias mv = mv -i
alias build = nh os switch . --nom
alias clean = sudo nh clean all
alias deploy = nix run github:serokell/deploy-rs
alias sakura = nix run github:serokell/deploy-rs ".#sakura"
alias kariru = nix run github:serokell/deploy-rs ".#kariru"
alias yuki = nix run github:serokell/deploy-rs ".#yuki"
@ -27,6 +29,7 @@ alias dx = nix run "nixpkgs#deadnix"
alias sx = nix run "nixpkgs#statix" -- check
alias sxfix = nix run "nixpkgs#statix" -- fix
alias dl = yt-dlp -P ~/Videos/downloaded
alias dlad = yt-dlp -x --audio-format mp3 --embed-thumbnail
alias dlcd = yt-dlp
alias up = rpaste -s "https://i.flake.sh/" -e 1day
alias shorten = rpaste -s "https://i.flake.sh/" -e 1day -u