kekl
This commit is contained in:
@ -72,6 +72,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
lsp = {
|
lsp = {
|
||||||
|
lspkind.enable = true;
|
||||||
trouble = {
|
trouble = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
@ -1,12 +1,24 @@
|
|||||||
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 = {
|
||||||
comparators = {
|
comparators = {
|
||||||
cmp.config.compare.offset,
|
cmp.config.compare.offset,
|
||||||
cmp.config.compare.exact,
|
cmp.config.compare.exact,
|
||||||
@ -16,12 +28,21 @@ cmp.setup({
|
|||||||
cmp.config.compare.length,
|
cmp.config.compare.length,
|
||||||
cmp.config.compare.order,
|
cmp.config.compare.order,
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
window = {
|
||||||
|
completion = {
|
||||||
|
autocomplete = true,
|
||||||
|
col_offset = -3,
|
||||||
|
side_padding = 0,
|
||||||
},
|
},
|
||||||
window = {
|
completion = cmp.config.window.bordered({
|
||||||
completion = cmp.config.window.bordered(),
|
winhighlight = "Normal:Pmenu,FloatBorder:Pmenu,CursorLine:PmenuSel,Search:None",
|
||||||
documentation = cmp.config.window.bordered(),
|
}),
|
||||||
},
|
documentation = cmp.config.window.bordered({
|
||||||
mapping = cmp.mapping.preset.insert({
|
winhighlight = "Normal:Pmenu,FloatBorder:Pmenu,CursorLine:PmenuSel,Search:None",
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
mapping = cmp.mapping.preset.insert({
|
||||||
["<Tab>"] = cmp.mapping(function(fallback)
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
cmp.select_next_item()
|
cmp.select_next_item()
|
||||||
@ -44,16 +65,13 @@ cmp.setup({
|
|||||||
["<C-e>"] = cmp.mapping.abort(),
|
["<C-e>"] = cmp.mapping.abort(),
|
||||||
["<C-Left>"] = cmp.mapping.abort(),
|
["<C-Left>"] = cmp.mapping.abort(),
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
||||||
}),
|
}),
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
{ name = 'luasnip' },
|
{ name = 'luasnip' },
|
||||||
{ name = 'buffer' },
|
{ name = 'buffer' },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
{ name = 'nvim_lua' },
|
{ name = 'nvim_lua' },
|
||||||
{ name = 'emoji' },
|
}),
|
||||||
}),
|
|
||||||
highlight = {
|
|
||||||
default = "Subtle"
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user