Compare commits
No commits in common. "446226f01697d30061ccbda3bf2bfebb3258116a" and "8f354c69ea4f44497168947464ffc7417cdd799b" have entirely different histories.
446226f016
...
8f354c69ea
@ -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.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" })
|
vim.notify(("Markview %s"):format(mview_state), vim.log.levels.INFO, { title = "Markview" })
|
||||||
end, {
|
end, {
|
||||||
buffer = true,
|
buffer = true,
|
||||||
|
@ -50,24 +50,7 @@ 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" },
|
||||||
["<CR>"] = {
|
["<C-CR>"] = { "accept", "fallback" },
|
||||||
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
|
||||||
|
@ -22,6 +22,11 @@ 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";
|
||||||
|
Loading…
Reference in New Issue
Block a user