"first build the *.c, *.cpp,.sh,.sh and auto insert file headers autocmd BufNewFile.cpp,.[ch],.sh,.java exec ":call SetTitle()" func SetTitle() "shell: if &filetype == 'sh' call setline(1,"###") call append(line("."), "# File Name: ".expand("%")) call append(li...
{ 'filename', file_status = true, -- display file status path = 1 -- 0 = just filename } }, lualine_x = { { 'diagnostics', --显示诊断信息,这里相关插件还未配置 source = { 'nvim_diagnostics' }, symbols = { error = ' ', warn = ' ', info = ' ', hint = ...
exists('g:loaded_defx') | finish | endif " Define mappings "cnoreabbrev sf Defx -listed -new " \ -columns=indent:mark:icon:icons:filename:git:size " \ -buffer-name=tab`tabpagenr()`<CR> nnoremap <silent>sf :<C-u>Defx -listed -resume \ -columns=indent:mark:icon:icons:filename:...
" Create markmap from the whole file nmap <Leader>m <Plug>(coc-markmap-create) " " Create markmap from the selected lines vmap <Leader>m <Plug>(coc-markmap-create-v)" Plug 'godlygeek/tabular' "必要插件,安装在vim-markdown前面 Plug 'plasticboy/vim-markdown' Plug 'dkarter/bullets.vim' ...
If you want to show some new data point related to your files, gather it in the before_render event, create a component to display it, and reference that component in the renderer for the file and/or directory type.Details on how to configure everything is in the help file at :h neo...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
.api.nvim_create_autocmd("FileType", { pattern = "tex", callback = function() vim.fn.writefile( {vim.fn.execute(":echo v:servername", "silent")}, "/tmp/vimtexserver.txt") end, }) 1. 2. 3. 4. 5. 6. 7. 8. 在skim中配置如下: ...
vim.api.nvim_create_user_command( 'Upper', function(opts) print(string.upper(opts.args)) end, { nargs = 1 } ) 第三个参数是一个包含命令属性的 table(请参见 :help command-attributes)。值得注意的是,由于你可以使用 vim.api.nvim_buf_create_user_command() 来创建 buffer-local 的用户命令,...
autocmd BufNewFile *.txt set ft=confluencewiki autocmd BufEnter *.txt set ft=confluencewiki set cursorline "hi CursorLine ctermbg=darkgrey set cursorcolumn set autoindent set wrap set nu set relativenumber set tabstop=2 ...
"@jest/create-cache-key-function@^27.4.2": version "27.5.0" resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-27.5.0.tgz#0f713af7f9d533f3f6c31130c87cd668d1e5fd06" integrity sha512-ibNE/ngRfVJj4y5cf9QnBbVKovO44Hfw13mEVSJcO1+...