add markdown
This commit is contained in:
@@ -8,44 +8,45 @@ end
|
|||||||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||||
|
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
spec = {
|
spec = {
|
||||||
-- add LazyVim and import its plugins
|
-- add LazyVim and import its plugins
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.python" },
|
{ import = "lazyvim.plugins.extras.lang.python" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.json" },
|
{ import = "lazyvim.plugins.extras.lang.json" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.java" },
|
{ import = "lazyvim.plugins.extras.lang.java" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.go" },
|
{ import = "lazyvim.plugins.extras.lang.go" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.docker" },
|
{ import = "lazyvim.plugins.extras.lang.docker" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.json" },
|
{ import = "lazyvim.plugins.extras.lang.json" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.terraform" },
|
{ import = "lazyvim.plugins.extras.lang.terraform" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
||||||
{ import = "plugins.tokyonight" },
|
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
||||||
},
|
{ import = "plugins.tokyonight" },
|
||||||
defaults = {
|
},
|
||||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
defaults = {
|
||||||
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||||
lazy = false,
|
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
lazy = false,
|
||||||
-- have outdated releases, which may break your Neovim install.
|
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||||
version = false, -- always use the latest git commit
|
-- have outdated releases, which may break your Neovim install.
|
||||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
version = false, -- always use the latest git commit
|
||||||
},
|
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||||
install = { colorscheme = { "tokyonight", "habamax" } },
|
},
|
||||||
checker = { enabled = true }, -- automatically check for plugin updates
|
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||||
performance = {
|
checker = { enabled = true }, -- automatically check for plugin updates
|
||||||
rtp = {
|
performance = {
|
||||||
-- disable some rtp plugins
|
rtp = {
|
||||||
disabled_plugins = {
|
-- disable some rtp plugins
|
||||||
"gzip",
|
disabled_plugins = {
|
||||||
-- "matchit",
|
"gzip",
|
||||||
-- "matchparen",
|
-- "matchit",
|
||||||
-- "netrwPlugin",
|
-- "matchparen",
|
||||||
"tarPlugin",
|
-- "netrwPlugin",
|
||||||
"tohtml",
|
"tarPlugin",
|
||||||
"tutor",
|
"tohtml",
|
||||||
"zipPlugin",
|
"tutor",
|
||||||
},
|
"zipPlugin",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
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