24.05: Buildable

This commit is contained in:
Geoffrey Frogeye 2024-06-01 18:22:50 +02:00
parent fe33f30bce
commit 71385d9ba9
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
13 changed files with 329 additions and 256 deletions

View file

@ -19,33 +19,29 @@
};
# Completion
nvim-cmp = {
cmp = {
enable = true;
mapping = {
# Proposed example, since there's no default
"<C-Space>" = "cmp.mapping.complete()";
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-e>" = "cmp.mapping.close()";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<S-Tab>" = {
action = "nvim_cmp_stab";
modes = [ "i" "s" ];
};
"<Tab>" = {
action = "nvim_cmp_tab";
modes = [ "i" "s" ];
settings = {
mapping = {
# Proposed example, since there's no default
"<C-Space>" = "cmp.mapping.complete()";
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-e>" = "cmp.mapping.close()";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
};
sources = [
# Respective plugins will get installed automatically
{ name = "buffer"; }
{ name = "calc"; }
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "luasnip"; }
];
snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
};
sources = [
# Respective plugins will get installed automatically
{ name = "buffer"; }
{ name = "calc"; }
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "luasnip"; }
];
snippet.expand = "luasnip";
};
lspkind.enable = true; # Add icons to LSP completions
};

View file

@ -12,9 +12,7 @@
vim = "nvim";
};
programs.nixvim = {
# Required, otherwise light mode becomes a default dark theme.
colorschemes.base16.colorscheme = "solarized-${config.stylix.polarity}";
colorschemes.base16.setUpBar = false; # We want the custom theme for lualine, probably
options = {
ignorecase = true;
smartcase = true;

View file

@ -68,7 +68,7 @@
nvim-lightbulb = {
# Shows a lightbulb whenever a codeAction is available under the cursor
enable = true;
autocmd.enabled = true;
settings.autocmd.enabled = true;
};
};
};