Commit Graph
100 Commits
Author SHA1 Message Date
jdhao 146ef5d0b8 use lua for may_create_dir 2022-01-13 20:27:48 +08:00
jdhao 6fd7155787 feat: create parent dir of current file if it does not exist 2022-01-13 01:51:19 +08:00
jdhao 665250fe58 new year 2022-01-11 23:59:27 +08:00
jdhao 6a2ded6ca8 add plugin vim-conflicted for merge conflict handling 2022-01-09 22:02:18 +08:00
jdhao 41db6639d6 add issue template for easier debugging 2022-01-09 00:43:01 +08:00
jdhao 1b9b208653 update README 2022-01-09 00:14:37 +08:00
jdhao 97fcc581e6 chore: remove semshi settings
That plugin has been deleted before
2022-01-09 00:08:36 +08:00
jdhao 2e9f5fedfa more startup screen menu item 2022-01-08 15:02:20 +08:00
jdhao 1280c98314 add icon and scrollbar for wilder.nvim 2022-01-07 00:41:14 +08:00
jdhao 9cd43dcba9 simplify wilder.nvim settings 2022-01-07 00:40:48 +08:00
jdhao d02fd0a69d fix: link is broken for wilder.nvim 2022-01-07 00:40:14 +08:00
jdhao 980fd531a8 wilder.nvim popup menu now respects pumblend
See also https://github.com/gelguy/wilder.nvim/pull/115.
2022-01-06 23:42:23 +08:00
jdhao 148dabd7ad docs: use latest stable version of nvim 2022-01-04 23:31:03 +08:00
jdhao b9d1f2ee92 remove two mappings that warn of mapping deprecation 2022-01-04 00:40:11 +08:00
jdhao b2959e8acf docs: update mappings 2022-01-04 00:38:34 +08:00
jdhao b5ec8d2a91 Update README 2022-01-02 22:50:49 +08:00
jdhao 092ea88703 bump minimum supported nvim version to 0.6.1 2022-01-02 11:26:32 +08:00
jdhao 67d59bfc2c docs: add section on custom commands 2021-12-31 12:30:23 +08:00
jdhao 77a5dfacd6 fix: broken link in README 2021-12-31 12:17:51 +08:00
jdhao 1373c418b9 restore reg content after using it 2021-12-30 23:39:42 +08:00
jdhao e82b450464 split command output to list of string and set the buffer 2021-12-30 23:39:03 +08:00
jdhao 08818dbf01 remove logging 2021-12-30 23:38:49 +08:00
jdhao 0ed8814aef fix: command output captured by a register not formatted properly
Newline is converted to NUL character, which is nasty, see also https://vi.stackexchange.com/q/6697/15292.
2021-12-30 22:33:39 +08:00
jdhao a86f1d2f31 refactor: capture command output silently 2021-12-30 22:33:06 +08:00
jdhao c1b27ee818 fix url link in README 2021-12-29 23:34:59 +08:00
jdhao 7eb7b4450f update README 2021-12-29 23:33:07 +08:00
jdhao 5443078805 g:mapleader 2021-12-29 00:42:00 +08:00
jdhao dcffbf9a71 fix: lsp reference highlight isn't correctly linked
! is need to overwrite possible existing highlight group of the same
name.
2021-12-28 23:49:43 +08:00
jdhao 85de00f374 refactor: resume edit position --> resume cursor position 2021-12-28 00:11:10 +08:00
jdhao 9adc3fdf16 remove double quotes for snippet trigger 2021-12-23 22:41:16 +08:00
jdhao 6cf31e2dcb add colorscheme kanagawa 2021-12-23 22:36:29 +08:00
jdhao 08d3d7ec08 fix bug in go to last edit position
If a go-to-line command is given, do not go to last edit position for
the file.
2021-12-20 22:15:34 +08:00
jdhao ed52ca5914 add ref for checking IME state 2021-12-19 20:54:13 +08:00
jdhao 1d0609f753 change SPELL location on statusline 2021-12-19 20:53:09 +08:00
jdhao 56a43e4009 show IME on statusline on macOS 2021-12-19 20:52:23 +08:00
jdhao 22c7c6ee05 update plugin.lua 2021-12-19 19:55:00 +08:00
jdhao 3d0f00e7e4 update README 2021-12-16 23:31:13 +08:00
jdhao bbd642af1a renaming variables 2021-12-15 00:21:34 +08:00
jdhao 5215a601b9 update fold conf for vim script
When setting foldlevel to 0 and load some plugin via InsertEnter event
using packer.nvim, if we press i to go to insert mode, the fold for vim
script file will be automatically closed. It is really annoying.

I have pinpoint the issue to the combination of packer.nvim and setting
foldlevel to 0 in after/ftplugin/vim.vim. What is interesting is that
default value for foldlevel is also 0. However, if we do not set it in
vim.vim, the above issue won't occur, which is strange.
2021-12-14 21:48:58 +08:00
jdhao 9bac7fa4f7 refactor: remove folding for init.vim 2021-12-14 21:47:59 +08:00
jdhao 06910bac87 remove plugin vim-cool
nvim-hlslens can replace it if calm_down option is enabled.
2021-12-12 17:30:11 +08:00
jdhao 85427c6424 remove plugin semshi 2021-12-12 16:47:58 +08:00
jdhao cf9761e9a3 update plugin load condition 2021-12-11 18:15:24 +08:00
jdhao 7d3647ac61 remove oo and OO normal mode mapping 2021-12-11 15:47:15 +08:00
jdhao a466339092 update nvim-hlslens settings 2021-12-11 15:46:25 +08:00
jdhao 6fb30f0cf2 use en_US.utf-8 as default 2021-12-10 22:52:03 +08:00
jdhao 9b41825c2c update lualine conf
diagnostic interface change
2021-12-10 22:51:06 +08:00
jdhao e9319b0460 update README 2021-12-10 00:48:19 +08:00
jdhao 49596fb5ab update README 2021-12-09 21:41:59 +08:00
jdhao 1d3552860b update nvim setup script for Linux, closes #31 2021-12-08 23:24:46 +08:00
jdhao 17a9488ba7 make impatient.nvim the first plugin 2021-12-06 21:23:59 +08:00
jdhao 683008dac0 update indent-blankline conf 2021-12-06 12:27:00 +08:00
jdhao 9ee4f46240 lazyload lua plugins 2021-12-06 12:26:44 +08:00
jdhao 7735a33a59 remove plugin gutentags
I rarely use it.
2021-12-06 11:40:45 +08:00
jdhao aacbf56ee5 tweak lualine conf 2021-12-06 11:11:27 +08:00
jdhao a7be6a58a4 update spell file 2021-12-05 19:51:36 +08:00
jdhao 3432dbbb63 update lualine conf 2021-12-05 16:54:29 +08:00
jdhao c652796da1 add mixed indent detection for lualine 2021-12-05 16:18:10 +08:00
jdhao 8e46441a36 update lualine conf 2021-12-05 16:09:21 +08:00
jdhao 4d497ec8a7 update lualine conf 2021-12-05 14:59:08 +08:00
jdhao 752dbcbe2d remove mentioning of vim-airline 2021-12-05 14:33:59 +08:00
jdhao 0be331b28e replace vim-airline with lualine
Lualine is now feature-rich and faster than vim-airline.
2021-12-05 14:25:37 +08:00
jdhao fcfd1e4437 update hop.nvim conf 2021-12-05 14:08:39 +08:00
jdhao b9efd2b40f update fugitive conf 2021-12-05 11:21:57 +08:00
jdhao dd61f1da8c more fugitive shortcut 2021-12-05 11:20:34 +08:00
jdhao 9e6a71c32d update cpp snippet 2021-12-04 23:47:50 +08:00
jdhao 50fafcffdb update default value of option 'wrap' 2021-12-04 23:41:56 +08:00
jdhao b9f1d92564 use main branch of nvim-hlslens 2021-12-04 12:06:10 +08:00
jdhao dcde6bb47f reduce startup time using impatient.nvim 2021-12-03 22:42:32 +08:00
jdhao d04fce7bbc update Leaderf rg conf
Suppress permission denied error messages when grepping using ripgrep.
2021-12-02 22:57:41 +08:00
jdhao 39e5e1913f Add command :Datetime to show current time or translate a Unix timestamp 2021-12-02 22:06:40 +08:00
jdhao 80ceacbb02 fix vim.diagnostic.config() option name typo 2021-12-01 23:25:45 +08:00
jdhao 23e98aab6f [v0.6] update doc 2021-12-01 22:19:51 +08:00
jdhao 6069bd8922 [v0.6] update install script to use nvim v0.6 2021-12-01 22:19:03 +08:00
jdhao 402d4012d1 [v0.6] change LSP and diagnostic according to latest API 2021-12-01 22:10:24 +08:00
jdhao 22f16ee325 [v0.6] default value for option inccommand and joinspaces changed 2021-12-01 22:09:43 +08:00
jdhao ac69b61c03 [v0.6] backupdir will be created by default
No need to create the backupdir manually.
2021-12-01 22:08:45 +08:00
jdhao 0ad051b394 [v0.6] Y is mapped to y$ by default 2021-12-01 22:07:51 +08:00
jdhao 103e051d96 use man for command :Man 2021-11-28 15:17:36 +08:00
jdhao 17995b95a4 refactor: renaming function 2021-11-23 22:55:10 +08:00
jdhao 19cf6cca3c refactor theme loading 2021-11-23 22:43:12 +08:00
jdhao f996edf016 update LeaderF conf 2021-11-23 22:43:12 +08:00
jdhao 72d8cd07bc update nvim-notify conf 2021-11-23 22:43:12 +08:00
jdhao 1441601ddf remove plugin vim-searchlight
It can be replaced by nvim-hlslens
2021-11-23 22:43:12 +08:00
jdhao 7fe37ffd24 update linux setup script, closes #30 2021-11-23 22:42:17 +08:00
jdhao e05c93aaeb use branch dev of nvim-hlslens
Master version has a bug where text is wrongly highlighted.
2021-11-22 23:16:25 +08:00
jdhao 5ed4e3610a update linux setup 2021-11-22 21:47:04 +08:00
jdhao b96a3ce762 update snippets 2021-11-21 23:26:45 +08:00
jdhao b46a1e7055 reword warning msg 2021-11-21 15:57:41 +08:00
jdhao 927a57452c update packer-related instructions 2021-11-21 15:45:34 +08:00
jdhao af17364730 update hop.nvim conf 2021-11-17 23:19:36 +08:00
jdhao 46a465508a update snippets 2021-11-10 22:23:51 +08:00
jdhao e0c406a344 add cpp snippets 2021-11-08 21:57:21 +08:00
jdhao db3b0024a6 drop auto-remove trailing whitespaces
When working with legacy code which is not well formatted, it will cause
large undesirable diffs.
2021-11-07 13:32:06 +08:00
jdhao c9535a0feb make alpah-nvim opt 2021-11-07 13:30:47 +08:00
jdhao 2a0a92f134 change location of packer_compiled.lua
Putting this file under ~/.config/nvim/plugin may cause problems since
script under plugin/ will be loaded automatically.
2021-11-07 00:26:18 +08:00
jdhao 62b6226520 fix indent-blankline activation bug
When InsertLeave is triggered, we should check if we need to start
indent-blankline before enabling it.
2021-11-06 23:10:24 +08:00
jdhao bd92419bf9 remove lsp omnifunc conf
I never used it.
2021-11-06 20:05:54 +08:00
jdhao 6281322fce simplify lsp config 2021-11-06 20:03:21 +08:00
jdhao 538afe2fc6 update indent-blankline conf 2021-11-06 13:09:50 +08:00