{"id":20398704,"url":"https://github.com/twistoy/dotvim","last_synced_at":"2025-04-12T13:21:19.114Z","repository":{"id":45588572,"uuid":"167228776","full_name":"TwIStOy/dotvim","owner":"TwIStOy","description":"My personal neovim config","archived":false,"fork":false,"pushed_at":"2024-04-13T06:17:16.000Z","size":2701,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T02:52:10.359Z","etag":null,"topics":["lua","neovim","neovim-configuration","neovim-dotfiles","neovim-lua","nvim","ultisnippets","vim","vim-config","vim-dotfiles"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TwIStOy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-01-23T17:58:35.000Z","updated_at":"2024-04-15T05:40:24.666Z","dependencies_parsed_at":"2024-01-30T15:43:09.989Z","dependency_job_id":"cded06e9-4eba-4a2e-8207-ffb4744cab84","html_url":"https://github.com/TwIStOy/dotvim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwIStOy%2Fdotvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwIStOy%2Fdotvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwIStOy%2Fdotvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwIStOy%2Fdotvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TwIStOy","download_url":"https://codeload.github.com/TwIStOy/dotvim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571836,"owners_count":21126522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","neovim","neovim-configuration","neovim-dotfiles","neovim-lua","nvim","ultisnippets","vim","vim-config","vim-dotfiles"],"created_at":"2024-11-15T04:23:43.712Z","updated_at":"2025-04-12T13:21:19.083Z","avatar_url":"https://github.com/TwIStOy.png","language":"Lua","readme":"\u003ch1 align=\"center\"\u003edotvim\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/TwIStOy/dotvim/pulse\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/last-commit/TwIStOy/dotvim?style=for-the-badge\u0026logo=github\u0026color=7dc4e4\u0026logoColor=D9E0EE\u0026labelColor=302D41\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/TwIStOy/dotvim/blob/main/LICENSE\"\u003e\n      \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/TwIStOy/dotvim?style=for-the-badge\u0026logo=starship\u0026color=ee999f\u0026logoColor=D9E0EE\u0026labelColor=302D41\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/TwIStOy/dotvim/stargazers\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/stars/TwIStOy/dotvim?style=for-the-badge\u0026logo=apachespark\u0026color=eed49f\u0026logoColor=D9E0EE\u0026labelColor=302D41\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/TwIStOy/dotvim\"\u003e\n      \u003cimg alt=\"Repo Size\" src=\"https://img.shields.io/github/repo-size/TwIStOy/dotvim?color=%23DDB6F2\u0026label=SIZE\u0026logo=codesandbox\u0026style=for-the-badge\u0026logoColor=D9E0EE\u0026labelColor=302D41\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003c!-- ![](https://raw.githubusercontent.com/TwIStOy/dotvim/master/screenshots/start_page.png) --\u003e\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 [nvim-cmp](https://github.com/hrsh7th/nvim-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 [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) and [fzf-lua](https://github.com/ibhagwan/fzf-lua)\n\n\u003e [!CAUTION]\n\u003e **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.9+ (nightly is better)](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-dora = ''\n    vim.loader.enable()\n    local dotpath = \"${user-dotpath}\"\n    vim.opt.rtp:prepend(dotpath)\n    require(\"dotvim\").setup()\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-dora;\n      force = true;\n    };\n    \"nvim/nix-aware.json\" = {\n      source = \"${nixAwareNvimConfig}/nix-aware.json\";\n      force = true;\n    };\n  };\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwistoy%2Fdotvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwistoy%2Fdotvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwistoy%2Fdotvim/lists"}