mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 02:17:09 +10:00
feat(treesitter): add a query editor (#24703)
This commit is contained in:
committed by
GitHub
parent
ecd99e7dd7
commit
5d8ab32f38
@@ -1,6 +1,6 @@
|
||||
-- Neovim filetype plugin file
|
||||
-- Language: Tree-sitter query
|
||||
-- Last Change: 2022 Apr 25
|
||||
-- Last Change: 2023 Aug 23
|
||||
|
||||
if vim.b.did_ftplugin == 1 then
|
||||
return
|
||||
@@ -14,6 +14,8 @@ vim.treesitter.start()
|
||||
-- set omnifunc
|
||||
vim.bo.omnifunc = 'v:lua.vim.treesitter.query.omnifunc'
|
||||
|
||||
vim.opt_local.iskeyword:append('.')
|
||||
|
||||
-- query linter
|
||||
local buf = vim.api.nvim_get_current_buf()
|
||||
local query_lint_on = vim.g.query_lint_on or { 'BufEnter', 'BufWrite' }
|
||||
|
||||
Reference in New Issue
Block a user