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

View File

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

View File

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

View File

@@ -1,11 +1,10 @@
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
local nls = require("null-ls")
opts.sources = opts.sources or {}
vim.list_extend(opts.sources, {
nls.builtins.formatting.mdformat,
})
end,
}

View File

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

View File

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