Commit Graph
100 Commits
Author SHA1 Message Date
jdhao ffb0601aca Use pylsp instead of pyls
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-15 23:33:02 +08:00
jdhao 4689c4b22f Use lua to configure lua plugins 2021-07-14 00:51:30 +08:00
jdhao 764bd0c2bb fix: use normal!
Use command normal! to avoid any mapping being accidentally used.
2021-07-13 22:42:40 +08:00
jdhao 9c434b472e update packer.nvim settings
Change matching pattern so that we do not confuse this plugins.lua with
files of the same name in other path.
2021-07-13 01:34:18 +08:00
jdhao 64819a99ce update nvim-lsp config
Add mapping for LSP code actions and remove useless mappings.
2021-07-13 01:21:38 +08:00
jdhao 9004e09b76 update semshi settings
Only use it on Windows. Treesitter highlighting may be enough.
2021-07-13 01:06:06 +08:00
jdhao eeb09d88a9 Update README 2021-07-13 00:22:11 +08:00
jdhao bc0a08394b Add treesitter 2021-07-12 23:47:11 +08:00
jdhao b9801dd0bc More cpp snippets 2021-07-12 23:47:11 +08:00
jdhao 8753d5c555 update the snippets to print 1D and 2D sequences
Use template to make the function general enough for normal cases.
Ref: http://users.cis.fiu.edu/~weiss/Deltoid/vcstl/templates
2021-07-12 23:46:51 +08:00
jdhao a489b67cdd update onedark install settings for packer
Onedark decides to change its master branch to main (I don't know why?)
2021-07-12 23:20:06 +08:00
jdhao 3dce4506eb update packer and plugin settings 2021-07-09 23:31:44 +08:00
jdhao a694d00820 update packer.nvim settings
Ref: https://github.com/wbthomason/packer.nvim/issues/455.
2021-07-09 22:41:41 +08:00
jdhao 00f49a2667 Add backup for files 2021-07-09 22:29:30 +08:00
jdhao 632761391b the correct packer.nvim setting for semshi 2021-07-09 01:51:40 +08:00
jdhao 6b3e41419a Ppdate packer settings for Semshi
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-09 01:49:17 +08:00
jdhao 11866454cc Ppdate packer settings for Semshi
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.
2021-07-09 01:37:02 +08:00
jdhao 51264eab77 Correct order of vim-airline and vim-airline-themes.
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-09 00:41:36 +08:00
jdhao 11644a3603 Change order of vim-airline and vim-airline-themes
It seems the order matters if we want to load vim-airline after
vim-airlinethemes. See also packer.nvim#461.
2021-07-08 23:51:16 +08:00
jdhao 3b25260be0 Update packer.nvim settings 2021-07-08 22:47:12 +08:00
jdhao c4c23cec83 Update nvim-compe settings
Do not forgest `noremap = true` when using nvim_set_keymap(), See also https://github.com/hrsh7th/nvim-compe/issues/452.
2021-07-07 22:30:53 +08:00
jdhao 2115591394 No need for nvim-miniyank
Block paste issue fixed in https://github.com/neovim/neovim/pull/14848.
2021-07-07 00:28:56 +08:00
jdhao 0de6932a7b Change vim-airline settings
When init.vim is sourced, runtimepath has been changed yet. So we can
not find vim-airlinethemes under runtimepath.
2021-07-06 23:07:33 +08:00
jdhao 9ddffc1c6b update packer plugin settings 2021-07-06 22:44:05 +08:00
jdhao cfd23901a9 Update firenvim-related settings 2021-07-06 22:43:36 +08:00
jdhao 84a2efbc10 update register.nvim settings 2021-07-06 21:54:56 +08:00
jdhao 4a74cd499d update register.nvim settings
See also https://github.com/tversteeg/registers.nvim/issues/30.
2021-07-05 23:25:35 +08:00
jdhao 02987f401d Change auto-pairs activation event
It seems that BufReadPost does not work sometimes.
2021-07-05 23:16:38 +08:00
jdhao f47d8dc55e Add plugin register.nvim 2021-07-05 01:13:09 +08:00
jdhao 03f600d580 update packer settings 2021-07-04 17:54:47 +08:00
jdhao f9484a6623 Update doc and install script 2021-07-04 17:54:30 +08:00
jdhao 896e13291c update packer.nvim settings 2021-07-04 17:51:25 +08:00
jdhao 1f461dcf91 Add colorscheme nord 2021-07-04 17:18:54 +08:00
jdhao 2a01d3b59f Revert "Add nvim-lspsignature"
This reverts commit ff9f9dcc16.
2021-07-04 14:50:34 +08:00
jdhao ff9f9dcc16 Add nvim-lspsignature 2021-07-04 14:44:48 +08:00
jdhao c1ba7af97e Fix typo 2021-07-04 14:16:46 +08:00
jdhao d3ee056f96 Add debounce time for nvim-lsp 2021-07-04 04:37:29 +08:00
jdhao d6cd6be63b update clangd settings 2021-07-04 04:23:34 +08:00
jdhao e75a0b31d8 update packer plugin settings 2021-07-04 04:23:16 +08:00
jdhao 82e2b1078d Use master branch of indentblankline 2021-07-04 00:08:40 +08:00
jdhao cbf682f234 More tweak on packer.nvim 2021-07-02 01:37:28 +08:00
jdhao 83ef151e36 switch to packer for plugin management 2021-07-02 01:30:47 +08:00
jdhao a8a073146d update spell file 2021-07-01 23:15:32 +08:00
jdhaoandGitHub 1719e78433 Add more cpp snippets 2021-06-29 14:52:42 +08:00
jdhao 0c05b15dac update cpp snippets 2021-06-27 10:19:19 +08:00
jdhao 7d2afbaa60 update better-escape.vim settings 2021-06-26 16:36:10 +08:00
jdhao ea733e6086 clean mappings 2021-06-26 11:25:56 +08:00
jdhao 753a4ce77c Switch to clangd for nvim-lsp
ccls has some false positive warnings, and it is hard to install on
Linux server without roor rights.
2021-06-26 11:06:43 +08:00
jdhao 7ef7fe68c6 Fix ultisnips issue with nvim-compe.
See also hrsh7th/nvim-compe#389.
2021-06-26 01:17:12 +08:00
jdhao ca65194892 disable nvim-compe buffer source 2021-06-26 01:06:20 +08:00
jdhao 710effaeb6 update cpp snippet 2021-06-26 01:05:50 +08:00
jdhao 8b4133cd68 Add cpp snippet 2021-06-20 19:14:47 +08:00
jdhaoandGitHub 157ea91abb update nvim-compe settings
Use ESC to close the nvim-compe completion menu
2021-06-19 11:07:04 +08:00
jdhaoandGitHub 7c9c152368 Update mappings.vim 2021-06-19 11:05:35 +08:00
jdhaoandGitHub b32ab3e38b update nvim-compe settings
Only enable omni and spell source for certain filetypes. See also https://github.com/hrsh7th/nvim-compe/pull/170
2021-06-18 16:49:47 +08:00
jdhao ec6ef55325 update docs
The users should nvim nightly version.
2021-06-18 00:26:51 +08:00
jdhao b0af2ed221 Add cpp snippets 2021-06-18 00:23:18 +08:00
jdhao 35d878eeaf Update nvim-compe settings
Only enable spell source for Markdown files, see also https://github.com/hrsh7th/nvim-compe/pull/84.
2021-06-17 01:41:28 +08:00
jdhao 7ace838534 update formatoptions for certain filetypes 2021-06-17 00:21:15 +08:00
jdhaoandGitHub d744b6e98f fix typo: False ---> false 2021-06-15 13:17:11 +08:00
jdhaoandGitHub 2d7d48ad25 Fix diagnostic window auto-focus issue. 2021-06-15 13:06:12 +08:00
jdhaoandGitHub 4bb84024eb Make diagnostic floating window unfocusable
It is annoying that the cursor is focused on the diagnostic floating window every time it is shown. See also: https://github.com/neovim/neovim/pull/14693 and https://github.com/neovim/neovim/pull/14649
2021-06-15 10:38:02 +08:00
jdhao 1869ffe4d3 Update vim-airline settings
Disable the scrollbar feature. It is distracting.
Ref: https://github.com/vim-airline/vim-airline/commit/ecac148e19fe28d0f13af5f99d9500c2eadefe4c
2021-05-15 23:56:34 +08:00
jdhao a53cd6766d update indent-blankline settings 2021-04-21 22:35:45 +08:00
jdhao 308d9c0b5d update doc 2021-04-18 17:21:29 +08:00
jdhao 7dc2656354 Remove cursorline 2021-04-14 22:02:44 +08:00
jdhao 20619c8c8e Tweak lua stuff 2021-04-14 02:14:35 +08:00
jdhao b8329b9698 update vim-fugitive settings 2021-04-13 22:53:31 +08:00
jdhao 803b959266 update lua filetype settings 2021-04-13 01:57:37 +08:00
jdhao acf1af73d1 update nvim-lsp config 2021-04-13 01:44:29 +08:00
jdhao b862a40337 Add more plugins 2021-04-13 00:28:16 +08:00
jdhao 9e3a831ec4 update lua filetype settings 2021-04-12 00:31:21 +08:00
jdhao 2228268fd6 change lsp hover doc border 2021-04-12 00:27:32 +08:00
jdhao 2933d7da62 Move lua config to its own lua files
Embedding lua in vimscript using lua here doc is not ideal for
editing.
2021-04-12 00:00:10 +08:00
jdhao 1a16156bd6 Make nvim-compe setting all lua
For lua plugins, configuring them in lua instead of vim script is sensible.
2021-04-11 23:49:17 +08:00
jdhao aeea5f18f5 update nvim-lsp config 2021-04-09 23:40:52 +08:00
jdhao 82a97710c8 Disable unused provider 2021-04-09 23:05:38 +08:00
jdhao 38e2b73408 update nvim-compe settings 2021-04-09 00:29:18 +08:00
jdhao 2f719f9861 remove plugin emmet.vim
Rarely used.
2021-04-08 00:20:28 +08:00
jdhao 3fb9969eba update nvim-lsp config 2021-04-08 00:18:20 +08:00
jdhao 8d5a7477d2 update nvim-lsp related settings 2021-04-07 23:09:19 +08:00
jdhao 50c761119a Use nvim builtin lsp instead of vim-lsp 2021-04-06 01:32:19 +08:00
jdhao efb7a8e34f Enable embeded lua highlight in vim script 2021-04-06 01:31:38 +08:00
jdhao 9d4bfd57e2 Remove blamer.nvim
We can select a line and use command :Git blame to show the blame
message for this line. So this plugin is not really needed.
2021-03-27 00:52:41 +08:00
jdhao 41a2d1b950 update Python settings and related doc 2021-03-25 23:15:54 +08:00
jdhao cabb5b7604 update ignore settings 2021-03-23 23:32:11 +08:00
jdhao 2636f8575e Add more settings for cpp 2021-03-23 23:15:00 +08:00
jdhao b18a643145 Remove cmd line message auto-clear feature 2021-03-20 15:51:17 +08:00
jdhao 1bbc694939 Use termguicolors 2021-03-19 01:14:38 +08:00
jdhao ac0040a982 update vim-lsp settings
Use pylint for linting instead of flake8, which is shitty in finding
apparent errors in the code.
2021-03-19 00:25:48 +08:00
jdhao 01059017c1 Change how non-breakable space is shown 2021-03-11 00:17:14 +08:00
jdhao 10a8ce1006 Use fastgit for cloning vim plugin repos 2021-02-27 22:08:14 +08:00
jdhao 92d3609d81 Update vim-plug setting
vim-plug reads the variable g:plug_home and will set its as the
directory to install plugins. So we do not need to invent a new variable
for this purpose.
2021-02-27 21:55:47 +08:00
jdhao 8103d87ae6 Install vlime only when sbcl is available 2021-02-26 23:28:53 +08:00
jdhao fa0e70bea3 Add plugin neuims for auto IME switch on Windows 2021-02-26 23:23:24 +08:00
jdhao 6f23dea8f3 update airline settings for vim-xkbswitch 2021-02-26 00:09:51 +08:00
jdhao 832fb4c795 Remove tokyonight colorscheme 2021-02-25 23:26:05 +08:00
jdhao b9c2465338 Add plugin vim-xkbswitch 2021-02-25 23:24:00 +08:00
jdhao 09c234035d Update fugitive mappings 2021-02-23 23:46:10 +08:00
jdhao e337f8270a Add settings for YAML 2021-02-23 23:38:00 +08:00