Comments (2)
我仔细分析了一下,发现启动之后这个插件并没有加载,再想想这个Astronvim的哲学,就是不需要的不加载,那么怎么让它不lazy load呢?就是在相关的配置里加上lazy = false
,所以最终改成这样就好了
return {
{
"keaising/im-select.nvim",
lazy = false, -- 最关键的在这里
config = function()
require("im_select").setup {
-- IM will be set to `default_im_select` in `normal` mode
-- For Windows/WSL, default: "1033", aka: English US Keyboard
-- For macOS, default: "com.apple.keylayout.ABC", aka: US
-- For Linux, default:
-- "keyboard-us" for Fcitx5
-- "1" for Fcitx
-- "xkb:us::eng" for ibus
-- You can use `im-select` or `fcitx5-remote -n` to get the IM's name
default_im_select = "com.apple.keylayout.ABC",
-- Can be binary's name or binary's full path,
-- e.g. 'im-select' or '/usr/local/bin/im-select'
-- For Windows/WSL, default: "im-select.exe"
-- For macOS, default: "im-select"
-- For Linux, default: "fcitx5-remote" or "fcitx-remote" or "ibus"
default_command = "im-select",
-- Restore the default input method state when the following events are triggered
set_default_events = { "VimEnter", "FocusGained", "InsertLeave", "CmdlineLeave" },
-- Restore the previous used input method state when the following events
-- are triggered, if you don't want to restore previous used im in Insert mode,
-- e.g. deprecated `disable_auto_restore = 1`, just let it empty
-- as `set_previous_events = {}`
set_previous_events = { "InsertEnter" },
-- Show notification about how to install executable binary when binary missed
keep_quiet_on_no_binary = false,
-- Async run `default_command` to switch IM or not
async_switch_im = true,
}
end,
},
}
from im-select.nvim.
For anyone come here in the future:
If you use Astronvim/LazyVim or some else neovim distribution and im-select.nvim does not work, you can have a try with option:
{
"keaising/im-select.nvim",
lazy = false, -- This is the key
config = function()
require("im_select").setup({})
end,
}
from im-select.nvim.
Related Issues (12)
- im-select is not working with astronvim? HOT 11
- flatpak fcitx5 HOT 4
- Not working on Windows HOT 11
- async_switch_im = true will cause Neovim to crash on Windows HOT 7
- HI, do you know why im-select doesn't work under tmux? HOT 2
- Alternative to im-select.exe on Windows HOT 3
- Switching problem in WSL HOT 6
- [Feature Request] IM could switch intelligently maybe.... HOT 3
- [Feature Request] Could add an option to make me customize the im-select binary file path? HOT 4
- seems not work in search mode HOT 3
- If enter in cmdline the language is changing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from im-select.nvim.