{
  "markdown": "<h1 align=\"center\">dotvim</h1>\n\n<p align=\"center\">\n    <a href=\"https://github.com/TwIStOy/dotvim/pulse\">\n      <img src=\"https://img.shields.io/github/last-commit/TwIStOy/dotvim?style=for-the-badge&logo=github&color=7dc4e4&logoColor=D9E0EE&labelColor=302D41\"/></a>\n    <a href=\"https://github.com/TwIStOy/dotvim/blob/main/LICENSE\">\n      <img alt=\"License\" src=\"https://img.shields.io/github/license/TwIStOy/dotvim?style=for-the-badge&logo=starship&color=ee999f&logoColor=D9E0EE&labelColor=302D41\" /></a>\n    <a href=\"https://github.com/TwIStOy/dotvim/stargazers\">\n      <img src=\"https://img.shields.io/github/stars/TwIStOy/dotvim?style=for-the-badge&logo=apachespark&color=eed49f&logoColor=D9E0EE&labelColor=302D41\"/></a>\n    <a href=\"https://github.com/TwIStOy/dotvim\">\n      <img alt=\"Repo Size\" src=\"https://img.shields.io/github/repo-size/TwIStOy/dotvim?color=%23DDB6F2&label=SIZE&logo=codesandbox&style=for-the-badge&logoColor=D9E0EE&labelColor=302D41\" /></a>\n</p>\n\n<!-- ![](https://raw.githubusercontent.com/TwIStOy/dotvim/master/screenshots/start_page.png) -->\n\n# ✨Features\n\n- Blazing fast startup time with [lazy.nvim](https://github.com/folke/lazy.nvim)\n- Language Server Protocol with [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)\n- Resolving plugins installed by [nix](https://github.com/NixOS/nixpkgs)\n- Resolving lsp servers and formatters from [nix](https://github.com/NixOS/nixpkgs) or [mason.nvim](https://github.com/williamboman/mason.nvim)\n- Autocompletion with [blink.cmp](https://github.com/saghen/blink.cmp)\n- Formatting with [conform.nvim](https://github.com/stevearc/conform.nvim)\n- Treesitter related snippets with [LuaSnip](https://github.com/L3MON4D3/LuaSnip) and [luasnip-snipepts](https://github.com/TwIStOy/luasnip-snippets)\n- Fuzzy find with [snacks.nvim](https://github.com/folke/snacks.nvim)\n\n> [!CAUTION]\n> **Please use my configuration with care and understand what will happen before using it. If you are looking for a more general configuration, see [dora.nvim](https://github.com/TwIStOy/dora.nvim)**\n\n# ⚡️Requirements\n\n1. [Neovim 0.10+](https://github.com/neovim/neovim)\n1. Nerd Fonts\n    - Any nerd font to show glyph correctly.\n    - Or using font fallback([kitty](https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.symbol_map), [wezterm](https://wezfurlong.org/wezterm/config/lua/wezterm/font_with_fallback.html)) if terminal supports that.\n1. Node\n    - Needed by [copilot.lua](https://github.com/zbirenbaum/copilot.lua)\n1. Terminal with true color and graphic protocol support, recommand [Kitty](https://sw.kovidgoyal.net/kitty/binary/)\n1. (Optional) [rime_ls](https://github.com/wlh320/rime-ls): [RIME](https://github.com/rime) as [LSP](https://microsoft.github.io/language-server-protocol/specifications/specification-current)\n1. Optional Requirements\n    - [ripgrep](https://github.com/BurntSushi/ripgrep)\n    - [fd](https://github.com/sharkdp/fd)\n    - [delta](https://github.com/dandavison/delta)\n    - [bat](https://github.com/sharkdp/bat)\n\n\n# 📦Installation\n\n## Non-nix\n\n```\n$ ln -s /path/to/dotvim ~/.dotvim\n$ mkdir -p ~/.config/nvim\n$ cp ~/.dotvim/init.lua ~/.config/nvim/init.lua\n```\n\n## Nix\n\n```nix\n{\n  config,\n  lib,\n  pkgs,\n  pkgs-unstable,\n  nur-hawtian,\n  ...\n}: let\n  user-dotpath = \"${config.home.homeDirectory}/.dotvim\";\n\n  plugins = {\n    inherit (nur-hawtian.packages.${pkgs.system}.vimPlugins) gh-actions-nvim;\n    inherit (pkgs-unstable.vimPlugins) telescope-fzf-native-nvim;\n    inherit (pkgs-unstable.vimPlugins) markdown-preview-nvim;\n  };\n\n  bins = with pkgs-unstable; {\n    inherit fzf stylua lua-language-server statix;\n    clangd = llvmPackages_17.clang-unwrapped;\n    clang-format = llvmPackages_17.clang-unwrapped;\n    inherit (python312Packages) black;\n    inherit (pkgs) rust-analyzer rustfmt;\n  };\n\n  nixAwareNvimConfig = pkgs.stdenv.mkDerivation {\n    name = \"nix-aware-nvim-config\";\n\n    buildInputs =\n      (lib.mapAttrsToList (_: pkg: pkg) plugins)\n      ++ (lib.mapAttrsToList (_: pkg: pkg) bins);\n\n    phases = [\"installPhase\"];\n\n    nixAwareNvimConfigJson =\n      pkgs.writeText\n      \"nixAwareNvimConfig.json\"\n      (builtins.toJSON {\n        pkgs = plugins;\n        bin = lib.mapAttrs (name: pkg: \"${pkg}/bin/${name}\") bins;\n        try_nix_only = true;\n      });\n\n    installPhase = ''\n      mkdir -p $out\n      cp $nixAwareNvimConfigJson $out/nix-aware.json\n    '';\n  };\n\n  init-dotvim = ''\n    vim.loader.enable()\n    local dotpath = \"${user-dotpath}\"\n    vim.opt.rtp:prepend(dotpath)\n    require(\"dotvim.starts\")\n  '';\nin {\n  home.packages = with pkgs; [\n    python3.pkgs.pynvim\n    nodePackages.neovim\n    tree-sitter\n    nixAwareNvimConfig\n  ];\n\n  programs.neovim = {\n    enable = true;\n    package = pkgs.neovim-nightly;\n    plugins = builtins.attrValues plugins;\n  };\n\n  xdg.configFile = {\n    \"nvim/init.lua\" = {\n      text = init-dotvim;\n      force = true;\n    };\n    \"nvim/nix-aware.json\" = {\n      source = \"${nixAwareNvimConfig}/nix-aware.json\";\n      force = true;\n    };\n  };\n}\n```\n",
  "bytes": 4997,
  "sha": "2712e5987fc97d01a19eff0e80b61fb53a768bcc1c83e48529eb8ede5d8fe765",
  "repo_slug": "twistoy/dotvim",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/skl_twistoy_dotvim_data_config_neovim_main_35589ddf/readme"
}