{ key = "i", action = "toggle_custom" }, -- 对应 filters 中的 custom (node_modules) { key = ".", action = "toggle_dotfiles" }, -- Hide (dotfiles) -- 文件操作 { key = "<F5>", action = "refresh" }, { key = "a", action = "create" }, { key = "d", action =...
vim.api.nvim_create_autocmd("FileType", { pattern = { "sql", "mysql", "plsql" }, command = [[ lua require('cmp').setup.buffer({ sources = { { name = 'vim-dadbod-completion' } } }) ]] }) 下面是具体效果。 0 总结 目前来说这个数据库UI的插件可以满足基础开发。未来遇到问题再...
https://synic.dev/article/2024-12-07/bringing-easymotion-back-to-neovim {"smoka7/hop.nvim",version="*",opts={keys="etovxpdygfblzhckisuran;,",quit_key="q"},config=function(_,opts)localhop=require("hop")hop.setup(opts)--Create custom command for hopping to character/word matchesvim....
local status, bufferline = pcall(require, "bufferline") if not status then vim.notify("没有找到 bufferline") return end -- bufferline 配置 -- https://github.com/akinsho/bufferline.nvim#configuration bufferline.setup({ options = { -- 关闭 Tab 的命令,这里使用 moll/vim-bbye 的 :Bdele...
同样的,vim.api.nvim_buf_del_user_command() 也把buffer 编号作为第一个参数,0 代表当前的 buffer。 vim.api.nvim_buf_del_user_command(4, 'Upper') 更多信息请参见: :help nvim_create_user_command :help 40.2 :help command-attributes Caveats -complete=custom 属性自动选出合适的候选补全并且支持...
key ="i", action ="toggle_custom"}, -- 对应 filters 中的 custom (node_modules) { key =".", action ="toggle_dotfiles"}, -- Hide (dotfiles) -- 文件操作 { key ="<F5>", action ="refresh"}, { key ="a", action ="create"}, ...
The first thing you’ll see is a section titled LEADER. Here, twoleaderkeys are defined. You can use them to create personalized shortcuts by binding keys to custom commands. Feel free to change these values to whatever you’d like by replacing the character inside the string. ...
Can create/delete/rename/copy/move files/directories inside and across directories. prichrd/netrw.nvim - Add icons and custom keybindings to netrw. neotree-file-nesting-config - Pre-defined file nesting rules for neo-tree.nvim. Project pluffie/neoproj - Small yet powerful project (and ...
sh -c'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' 这样,这个~/.local/share/nvim/site/autoload/plug.vim就会在你的目录下,并且vim会被调用。
on_create = fun(t: Terminal),-- function to run when the terminal is first createdon_open = fun(t: Terminal),-- function to run when the terminal openson_close = fun(t: Terminal),-- function to run when the terminal closeson_stdout = fun(t: Terminal, job: number, data:string[]...