This commit is contained in:
Sojus07
2025-02-18 23:30:47 +01:00
parent 510f3b41db
commit 42130edad6
6 changed files with 78 additions and 62 deletions

View File

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

View File

@ -1,9 +1,21 @@
local cmp = require("cmp") local cmp = require("cmp")
local lspkind = require("lspkind")
vim.opt.completeopt = { "menu", "menuone", "noinsert", "noselect" } vim.opt.completeopt = { "menu", "menuone", "noinsert", "noselect" }
cmp.setup({ cmp.setup({
snippet = { formatting = {
expand = function(args) format = function(entry, vim_item)
require('luasnip').lsp_expand(args.body) 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, end,
}, },
sorting = { sorting = {
@ -18,8 +30,17 @@ cmp.setup({
}, },
}, },
window = { window = {
completion = cmp.config.window.bordered(), completion = {
documentation = cmp.config.window.bordered(), autocomplete = true,
col_offset = -3,
side_padding = 0,
},
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({ mapping = cmp.mapping.preset.insert({
["<Tab>"] = cmp.mapping(function(fallback) ["<Tab>"] = cmp.mapping(function(fallback)
@ -51,9 +72,6 @@ cmp.setup({
{ name = 'buffer' }, { name = 'buffer' },
{ name = 'path' }, { name = 'path' },
{ name = 'nvim_lua' }, { name = 'nvim_lua' },
{ name = 'emoji' },
}), }),
highlight = {
default = "Subtle"
},
}) })

View File

@ -21,7 +21,7 @@
bind t new-window bind t new-window
bind -n M-w previous-window bind -n M-w previous-window
bind -n M-e next-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-Left select-pane -L
bind -n M-Right select-pane -R bind -n M-Right select-pane -R
bind -n M-Up select-pane -U bind -n M-Up select-pane -U

View File

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

View File

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

View File

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