more plugins
This commit is contained in:
parent
2f582ee112
commit
4f6a4c571d
7 changed files with 162 additions and 0 deletions
19
lua/plugins/cmp.lua
Normal file
19
lua/plugins/cmp.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-nvim-lsp"
|
||||
},
|
||||
opts = function()
|
||||
require "config.plugins.cmp"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
dependencies = {
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
"rafamadriz/friendly-snippets"
|
||||
},
|
||||
opts = {}
|
||||
},
|
||||
}
|
34
lua/plugins/lspconfig.lua
Normal file
34
lua/plugins/lspconfig.lua
Normal file
|
@ -0,0 +1,34 @@
|
|||
return {
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
require("mason").setup({
|
||||
ui = {
|
||||
icons = {
|
||||
package_installed = "✓",
|
||||
package_pending = "➜",
|
||||
package_uninstalled = "✗"
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function()
|
||||
require "config.plugins.mason"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
"neovim/nvim-lspconfig"
|
||||
},
|
||||
opts = {
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = { "lua_ls" },
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
21
lua/plugins/mason.lua
Normal file
21
lua/plugins/mason.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
dependencies = {},
|
||||
opts = function()
|
||||
require "config.plugins.mason"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
"neovim/nvim-lspconfig"
|
||||
},
|
||||
opts = {
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = { "lua_ls" },
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue