mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-19 05:24:22 +00:00
chore: drop injection comments
This commit is contained in:
parent
cd9c79b8cd
commit
6e4065cfbc
2 changed files with 15 additions and 23 deletions
|
|
@ -54,13 +54,10 @@ in {
|
||||||
# event = ["InsertEnter" "CmdlineEnter"];
|
# event = ["InsertEnter" "CmdlineEnter"];
|
||||||
|
|
||||||
after =
|
after =
|
||||||
# lua
|
optionalString (config.vim.lazy.enable && cmpCfg.enable)
|
||||||
''
|
(concatStringsSep "\n" (map
|
||||||
${optionalString (config.vim.lazy.enable && cmpCfg.enable)
|
(package: "require('lz.n').trigger_load(${toLuaObject (getPluginName package)})")
|
||||||
(concatStringsSep "\n" (map
|
cmpCfg.sourcePlugins));
|
||||||
(package: "require('lz.n').trigger_load(${toLuaObject (getPluginName package)})")
|
|
||||||
cmpCfg.sourcePlugins))}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -111,18 +108,16 @@ in {
|
||||||
next = [
|
next = [
|
||||||
"select_next"
|
"select_next"
|
||||||
"snippet_forward"
|
"snippet_forward"
|
||||||
(mkLuaInline
|
(mkLuaInline ''
|
||||||
# lua
|
function(cmp)
|
||||||
''
|
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
||||||
function(cmp)
|
has_words_before = col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
|
||||||
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
|
if has_words_before then
|
||||||
return cmp.show()
|
return cmp.show()
|
||||||
end
|
|
||||||
end
|
end
|
||||||
'')
|
end
|
||||||
|
'')
|
||||||
"fallback"
|
"fallback"
|
||||||
];
|
];
|
||||||
previous = [
|
previous = [
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,9 @@
|
||||||
uiKindSetupOpts =
|
uiKindSetupOpts =
|
||||||
if config.vim.theme.enable && config.vim.theme.name == "catppuccin"
|
if config.vim.theme.enable && config.vim.theme.name == "catppuccin"
|
||||||
then {
|
then {
|
||||||
ui.kind =
|
ui.kind = mkLuaInline ''
|
||||||
mkLuaInline
|
require("catppuccin.groups.integrations.lsp_saga").custom_kind()
|
||||||
# lua
|
'';
|
||||||
''
|
|
||||||
require("catppuccin.groups.integrations.lsp_saga").custom_kind()
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
else {};
|
else {};
|
||||||
in {
|
in {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue