aboutsummaryrefslogtreecommitdiff
path: root/lua
AgeCommit message (Collapse)Author
2021-08-12Use delimitMate instead of auto-pairsjdhao
2021-08-12refactor: rename on_attach to custom_attachjdhao
2021-08-12Add sumneko_lua LSPjdhao
2021-08-09update nvim-bqf settingsjdhao
2021-08-09update vim-anzu and vim-cool settingsjdhao
We shouldn't set them as opt, otherwise *, and n , N etc. do not work in normal mode, unless we activate them on CmdlineEnter events.
2021-08-08Add plugin nvim-bqfjdhao
2021-08-08change plugin load conditionjdhao
vim-searchlight needs to work when we press n or N or * etc, not just after pressing / and ?.
2021-08-08Change plugin load conditionjdhao
2021-08-08Change ultisnips load conditionjdhao
Benefit of doing this: + No change of cursor line position after entering insert mode. Previous, if we load ultisnips on InsertEnter, the cursor line will moved automatically (e.g., if cursor line is on bottom of the screen, when we enter insert mode, now we are at the middle of the screen, like Ctrl-E is used before entering insert mode), which is really annoying! + We can see the snippets in nvim-compe auto-completion menu. Previously, the snippets are not shown on the nvim-compe completion menu (snippet expansion works though, it is just we can not see snippets in the completion menu), possibly due to the loading order of ultisnips and nvim-compe, because we load them both on event InsertEnter. After changing ultisnips to a start plugin, this issue is gone.
2021-08-07Move packer compile autocmd to new placejdhao
2021-08-07chore: formatting and fix spell errorsjdhao
2021-08-07Fix: the loading condition for fugitive is wrongjdhao
We should load fugitive in the following two situations: + When we open nvim in a Git repository + When we are inside nvim and change the working directory to a Git reposity
2021-08-05Use nvim-notify for showing messagesjdhao
2021-08-04Remove neodark themejdhao
It does not have good highlight for Markdown links.
2021-08-01ALE is not needed (use nvim-lsp instead)jdhao
2021-08-01Add wilder.nvim for cmdline auto-completionjdhao
2021-07-30Add doom-one colorschemejdhao
2021-07-30chore: remove trailing sapcesjdhao
2021-07-29Update load condition for vim-fugitivejdhao
See https://stackoverflow.com/a/38088814/6064933 for how to check if we are inside a Git repository.
2021-07-29update nvim-lsp settingsjdhao
We shouldn't let the diagnostic window perstist forever. Close the diagnostic windows when certain events happen.
2021-07-29update packer settings for fugitive.vimjdhao
2021-07-29use vim.cmd instead of vim.api.nvim_execjdhao
2021-07-27update flog setting (make it opt)jdhao
2021-07-27update fugitive settingsjdhao
2021-07-26Add plugin vim-flog for better git-log displayjdhao
2021-07-24Use vim.cmd instead of vim.api.nvim_execjdhao
2021-07-24Add committia.vim for better git commit experiencejdhao
It can show git diff in a separate split, which is better than git commit --verbose.
2021-07-24vim-tmux-focus-events is now obsoletejdhao
See also https://github.com/tmux-plugins/vim-tmux-focus-events/commit/b1330e04ffb95ede8e02b2f7df1f238190c67056
2021-07-24Clean the codejdhao
2021-07-24Remove plugin vim-titlecasejdhao
I cann't even remember when I used it last time.
2021-07-20update lsp hover window border confjdhao
Floating window border supports rounded style by default, no need to use customized one.
2021-07-18Fix fugitive git index related error for packer.nvimjdhao
2021-07-18Remove usage of VimEnter event for packer.nvimjdhao
VimEnter can not really decrease the Nvim startup time.
2021-07-17change onedark theme to onedark.nvimjdhao
2021-07-17More update on nvim-lsp configjdhao
Change border from sharp corner to curved corner.
2021-07-17Update nvim-lspconfig settingsjdhao
1. Customize document hover window border color. 2. Show also the source that generates a certain diagnostic message.
2021-07-15Use pylsp instead of pylsjdhao
It seems that pyls, the original python language server has lost its momentum, and pylsp is a community driven fork of pyls. So nvim-lspconfig has dropped support for pyls in https://github.com/neovim/nvim-lspconfig/pull/1074. See also https://github.com/palantir/python-language-server/issues/935 and https://github.com/python-lsp/python-lsp-server/issues/27.
2021-07-14Use lua to configure lua pluginsjdhao
2021-07-13update packer.nvim settingsjdhao
Change matching pattern so that we do not confuse this plugins.lua with files of the same name in other path.
2021-07-13update nvim-lsp configjdhao
Add mapping for LSP code actions and remove useless mappings.
2021-07-13update semshi settingsjdhao
Only use it on Windows. Treesitter highlighting may be enough.
2021-07-12Add treesitterjdhao
2021-07-12update onedark install settings for packerjdhao
Onedark decides to change its master branch to main (I don't know why?)
2021-07-09update packer and plugin settingsjdhao
2021-07-09update packer.nvim settingsjdhao
Ref: https://github.com/wbthomason/packer.nvim/issues/455.
2021-07-09Ppdate packer settings for Semshijdhao
If Semshi is set to opt plugin, when we run PackerUpdate, the command `: UpdateRemotePlugins` will be run. At this time, Semshi is not in the runtimepath, so its manifest will not be generated in rplugin.vim (located under ~/.local/share/nvim/rplugin.vim). So when we open a Python file afterwards, although Semshi is in runtimepath, but its manifest is missing, so we see error that command `Semshi enable` is not found. So after loading this plugin, i.e., when we open a Python source file, we need to run UpdateRemotePlugins so that semshi can work correctly.
2021-07-09Correct order of vim-airline and vim-airline-themes.jdhao
No need to use event for vim-airline if we want to load it after vim-airline-themes. See also https://github.com/wbthomason/packer.nvim/issues/461.
2021-07-08Change order of vim-airline and vim-airline-themesjdhao
It seems the order matters if we want to load vim-airline after vim-airlinethemes. See also packer.nvim#461.
2021-07-08Update packer.nvim settingsjdhao
2021-07-07Update nvim-compe settingsjdhao
Do not forgest `noremap = true` when using nvim_set_keymap(), See also https://github.com/hrsh7th/nvim-compe/issues/452.