From bcc432ba90547d5b98c7b851a04566d97ce69062 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Wed, 23 Apr 2025 18:30:49 +0300 Subject: [PATCH] chore: fmt --- config/plugins/cmp.nix | 8 ++++---- config/plugins/silicon.nix | 22 +++++++++++----------- flake.nix | 5 ++--- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/config/plugins/cmp.nix b/config/plugins/cmp.nix index 47ff1d0..d5c1cdb 100644 --- a/config/plugins/cmp.nix +++ b/config/plugins/cmp.nix @@ -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 = { "" = "cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert }"; diff --git a/config/plugins/silicon.nix b/config/plugins/silicon.nix index 16fc418..1455b96 100644 --- a/config/plugins/silicon.nix +++ b/config/plugins/silicon.nix @@ -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="lua require('nvim-silicon').clip()"; + action = "lua require('nvim-silicon').clip()"; key = "sc"; options.desc = "silicon to clipboard"; } { - action="lua require('nvim-silicon').file()"; + action = "lua require('nvim-silicon').file()"; key = "sf"; options.desc = "silicon to file"; } diff --git a/flake.nix b/flake.nix index 1cbd78f..44a2e02 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ]; }; -- 2.44.1