update
This commit is contained in:
parent
c6dd7ac677
commit
21bdf41b37
@ -4,30 +4,29 @@ return {
|
||||
require('plugs.nvimtree'), -- nvimtree
|
||||
require('plugs.theme'), -- theme
|
||||
require("plugs.edit-plugs"),
|
||||
require("plugs.toggleterm"),
|
||||
require("plugs.dev"),
|
||||
|
||||
|
||||
-- leetcode刷题
|
||||
{
|
||||
"kawre/leetcode.nvim",
|
||||
build = ":TSUpdate html",
|
||||
dependencies = {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"nvim-lua/plenary.nvim", -- telescope 所需
|
||||
"MunifTanjim/nui.nvim",
|
||||
-- {
|
||||
-- "kawre/leetcode.nvim",
|
||||
-- build = ":TSUpdate html",
|
||||
-- dependencies = {
|
||||
-- "nvim-telescope/telescope.nvim",
|
||||
-- "nvim-lua/plenary.nvim", -- telescope 所需
|
||||
-- "MunifTanjim/nui.nvim",
|
||||
|
||||
-- 可选
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"rcarriga/nvim-notify",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
opts = {
|
||||
-- 配置放在这里
|
||||
cn = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
-- -- 可选
|
||||
-- "nvim-treesitter/nvim-treesitter",
|
||||
-- "rcarriga/nvim-notify",
|
||||
-- "nvim-tree/nvim-web-devicons",
|
||||
-- },
|
||||
-- opts = {
|
||||
-- -- 配置放在这里
|
||||
-- cn = {
|
||||
-- enabled = true,
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
|
||||
}
|
||||
|
@ -24,5 +24,25 @@ return {
|
||||
event = { "CmdlineEnter" },
|
||||
ft = { "go", 'gomod' },
|
||||
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',
|
||||
config = function()
|
||||
local treesitter_opt = {
|
||||
ensure_installed = {},
|
||||
ensure_installed = {
|
||||
"c",
|
||||
"cpp",
|
||||
"python",
|
||||
"java",
|
||||
"lua",
|
||||
"bash",
|
||||
"vimdoc",
|
||||
},
|
||||
indent = { enable = true },
|
||||
ignore_install = {
|
||||
"go", "txt"
|
||||
"txt",
|
||||
"go"
|
||||
},
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
@ -267,6 +276,7 @@ return {
|
||||
|
||||
}
|
||||
require 'nvim-treesitter.configs'.setup(treesitter_opt)
|
||||
require 'nvim-treesitter.install'.prefer_git = true
|
||||
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",
|
||||
"body": "type $1 struct{$2}\n$0"
|
||||
},
|
||||
"err": {
|
||||
"prefix": "err",
|
||||
"errnil": {
|
||||
"prefix": "errnil",
|
||||
"body": [
|
||||
"if err != nil {",
|
||||
" panic(err)$1",
|
||||
" $1",
|
||||
"}"
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user