Skip to content

Commit 9d965db

Browse files
committed
Fixed errors
1 parent 8d946c1 commit 9d965db

File tree

3 files changed

+112
-10
lines changed

3 files changed

+112
-10
lines changed

init.lua

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,15 @@ require('lazy').setup({
159159
'lukas-reineke/indent-blankline.nvim',
160160
-- Enable `lukas-reineke/indent-blankline.nvim`
161161
-- See `:help indent_blankline.txt`
162-
opts = {
163-
char = '',
164-
show_trailing_blankline_indent = false,
165-
},
162+
main = 'ibl',
163+
config = function()
164+
require('ibl').setup {
165+
indent = { char = "" },
166+
whitespace = {
167+
remove_blankline_trail = true,
168+
},
169+
}
170+
end,
166171
},
167172

168173
-- "gc" to comment visual regions/lines
@@ -332,7 +337,7 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
332337
-- See `:help nvim-treesitter`
333338
require('nvim-treesitter.configs').setup {
334339
-- Add languages to be installed here that you want installed for treesitter
335-
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'help', 'vim', 'ruby', 'http',
340+
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vim', 'ruby', 'http',
336341
'css' },
337342

338343
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)

lua/custom/plugins/leetcode.lua

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,103 @@
11
return {
2-
'jiangmiao/auto-pairs'
2+
"kawre/leetcode.nvim",
3+
build = ":TSUpdate html",
4+
dependencies = {
5+
"nvim-telescope/telescope.nvim",
6+
"nvim-lua/plenary.nvim", -- required by telescope
7+
"MunifTanjim/nui.nvim",
8+
9+
-- optional
10+
"nvim-treesitter/nvim-treesitter",
11+
"rcarriga/nvim-notify",
12+
"nvim-tree/nvim-web-devicons",
13+
},
14+
opts = {
15+
---@type string
16+
arg = "leetcode.nvim",
17+
18+
---@type lc.lang
19+
lang = "golang",
20+
21+
cn = { -- leetcode.cn
22+
enabled = false, ---@type boolean
23+
translator = true, ---@type boolean
24+
translate_problems = true, ---@type boolean
25+
},
26+
27+
---@type lc.storage
28+
storage = {
29+
home = vim.fn.stdpath("data") .. "/leetcode",
30+
cache = vim.fn.stdpath("cache") .. "/leetcode",
31+
},
32+
33+
---@type table<string, boolean>
34+
plugins = {
35+
non_standalone = false,
36+
},
37+
38+
---@type boolean
39+
logging = true,
40+
41+
injector = {}, ---@type table<lc.lang, lc.inject>
42+
43+
cache = {
44+
update_interval = 60 * 60 * 24 * 7, ---@type integer 7 days
45+
},
46+
47+
console = {
48+
open_on_runcode = true, ---@type boolean
49+
50+
dir = "row", ---@type lc.direction
51+
52+
size = { ---@type lc.size
53+
width = "90%",
54+
height = "75%",
55+
},
56+
57+
result = {
58+
size = "60%", ---@type lc.size
59+
},
60+
61+
testcase = {
62+
virt_text = true, ---@type boolean
63+
64+
size = "40%", ---@type lc.size
65+
},
66+
},
67+
68+
description = {
69+
position = "left", ---@type lc.position
70+
71+
width = "40%", ---@type lc.size
72+
73+
show_stats = true, ---@type boolean
74+
},
75+
76+
hooks = {
77+
---@type fun()[]
78+
["enter"] = {},
79+
80+
---@type fun(question: lc.ui.Question)[]
81+
["question_enter"] = {},
82+
83+
---@type fun()[]
84+
["leave"] = {},
85+
},
86+
87+
keys = {
88+
toggle = { "q" }, ---@type string|string[]
89+
confirm = { "<CR>" }, ---@type string|string[]
90+
91+
reset_testcases = "r", ---@type string
92+
use_testcase = "U", ---@type string
93+
focus_testcases = "H", ---@type string
94+
focus_result = "L", ---@type string
95+
},
96+
97+
---@type lc.highlights
98+
theme = {},
99+
100+
---@type boolean
101+
image_support = false,
102+
},
3103
}

lua/kickstart/plugins/debug.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ return {
1313
-- NOTE: And you can specify dependencies as well
1414
dependencies = {
1515
-- Creates a beautiful debugger UI
16+
'nvim-neotest/nvim-nio',
1617
'rcarriga/nvim-dap-ui',
1718

1819
-- Installs the debug adapters for you
@@ -53,10 +54,6 @@ return {
5354
}
5455
}
5556

56-
-- You can provide additional configuration to the handlers,
57-
-- see mason-nvim-dap README for more information
58-
require('mason-nvim-dap').setup_handlers()
59-
6057
-- Basic debugging keymaps, feel free to change to your liking!
6158
vim.keymap.set('n', '<F5>', dap.continue, { desc = '[DAP] Continue' })
6259
vim.keymap.set('n', '<F1>', dap.step_over, { desc = '[DAP] Over' })

0 commit comments

Comments
 (0)