Compare commits
3 Commits
29cd1e771b
...
446226f016
Author | SHA1 | Date | |
---|---|---|---|
446226f016 | |||
d28d7f3bad | |||
84d3d2ac6d |
@ -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,
|
||||||
|
@ -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
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user