Compare commits

..

3 commits

2 changed files with 6 additions and 24 deletions

View file

@ -90,14 +90,15 @@
src = pkgs.fetchFromGitHub {
owner = "MysticalDevil";
repo = "inlay-hints.nvim";
rev = "af84dee42cd118af6d592b06c1c0e45d6432a6c0"; # 2024-08-23
hash = "sha256-DZVtFAUK9c8GInp+JdCQ1BKe0dkAheHKI67oxdMmA24=";
rev = "3259b54f3b954b4d8260f3ee49ceabe978ea5636";
hash = "sha256-99KCGoPowa4PA1jkCm4ZbbgrFl84NWnKQMgkfy8KS5E=";
};
};
type = "lua";
config = ''
require('inlay-hints').setup()
require("inlay-hints.utils").enable_inlay_hints()
require('inlay-hints').setup {
autocmd = { enable = false },
}
'';
}
@ -111,26 +112,6 @@
'';
}
# {
# plugin = pkgs.vimUtils.buildVimPlugin {
# name = "neocodeium";
# src = pkgs.fetchFromGitHub {
# owner = "monkoose";
# repo = "neocodeium";
# rev = "4da81528468b33585c411f31eb390dce573ccb14"; # v1.8.0
# hash = "sha256-1n9nNqBNwNDSzbAkm8eB4HZLNy5HmMg25jPwQAnW5OU=";
# };
# };
# type = "lua";
# config = ''
# local neocodeium =require('neocodeium')
# neocodeium.setup()
# vim.keymap.set("i", "<C-j>", neocodeium.accept, { remap = true })
# vim.keymap.set("i", "<A-f>", neocodeium.accept, { remap = true })
# vim.keymap.set("i", "<C-h>", neocodeium.cycle_or_complete, { remap = true })
# '';
# }
{
plugin = pkgs.vimUtils.buildVimPlugin {
name = "diagflow";

View file

@ -155,4 +155,5 @@ vim.keymap.set("n", "<Leader>ub", function()
vim.o.background = (vim.o.background == "light" and "dark" or "light")
end, opts("Toggle dark/light background"))
vim.keymap.set("n", "<Leader>uh", "<cmd>InlayHintsToggle<cr>", opts("Toggle inlay hints"))
vim.keymap.set("n", "<Leader>uw","<cmd>set invwrap<cr>", opts("Toggle line wrapping"))