feat: correct my lvim config
This commit is contained in:
@@ -10,9 +10,27 @@ lvim.plugins = {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'kevinhwang91/nvim-ufo',
|
||||
},
|
||||
{
|
||||
'kevinhwang91/promise-async',
|
||||
},
|
||||
{
|
||||
'rust-lang/rust.vim',
|
||||
},
|
||||
{
|
||||
'MunifTanjim/prettier.nvim'
|
||||
},
|
||||
{
|
||||
'alx741/vim-rustfmt',
|
||||
},
|
||||
{
|
||||
"savq/melange-nvim"
|
||||
},
|
||||
{
|
||||
'theHamsta/nvim-dap-virtual-text',
|
||||
},
|
||||
{
|
||||
"HoNamDuong/hybrid.nvim",
|
||||
lazy = false,
|
||||
@@ -38,9 +56,9 @@ lvim.plugins = {
|
||||
"vague2k/huez.nvim",
|
||||
},
|
||||
{
|
||||
'Bekaboo/dropbar.nvim',
|
||||
"Bekaboo/dropbar.nvim",
|
||||
dependencies = {
|
||||
'nvim-telescope/telescope-fzf-native.nvim'
|
||||
"nvim-telescope/telescope-fzf-native.nvim"
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -52,12 +70,40 @@ lvim.plugins = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
},
|
||||
-- load luasnips + cmp related in insert mode only
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
event = "InsertEnter",
|
||||
dependencies = {
|
||||
{
|
||||
-- snippet plugin
|
||||
"L3MON4D3/LuaSnip",
|
||||
dependencies = "rafamadriz/friendly-snippets",
|
||||
opts = { history = true, updateevents = "TextChanged,TextChangedI" },
|
||||
config = function(_, opts)
|
||||
require("luasnip").config.set_config(opts)
|
||||
require "configs.luasnip"
|
||||
end,
|
||||
},
|
||||
-- cmp sources plugins
|
||||
{
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
"hrsh7th/cmp-nvim-lua",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
},
|
||||
{
|
||||
"luckasRanarison/tailwind-tools.nvim",
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||
},
|
||||
{
|
||||
'kyazdani42/nvim-web-devicons'
|
||||
"kyazdani42/nvim-web-devicons"
|
||||
},
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
@@ -83,7 +129,7 @@ lvim.plugins = {
|
||||
build = "npm install --legacy-peer-deps && npx gulp vsDebugServerBundle && mv dist out"
|
||||
},
|
||||
{
|
||||
"NvChad/nvim-colorizer.lua"
|
||||
'NvChad/nvim-colorizer.lua',
|
||||
},
|
||||
{
|
||||
"folke/neodev.nvim", opts = {}
|
||||
@@ -100,26 +146,18 @@ lvim.plugins = {
|
||||
enabled = vim.fn.has("nvim-0.10.0") == 1,
|
||||
},
|
||||
{
|
||||
'windwp/nvim-autopairs',
|
||||
"windwp/nvim-autopairs",
|
||||
event = "InsertEnter",
|
||||
config = true
|
||||
-- use opts = {} for passing setup options
|
||||
-- this is equalent to setup({}) function
|
||||
},
|
||||
{
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
{
|
||||
"rust-lang/rust.vim",
|
||||
ft = "rust",
|
||||
init = function ()
|
||||
vim.g.rustfmt_autosave = 1
|
||||
end
|
||||
},
|
||||
{
|
||||
'mrcjkb/rustaceanvim',
|
||||
"mrcjkb/rustaceanvim",
|
||||
version = '^4', -- Recommended
|
||||
ft = "rust",
|
||||
lazy = false, -- This plugin is already lazy
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user