feat: correct my lvim config

This commit is contained in:
2024-09-02 23:36:54 +04:00
parent 0da8243d12
commit b767beebd0
10 changed files with 178 additions and 21 deletions

View File

@@ -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
},
{