mirror of
https://github.com/ribru17/ts_query_ls.git
synced 2025-12-23 05:36:52 +00:00
docs: show how to disable the query linter for Neovim
Also update the packaging status for some platforms
This commit is contained in:
parent
d56003015b
commit
23983d7558
1 changed files with 10 additions and 3 deletions
13
README.md
13
README.md
|
|
@ -33,6 +33,9 @@
|
|||
Example setup (for Neovim):
|
||||
|
||||
```lua
|
||||
-- Disable the (slow) builtin query linter
|
||||
vim.g.query_lint_on = {}
|
||||
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'query',
|
||||
callback = function(ev)
|
||||
|
|
@ -43,7 +46,11 @@ vim.api.nvim_create_autocmd('FileType', {
|
|||
name = 'ts_query_ls',
|
||||
cmd = { '/path/to/ts_query_ls/target/release/ts_query_ls' },
|
||||
root_dir = vim.fs.root(0, { 'queries' }),
|
||||
settings = {
|
||||
-- OPTIONAL: Override the query omnifunc
|
||||
on_attach = function(_, buf)
|
||||
vim.bo[buf].omnifunc = 'v:lua.vim.lsp.omnifunc'
|
||||
end,
|
||||
init_options = {
|
||||
parser_install_directories = {
|
||||
-- If using nvim-treesitter with lazy.nvim
|
||||
vim.fs.joinpath(
|
||||
|
|
@ -97,8 +104,8 @@ vim.api.nvim_create_autocmd('FileType', {
|
|||
([in progress](https://github.com/Homebrew/homebrew-core/pull/197587),
|
||||
requires repo to reach 75 GitHub stars)
|
||||
- [x] [`nixpkgs`](https://github.com/NixOS/nixpkgs)
|
||||
- [ ] [`mason.nvim`](https://github.com/mason-org/mason-registry)
|
||||
([in progress](https://github.com/mason-org/mason-registry/pull/7849))
|
||||
- [x] [`mason.nvim`](https://github.com/mason-org/mason-registry)
|
||||
- [x] [`AUR`](https://aur.archlinux.org/)
|
||||
|
||||
And others?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue