From 87292dd44e87dcdcd37838cbf6b0e375e3846af1 Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Fri, 12 Jul 2024 06:07:30 +0200 Subject: [PATCH] Add type hints for better editor highlighting --- modules/desktop/zsh.nix | 2 +- modules/editor/vim.nix | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/desktop/zsh.nix b/modules/desktop/zsh.nix index 5f93fe5..9073cca 100644 --- a/modules/desktop/zsh.nix +++ b/modules/desktop/zsh.nix @@ -21,7 +21,7 @@ in { enableCompletion = true; autosuggestion.enable = true; syntaxHighlighting.enable = true; - initExtra = '' + initExtra = /*bash*/'' autoload -Uz up-line-or-beginning-search down-line-or-beginning-search zle -N up-line-or-beginning-search zle -N down-line-or-beginning-search diff --git a/modules/editor/vim.nix b/modules/editor/vim.nix index 2d8d152..ab5a801 100644 --- a/modules/editor/vim.nix +++ b/modules/editor/vim.nix @@ -34,7 +34,7 @@ in { cursorline = true; # Enable linematch diff algorithm - diffopt.__raw = '' + diffopt.__raw = /*lua*/ '' vim.list_extend(vim.opt.diffopt:get(), { "algorithm:histogram", "linematch:60" }) ''; @@ -93,7 +93,7 @@ in { shiftwidth = 2; # Disable search count wrap and startup messages - shortmess.__raw = '' + shortmess.__raw = /*lua*/ '' vim.tbl_deep_extend("force", vim.opt.shortmess:get(), { s = true, I = true }) ''; @@ -133,7 +133,7 @@ in { # Save undo history to undo file (in $XDG_STATE_HOME/nvim/undo) undofile = true; - viewoptions.__raw = '' + viewoptions.__raw = /*lua*/ '' vim.tbl_filter(function(val) return val ~= "curdir" end, vim.opt.viewoptions:get()) ''; @@ -179,7 +179,7 @@ in { } { key = "."; - action.__raw = '' + action.__raw = /*lua*/'' function() require("yazi").yazi() end @@ -193,7 +193,7 @@ in { } { key = "fs"; - action.__raw = '' + action.__raw = /*lua*/'' function() vim.lsp.buf.format() vim.cmd.write() @@ -396,7 +396,7 @@ in { src = inputs.vim-org-roam; }) ]; - extraConfigLua = + extraConfigLua = /*lua*/ '' require('yazi').setup({ opts = {