diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-01-25 08:37:16 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-01-25 08:37:16 +0900 |
| commit | 7581e7166b4879b1e787724b488e24aa03fa2cbf (patch) | |
| tree | c460849fcfe1cdeea1bb67fd95a6a7dbd1f1846b | |
| parent | b385322fb86cdb3cb7c5c9fbd147ec35e6f77148 (diff) | |
| download | dotfiles-7581e7166b4879b1e787724b488e24aa03fa2cbf.tar.gz dotfiles-7581e7166b4879b1e787724b488e24aa03fa2cbf.tar.zst dotfiles-7581e7166b4879b1e787724b488e24aa03fa2cbf.zip | |
nvim: setup setcellwidths() for UDEV Gothic
| -rw-r--r-- | .config/nvim/lua/init/05-appearance.lua | 9 | ||||
| -rw-r--r-- | flake.lock | 6 | ||||
| -rw-r--r-- | home-manager/modules/common.nix | 3 |
3 files changed, 15 insertions, 3 deletions
diff --git a/.config/nvim/lua/init/05-appearance.lua b/.config/nvim/lua/init/05-appearance.lua index 874f59a..298e6c8 100644 --- a/.config/nvim/lua/init/05-appearance.lua +++ b/.config/nvim/lua/init/05-appearance.lua @@ -10,6 +10,15 @@ local vimrc = require('vimrc') vim.g._ts_force_sync_parsing = true +-- EAW {{{1 + +-- See ../../../../home-manager/modules/common.nix for setcellwidths.lua +pcall(function() + local config_home = require('vimrc.my_env').config_home + loadfile(config_home .. '/vim/setcellwidths.lua')().setcellwidths() +end) + + -- Statusline {{{1 O.statusline = '%!v:lua.vimrc.statusline.build()' @@ -63,11 +63,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1769262885, - "narHash": "sha256-v7lyykccnCFUa7RMz8VH6P8GhWG7LHBl0wS68rfA3Rg=", + "lastModified": 1769296099, + "narHash": "sha256-/GznOxzD8aE8J2rptD5FC2TThLhvguGQfwbkkaAYas8=", "owner": "nsfisis", "repo": "nur-packages", - "rev": "d2aa71281c6a95ad112e1371ab7ddd912a4d99c3", + "rev": "199bd1ea9c452a540a8011114e3cee2c44e30ff7", "type": "github" }, "original": { diff --git a/home-manager/modules/common.nix b/home-manager/modules/common.nix index 0cf2e1c..44e4884 100644 --- a/home-manager/modules/common.nix +++ b/home-manager/modules/common.nix @@ -101,6 +101,9 @@ in ".config/sh/claude-code.sh".source = ../config/sh/claude-code.sh; ".config/skk/jisyo.L".source = "${pkgs.skkDictionaries.l}/share/skk/SKK-JISYO.L"; ".config/vim/vimrc".source = ../../.config/vim/vimrc; + # TODO: Place this file under .config/nvim/lua/vimrc. + # Home Manager currently does not support merge a directory and files inside it. + ".config/vim/setcellwidths.lua".source = "${nurpkgs.nvim-setcellwidths-table-for-udev-gothic}/setcellwidths.lua"; ".local/share/fonts/SourceHanCodeJP-Bold.otf".source = "${pkgs.source-han-code-jp}/share/fonts/opentype/SourceHanCodeJP-Bold.otf"; ".local/share/fonts/SourceHanCodeJP-BoldIt.otf".source = |
