converted from packer to lazy
This commit is contained in:
parent
8c70ffcc1f
commit
7b6c664ceb
14 changed files with 137 additions and 96 deletions
8
.config/nvim/lua/plugins/comment.lua
Normal file
8
.config/nvim/lua/plugins/comment.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
return {
|
||||
'numToStr/Comment.nvim',
|
||||
-- opts = {}
|
||||
|
||||
config = function()
|
||||
require('Comment').setup()
|
||||
end,
|
||||
}
|
9
.config/nvim/lua/plugins/create-color-code.lua
Normal file
9
.config/nvim/lua/plugins/create-color-code.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"uga-rosa/ccc.nvim",
|
||||
opts = {
|
||||
highlighter = {
|
||||
auto_enable = true,
|
||||
lsp = false,
|
||||
},
|
||||
}
|
||||
}
|
12
.config/nvim/lua/plugins/lualine.lua
Normal file
12
.config/nvim/lua/plugins/lualine.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
|
||||
config = function()
|
||||
require('lualine').setup({
|
||||
options = {
|
||||
theme = 'nord',
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
25
.config/nvim/lua/plugins/mason.lua
Normal file
25
.config/nvim/lua/plugins/mason.lua
Normal file
|
@ -0,0 +1,25 @@
|
|||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
},
|
||||
|
||||
config = function()
|
||||
local lspconfig = require("lspconfig")
|
||||
local mason = require("mason")
|
||||
|
||||
mason.setup({
|
||||
ui = {
|
||||
icons = {
|
||||
package_installed = "✓",
|
||||
package_pending = "➜",
|
||||
package_uninstalled = "✗"
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
lspconfig.rust_analyzer.setup({})
|
||||
|
||||
end,
|
||||
}
|
7
.config/nvim/lua/plugins/nvim-autopairs.lua
Normal file
7
.config/nvim/lua/plugins/nvim-autopairs.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
'windwp/nvim-autopairs',
|
||||
event = "InsertEnter",
|
||||
config = true
|
||||
-- use opts = {} for passing setup options
|
||||
-- this is equivalent to setup({}) function
|
||||
}
|
11
.config/nvim/lua/plugins/nvim-tree.lua
Normal file
11
.config/nvim/lua/plugins/nvim-tree.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
return {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
version = "*",
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
config = function()
|
||||
require("nvim-tree").setup {}
|
||||
end,
|
||||
}
|
5
.config/nvim/lua/plugins/telescope.lua
Normal file
5
.config/nvim/lua/plugins/telescope.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.8',
|
||||
|
||||
dependencies = { 'nvim-lua/plenary.nvim' }
|
||||
}
|
14
.config/nvim/lua/plugins/theme.lua
Normal file
14
.config/nvim/lua/plugins/theme.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
-- the colorscheme should be available when starting neovim
|
||||
{
|
||||
--"folke/tokyonight.nvim",
|
||||
"shaunsingh/nord.nvim",
|
||||
lazy = false, -- make sure we load this during the startup if its your main colorscheme
|
||||
priority = 1000, -- make sure to load this before all the other start plugins
|
||||
config = function()
|
||||
-- load the colorscheme here
|
||||
--vim.cmd([[colorscheme tokyonight]])
|
||||
vim.cmd([[colorscheme nord]])
|
||||
end,
|
||||
}
|
||||
}
|
7
.config/nvim/lua/plugins/treesitter.lua
Normal file
7
.config/nvim/lua/plugins/treesitter.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
|
||||
configure = function()
|
||||
require('nvim-treesitter').setup()
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue