Skip to content

Commit 8e8db4d

Browse files
committed
1 parent c7e5aaf commit 8e8db4d

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

nvim/lua/kickstart/plugins/lspconfig.lua

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ return {
2020
event = { 'BufReadPre', 'BufNewFile' },
2121
dependencies = {
2222
-- Automatically install LSPs and related tools to stdpath for Neovim
23-
{ 'mason-org/mason.nvim', opts = {} },
24-
'mason-org/mason-lspconfig.nvim',
23+
{ 'mason-org/mason.nvim', version = 'v1.*', opts = {} },
24+
{ 'mason-org/mason-lspconfig.nvim', version = 'v1.*' },
2525
'WhoIsSethDaniel/mason-tool-installer.nvim',
2626

2727
-- Useful status updates for LSP.
@@ -324,7 +324,19 @@ return {
324324
typos_lsp = {},
325325

326326
-- YAML
327-
yamlls = {},
327+
yamlls = {
328+
settings = {
329+
yaml = {
330+
customTags = {
331+
'!secret scalar',
332+
'!include scalar',
333+
'!include_dir_merge_named scalar',
334+
'!include_dir_merge_list scalar',
335+
'!input scalar',
336+
},
337+
},
338+
},
339+
},
328340
}
329341

330342
-- Ensure the servers and tools above are installed
@@ -355,9 +367,6 @@ return {
355367
automatic_installation = false,
356368
handlers = {
357369
function(server_name)
358-
-- https://github.com/neovim/nvim-lspconfig/pull/3232#issuecomment-2331025714
359-
-- if server_name == 'tsserver' then server_name = 'ts_ls' end
360-
361370
local server = servers[server_name] or {}
362371
-- This handles overriding only values explicitly passed
363372
-- by the server configuration above. Useful when disabling

0 commit comments

Comments
 (0)