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 = {
lspkind.enable = true;
trouble = {
enable = true;
};

View File

@ -1,9 +1,21 @@
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 = {
@ -18,8 +30,17 @@ cmp.setup({
},
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
completion = {
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({
["<Tab>"] = cmp.mapping(function(fallback)
@ -51,9 +72,6 @@ cmp.setup({
{ name = 'buffer' },
{ name = 'path' },
{ name = 'nvim_lua' },
{ name = 'emoji' },
}),
highlight = {
default = "Subtle"
},
})

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
@ -105,7 +104,6 @@
fonts = {
fontconfig.enable = true;
packages = with pkgs; [
terminus-nerdfont
noto-fonts
noto-fonts-emoji
liberation_ttf
@ -115,8 +113,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";
}