diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-10-13 11:58:31 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-10-13 11:58:31 +0200 |
| commit | c0ad75c02c8d1e518a66b6f721feed48fb3138be (patch) | |
| tree | 40026728b43c311f77c754b1a6f39b1d6ab552e7 | |
| parent | ab313e531a00f783f6be00c001c07a5d563485c6 (diff) | |
| download | dotfiles-c0ad75c02c8d1e518a66b6f721feed48fb3138be.tar.gz dotfiles-c0ad75c02c8d1e518a66b6f721feed48fb3138be.zip | |
Add leetcode.lua
| -rw-r--r-- | lua/plugins/leetcode.lua | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/lua/plugins/leetcode.lua b/lua/plugins/leetcode.lua new file mode 100644 index 0000000..50369e1 --- /dev/null +++ b/lua/plugins/leetcode.lua @@ -0,0 +1,68 @@ +---@alias lc.lang +---| "cpp" +---| "java" +---| "python" +---| "python3" +---| "c" +---| "csharp" +---| "javascript" +---| "typescript" +---| "php" +---| "swift" +---| "kotlin" +---| "dart" +---| "golang" +---| "ruby" +---| "scala" +---| "rust" +---| "racket" +---| "erlang" +---| "elixir" + +---@alias lc.sql_lang +---| "pythondata" +---| "mysql" +---| "mssql" +---| "oraclesql" + +---@alias lc.domain +---| "com" +---| "cn" + +---@class lc.UserConfig +local M = { + ---@type lc.domain + domain = 'com', -- For now "com" is the only one supported + + ---@type string + arg = 'leetcode.nvim', + + ---@type lc.lang + lang = 'cpp', + + ---@type lc.sql_lang + sql = 'mysql', + + ---@type string + directory = vim.fn.stdpath('data') .. '/leetcode/', + + ---@type boolean + logging = true, + + console = { + ---@type boolean + open_on_runcode = false, + + size = { + width = '75%', ---@type string | integer + height = '75%', ---@type string | integer + }, + dir = 'row', ---@type "col" | "row" + }, + + description = { + width = '40%', ---@type string | integer + }, +} + +return M |
