Skip to content

Commit

Permalink
flake.lock: update
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Mar 7, 2024
1 parent 53e0468 commit c76ee4b
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 105 deletions.
114 changes: 57 additions & 57 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 40 additions & 43 deletions modules/home/cli-apps/neovim/completion.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,46 @@ _: {
options.completeopt = [ "menu" "menuone" "noselect" ];

plugins = {
cmp = {
enable = true;
autoEnableSources = true;

settings = {
mapping = {
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
"<C-Space>" = "cmp.mapping.complete()";
"<C-e>" = "cmp.mapping.close()";
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
"<CR>" = "cmp.mapping.confirm({ select = true })";
};

snippet.expand = "luasnip";

sources = [
{
name = "buffer";
# Words from other open buffers can also be suggested.
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
}
{ name = "calc"; }
{ name = "cmdline"; }
{ name = "codeium"; }
{ name = "emoji"; }
{ name = "fish"; }
{ name = "git"; }
{ name = "luasnip"; }
{ name = "neorg"; }
{ name = "npm"; }
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "tmux"; }
{ name = "zsh"; }
];
};
};

luasnip.enable = true;

lspkind = {
Expand All @@ -24,49 +64,6 @@ _: {
};
};
};

nvim-cmp = {
enable = true;

snippet.expand = "luasnip";

mapping = {
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
"<C-Space>" = "cmp.mapping.complete()";
"<C-e>" = "cmp.mapping.close()";
"<Tab>" = {
modes = [ "i" "s" ];
action = "cmp.mapping.select_next_item()";
};
"<S-Tab>" = {
modes = [ "i" "s" ];
action = "cmp.mapping.select_prev_item()";
};
"<CR>" = "cmp.mapping.confirm({ select = true })";
};

sources = [
{
name = "buffer";
# Words from other open buffers can also be suggested.
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
}
{ name = "calc"; }
{ name = "cmdline"; }
{ name = "codeium"; }
{ name = "emoji"; }
{ name = "fish"; }
{ name = "git"; }
{ name = "luasnip"; }
{ name = "neorg"; }
{ name = "npm"; }
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "tmux"; }
{ name = "zsh"; }
];
};
};
};
}
7 changes: 4 additions & 3 deletions modules/home/cli-apps/neovim/plugins/markdown-preview.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ _: {
plugins.markdown-preview = {
enable = true;

autoClose = false;

theme = "dark";
settings = {
auto_close = false;
theme = "dark";
};
};

keymaps = [
Expand Down
Loading

0 comments on commit c76ee4b

Please sign in to comment.