add markdown

This commit is contained in:
2023-09-25 15:44:30 +03:00
parent d7abe6b6aa
commit 9ac06c7fd0
6 changed files with 25 additions and 20 deletions

12
flake.lock generated
View File

@@ -5,11 +5,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1692799911, "lastModified": 1694529238,
"narHash": "sha256-3eihraek4qL744EvQXsK1Ha6C3CR7nnT8X2qWap4RNk=", "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "f9e7cf818399d17d347f847525c5a5a8032e4e44", "rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -20,11 +20,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1692986144, "lastModified": 1695559356,
"narHash": "sha256-M4VFpy7Av9j+33HF5nIGm0k2+DXXW4qSSKdidIKg5jY=", "narHash": "sha256-kXZ1pUoImD9OEbPCwpTz4tHsNTr4CIyIfXb3ocuR8sI=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "74e5bdc5478ebbe7ba5849f0d765f92757bb9dbf", "rev": "261abe8a44a7e8392598d038d2e01f7b33cf26d0",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -22,6 +22,11 @@ require("lazy").setup({
{ import = "lazyvim.plugins.extras.lang.yaml" }, { import = "lazyvim.plugins.extras.lang.yaml" },
{ import = "lazyvim.plugins.extras.formatting.prettier" }, { import = "lazyvim.plugins.extras.formatting.prettier" },
{ import = "plugins.tokyonight" }, { import = "plugins.tokyonight" },
{ import = "plugins.telescope" },
{ import = "plugins.mason" },
{ import = "plugins.null-ls" },
{ import = "plugins.nvim-lspconfig" },
{ import = "plugins.nvim-treesitter" },
}, },
defaults = { defaults = {
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup. -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.

View File

@@ -1,6 +1,8 @@
return { return {
"williamboman/mason.nvim",
opts = function(_, opts) opts = function(_, opts)
table.insert(opts.ensure_installed, { opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, {
"marksman", "marksman",
"mdformat", "mdformat",
}) })

View File

@@ -1,11 +1,10 @@
return { return {
"jose-elias-alvarez/null-ls.nvim", "jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts) opts = function(_, opts)
if type(opts.sources) == "table" then local nls = require("null-ls")
local null_ls = require("null-ls") opts.sources = opts.sources or {}
vim.list_extend(opts.sources, { vim.list_extend(opts.sources, {
null_ls.builtins.formatting.mdformat, nls.builtins.formatting.mdformat,
}) })
end
end, end,
} }

View File

@@ -1,10 +1,8 @@
return { return {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
opts = function(_, opts) opts = {
if type(opts.servers) == "table" then servers = {
vim.list_extend(opts.servers, { marksman = {},
"marksman", },
}) },
end
end,
} }

View File

@@ -4,6 +4,7 @@ return {
if type(opts.ensure_installed) == "table" then if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { vim.list_extend(opts.ensure_installed, {
"markdown", "markdown",
"markdown_inline",
}) })
end end
end, end,