Compare commits

..

3 Commits

Author SHA1 Message Date
446226f016
refactor(hm/price): remove nixpkgs config
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 34s
2024-12-22 17:18:31 -06:00
d28d7f3bad
fix(nvim): properly get markview state for toggling 2024-12-22 17:18:18 -06:00
84d3d2ac6d
fix(nvim): make blink.cmp correctly complete command line 2024-12-22 17:17:54 -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.keymap.set("n", "<leader>ft", function()
vim.cmd("Markview toggle") 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" }) vim.notify(("Markview %s"):format(mview_state), vim.log.levels.INFO, { title = "Markview" })
end, { end, {
buffer = true, buffer = true,

View File

@ -50,7 +50,24 @@ return {
preset = "default", preset = "default",
["<C-space>"] = { "show", "show_documentation", "hide_documentation" }, ["<C-space>"] = { "show", "show_documentation", "hide_documentation" },
["<C-e>"] = { "hide", "fallback" }, ["<C-e>"] = { "hide", "fallback" },
["<C-CR>"] = { "accept", "fallback" }, ["<CR>"] = {
function(cmp)
if vim.api.nvim_get_mode().mode:lower() == "c" then
return cmp.select_and_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>"] = { ["<C-Tab>"] = {
function(cmp) function(cmp)
if cmp.snippet_active() then if cmp.snippet_active() then

View File

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