{ config, ... }:
let
  accent = "#${config.lib.stylix.colors.base0D}";
  muted = "#${config.lib.stylix.colors.base03}";
in {
  programs.nixvim = {
    extraFiles."after/ftplugin/markdown.lua".text = ''
      vim.bo.tabstop = 2
      vim.bo.shiftwidth = 2
      vim.bo.expandtab = true 
    '';

    # Plugins
    plugins = {
      # Render UI elements
      render-markdown = {
        enable = true;
        settings = { completions.lsp.enabled = true; };
      };

      mkdnflow = {
        enable = true;
        mappings = {
          MkdnTableNextCell = {
            key = "<S-Tab>";
            modes = "i";
          };
          MkdnTablePrevCell = false;
        };
      };
    };
  };
}
