Skip to content

Commit

Permalink
feat(nvim): Add yaml-language-server for autocomplete in Github Actio…
Browse files Browse the repository at this point in the history
…ns files
  • Loading branch information
mrjones2014 committed Nov 14, 2023
1 parent 1cc5e07 commit 134f3b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions home-manager/modules/nvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ in {
marksman
sumneko-lua-language-server
nodePackages_latest.typescript-language-server
yaml-language-server

# this includes css-lsp, html-lsp, json-lsp, eslint-lsp
nodePackages_latest.vscode-langservers-extracted
Expand Down
4 changes: 4 additions & 0 deletions nvim/lua/my/lsp/filetypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ M.config = {
formatter = 'fish_indent',
linter = 'fish',
},
['yaml'] = {
lspconfig = 'yamlls',
treesitter = { 'yaml' },
},
}

M.filetypes = vim.tbl_keys(M.config)
Expand Down

0 comments on commit 134f3b6

Please sign in to comment.