update
This commit is contained in:
parent
c6dd7ac677
commit
21bdf41b37
@ -4,30 +4,29 @@ return {
|
|||||||
require('plugs.nvimtree'), -- nvimtree
|
require('plugs.nvimtree'), -- nvimtree
|
||||||
require('plugs.theme'), -- theme
|
require('plugs.theme'), -- theme
|
||||||
require("plugs.edit-plugs"),
|
require("plugs.edit-plugs"),
|
||||||
require("plugs.toggleterm"),
|
|
||||||
require("plugs.dev"),
|
require("plugs.dev"),
|
||||||
|
|
||||||
|
|
||||||
-- leetcode刷题
|
-- leetcode刷题
|
||||||
{
|
-- {
|
||||||
"kawre/leetcode.nvim",
|
-- "kawre/leetcode.nvim",
|
||||||
build = ":TSUpdate html",
|
-- build = ":TSUpdate html",
|
||||||
dependencies = {
|
-- dependencies = {
|
||||||
"nvim-telescope/telescope.nvim",
|
-- "nvim-telescope/telescope.nvim",
|
||||||
"nvim-lua/plenary.nvim", -- telescope 所需
|
-- "nvim-lua/plenary.nvim", -- telescope 所需
|
||||||
"MunifTanjim/nui.nvim",
|
-- "MunifTanjim/nui.nvim",
|
||||||
|
|
||||||
-- 可选
|
-- -- 可选
|
||||||
"nvim-treesitter/nvim-treesitter",
|
-- "nvim-treesitter/nvim-treesitter",
|
||||||
"rcarriga/nvim-notify",
|
-- "rcarriga/nvim-notify",
|
||||||
"nvim-tree/nvim-web-devicons",
|
-- "nvim-tree/nvim-web-devicons",
|
||||||
},
|
-- },
|
||||||
opts = {
|
-- opts = {
|
||||||
-- 配置放在这里
|
-- -- 配置放在这里
|
||||||
cn = {
|
-- cn = {
|
||||||
enabled = true,
|
-- enabled = true,
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -24,5 +24,25 @@ return {
|
|||||||
event = { "CmdlineEnter" },
|
event = { "CmdlineEnter" },
|
||||||
ft = { "go", 'gomod' },
|
ft = { "go", 'gomod' },
|
||||||
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
|
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
|
||||||
|
},
|
||||||
|
{
|
||||||
|
-- 终端
|
||||||
|
'akinsho/toggleterm.nvim',
|
||||||
|
version = "*",
|
||||||
|
config = function()
|
||||||
|
require("toggleterm").setup {
|
||||||
|
-- size can be a number or function which is passed the current terminal
|
||||||
|
size = 10,
|
||||||
|
open_mapping = [[<c-t>]],
|
||||||
|
hide_numbers = true, -- hide the number column in toggleterm buffers
|
||||||
|
shade_filetypes = {},
|
||||||
|
shade_terminals = true,
|
||||||
|
shading_factor = 1, -- the degree by which to darken to terminal colour, default: 1 for dark backgrounds, 3 for light
|
||||||
|
start_in_insert = true,
|
||||||
|
insert_mappings = true, -- whether or not the open mapping applies in insert mode
|
||||||
|
persist_size = true,
|
||||||
|
direction = 'horizontal',
|
||||||
|
}
|
||||||
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -237,10 +237,19 @@ return {
|
|||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
config = function()
|
config = function()
|
||||||
local treesitter_opt = {
|
local treesitter_opt = {
|
||||||
ensure_installed = {},
|
ensure_installed = {
|
||||||
|
"c",
|
||||||
|
"cpp",
|
||||||
|
"python",
|
||||||
|
"java",
|
||||||
|
"lua",
|
||||||
|
"bash",
|
||||||
|
"vimdoc",
|
||||||
|
},
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
ignore_install = {
|
ignore_install = {
|
||||||
"go", "txt"
|
"txt",
|
||||||
|
"go"
|
||||||
},
|
},
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
@ -267,6 +276,7 @@ return {
|
|||||||
|
|
||||||
}
|
}
|
||||||
require 'nvim-treesitter.configs'.setup(treesitter_opt)
|
require 'nvim-treesitter.configs'.setup(treesitter_opt)
|
||||||
|
require 'nvim-treesitter.install'.prefer_git = true
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
return {
|
|
||||||
-- amongst your other plugins
|
|
||||||
{
|
|
||||||
'akinsho/toggleterm.nvim',
|
|
||||||
version = "*",
|
|
||||||
config = function()
|
|
||||||
require("toggleterm").setup {
|
|
||||||
-- size can be a number or function which is passed the current terminal
|
|
||||||
size = 10,
|
|
||||||
open_mapping = [[<c-t>]],
|
|
||||||
hide_numbers = true, -- hide the number column in toggleterm buffers
|
|
||||||
shade_filetypes = {},
|
|
||||||
shade_terminals = true,
|
|
||||||
shading_factor = 1, -- the degree by which to darken to terminal colour, default: 1 for dark backgrounds, 3 for light
|
|
||||||
start_in_insert = true,
|
|
||||||
insert_mappings = true, -- whether or not the open mapping applies in insert mode
|
|
||||||
persist_size = true,
|
|
||||||
direction = 'horizontal',
|
|
||||||
}
|
|
||||||
end
|
|
||||||
},
|
|
||||||
|
|
||||||
}
|
|
@ -3,11 +3,11 @@
|
|||||||
"prefix": "class",
|
"prefix": "class",
|
||||||
"body": "type $1 struct{$2}\n$0"
|
"body": "type $1 struct{$2}\n$0"
|
||||||
},
|
},
|
||||||
"err": {
|
"errnil": {
|
||||||
"prefix": "err",
|
"prefix": "errnil",
|
||||||
"body": [
|
"body": [
|
||||||
"if err != nil {",
|
"if err != nil {",
|
||||||
" panic(err)$1",
|
" $1",
|
||||||
"}"
|
"}"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user