Skip to content

Commit

Permalink
整理归纳备忘,删除关于arch和neovim文章
Browse files Browse the repository at this point in the history
  • Loading branch information
LingLambda committed Dec 20, 2024
1 parent 80c17ea commit 2e0e0da
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 92 deletions.
45 changes: 0 additions & 45 deletions _posts/2024-11-24-关于archlinux.md

This file was deleted.

42 changes: 0 additions & 42 deletions _posts/2024-11-26-关于neovim.md

This file was deleted.

73 changes: 68 additions & 5 deletions _posts/2024-11-26-杂项备忘.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
---
layout: post
title: 杂项备忘
title: 备忘
date: 2024-11-26 18:24
description: 本文记录一些杂项备忘
description: 本文记录一些平时遇到的问题汇总用作备忘
category: 记录
image: "../images/arch1.jpg"
tags:
- git
- archlinux
- neovim
- linux
published: true
sitemap: true
---
## 1. 杂项

## 1. git每次push都要输入用户名token
### 1. git每次push都要输入用户名token

`git config --global credential.helper store` 将登陆过的用户名和token永久保存在`~/.git-credentials`中。

## 2. `git status`中文显示乱码
### 2. `git status`中文显示乱码

`Git`有一个设置叫做`core.quotepath`,它控制 git 是否将文件路径中的非 ASCII 字符(如中文)
转义为类似 `\356\205` 这样的形式。默认情况下,`Git` 会将非 ASCII 字符转义以确保兼容性。

使用`git config --global core.quotepath false`关闭转义。

## 3. element-desktop 应用使用代理
### 3. element-desktop 应用使用代理

该方法适用于任何electron应用

Expand All @@ -32,3 +37,61 @@ sitemap: true
如果使用plasma桌面环境,可在菜单编辑器中如下图配置,并点击左上角保存

![element_proxy](../images/element_proxy.png)

## 2. archlinux

### 1. nvidia,nvidia-open驱动都无法调用显卡

如果你不是`linux`内核或者`linux-lts`内核,你需要安装`linux-dkms`

### 2. 检测不到音频设备,音频无声

检查是否安装了`linux-headers``alsa-firmware`,一些较新型号
的笔记本电脑(2019年底/2021)需要`sof-firmware`
`alsa-ucm-conf`,它们使用 Sound Open Firmware
提供的固件实现驱动程序。安装完成后重启电脑。
[来源](https://wiki.archlinuxcn.org/wiki/ALSA#%E6%8E%92%E9%99%A4ALSA%E6%95%85%E9%9A%9C)

### 3. qq中无法使用fcitx输入法

编辑 /usr/bin/linuxqq 在该启动脚本第一行加上

`export GTK_IM_MODULE=fcitx`

### 4. “电源管理方案”无法调整,调整会回弹回平衡

安装 `powerdevil`包和`power-profiles-daemon`包,
启动`power-profiles-daemon`的systemd服务
`systemctl enable power-profiles-daemon`)然后重启
[archlinux-电源管理](https://wiki.archlinuxcn.org/wiki/%E7%94%B5%E6%BA%90%E7%AE%A1%E7%90%86)

### 5. 使用wqy-microhei时,韩文字体堆叠在一块,不正常显示

该字体有缺陷,安装`wqy-microhei-kr-patched `(aur)字体包可修复

## 3. neovim/lazyvim

### 1. lazyvim不要求,但不安装会缺胳膊少腿的软件包

|-------------|--------------------------------------------|
| `lazygit` |*提供lazyvim内图形化git支持,本身也很好用*|
| `luarocks` |*必须依赖*|
| `xclip``xsel` |*剪贴板支持*|
| `nodejs` `npm` |*安装某些Mason需要*|
| `unzip` |*安装某些Mason需要*|
|`ripgrep`|搜索工具|
|`fd`|搜索工具|
|`tree-sitter`|语法解析高亮工具|
|`fzf`||

### 2. neovim在kde环境下无法访问剪贴板

安装xclip即可,然后在neovim中用指令(如yy,dd)复制剪切都会进kde的剪贴板

### 3. 安装Mason后仍不能格式化或补全,右上角出现红色提示

输入`:LazyExtras`移动到推荐的插件上按`x`,退出重进会自动安装插件

### 4. quickfix一直为空

这是正常情况,一般lsp都使用`<leader>ca`修复

0 comments on commit 2e0e0da

Please sign in to comment.