Skip to content

Commit 239c1b6

Browse files
committed
Add services for languages
1 parent 1f73183 commit 239c1b6

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

config/nvim/lua/plugins/plugins.lua

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,44 @@ return {
7373
-- interface
7474
{ "stevearc/dressing.nvim" },
7575

76+
{
77+
"williamboman/mason.nvim",
78+
opts = {
79+
ensure_installed = {
80+
"bash-language-server",
81+
"clang-format",
82+
"clangd",
83+
"cmakelang",
84+
"codespell",
85+
"debugpy",
86+
"docker-compose-language-service",
87+
"dockerfile-language-server",
88+
"hadolint",
89+
"jupytext",
90+
"luacheck",
91+
"luaformatter",
92+
"lua-language-server",
93+
"markdown-oxide",
94+
"markdown-toc",
95+
"markdownlint",
96+
"markdownlint-cli2",
97+
"marksman",
98+
"misspell",
99+
"neocmakelsp",
100+
"pyright",
101+
"python-lsp-server",
102+
"ruff",
103+
"shellcheck",
104+
"shfmt",
105+
"stylua",
106+
"taplo",
107+
"yamlfmt",
108+
"yamllint",
109+
"yaml-language-server",
110+
},
111+
},
112+
},
113+
76114
{
77115
"nvim-neo-tree/neo-tree.nvim",
78116
opts = {
@@ -160,6 +198,29 @@ return {
160198
end,
161199
},
162200

201+
-- add more treesitter parsers
202+
{
203+
"nvim-treesitter/nvim-treesitter",
204+
opts = function(_, opts)
205+
-- add tsx and treesitter
206+
vim.list_extend(opts.ensure_installed, {
207+
"bash",
208+
"cpp",
209+
"json",
210+
"lua",
211+
"markdown",
212+
"markdown_inline",
213+
"python",
214+
"regex",
215+
"vim",
216+
"xml",
217+
"yaml",
218+
})
219+
220+
return opts
221+
end,
222+
},
223+
163224
-- trim trailing whitespace
164225
{
165226
"cappyzawa/trim.nvim",

0 commit comments

Comments
 (0)