chore: drop injection comments

This commit is contained in:
Snoweuph 2026-04-19 18:08:43 +02:00
commit 6e4065cfbc
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
2 changed files with 15 additions and 23 deletions

View file

@ -54,13 +54,10 @@ in {
# event = ["InsertEnter" "CmdlineEnter"];
after =
# lua
''
${optionalString (config.vim.lazy.enable && cmpCfg.enable)
(concatStringsSep "\n" (map
(package: "require('lz.n').trigger_load(${toLuaObject (getPluginName package)})")
cmpCfg.sourcePlugins))}
'';
optionalString (config.vim.lazy.enable && cmpCfg.enable)
(concatStringsSep "\n" (map
(package: "require('lz.n').trigger_load(${toLuaObject (getPluginName package)})")
cmpCfg.sourcePlugins));
};
};
@ -111,18 +108,16 @@ in {
next = [
"select_next"
"snippet_forward"
(mkLuaInline
# lua
''
function(cmp)
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
has_words_before = col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
(mkLuaInline ''
function(cmp)
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
has_words_before = col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
if has_words_before then
return cmp.show()
end
if has_words_before then
return cmp.show()
end
'')
end
'')
"fallback"
];
previous = [

View file

@ -11,12 +11,9 @@
uiKindSetupOpts =
if config.vim.theme.enable && config.vim.theme.name == "catppuccin"
then {
ui.kind =
mkLuaInline
# lua
''
require("catppuccin.groups.integrations.lsp_saga").custom_kind()
'';
ui.kind = mkLuaInline ''
require("catppuccin.groups.integrations.lsp_saga").custom_kind()
'';
}
else {};
in {