#My neovim
My config on github.
There is a site of my config, for fun.
I’m using nvim as a code editor, mainly for latex and markdown.
##Usage
###latex
using vimtex to detect math environment, and texlab lsp to complie.
cmp blink.cmp and ultisnips luasnip to enhance editing.
check this wiki.
###markdown
mkdnflow to enhance.
leadermp to open markdown-preview This is not necessary. Just render it in the terminal.
##Detail Configure
###options
in /lua/config/options.lua
###lsp
Config lsp by native nvim. Steal serval functions from nvim-lspconfig.
###plugins
I am using lazy.nvim as my plugins manager. Plugins are divided in serval classes, and following are some of mostly used plugins:
- edit: enhance for editing
mini.surround,- kylechui/nvim-surround
- mini.align,
- mini.splitjoin, gJ and gK to split or joint
- treej
- fcitx.nvim, 中文输入自动切换
- nvim-autopairs,
zen-mode.nvimzen mode, focus on editing snacks.nvim- undotree, like a temporary git
- vim-translator, translate words
- hop.nvim, jump anywhere
nvim-cmp,cmp-nvim-ultisnips, commute ultisnips with cmpcmp-nvim-lsp, lsp sourcecmp-buffer, source from other bufferscmp-path, path source- blink.cmp
- ultisnips, snippets
- copilot.lua, copilot source
- editor: enhance for latex and markdown
- vimtex, for latex
- markdown-preview.nvim, preview md in browser
- markview.nvim
render-markdown,render md in nvim- mkdnflow.nvim, help edit list, table etc in nvim
- git: using git in nvim
- gitsigns.nvim, show git status at left, jump by hunks
- diffview.nvim, show diff with history files
- neogit
- lsp:
nvim-lspconfig, Configure lspmason.nvim, install lspglance.nvim, jump by definitions, references etc- outline.nvim, jump by symbols etc
- file explorer:
neo-tree.nvim, file tree- yazi.nvim, yazi (tui file manager) in float terminal
- snacks.picker.explorer, part of snacks.nvim
- mini.files
- fuzzy finder
telescope.nvim,- snacks.picker, part of snacks.nvim
- ui:
- nightfox.nvim, my theme
-
nvim-colorizer.lua, show color like
#123dfe - lualine.nvim, modeline, bufferline etc
- hlchunk.nvim, show indent line etc
- enhance native functions:
- lazy.nvim, plugin manager
-
wilder.nvim,
:cmd and/search - which-key.nvim, show leader key sequence
- nvim-spectre, search and replace
- vim-startuptime, show start up time
- suda.vim, sudo write files