Migrate NVIM config to a lazyvim setup #1
@@ -20,6 +20,7 @@ require("lazy").setup({
|
||||
{ import = "lazyvim.plugins.extras.lang.json" },
|
||||
{ import = "lazyvim.plugins.extras.lang.terraform" },
|
||||
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
||||
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
||||
{ import = "plugins.tokyonight" },
|
||||
},
|
||||
defaults = {
|
||||
|
||||
8
nvim/lua/plugins/mason.lua
Normal file
8
nvim/lua/plugins/mason.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.ensure_installed, {
|
||||
"marksman",
|
||||
"mdformat",
|
||||
})
|
||||
end,
|
||||
}
|
||||
11
nvim/lua/plugins/null-ls.lua
Normal file
11
nvim/lua/plugins/null-ls.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
opts = function(_, opts)
|
||||
if type(opts.sources) == "table" then
|
||||
local null_ls = require("null-ls")
|
||||
vim.list_extend(opts.sources, {
|
||||
null_ls.builtins.formatting.mdformat,
|
||||
})
|
||||
end
|
||||
end,
|
||||
}
|
||||
10
nvim/lua/plugins/nvim-lspconfig.lua
Normal file
10
nvim/lua/plugins/nvim-lspconfig.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = function(_, opts)
|
||||
if type(opts.servers) == "table" then
|
||||
vim.list_extend(opts.servers, {
|
||||
"marksman",
|
||||
})
|
||||
end
|
||||
end,
|
||||
}
|
||||
10
nvim/lua/plugins/nvim-treesitter.lua
Normal file
10
nvim/lua/plugins/nvim-treesitter.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, {
|
||||
"markdown",
|
||||
})
|
||||
end
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user