Compare commits

...

8 Commits

8 changed files with 75 additions and 7 deletions

View File

@ -1,4 +1,4 @@
{ ... }: { pkgs, ... }:
{ {
programs = { programs = {
dconf.enable = true; dconf.enable = true;
@ -8,7 +8,12 @@
enableGlobalCompInit = false; enableGlobalCompInit = false;
enableBashCompletion = true; enableBashCompletion = true;
}; };
nix-ld.enable = true; nix-ld = {
enable = true;
libraries = with pkgs; [
stdenv.cc.cc
];
};
steam.enable = true; steam.enable = true;
}; };
} }

View File

@ -1,5 +1,5 @@
monitor = ,preferred,auto,auto monitor = ,preferred,auto,auto
monitor=eDP-1,preferred,0x0,1.3333 monitor=eDP-1,preferred,0x0,1.5
exec = systemd-run --user ~/.config/hypr/scripts/laptop-lid.bash exec = systemd-run --user ~/.config/hypr/scripts/laptop-lid.bash
bindl=,switch:off:Lid Switch,exec,systemd-run --user ~/.config/hypr/scripts/laptop-lid.bash bindl=,switch:off:Lid Switch,exec,systemd-run --user ~/.config/hypr/scripts/laptop-lid.bash
bindl=,switch:on:Lid Switch,exec,systemd-run --user ~/.config/hypr/scripts/laptop-lid.bash bindl=,switch:on:Lid Switch,exec,systemd-run --user ~/.config/hypr/scripts/laptop-lid.bash

View File

@ -317,6 +317,51 @@ return {
end, end,
} }
local cur_bufs = function()
return vim.iter(vim.api.nvim_list_bufs())
:filter(function(buf)
return vim.fn.buflisted(buf) == 1
end)
:filter(vim.api.nvim_buf_is_loaded)
:filter(vim.api.nvim_buf_is_valid)
:totable()
end
local Buffers = {
update = { "BufNew", "VimEnter" },
condition = function()
return #cur_bufs() > 1
end,
{
provider = seps.full.left,
hl = { fg = colors.carpYellow, bg = utils.get_highlight("StatusLine").bg },
},
{
provider = function()
return vim.api.nvim_get_current_buf()
end,
hl = { fg = colors.sumiInk0, bg = colors.carpYellow },
},
{
provider = " " .. seps.full.left,
hl = { fg = colors.roninYellow, bg = colors.carpYellow },
},
{
provider = function()
return ("%d  "):format(#cur_bufs())
end,
hl = function()
return {
fg = colors.sumiInk0,
bg = colors.roninYellow,
}
end,
},
{
provider = seps.full.right,
hl = { fg = colors.roninYellow, bg = utils.get_highlight("StatusLine").bg },
},
}
local TabPages = { local TabPages = {
-- only show this component if there's 2 or more tabpages -- only show this component if there's 2 or more tabpages
condition = function() condition = function()
@ -988,6 +1033,7 @@ return {
{ {
provider = "%=", provider = "%=",
}, },
Buffers,
TabPages, TabPages,
}, },
winbar = { winbar = {

View File

@ -166,7 +166,7 @@ return {
{ {
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
opts = { opts = {
automatic_installation = true, automatic_installation = { exclude = { "clangd", "asm-lsp" } },
handlers = { handlers = {
["jdtls"] = function() ["jdtls"] = function()
require("java").setup({ require("java").setup({

View File

@ -2,8 +2,6 @@ return {
{ {
"folke/noice.nvim", "folke/noice.nvim",
event = "VeryLazy", event = "VeryLazy",
-- Pinned until https://github.com/folke/noice.nvim/issues/923 is resolved
commit = "d9328ef",
config = function() config = function()
require("noice").setup({ require("noice").setup({
lsp = { lsp = {

View File

@ -341,3 +341,19 @@ subnetting
TCP/IP TCP/IP
IPv6 IPv6
V3 V3
SSID
WPA
IoT
NISTIR
CISA
jiggler
cyber
implementers
wildcard
mistruth
Reinstallation
offsite
endianness
Endian
factorizations
formulae

View File

@ -133,8 +133,10 @@ in
++ [ ++ [
gnumake gnumake
cmake cmake
clang
clang-tools clang-tools
clang
nasm
asm-lsp
ninja ninja
ccache ccache
llvm llvm
@ -183,6 +185,7 @@ in
}; };
programs = { programs = {
nix-index.enable = true;
wofi.enable = true; wofi.enable = true;
waybar = { waybar = {
enable = true; enable = true;