1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00
Commit Graph

422 Commits

Author SHA1 Message Date
jdhao 28bda349e8 Update lualine config (#375)
- components are re-ordered
- add new component to show git ahead/behind info
- remove some unused component
2025-02-15 18:58:15 +01:00
jdhao 7f53743255 remove automcd to go to last place
This conflicts with the fuzzy finder, if you grep for a word using fuzzy
finder and then press enter to go to the place, it does not work
anymore, it will go the line where you are last time.
2025-02-14 22:12:33 +01:00
jdhao 94497c0a73 snack config update 2025-02-13 00:41:35 +01:00
jdhao 70e9943aac update supported nvim version to latest stable
Update a few plugins
2025-02-12 23:32:21 +01:00
jdhao 9a6584bec3 add plugin colorzier 2025-01-29 00:21:10 +01:00
jdhao 7e706515a8 silently format lua file using stylua
We need to disable the mapping set for LSP, otherwise the mapping set in
lua.vim will be overridden.
2024-12-19 23:45:15 +01:00
jdhao 1d66475cae make option showcmd shown in statusline instead
Related issues:

+ https://groups.google.com/g/vim_dev/c/YwFLUaduXTQ
+ https://github.com/neovim/neovim/pull/21202
+ https://github.com/nvim-lualine/lualine.nvim/issues/949
2024-12-19 23:39:14 +01:00
jdhao 5328c477a8 reformat with stylua 2024-12-19 22:16:23 +01:00
jdhao 54eb3ca811 install new plugins 2024-12-19 22:08:56 +01:00
jdhao 64b41fbd58 use native lua api instead of vim.cmd 2024-12-19 22:01:04 +01:00
jdhao d941be482b update lualine config 2024-12-08 21:34:47 +01:00
jdhao d86f599483 update the fold level allowed for statuscol.nvim 2024-11-08 22:57:33 +01:00
jdhao 8dfae271d0 use plaintext for pyright hover request
see my comment here for the details: https://www.reddit.com/r/neovim/comments/1gdv1rc/comment/lvt9nlm/
2024-11-07 21:53:32 +01:00
jdhao 1141a18c5f update config for pyright 2024-11-06 23:19:55 +01:00
jdhao fe3d5e5922 remove plugin committia.vim 2024-11-05 22:16:54 +01:00
jdhao 9769c24633 Switch Python LSP for completion and add ruff
pyright servers type checking, completion, and ruff servers linting and
diagnostics (ruff can also format Python files, but it is slightly
different from black)
2024-11-05 22:09:33 +01:00
jdhao 97f72936ac Enable LSP format also for visual selection 2024-11-05 22:04:49 +01:00
jdhao 94cade03be enable inlayhint for lua_ls server
The client side inlayhint can be enabled by uncommentting the code in
this PR.
2024-11-05 22:01:23 +01:00
jdhao 4171f190f2 Add plugin nvim-lightbulb to hint code actions 2024-11-05 21:47:34 +01:00
jdhao 3040fa7969 use a cmp-fork for now
Until cmp is maintained again or switch??
2024-10-09 17:37:21 +02:00
jdhao b9cf3cc6ed update conf for plugin live-command.nvim 2024-09-20 21:26:28 +02:00
jdhao 154cde3d71 Add plugin live-command.nvim 2024-09-19 22:07:03 +02:00
jdhao db380ca7a7 remove inspect() from lua _G table
Nvim nows provides `vim.inspect()` and `vim.print()`.
2024-09-01 21:47:21 +02:00
jdhao a9fc298063 update documentation for resuming cursor position 2024-08-30 01:03:13 +02:00
jdhao 9071e045eb Make * and # search case aware
By default, when you press `*` to search word under the cursor, the
option `smartcase` is ignored. This means that if you press `*` when
your cursor is on `The`, the lower case one `the` is also searched.

In this commit, we translate star and # search into normal search so that
'smartcase' option is respected.
2024-08-30 01:01:04 +02:00
jdhao fa79647a63 Fix type for option relativenumber
"relativenumber" should be window local option, not buffer local option.
2024-08-29 21:45:07 +02:00
jdhao 4b4ff5f549 Add error handling for resuming the cursor
This will close issue #328.
2024-08-29 21:41:13 +02:00
jdhao 12b0ff02b6 Move autocmd in viml to Lua 2024-08-27 23:12:33 +02:00
jdhao e3930e8aa7 remove unused plugins 2024-08-25 23:36:29 +02:00
jdhao 21522bd194 update config for yanky 2024-08-25 23:34:03 +02:00
jdhao a3c8b3d5b5 Update configuration for nvim-cmp
1. restrict max width of the completion menu. Here I am using
   lspkind.nvim to achieve this. There are other native ways to do this,
   see also https://github.com/hrsh7th/nvim-cmp/discussions/609 and
   https://github.com/hrsh7th/nvim-cmp/issues/980
2. remove cmp-emoji as it is rarely used and interfere when I write
   Python
3. lower the transparency for popup menu
2024-08-20 01:04:02 +02:00
jdhao d150f39afc Add new plugins 2024-08-19 23:37:57 +02:00
jdhao c3d8dc3e1d Add mapping to delete other buffers 2024-08-17 17:33:36 +02:00
jdhao f9780c2dff update config for bufferline.nvim
Do not show buffer number and use a mapping to pick buffer instead.
2024-08-17 17:29:33 +02:00
jdhao 256c37a946 update vim-fugitive mapping 2024-08-17 15:16:08 +02:00
jdhao 6e60475f3f Use gx.nvim for browsing in Browser 2024-08-16 00:03:43 +02:00
jdhao d90273df8e remove lua_ls conf in favor of lazydev.nvim
The removed settings are already set by lazydev.nvim.
2024-08-15 23:44:50 +02:00
jdhao 659f410b9e move version check into function 2024-08-15 23:38:31 +02:00
jdhao a602d98819 fix git mapping issue
`<cmd> `mapping must end with `<CR>`
2024-08-09 22:23:04 +02:00
jdhao 9ff76931e3 update git related mappings 2024-08-09 22:19:13 +02:00
jdhao cfc0089bb5 add plugin lazydev.nvim 2024-08-07 00:48:21 +08:00
jdhao f1062a3d8f filter fold level sign for statuscol.nvim
Only show fold signs for fold level below a certain level to avoid
clutter the left side columns with a lot of folding signs
2024-08-07 00:14:19 +08:00
jdhao fd6df981cd Update nvim-ufo settings 2024-08-06 23:58:54 +08:00
jdhao 8af8ebd72a remove statusline.lua 2024-08-06 17:25:33 +02:00
jdhao 4c697d89f3 change name of lualine config 2024-08-06 23:04:37 +08:00
jdhao 262ad6aa38 Add new colorscheme kanagawa 2024-08-06 06:16:07 +08:00
jdhao b3a26e4226 update load condtion for nvim-tree 2024-08-06 06:02:02 +08:00
jdhao 794b098090 Add git blame mapping 2024-08-06 05:59:14 +08:00
jdhao b728b39784 update type hint for functions 2024-08-06 05:35:19 +08:00
jdhao acc3ed7829 show error message only when no word is under cursor 2024-08-06 05:33:24 +08:00