擴充功能(NeoVim)
快捷鍵
顏色主題
浮動狀態列
行背景色顯示目前模式
插件組合
mini.icons
nvim-web-devicons
terminal
<C-/>:進入terminal
terminal中雙擊Esc:回到Normal mode
Normal mode
q:關閉
gf:開啟錨點檔案
explorer
code:snacks.lua
-- ...
picker = {
enabled = true,
sources = {
explorer = {
focus = "list",
auto_close = true,
}
}
},
-- ...
:Noice:查看歷史訊息
收納層疊
code:nvim-ufo.lua
return {
"kevinhwang91/nvim-ufo",
dependencies = {
"kevinhwang91/promise-async",
},
config = function(_, opts)
vim.o.foldcolumn = '1'
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
vim.o.foldenable = true
vim.keymap.set('n', 'zR', require('ufo').openAllFolds, { desc = "Open all folds" })
vim.keymap.set('n', 'zM', require('ufo').closeAllFolds, { desc = "Close all folds" })
vim.keymap.set('n', 'zK', function()
local winid = require('ufo').peekFoldedLinesUnderCursor()
if not winid then
vim.lsp.buf.hover()
end
end, { desc = "Peek Fold" })
require('ufo').setup({
provide_selector = function(bufnr, filetype, buftype)
return { 'lsp', 'indent' }
end
})
end
}
複製檔案路徑