Przeglądaj źródła

nixpkgs/neovim: update flake.lock

Thomas Dy 2 lat temu
rodzic
commit
d8888241cd

+ 7 - 5
.config/nixpkgs/neovim/flake.lock

@@ -2,16 +2,18 @@
   "nodes": {
     "nixpkgs": {
       "locked": {
-        "lastModified": 1650585041,
-        "narHash": "sha256-wZAZbkHwXKKdFTrDdKiFIvAtYOgQd3qO1jSSsaWlU84=",
+        "lastModified": 1653117584,
+        "narHash": "sha256-5uUrHeHBIaySBTrRExcCoW8fBBYVSDjDYDU5A6iOl+k=",
         "owner": "NixOS",
         "repo": "nixpkgs",
-        "rev": "f53f90b66921488fb3681ac78528ce407b775590",
+        "rev": "f4dfed73ee886b115a99e5b85fdfbeb683290d83",
         "type": "github"
       },
       "original": {
-        "id": "nixpkgs",
-        "type": "indirect"
+        "owner": "NixOS",
+        "ref": "nixpkgs-unstable",
+        "repo": "nixpkgs",
+        "type": "github"
       }
     },
     "root": {

+ 4 - 0
.config/nixpkgs/neovim/flake.nix

@@ -1,6 +1,10 @@
 {
   description = "Neovim configuration";
 
+  inputs = {
+    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+  };
+
   outputs = { self, nixpkgs }:
     let
       withPkgs = system: import nixpkgs {

+ 2 - 6
.config/nixpkgs/neovim/theme.lua

@@ -1,6 +1,7 @@
 vim.o.termguicolors = true
 
 vim.g.sonokai_transparent_background = true
+vim.g.sonokai_disable_terminal_colors = true
 
 vim.api.nvim_create_autocmd('ColorScheme', {
   pattern = 'sonokai',
@@ -8,7 +9,7 @@ vim.api.nvim_create_autocmd('ColorScheme', {
     vim.api.nvim_set_hl(0, 'MiniIndentscopeSymbol', { link = 'Whitespace' })
 
     local configuration = vim.fn['sonokai#get_configuration']()
-    local palette = vim.fn['sonokai#get_palette'](configuration.style)
+    local palette = vim.fn['sonokai#get_palette'](configuration.style, {[vim.type_idx]=vim.types.dictionary})
 
     vim.fn['sonokai#highlight']('MiniStatuslineModeNormal', palette.black, palette.blue)
     vim.fn['sonokai#highlight']('MiniStatuslineModeCommand', palette.black, palette.yellow)
@@ -16,11 +17,6 @@ vim.api.nvim_create_autocmd('ColorScheme', {
     vim.fn['sonokai#highlight']('MiniStatuslineModeVisual', palette.black, palette.orange)
     vim.fn['sonokai#highlight']('MiniStatuslineModeReplace', palette.black, palette.red)
     vim.fn['sonokai#highlight']('MiniStatuslineModeOther', palette.black, palette.green)
-
-    -- reset terminal colors to default
-    for i = 0, 15 do
-      vim.g['terminal_color_' .. i] = nil
-    end
   end,
 })