ecosse3 / nvim

A non-minimal Neovim config built to work most efficiently with Frontend Development
GNU General Public License v3.0
1.25k stars 110 forks source link

Usage of filetypes in LSP #14

Closed akiletour closed 2 years ago

akiletour commented 2 years ago

Hello,

Thanks you for your amazing setup :) I love it !

I wanted to know how the LSP configuration files work.

For example on the HTML one, I would like to add filetypes but I don't know how to do it.

Should we do it in M.settings = {}?

Thanks a lot

ecosse3 commented 2 years ago

Exactly. Everything passed in settings property is passed to server settings property. Reference to official lspconfig to see what options HTML has. I will update repo later by extending whole opts in each Lsp server.

To extend filetypes, you also need to edit lsp/installer.lua to and pass filetypes as option.

https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md

I am going to provide some versioning as well as change log for Ecovim soon.

akiletour commented 2 years ago

Thanks it's working :)