-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double <C-ц> in nvim-tree #4
Comments
Well… In Vim 9.1 current plugin works (for switching between usual Vim windows). I suppose in Neovim it also should work (for switching between usual windows). Please check this. If it works, then it looks like nvim-tree specific issue… and in this case I'm unsure how to better handle it for now and it'll need some more investigation. |
In order for panel switching to start working correctly in Neovim, you need to add one line to ruscmd.lua, which I wrote in my first message. And after this, the windows switch normally and on the Russian layout. |
I've installed nvim-tree in Neovim - at a glance everything works as is. Can you please explain what exactly you're doing in details, what is a "panel" in nvim-tree, how do you open them, etc. |
When you open a file in nvim-tree in split window, how do you switch between the tree view and the open file (in a split window)? For example, I switch using the keyboard shortcut |
At the moment this looks like a random change to me, which fixes something in your specific setup for unknown reason. To make this change I need to understand why exactly current implementation does not work in your setup, because root cause may be in your setup or conflict with some other plugin - and in some of these cases it should be fixed there (in your setup or some other plugin) instead. So, please provide either more clear instruction what you're doing to trigger this issue, or, even better, a full --[[ Minimal config to reproduce issues ]]
--
-- Usage: `nvim -u repro.lua`
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify('./.repro', ':p')
-- set stdpaths to use .repro
for _, name in ipairs { 'config', 'data', 'state', 'cache' } do
vim.env[('XDG_%s_HOME'):format(name:upper())] = root .. '/' .. name
end
-- bootstrap lazy
local lazypath = root .. '/plugins/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system {
'git',
'clone',
'--filter=blob:none',
'--single-branch',
'https://github.com/folke/lazy.nvim.git',
lazypath,
}
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
'folke/tokyonight.nvim',
-- add any other plugins here
}
require('lazy').setup(plugins, {
root = root .. '/plugins',
})
vim.cmd.colorscheme 'tokyonight'
-- add anything else here |
I have now completely clear installed [https://nvchad.com]NvChad(url) (this is a minimally customized Neovim) - it has the same problem. Single keys work perfectly (either in Russian or in English layout). But when it comes to keyboard shortcuts (paired with a |
Почему-то удалился предыдущий коментарий? Раз тема касается русской раскладки, почему мы общаемся на английском? |
Ну, заодно практика в английском, двойная польза. :-) Так что, repro сделаете? Пока у меня проблема не воспроизведётся - чинить нечего. Это же несложно, можно для начала просто добавить в repro выше оба плагина используя мой же пример ещё чуть выше и проверить, воспроизводится в таком виде у Вас или нет. Если нет - добавляйте в него части своего текущего конфига пока не воспроизведётся. Когда воспроизведётся пришлите получившийся ОС/WM/etc. может иметь значение, но только если будет |
@igorog Я для Neovim сделал новый плагин: https://github.com/powerman/ruscmd.nvim. Но в процессе работы над ним нашёл ещё более продвинутый вариант, который автоматически создаёт русские маппинги для всех существующих: https://github.com/Wansmer/langmapper.nvim (как раз собирался реализовать эту фичу в своём, но теперь в этом нет смысла). В результате подключил оба - мой использую для команд (вроде |
Double-clicking
<C-W>
in nvim-tree switches focus between panels. It didn’t work for me when I double-clicked<C-ц>
with this config.Need to add:
map unique <C-ц><C-ц> <C-W><C-W>
in ruscmd.lua
And... Thank you very much for such a useful plugin!
The text was updated successfully, but these errors were encountered: