Compare commits

..

4 Commits

Author SHA1 Message Date
Sojus07
3c0a5834b0 kekl 2025-02-18 23:39:33 +01:00
Sojus07
42130edad6 kekl 2025-02-18 23:30:47 +01:00
Sojus07
510f3b41db kekl 2025-02-18 22:13:01 +01:00
Sojus07
2c8b799325 kekl 2025-02-18 22:10:07 +01:00
8 changed files with 86 additions and 69 deletions

View File

@ -14,10 +14,10 @@
home-manager,
nvf,
}: {
nixosConfigurations.computer = nixpkgs.lib.nixosSystem {
nixosConfigurations.sputnik = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/computer/configuration.nix
./hosts/sputnik/configuration.nix
nvf.nixosModules.default
home-manager.nixosModules.home-manager
{
@ -30,10 +30,10 @@
];
};
nixosConfigurations.laptop = nixpkgs.lib.nixosSystem {
nixosConfigurations.meteor = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/laptop/configuration.nix
./hosts/meteor/configuration.nix
nvf.nixosModules.default
home-manager.nixosModules.home-manager
{

View File

@ -72,6 +72,7 @@
};
};
lsp = {
lspkind.enable = true;
trouble = {
enable = true;
};

View File

@ -1,12 +1,24 @@
local cmp = require("cmp")
local lspkind = require("lspkind")
vim.opt.completeopt = { "menu", "menuone", "noinsert", "noselect" }
cmp.setup({
snippet = {
expand = function(args)
require('luasnip').lsp_expand(args.body)
formatting = {
format = function(entry, vim_item)
vim_item.menu = ({
nvim_lsp = "[LSP]",
buffer = "[BUF]",
path = "[PATH]",
luasnip = "[SNIP]",
nvim_lua = "[LUA]",
})[entry.source.name]
vim_item.kind = lspkind.symbolic(vim_item.kind, { mode = "symbol" })
return vim_item
end,
},
sorting = {
},
sorting = {
comparators = {
cmp.config.compare.offset,
cmp.config.compare.exact,
@ -16,12 +28,21 @@ cmp.setup({
cmp.config.compare.length,
cmp.config.compare.order,
},
},
window = {
completion = {
autocomplete = true,
col_offset = -3,
side_padding = 0,
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
completion = cmp.config.window.bordered({
winhighlight = "Normal:Pmenu,FloatBorder:Pmenu,CursorLine:PmenuSel,Search:None",
}),
documentation = cmp.config.window.bordered({
winhighlight = "Normal:Pmenu,FloatBorder:Pmenu,CursorLine:PmenuSel,Search:None",
}),
},
mapping = cmp.mapping.preset.insert({
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
@ -44,16 +65,13 @@ cmp.setup({
["<C-e>"] = cmp.mapping.abort(),
["<C-Left>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({ select = false }),
}),
sources = cmp.config.sources({
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'buffer' },
{ name = 'path' },
{ name = 'nvim_lua' },
{ name = 'emoji' },
}),
highlight = {
default = "Subtle"
},
}),
})

View File

@ -1,11 +1,11 @@
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
vim.opt.shiftwidth = 2
vim.opt.tabstop = 2
vim.opt.cursorline = true
vim.opt.cursorcolumn = true
vim.opt.expandtab = true
vim.opt.autoindent = true
vim.opt.smartindent = true
vim.opt.softtabstop = 4
vim.opt.softtabstop = 2
vim.opt.relativenumber = true
vim.diagnostic.config({

View File

@ -21,7 +21,7 @@
bind t new-window
bind -n M-w previous-window
bind -n M-e next-window
bind r source-file ~/.tmux.conf
bind r source-file ~/.config/tmux/tmux.conf
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U

View File

@ -67,7 +67,6 @@
binwalk
chirp
picocom
pwndbg
minipro
ethtool
@ -100,12 +99,12 @@
pacman
wf-recorder
qbittorrent
superTuxKart
];
fonts = {
fontconfig.enable = true;
packages = with pkgs; [
terminus-nerdfont
noto-fonts
noto-fonts-emoji
liberation_ttf
@ -115,8 +114,9 @@
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
pkgs.nerd-fonts._0xproto
pkgs.nerd-fonts.droid-sans-mono
nerd-fonts._0xproto
nerd-fonts.droid-sans-mono
nerd-fonts.terminess-ttf
];
};

View File

@ -9,7 +9,6 @@
imports = [
./hardware-configuration.nix
./modules/default.nix
../default/default.nix
];
@ -64,6 +63,6 @@
"pacman.conf".source = ../default/raw/pacman.conf;
};
system.stateVersion = "unstable";
system.stateVersion = "25.05";
}

View File

@ -9,7 +9,6 @@
imports = [
./hardware-configuration.nix
./modules/default.nix
../default/default.nix
];
@ -58,6 +57,6 @@
"pacman.conf".source = ../default/raw/pacman.conf;
};
system.stateVersion = "unstable";
system.stateVersion = "25.05";
}