Compare commits
3 commits
eddcb86e76
...
a3cfc55e0a
Author | SHA1 | Date | |
---|---|---|---|
a3cfc55e0a | |||
7794b28b05 | |||
92bacd3acd |
9 changed files with 76 additions and 1 deletions
|
@ -1,9 +1,9 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
./editors/helix
|
||||||
./neofetch
|
./neofetch
|
||||||
./nushell
|
./nushell
|
||||||
./starship
|
./starship
|
||||||
./helix
|
|
||||||
./git
|
./git
|
||||||
./lazygit
|
./lazygit
|
||||||
./direnv
|
./direnv
|
||||||
|
|
|
@ -20,6 +20,13 @@
|
||||||
command = lib.getExe rustfmt;
|
command = lib.getExe rustfmt;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "lua";
|
||||||
|
auto-format = true;
|
||||||
|
formatter = {
|
||||||
|
command = lib.getExe luaformatter;
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
language-server = with pkgs; {
|
language-server = with pkgs; {
|
||||||
nil = {
|
nil = {
|
34
home/editors/neovim/config.lua
Normal file
34
home/editors/neovim/config.lua
Normal 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
|
||||||
|
}
|
||||||
|
}
|
5
home/editors/neovim/default.nix
Normal file
5
home/editors/neovim/default.nix
Normal 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;
|
||||||
|
}
|
26
home/editors/neovim/lua/presence.lua
Normal file
26
home/editors/neovim/lua/presence.lua
Normal 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
|
|
@ -9,12 +9,14 @@ alias la = eza -alughH --git --icons
|
||||||
alias calc = eva
|
alias calc = eva
|
||||||
alias c = clear
|
alias c = clear
|
||||||
alias f = yazi
|
alias f = yazi
|
||||||
|
alias v = lvim
|
||||||
alias cat = bat
|
alias cat = bat
|
||||||
alias rm = rm -i
|
alias rm = rm -i
|
||||||
alias cp = cp -i
|
alias cp = cp -i
|
||||||
alias mv = mv -i
|
alias mv = mv -i
|
||||||
alias build = nh os switch . --nom
|
alias build = nh os switch . --nom
|
||||||
alias clean = sudo nh clean all
|
alias clean = sudo nh clean all
|
||||||
|
alias deploy = nix run github:serokell/deploy-rs
|
||||||
alias sakura = nix run github:serokell/deploy-rs ".#sakura"
|
alias sakura = nix run github:serokell/deploy-rs ".#sakura"
|
||||||
alias kariru = nix run github:serokell/deploy-rs ".#kariru"
|
alias kariru = nix run github:serokell/deploy-rs ".#kariru"
|
||||||
alias yuki = nix run github:serokell/deploy-rs ".#yuki"
|
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 sx = nix run "nixpkgs#statix" -- check
|
||||||
alias sxfix = nix run "nixpkgs#statix" -- fix
|
alias sxfix = nix run "nixpkgs#statix" -- fix
|
||||||
alias dl = yt-dlp -P ~/Videos/downloaded
|
alias dl = yt-dlp -P ~/Videos/downloaded
|
||||||
|
alias dlad = yt-dlp -x --audio-format mp3 --embed-thumbnail
|
||||||
alias dlcd = yt-dlp
|
alias dlcd = yt-dlp
|
||||||
alias up = rpaste -s "https://i.flake.sh/" -e 1day
|
alias up = rpaste -s "https://i.flake.sh/" -e 1day
|
||||||
alias shorten = rpaste -s "https://i.flake.sh/" -e 1day -u
|
alias shorten = rpaste -s "https://i.flake.sh/" -e 1day -u
|
||||||
|
|
Loading…
Reference in a new issue