Setup a yaml schema | yamlls for a silky smooth setup
I’ve gone far too long without a good setup for editing yaml
files, I am missing out on autocomplete and proper diagnostics.
This ends today as I setup yaml-language-server in neovim.
https://youtu.be/xo4HrFoKF4c
The video for this one is part of a
challenge-playlist [1]
I put out for myself to constantly improve my dotfiles for all of December.
init.vim # [2]
I have my init.vim setup to only source other modules, if you want everything
in a single config, feel free to do as you wish. I broke mine up earlier this
year as I doubled into nvim and am not going back.
source ~/.config/nvim/plugins.vim
lua require'waylonwalker.cmp'
lua require'waylonwalker.lsp-config'
Plugin setup # [3]
You will need the following plugins. I use plug, if you don’t you will have to
convert the syntax over to the plugin manager you use.
neovim/nvim-lspconfig [4] is for
configuring the lsp. It comes with a bunch of sane defaults for most servers,
so you pretty much just have to call setup on that serv...