0%

tokyonight 主题是一个漂亮的主题,因为我在 Neovim 中成功配置好了该主题,所以也希望在 vim 上配置好 tokyonight 主题,于是有了这篇文章。由于网络访问的问题,于是决定将 tokyonight 的 README.md 文件放于此处,以供参考。

域名类型状态
https://github.ur1.fun镜像站Website
https://bgithub.xyz镜像站Website
https://git.homegu.com镜像站Website
https://kkgithub.com镜像站Website
https://hub.yzuu.cf镜像站Website
https://hub.njuu.cf镜像站Website
https://hub.fgit.cf镜像站Website
https://githubfast.com镜像站Website
https://521gitub.com镜像站Website
https://hub.fgit.mxtrans.net镜像站Website
https://hub.nuaa.cf镜像站Website
https://github.hscsec.cn镜像站Website
https://gitclone.com镜像站Website
Ghproxy加速下载站Website
99988866 API加速下载站Website

变更历史

{% note success %}

近几天需要编写一个写LaTeX的脚本,用来自动管理LaTeX文件,但是遇到了在sed命令中使用脚本的麻烦,百度之后解决问题,记录于此。

  1. 单引号中使用变量:将变量用'"$var"'表示,即单引号+双引号+变量+双引号+单引号
1
echo $(sed -n ''"$var"'p' $WMS_History)
  1. 双引号中使用变量:直接使用双引号"$var"表示,即双引号+变量+双引号
1
echo $(sed -n ""$var"p" $WMS_History)
  1. 双引号中使用花括号: 如果变量后面再加一个字母,如果不做区分则容易出错
1
echo $(sed -n "${var}p" $WMS_History)
  1. 引用符号、名称及其意义
符号名称意义
" "双引号引用除美元符号$、反引号`和反斜杠\ 之外的所有字符
’ '单引号引用所有的字符
` `反引号Shell将反引号中的内容解释为系统命令
\| 反斜杠转义符,屏蔽下一个字符的特殊意义

mason.nvim

Portable package manager for Neovim that runs everywhere Neovim runs.
Easily install and manage LSP servers, DAP servers, linters, and formatters.

:help mason.nvim

Latest version: v1.8.0

Table of Contents

-   [Introduction](#introduction)
-   [How to use installed packages](#how-to-use-installed-packages)
-   [Screenshots](#screenshots)
-   [Requirements](#requirements)
-   [Installation](#installation)
-   [Setup](#setup)
-   [Extensions](#extensions)
-   [Commands](#commands)
-   [Registries](#registries)

Introduction

> [`:h mason-introduction`][help-mason-introduction]

`mason.nvim` is a Neovim plugin that allows you to easily manage external editor tooling such as LSP servers, DAP servers,
linters, and formatters through a single interface. It runs everywhere Neovim runs (across Linux, macOS, Windows, etc.),
with only a small set of [external requirements](#requirements) needed.

Packages are installed in Neovim's data directory ([`:h standard-path`][help-standard-path]) by default. Executables are
linked to a single `bin/` directory, which `mason.nvim` will add to Neovim's PATH during setup, allowing seamless access
from Neovim builtins (shell, terminal, etc.) as well as other 3rd party plugins.

For a list of all available packages, see <https://mason-registry.dev/registry/list>.

How to use installed packages

> [`:h mason-how-to-use-packages`][help-mason-how-to-use-packages]

Although many packages are perfectly usable out of the box through Neovim builtins, it is recommended to use other 3rd
party plugins to further integrate these. The following plugins are recommended:

-   LSP: [`lspconfig`][lspconfig] & [`mason-lspconfig.nvim`][mason-lspconfig.nvim]
-   DAP: [`nvim-dap`][nvim-dap] & [`nvim-dap-ui`][nvim-dap-ui]
-   Linters: [`null-ls.nvim`][null-ls.nvim] or [`nvim-lint`][nvim-lint]
-   Formatters: [`null-ls.nvim`][null-ls.nvim] or [`formatter.nvim`][formatter.nvim]

[formatter.nvim]: https://github.com/mhartington/formatter.nvim
[lspconfig]: https://github.com/neovim/nvim-lspconfig
[mason-lspconfig.nvim]: https://github.com/williamboman/mason-lspconfig.nvim
[null-ls.nvim]: https://github.com/jose-elias-alvarez/null-ls.nvim
[nvim-dap]: https://github.com/mfussenegger/nvim-dap
[nvim-dap-ui]: https://github.com/rcarriga/nvim-dap-ui
[nvim-lint]: https://github.com/mfussenegger/nvim-lint

Screenshots

|                                                                                                                                                        |                                                                                                                                                  |                                                                                                                                        |
| :----------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------: |
|           <img alt="Main window" src="https://user-images.githubusercontent.com/6705160/177617680-d62caf26-f253-4ace-ab57-4b590595adca.png">           |                 <img src="https://user-images.githubusercontent.com/6705160/177617684-6bb4c13f-1235-4ac9-829e-120b06f7437b.png">                 | <img alt="Language filter" src="https://user-images.githubusercontent.com/6705160/177617688-8f9ba225-00c8-495c-9c4c-b74240d6f280.png"> |
| <img alt="LSP server configuration schema" src="https://user-images.githubusercontent.com/6705160/177617692-02c6ddde-a97e-42b4-bca4-4f4caf45d569.png"> | <img alt="Checking for new versions" src="https://user-images.githubusercontent.com/6705160/180648183-69077d10-8795-4da6-ba4d-57ecf0cb25c9.png"> |   <img alt="Help window" src="https://user-images.githubusercontent.com/6705160/180648292-136a0888-0fb6-4226-aa29-53bd3ffed400.png">   |

Requirements

> [`:h mason-requirements`][help-mason-requirements]

`mason.nvim` relaxes the minimum requirements by attempting multiple different utilities (for example, `wget`,
        `curl`, and `Invoke-WebRequest` are all perfect substitutes).
The _minimum_ recommended requirements are:

-   neovim `>= 0.7.0`
-   For Unix systems:
-   `git(1)`
-   `curl(1)` or `wget(1)`
-   `unzip(1)`
  • GNU tar (tar(1) or gtar(1) depending on platform)

2023年09月28日星期四晴北京市北京师范大学, 今天升级了Neovim的插件,同时又想起来解决一个彩虹括号的问题,因为在写程序和LaTeX的过程中,会出现好多配对的括号,在vim中有一个彩虹括号的插件vim-rainbow 这个功能十分诱人。但是切换到Neovim 后发现我还一直没有尝试成功,期间也努力试过,直到今天终于成功了。问题在于当初安装了nvim-treesitter, 但是要想实现对某种语言的高亮需要下载安装指定的语法模块,这个安装程序依懒nvim-treesitter-cli, 之前就是没有安装这个nvim-treesitter-cli 才导致一直没有实现这个功能。另外也可以借助Aur助手来安装高亮语言包,但是经过考虑还是选择了在Neovim内部处理的方案,唯一的缺点就是有时候访问Github不是很稳定,直接后果就是安装这些语言包容易失败。但是经过努力,今天还是成功了!

今天升级了我的Vim插件,发现打开neovim后不能正常使用了,查看帮助信息发现,是因为自动缩进插件indent-blankline升级到了v3.0, 升级后按官方说法只适用于最新的neovim,于是将其仓库克隆后把README.md贴到此处方便参考。

近期想编写一个脚本,方便书写LaTeX文档,原因是当需要写的LaTeX文件变的越来越多的时候查找和编辑最新的文件就是一个问题了,同时在不同电脑上编辑一个LaTeX文件也会出现不同步的问题。虽然我们可以通过上传到gitlab仓库解决同步的问题,但是由于每次编写文件时都要逐步查找和Pull文件,写完之后又要Push, 这些重复的工作显然需要自动执行效率都会提高。这个脚本的目的就是来统一管理和简化使用vim写作的步骤。

2023年09月15日星期五晴北京市北京师范大学, 在ArchLinux下使用pacman可以很方便的安装软件,但是一些官文源内没有且使用aur源也无法找到的软件就需要到软件官网下载对应的软件包,这里一个很方便的格式就是appimage, 原则上下载下软件包后赋与执行权限后就可以运行了,对于偶尔使用一二次的软件这个方法很省心,但是对于经学使用的软件则不方便,于是本文记录将appimage安装到gnome启动器的方法。

2023年09月15日星期五晴北京市北京师范大学, 今天我的gitlab上配置的ssh密钥已经过期,所以需要重新配置一个新的密钥。于是重新一下ssh密钥