Compare commits

...

3 Commits

Author SHA1 Message Date
29cd1e771b
refactor(hm/price): remove nixpkgs config
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
2024-12-22 17:40:53 -06:00
7ca043bf5f
fix(nvim): properly get markview state for toggling 2024-12-22 17:40:53 -06:00
4403c8c140
fix(nvim): make blink.cmp correctly complete command line 2024-12-22 17:40:53 -06:00
3 changed files with 19 additions and 7 deletions

View File

@ -19,7 +19,7 @@ end, {
vim.keymap.set("n", "<leader>ft", function()
vim.cmd("Markview toggle")
local mview_state = markview.state.enabled and "Enabled" or "Disabled"
local mview_state = markview.state.enable and "Enabled" or "Disabled"
vim.notify(("Markview %s"):format(mview_state), vim.log.levels.INFO, { title = "Markview" })
end, {
buffer = true,

View File

@ -50,7 +50,24 @@ return {
preset = "default",
["<C-space>"] = { "show", "show_documentation", "hide_documentation" },
["<C-e>"] = { "hide", "fallback" },
["<C-CR>"] = { "accept", "fallback" },
["<CR>"] = {
function(cmp)
if vim.api.nvim_get_mode().mode:lower() == "c" then
return cmp.accept({
callback = function()
vim.api.nvim_feedkeys(
vim.api.nvim_replace_termcodes("<CR>", true, true, true),
"n",
true
)
end,
})
else
return cmp.accept()
end
end,
"fallback",
},
["<C-Tab>"] = {
function(cmp)
if cmp.snippet_active() then

View File

@ -22,11 +22,6 @@ in
{
imports = (clib.recurseFilesInDirs [ ./conf ] ".nix");
programs.home-manager.enable = true;
nixpkgs = {
config = {
allowUnfree = true;
};
};
home = {
stateVersion = "24.11";
language.base = "en_US.UTF-8";