mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-22 21:33:30 +02:00
Fixed errors
This commit is contained in:
parent
8d946c13e7
commit
9d965db75f
3 changed files with 112 additions and 10 deletions
15
init.lua
15
init.lua
|
@ -159,10 +159,15 @@ require('lazy').setup({
|
||||||
'lukas-reineke/indent-blankline.nvim',
|
'lukas-reineke/indent-blankline.nvim',
|
||||||
-- Enable `lukas-reineke/indent-blankline.nvim`
|
-- Enable `lukas-reineke/indent-blankline.nvim`
|
||||||
-- See `:help indent_blankline.txt`
|
-- See `:help indent_blankline.txt`
|
||||||
opts = {
|
main = 'ibl',
|
||||||
char = '┊',
|
config = function()
|
||||||
show_trailing_blankline_indent = false,
|
require('ibl').setup {
|
||||||
},
|
indent = { char = "┊" },
|
||||||
|
whitespace = {
|
||||||
|
remove_blankline_trail = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- "gc" to comment visual regions/lines
|
-- "gc" to comment visual regions/lines
|
||||||
|
@ -332,7 +337,7 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
|
||||||
-- See `:help nvim-treesitter`
|
-- See `:help nvim-treesitter`
|
||||||
require('nvim-treesitter.configs').setup {
|
require('nvim-treesitter.configs').setup {
|
||||||
-- Add languages to be installed here that you want installed for treesitter
|
-- Add languages to be installed here that you want installed for treesitter
|
||||||
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'help', 'vim', 'ruby', 'http',
|
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vim', 'ruby', 'http',
|
||||||
'css' },
|
'css' },
|
||||||
|
|
||||||
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
|
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
|
||||||
|
|
|
@ -1,3 +1,103 @@
|
||||||
return {
|
return {
|
||||||
'jiangmiao/auto-pairs'
|
"kawre/leetcode.nvim",
|
||||||
|
build = ":TSUpdate html",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
"nvim-lua/plenary.nvim", -- required by telescope
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
|
||||||
|
-- optional
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
---@type string
|
||||||
|
arg = "leetcode.nvim",
|
||||||
|
|
||||||
|
---@type lc.lang
|
||||||
|
lang = "golang",
|
||||||
|
|
||||||
|
cn = { -- leetcode.cn
|
||||||
|
enabled = false, ---@type boolean
|
||||||
|
translator = true, ---@type boolean
|
||||||
|
translate_problems = true, ---@type boolean
|
||||||
|
},
|
||||||
|
|
||||||
|
---@type lc.storage
|
||||||
|
storage = {
|
||||||
|
home = vim.fn.stdpath("data") .. "/leetcode",
|
||||||
|
cache = vim.fn.stdpath("cache") .. "/leetcode",
|
||||||
|
},
|
||||||
|
|
||||||
|
---@type table<string, boolean>
|
||||||
|
plugins = {
|
||||||
|
non_standalone = false,
|
||||||
|
},
|
||||||
|
|
||||||
|
---@type boolean
|
||||||
|
logging = true,
|
||||||
|
|
||||||
|
injector = {}, ---@type table<lc.lang, lc.inject>
|
||||||
|
|
||||||
|
cache = {
|
||||||
|
update_interval = 60 * 60 * 24 * 7, ---@type integer 7 days
|
||||||
|
},
|
||||||
|
|
||||||
|
console = {
|
||||||
|
open_on_runcode = true, ---@type boolean
|
||||||
|
|
||||||
|
dir = "row", ---@type lc.direction
|
||||||
|
|
||||||
|
size = { ---@type lc.size
|
||||||
|
width = "90%",
|
||||||
|
height = "75%",
|
||||||
|
},
|
||||||
|
|
||||||
|
result = {
|
||||||
|
size = "60%", ---@type lc.size
|
||||||
|
},
|
||||||
|
|
||||||
|
testcase = {
|
||||||
|
virt_text = true, ---@type boolean
|
||||||
|
|
||||||
|
size = "40%", ---@type lc.size
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
description = {
|
||||||
|
position = "left", ---@type lc.position
|
||||||
|
|
||||||
|
width = "40%", ---@type lc.size
|
||||||
|
|
||||||
|
show_stats = true, ---@type boolean
|
||||||
|
},
|
||||||
|
|
||||||
|
hooks = {
|
||||||
|
---@type fun()[]
|
||||||
|
["enter"] = {},
|
||||||
|
|
||||||
|
---@type fun(question: lc.ui.Question)[]
|
||||||
|
["question_enter"] = {},
|
||||||
|
|
||||||
|
---@type fun()[]
|
||||||
|
["leave"] = {},
|
||||||
|
},
|
||||||
|
|
||||||
|
keys = {
|
||||||
|
toggle = { "q" }, ---@type string|string[]
|
||||||
|
confirm = { "<CR>" }, ---@type string|string[]
|
||||||
|
|
||||||
|
reset_testcases = "r", ---@type string
|
||||||
|
use_testcase = "U", ---@type string
|
||||||
|
focus_testcases = "H", ---@type string
|
||||||
|
focus_result = "L", ---@type string
|
||||||
|
},
|
||||||
|
|
||||||
|
---@type lc.highlights
|
||||||
|
theme = {},
|
||||||
|
|
||||||
|
---@type boolean
|
||||||
|
image_support = false,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ return {
|
||||||
-- NOTE: And you can specify dependencies as well
|
-- NOTE: And you can specify dependencies as well
|
||||||
dependencies = {
|
dependencies = {
|
||||||
-- Creates a beautiful debugger UI
|
-- Creates a beautiful debugger UI
|
||||||
|
'nvim-neotest/nvim-nio',
|
||||||
'rcarriga/nvim-dap-ui',
|
'rcarriga/nvim-dap-ui',
|
||||||
|
|
||||||
-- Installs the debug adapters for you
|
-- Installs the debug adapters for you
|
||||||
|
@ -53,10 +54,6 @@ return {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
-- You can provide additional configuration to the handlers,
|
|
||||||
-- see mason-nvim-dap README for more information
|
|
||||||
require('mason-nvim-dap').setup_handlers()
|
|
||||||
|
|
||||||
-- Basic debugging keymaps, feel free to change to your liking!
|
-- Basic debugging keymaps, feel free to change to your liking!
|
||||||
vim.keymap.set('n', '<F5>', dap.continue, { desc = '[DAP] Continue' })
|
vim.keymap.set('n', '<F5>', dap.continue, { desc = '[DAP] Continue' })
|
||||||
vim.keymap.set('n', '<F1>', dap.step_over, { desc = '[DAP] Over' })
|
vim.keymap.set('n', '<F1>', dap.step_over, { desc = '[DAP] Over' })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue