lazypath,})end vim.opt.rtp:prepend(lazypath)--2.安装插件require("lazy").setup({--所有插件的安装都在这里--颜色主题插件Colorscheme,这个看个人爱好{"folke/tokyonight.nvim",lazy=false,priority=1000,opts={}},--文件管理器{"nvim-tree/nvim-tree.
因为自己从没遇到过这样的现象:set binaryset noendofline我來解釋一下@pansz和@萧井陌二人回答的意思。
问在vim(nvim)/treesitter中突出显示TODO永久EN要为突出显示组永久添加此链接,可以使用Neovimnvim_set_...
end_of_line) vim.keymap.set('!', '<M-d>', readline.kill_word) vim.keymap.set('!', '<M-BS>', readline.backward_kill_word) vim.keymap.set('!', '<C-w>', readline.unix_word_rubout) vim.keymap.set('!', '<C-k>', readline.kill_line) vim.keymap.set('!', '<C-u>', ...
unpack local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil end local luasnip = require("luasnip") local cmp = require("cmp") cmp.setup({ snippet = {...
nvim ~/.config/nvim/after/plugin/lualine.lua local status, lualine = pcall(require, "lualine") if (not status) then return end lualine.setup { options = { icons_enabled = true, theme = "auto", component_separators = {left = " ", right = " "}, section_separators = {left = ...
Three options for display virtual text: above the line, end of line or near with textwidth; Works with LSP servers even client do not support textDocument/codeLens feature; Fully customizable: can be customized for different languages or use with default config for all; Ignores unnecessary reque...
最近用 vim-go 编写 go 代码,编辑你的vimrc call plug#begin('~/.vim/plugged') Plug 'fatih/vim-go' Plug 'neoclide/coc.nvim', {'branch': 'release'} call plug#end() 重启vim 之后执行 :PlugInstall 就安装完成了,过程比较简单。vim-go 插件需要安装 go 工具,执行 :GoInstallBinaries。(go ...
Configuring lualine in init.vim All the examples below are in lua. You can use the same examples in.vimfiles by wrapping them in lua heredoc like this: lua<< ENDrequire('lualine').setup() END For more information, check out:help lua-heredoc. ...
nvim ~/.config/nvim/after/plugin/bufferline.lua local status, bufferline = pcall(require, "bufferline") if (not status) then return end vim.opt.termguicolors = true bufferline.setup { options = { --numbers = "ordinal" | "buffer_id" | "both" | function({ ordinal, id, lower, ra...