-
I'm fresh about the neovim. 5 require('one').setup {
4 ▏ configFn = function(config) -
3 ▏ ▏ -- This user config will override default config. Below config is an example just for my personal usage.
┃ 2 ▏ ▏ vim.keymap.set("n", "w", "iw", {noremap = true}) -
┃ 1 ▏ ▏ -- vim.api.nvim_set_keymap("n", "w", 'iw', {noremap=true, silent=true})
1 ▏ ▏ return {
2 ▏ ▏ ▏ vim = {
3 ▏ ▏ ▏ ▏ opt = {
4 ▏ ▏ ▏ ▏ ▏ colorcolumn = { 81, 121 }, -- highlight columns. See ":h 'cc'"
5 ▏ ▏ ▏ ▏ },
6 ▏ ▏ ▏ },
7 ▏ ▏ }
8 ▏ end, |
Beta Was this translation helpful? Give feedback.
Answered by
adoyle-h
Dec 4, 2022
Replies: 2 comments
-
Because You can disable it by require('one').setup {}
vim.keymap.set("n", "w", "iw", {noremap = true}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adoyle-h
-
Oh my god, disable the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because
configFn
is invoked before all plugins' config functions, andbkad/CamelCaseMotion
plugin is enabled by default. Keyw
is binding to<Plug>CamelCaseMotion_w
.You can disable it by
plugins = {'bkad/CamelCaseMotion', disable = true}
, or putvim.keymap.set
after one.nvim setup.