M config/plugins/cmp.nix => config/plugins/cmp.nix +4 -4
@@ 1,6 1,6 @@
{
opts = {
- completeopt = [ "menu" "menuone" "noselect"];
+ completeopt = ["menu" "menuone" "noselect"];
};
extraConfigLua = ''
vim.opt.shortmess:append "c"
@@ 10,9 10,9 @@
enable = true;
settings = {
sources = [
- { name = "nvim_lsp"; }
- { name = "async_path"; }
- { name = "buffer"; }
+ {name = "nvim_lsp";}
+ {name = "async_path";}
+ {name = "buffer";}
];
mapping = {
"<C-n>" = "cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert }";
M config/plugins/silicon.nix => config/plugins/silicon.nix +11 -11
@@ 20,32 20,32 @@
pad_vert = 40,
no_window_controls = true,
line_offset = function(args)
- return args.line1
- end,
+ return args.line1
+ end,
shadow_blur_radius = 24,
shadow_offset_x = 0,
shadow_offset_y = 0,
to_clipboard = true,
window_title = function()
- return vim.fn.fnamemodify(
- vim.api.nvim_buf_get_name(vim.api.nvim_get_current_buf()),
- ":t"
- )
- end,
+ return vim.fn.fnamemodify(
+ vim.api.nvim_buf_get_name(vim.api.nvim_get_current_buf()),
+ ":t"
+ )
+ end,
output = function()
- return "~/Pictures/" .. os.date("!%Y-%m-%dT%H-%M-%SZ") .. "_code.png"
- end,
+ return "~/Pictures/" .. os.date("!%Y-%m-%dT%H-%M-%SZ") .. "_code.png"
+ end,
})
'';
keymaps = [
{
- action="<cmd>lua require('nvim-silicon').clip()<CR>";
+ action = "<cmd>lua require('nvim-silicon').clip()<CR>";
key = "<leader>sc";
options.desc = "silicon to clipboard";
}
{
- action="<cmd>lua require('nvim-silicon').file()<CR>";
+ action = "<cmd>lua require('nvim-silicon').file()<CR>";
key = "<leader>sf";
options.desc = "silicon to file";
}
M flake.nix => flake.nix +2 -3
@@ 1,8 1,8 @@
{
inputs = {
- nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
- flake-parts.url = "github:hercules-ci/flake-parts";
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixvim.url = "github:nix-community/nixvim";
+ flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs @ {
@@ 41,7 41,6 @@
buildInputs = [
nvim
- pkgs.nil
pkgs.alejandra
];
};