Closed 0x00-ketsu closed 10 months ago
Enable option filter in finder, there is a error occurred, as below
filter
finder
class Foo: pass if __name__ == "__main__": f = Foo()
local api = vim.api api.nvim_command('set nu') api.nvim_command('set relativenumber') -- Plugins local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' if not vim.loop.fs_stat(lazypath) then vim.fn.system( { 'git', 'clone', '--filter=blob:none', 'https://github.com/folke/lazy.nvim.git', '--branch=stable', -- latest stable release lazypath } ) end vim.opt.rtp:prepend(lazypath) -- Example using a list of specs with the default options vim.g.mapleader = ',' -- Make sure to set `mapleader` before lazy so your mappings are correct require('lazy').setup( { -- LuaFormatter off {'ellisonleao/gruvbox.nvim', config = function() require('gruvbox').setup {} end }, { 'hrsh7th/nvim-cmp', event = 'InsertEnter', config = function() require('cmp').setup {} end, dependencies = { {'hrsh7th/cmp-nvim-lsp'}, }, }, { 'neovim/nvim-lspconfig', config = function() require'lspconfig'.pyright.setup {} require'lspconfig'.gopls.setup {} end }, { 'williamboman/mason.nvim', config = function() require('mason').setup {} end }, {'williamboman/mason-lspconfig.nvim'}, { 'jose-elias-alvarez/null-ls.nvim', config = function() local null_ls = require('null-ls') local code_actions = null_ls.builtins.code_actions local diagnostics = null_ls.builtins.diagnostics null_ls.setup { sources = { code_actions.gitsigns, diagnostics.golangci_lint } } end, dependencies = {{'nvim-lua/plenary.nvim'}} }, -- LuaFormatter on { 'lewis6991/gitsigns.nvim', lazy = true, event = {'BufRead', 'BufNewFile'}, config = function() require('gitsigns').setup {} end, dependencies = {'nvim-lua/plenary.nvim'} }, { 'glepnir/lspsaga.nvim', event = 'BufRead', config = function() require('lspsaga').setup { finder = { filter = { ['textDocument/references'] = function(client_id, result) vim.print(client_id) return true end }, }, implement = {enable = true} } end, dependencies = {{'nvim-tree/nvim-web-devicons'}, {'nvim-treesitter/nvim-treesitter'}} } } )
Print client_id in stdin.
client_id
0.9.4
86ebca18
iterm2 3.4.19
finder.filer = { [method] = function(result) do filter end
Describe the bug
Enable option
filter
infinder
, there is a error occurred, as belowSteps to reproduce
Expected behavior
Print
client_id
in stdin.Neovim version (nvim -v)
0.9.4
lspsaga commit
86ebca18
Terminal name/version
iterm2 3.4.19