Skip to content
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

設定用のvimのグローバル変数の更新タイミングで上書きされる #63

Open
kamecha opened this issue Nov 29, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@kamecha
Copy link
Owner

kamecha commented Nov 29, 2023

pluginディレクトリでやってるグローバル変数定義がタイミング的に遅いようで、上書きの形になっちゃってる

他のプラグインを参考にすると、

floatermの変数経由の設定箇所

良さそう

getを使うのかな

@kamecha kamecha added bug Something isn't working good first issue Good for newcomers labels Nov 29, 2023
@kamecha
Copy link
Owner Author

kamecha commented Nov 29, 2023

これが修正されるまでに、設定ファイルから変数いじくる時はDenopsのイベントに引っ掛けて定義すると良さそう

function s:setVariable() abort
	let g:traqvim#fetch_limit = 3
endfunction

autocmd User DenopsPluginPost:traqvim call s:setVariable()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant