nvim/lua/plugs/dev.lua

49 lines
1.4 KiB
Lua
Raw Normal View History

2024-01-20 00:48:15 +08:00
return {
'lilydjwg/colorizer', -- 颜色识别
{
-- 类似postman的curl工具
"rest-nvim/rest.nvim",
dependencies = { { "nvim-lua/plenary.nvim" } },
config = function()
require("rest-nvim").setup({
--- Get the same options from Packer setup
})
end
},
{
-- go开发
"ray-x/go.nvim",
dependencies = { -- optional packages
"ray-x/guihua.lua",
"neovim/nvim-lspconfig",
"nvim-treesitter/nvim-treesitter",
},
config = function()
require("go").setup()
end,
2024-01-27 14:25:50 +08:00
-- event = { "CmdlineEnter" },
2024-01-20 00:48:15 +08:00
ft = { "go", 'gomod' },
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
2024-01-27 12:31:15 +08:00
},
{
-- 终端
'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
2024-01-20 00:48:15 +08:00
}
}