mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-08 12:05:06 +02:00
added markdown linting and formatting
This commit is contained in:
parent
c35e42337a
commit
fd43e168ee
6 changed files with 90 additions and 71 deletions
|
@ -41,6 +41,7 @@ return { -- Autoformat
|
|||
jsonc = { 'prettierd' },
|
||||
yaml = { 'prettierd' },
|
||||
go = { 'goimports', 'golines' },
|
||||
markdown = { 'mdformat' },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -219,9 +219,21 @@ return {
|
|||
-- Some languages (like typescript) have entire language plugins that can be useful:
|
||||
-- https://github.com/pmizio/typescript-tools.nvim
|
||||
--
|
||||
vue_ls = {},
|
||||
-- But for many setups, the LSP (`ts_ls`) will work just fine
|
||||
-- ts_ls = {},
|
||||
--
|
||||
ts_ls = {
|
||||
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
|
||||
init_options = {
|
||||
plugins = {
|
||||
{
|
||||
name = '@vue/typescript-plugin',
|
||||
location = vim.fn.stdpath 'data' .. '/mason/packages/vue-language-server/node_modules/@vue/language-server',
|
||||
languages = { 'vue' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
yamlls = {},
|
||||
lua_ls = {
|
||||
-- cmd = { ... },
|
||||
-- filetypes = { ... },
|
||||
|
@ -257,6 +269,11 @@ return {
|
|||
'goimports',
|
||||
'golines',
|
||||
'prettierd',
|
||||
'jsonlint',
|
||||
'markdownlint',
|
||||
'mdformat',
|
||||
'yamllint',
|
||||
'eslint_d',
|
||||
})
|
||||
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue