- nvim配置
需要配置系统剪切板。
yay wl-clipboard
~.config/nvim/init.lua
local options = {
clipboard = "unnamedplus", -- allows neovim to access the system clipboard
fileencoding = "utf-8", -- the encoding written to a file
hlsearch = true, -- highlight all matches on previous search pattern
ignorecase = true, -- ignore case in search patterns
mouse = "a", -- allow the mouse to be used in neovim
showmode = false, -- we don't need to see things like -- INSERT -- anymore
showtabline = 2, -- always show tabs
smartcase = true, -- smart case
smartindent = true, -- make indenting smarter again
swapfile = true, -- creates a swapfile
termguicolors = true, -- set term gui colors (most terminals support this)
timeoutlen = 300, -- time to wait for a mapped sequence to complete (in milliseconds)
expandtab = true, -- convert tabs to spaces
shiftwidth = 4, -- the number of spaces inserted for each indentation
tabstop = 4, -- insert 2 spaces for a tab
number = true, -- set numbered lines
wrap = true, -- display lines as one long line
guifont = "monospace:h17", -- the font used in graphical neovim applications
}
for k, v in pairs(options) do
vim.opt[k] = v
end
vim.g.gruvbox_material_transparent_background=2
vim.g.mapleader = ";"
vim.g.maplocalleader = ";"
关于剪切板的映射
local opts = { noremap = true, silent = true }
local term_opts = { silent = true }
-- Shorten function name
local keymap = vim.api.nvim_set_keymap
keymap('v', 'y', '"+y', opts)
- fcitx5
我不知道怎么导出,词频,词典。help
sudo apt install fcitx5 fcitx5-chinese-addons
把这几行加入到/etc/environment
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus
如果你是gnome用户的话,可以安装一个input method panel
gnome 配置自动启动 参考链接
- gnome config
浏览器打开这个网站 https://extensions.gnome.org/
安装你需要的插件。
sudo apt install gnome-software
- 中文化配置