diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-11-28 17:07:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-28 17:07:04 -0500 |
| commit | 8131cf46f844adeb006a9075200f70062ec382e9 (patch) | |
| tree | 4a1c9471ab3946077268ec6485db492bf82ca1a6 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-8131cf46f844adeb006a9075200f70062ec382e9.tar nvim-lspconfig-8131cf46f844adeb006a9075200f70062ec382e9.tar.gz nvim-lspconfig-8131cf46f844adeb006a9075200f70062ec382e9.tar.bz2 nvim-lspconfig-8131cf46f844adeb006a9075200f70062ec382e9.tar.lz nvim-lspconfig-8131cf46f844adeb006a9075200f70062ec382e9.tar.xz nvim-lspconfig-8131cf46f844adeb006a9075200f70062ec382e9.tar.zst nvim-lspconfig-8131cf46f844adeb006a9075200f70062ec382e9.zip | |
fix(eslint): default to location mode for workingDirectory (#1506)
* location mode uses the workspace folder location or
the file location (if no workspace folder is open) as
the working directory
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/eslint.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lua/lspconfig/server_configurations/eslint.lua b/lua/lspconfig/server_configurations/eslint.lua index 71a6b38d..06658f30 100644 --- a/lua/lspconfig/server_configurations/eslint.lua +++ b/lua/lspconfig/server_configurations/eslint.lua @@ -81,10 +81,8 @@ return { -- nodePath configures the directory in which the eslint server should start its node_modules resolution. -- This path is relative to the workspace folder (root dir) of the server instance. nodePath = '', - -- Automatically determine working directory by locating .eslintrc config files. - -- - -- It's recommended not to change this. - workingDirectory = { mode = 'auto' }, + -- use the workspace folder location or the file location (if no workspace folder is open) as the working directory + workingDirectory = { mode = 'location' }, codeAction = { disableRuleComment = { enable = true, |
