You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
preferIgnoreFile=true, -- set to false to prefer `hyprls.ignore`
82
+
ignore= {"hyprlock.conf", "hypridle.conf"}
83
+
}
84
+
}
85
+
}
80
86
end
81
87
})
82
88
```
83
89
90
+
You can control whether HyprLS prefers a workspace `.hyprlsignore` file or the editor settings with the `hyprls.preferIgnoreFile` option. Example configurations:
91
+
92
+
- Using `vim.lsp.start` (example above) — set `settings.hyprls.preferIgnoreFile` to `false` to force the server to use `settings.hyprls.ignore`.
93
+
94
+
- Using `nvim-lspconfig`:
95
+
96
+
```lua
97
+
locallspconfig=require('lspconfig')
98
+
lspconfig.hyprlang.setup{
99
+
cmd= {"hyprls"},
100
+
settings= {
101
+
hyprls= {
102
+
preferIgnoreFile=false,
103
+
ignore= {"hyprlock.conf", "hypridle.conf"}
104
+
}
105
+
}
106
+
}
107
+
```
108
+
109
+
When `preferIgnoreFile` is `true` (the default), HyprLS will read `.hyprlsignore` from your workspace root. When it's `false`, it will use the `hyprls.ignore` array from your editor configuration instead.
110
+
111
+
Example `.hyprlsignore` (create this file at the workspace root):
112
+
113
+
```
114
+
# ignore session-specific files
115
+
hyprlock.conf
116
+
hypridle.conf
117
+
# ignore any file named workspace-specific.ignore
118
+
workspace-specific.ignore
119
+
```
120
+
121
+
Notes for Neovim users:
122
+
123
+
- If you set `preferIgnoreFile = true`, HyprLS will use the workspace `.hyprlsignore` file and ignore any `settings.hyprls.ignore` values passed from Neovim.
124
+
- If you set `preferIgnoreFile = false`, HyprLS will use the `ignore` list you provide in `settings.hyprls` (see `nvim-lspconfig` example above).
125
+
84
126
### With Emacs
85
127
Language server support is provided by the [lsp-bridge](https://github.com/manateelazycat/lsp-bridge).
Copy file name to clipboardExpand all lines: vscode/README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,3 +3,23 @@
3
3
## Installation
4
4
5
5
Requires [installing `hyprls`](https://github.com/ewen-lbh/hyprls) and having in on your PATH.
6
+
7
+
## Ignore file preference
8
+
9
+
By default HyprLS will prefer a `.hyprlsignore` file in your workspace to list filenames or patterns that the language server should ignore. This behavior can be overridden by a configuration option exposed by the VSCode extension.
0 commit comments