添加其他语言插件;优化快捷键

This commit is contained in:
LingZhaoHui 2024-06-14 22:22:40 +08:00
parent afc0b62a78
commit f1804bfd38
Signed by: zeekling
GPG Key ID: D96E4E75267CA2CC
5 changed files with 14 additions and 29 deletions

View File

@ -10,7 +10,6 @@ return {
}, },
config = function() config = function()
local cmp = require("cmp") local cmp = require("cmp")
cmp.setup({ cmp.setup({
snippet = { snippet = {
expand = function(args) expand = function(args)
@ -36,6 +35,14 @@ return {
}, },
{ {
"neovim/nvim-lspconfig" "neovim/nvim-lspconfig"
},
{
"nvim-treesitter/nvim-treesitter",
config = function()
require('nvim-treesitter.configs').setup {
ensure_installed = { 'c', 'cpp', 'cmake', 'bash', 'go', 'lua', 'python', 'java', 'git_config', 'git_rebase', 'gitattributes', 'gitcommit', 'gitignore', 'groovy', 'json', 'sql', 'vim', 'xml', 'tcl'},
}
end,
} }
} }

View File

@ -5,6 +5,5 @@ return {
build = function() build = function()
vim.fn["mkdp#util#install"]() vim.fn["mkdp#util#install"]()
end, end,
lazy = true;
} }

View File

@ -1,7 +1,6 @@
return { return {
{ {
"nathom/filetype.nvim", "nathom/filetype.nvim",
lazy = true,
event = "User FileOpened", event = "User FileOpened",
config = function() config = function()
require("filetype").setup({ require("filetype").setup({
@ -16,7 +15,6 @@ return {
{ {
"HiPhish/nvim-ts-rainbow2", "HiPhish/nvim-ts-rainbow2",
-- Bracket pair rainbow colorize -- Bracket pair rainbow colorize
lazy = true,
event = { "User FileOpened" }, event = { "User FileOpened" },
}, },
{ {
@ -40,7 +38,6 @@ return {
}, },
{ {
"windwp/nvim-spectre", "windwp/nvim-spectre",
lazy = true,
cmd = { "Spectre" }, cmd = { "Spectre" },
config = function() config = function()
require("spectre").setup() require("spectre").setup()
@ -49,7 +46,6 @@ return {
{ {
"andymass/vim-matchup", "andymass/vim-matchup",
-- Highlight, jump between pairs like if..else -- Highlight, jump between pairs like if..else
lazy = true,
event = { "User FileOpened" }, event = { "User FileOpened" },
config = function() config = function()
vim.g.matchup_matchparen_offscreen = { method = "popup" } vim.g.matchup_matchparen_offscreen = { method = "popup" }
@ -84,7 +80,6 @@ return {
{ {
"folke/noice.nvim", "folke/noice.nvim",
enabled = ENABLE_NOICE, enabled = ENABLE_NOICE,
lazy = true,
event = { "BufRead", "BufNewFile" }, event = { "BufRead", "BufNewFile" },
dependencies = { "rcarriga/nvim-notify", "MunifTanjim/nui.nvim" }, dependencies = { "rcarriga/nvim-notify", "MunifTanjim/nui.nvim" },
config = function() config = function()
@ -115,10 +110,9 @@ return {
}) })
end, end,
}, },
{ "lukas-reineke/cmp-under-comparator", lazy = true }, { "lukas-reineke/cmp-under-comparator" },
{ {
"ray-x/cmp-treesitter", "ray-x/cmp-treesitter",
lazy = true,
}, },
{ {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
@ -138,7 +132,6 @@ return {
}, },
{ {
"tiagovla/scope.nvim", "tiagovla/scope.nvim",
lazy = false
}, },
{ {
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
@ -162,6 +155,7 @@ return {
{ {
"azabiong/vim-highlighter", "azabiong/vim-highlighter",
}, },
{"stevearc/dressing.nvim", opts = {}} {"stevearc/dressing.nvim",
opts = {}}
} }

View File

@ -1,20 +1,6 @@
return { return {
{ {
"tpope/vim-fugitive", "tpope/vim-fugitive",
cmd = {
"G",
"Git",
"Gdiffsplit",
"Gread",
"Gwrite",
"Ggrep",
"GMove",
"GDelete",
"GBrowse",
"GRemove",
"GRename",
"Glgrep",
"Gedit"
}
} }
} }

View File

@ -4,8 +4,7 @@ return {
}, },
{ {
"Mofiqul/vscode.nvim", "Mofiqul/vscode.nvim",
lazy = false, -- make sure we load this during startup if it is your main colorscheme lazy=false,
priority = 1000, -- make sure to load this before all the other start plugins
config = function() config = function()
require('vscode').setup({ require('vscode').setup({
}) })