Compare commits

..

No commits in common. "446226f01697d30061ccbda3bf2bfebb3258116a" and "8f354c69ea4f44497168947464ffc7417cdd799b" have entirely different histories.

3 changed files with 7 additions and 19 deletions

View File

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

View File

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

View File

@ -22,6 +22,11 @@ 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";