tamago324 / nlsp-settings.nvim

A plugin for setting Neovim LSP with JSON or YAML files
MIT License
316 stars 18 forks source link

Make a note to ensure it's clear that it must be updated every time #37

Closed RossSmyth closed 1 year ago

RossSmyth commented 1 year ago

Hello, thank you for this plugin. It was confusing a bit confusing to me on two part:

  1. I just assumed that once I wrote the JSON file, it would be automatically applied each time I opened neovim
  2. It was unclear when :LspSettings Update [server] needed to be ran, which is after a buffer is opened and the LSP attaches

I was able to figure this out after looking at the source and seeing that you make raw LSP RPC calls.

my struggling: rust-lang/rustc-dev-guide#1545

tamago324 commented 1 year ago

Sorry. I do not understand what the problem is. Can you show the minimum configuration and procedure?

I thought that by doing setup_default_config it updates lspconfig.util.default_config, so it should not be a problem.

https://github.com/tamago324/nlsp-settings.nvim/blob/310879ce4286138412b835d8084330d5291f3d14/lua/nlspsettings.lua#L288-L292