Commit Graph
100 Commits
Author SHA1 Message Date
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
jdhao bec5f11753 update doc 2021-11-06 13:02:29 +08:00
jdhao ffe588870d [breaking change] make it work for nvim 0.5.1
In nvim 0.5.1, the lsp handler signature has changed, see https://github.com/neovim/neovim/pull/15504
and LunarVim/LunarVim#1484.
2021-11-06 12:56:54 +08:00
jdhao 002ebf2f71 update hop.nvim conf 2021-11-05 20:53:09 +08:00
jdhao fee6b127e5 update indent-blankline conf 2021-11-05 20:52:57 +08:00
jdhao efd86f4467 change matchparen highlight 2021-11-05 20:52:39 +08:00
jdhao aad372caf0 more snippets 2021-11-04 00:05:09 +08:00
jdhao 49fc7f3dbc add mapping: keep cursor position after yanking 2021-11-03 22:55:40 +08:00
jdhao 573f9277cb change mapping to insert semicolon in insert mode 2021-11-03 22:55:22 +08:00
jdhao 4c59f8cb4a less timeout 2021-11-03 08:46:38 +08:00
jdhao f55b0022b3 more mapping 2021-11-03 08:46:09 +08:00
jdhao b96799f400 fix typo in snippets 2021-11-02 23:00:50 +08:00
jdhao 9b9bd9dd46 remove trailing whitespace on save 2021-11-02 22:49:02 +08:00
jdhao 8ebbec29d6 move whitespace utility into separate plugins 2021-11-01 23:38:44 +08:00
jdhao 2d27a699dc add iso time utils function 2021-11-01 22:39:36 +08:00
jdhao 51c19507b7 update LeaderF settings 2021-11-01 22:16:49 +08:00
jdhao 5ae2c7d1e0 remove redundant fold marks 2021-10-31 15:42:38 +08:00
jdhao 05c0ef1d60 update indent-blankline indent char 2021-10-31 15:42:09 +08:00
jdhao 199e003cf1 update README 2021-10-31 15:41:38 +08:00
jdhao b0e38bedd1 change matchup higlight 2021-10-31 02:09:47 +08:00
jdhao 59615a539c remove redundant snippets 2021-10-30 23:55:29 +08:00
jdhao 601a13acb1 update snippets 2021-10-30 23:10:40 +08:00
jdhao ff54203995 update Indent-blankline conf 2021-10-30 23:09:37 +08:00
jdhao 3d5301d0c3 make sure snippets's filetype is correct
The filetype of xxx.snippets is not decided until we enter Insert mode,
since ultisnips is lazy-loaded in Insert mode.
2021-10-30 23:07:47 +08:00
jdhao 80893e7e4a update cpp snippets 2021-10-30 22:53:39 +08:00
jdhao 5bf969e327 update doc 2021-10-30 01:29:03 +08:00
jdhao cdccb404b5 Merge branch 'master' of https://github.com/jdhao/nvim-config 2021-10-30 01:27:04 +08:00
jdhao e2efea79ba more cpp snippets 2021-10-30 01:26:38 +08:00
jdhao b6df22ee89 more cpp snippets 2021-10-30 01:24:08 +08:00
jdhao 49482b8ea0 change hop.nvim highlight 2021-10-29 23:33:57 +08:00
jdhao 317089d5aa update README 2021-10-29 23:33:43 +08:00