diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-04-10 14:51:56 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-04-10 14:51:56 +0200 |
| commit | b127625d59d1cbf7a8962c1c937846b5297877c6 (patch) | |
| tree | c99130393f3c04fa313a8e33997e953645627249 /common/home/programs/nixvim | |
| parent | 2eb7439ab9b7f83fc81eb4d2299d2c764722008d (diff) | |
flake: update
Diffstat (limited to 'common/home/programs/nixvim')
| -rw-r--r-- | common/home/programs/nixvim/default.nix | 26 | ||||
| -rw-r--r-- | common/home/programs/nixvim/plugins/nvim-tree.nix | 3 |
2 files changed, 15 insertions, 14 deletions
diff --git a/common/home/programs/nixvim/default.nix b/common/home/programs/nixvim/default.nix index 4b03191..a5a0600 100644 --- a/common/home/programs/nixvim/default.nix +++ b/common/home/programs/nixvim/default.nix @@ -15,20 +15,20 @@ Info = " " } - for type, icon in pairs(signs) do - local hl = "DiagnosticSign" .. type - vim.fn.sign_define( - hl, - { - text = icon, - texthl = hl, - numhl = hl - } - ) - end + for type, icon in pairs(signs) do + local hl = "DiagnosticSign" .. type + vim.fn.sign_define(hl, { + text = icon, + texthl = hl, + numhl = hl + }) + end - vim.g.zig_fmt_autosave = 0 - ''; + vim.api.nvim_create_autocmd({'BufEnter'}, { + pattern = {'*.png'}, + command = '!setsid imv %', + }) + ''; diagnostics = { virtual_text = { diff --git a/common/home/programs/nixvim/plugins/nvim-tree.nix b/common/home/programs/nixvim/plugins/nvim-tree.nix index 896c025..16c25de 100644 --- a/common/home/programs/nixvim/plugins/nvim-tree.nix +++ b/common/home/programs/nixvim/plugins/nvim-tree.nix @@ -1,7 +1,8 @@ { ... }: { enable = true; - autoClose = true; + autoClose = false; disableNetrw = false; hijackCursor = true; + openOnSetup = true; } |