Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol doesn't work #25

Open
LongYinStudio opened this issue Aug 14, 2023 · 0 comments
Open

Symbol doesn't work #25

LongYinStudio opened this issue Aug 14, 2023 · 0 comments

Comments

@LongYinStudio
Copy link

Report an error

vim.treesitter.query.get_node_text() is deprecated, use vim.treesitter.get_node_text() instead. :help deprecated
stack traceback:
        /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:288: in function 'get_node_text'
        ...im/site/pack/packer/start/nvim-gps/lua/nvim-gps/init.lua:343: in function 'add_node_data'
        ...im/site/pack/packer/start/nvim-gps/lua/nvim-gps/init.lua:375: in function 'get_data'
        ...im/site/pack/packer/start/nvim-gps/lua/nvim-gps/init.lua:421: in function <...im/site/pack/packer/s
tart/nvim-gps/lua/nvim-gps/init.lua:407>
        [C]: in function 'pcall'
        ...site/pack/packer/start/winbar.nvim/lua/winbar/winbar.lua:75: in function 'winbar_gps'
        ...site/pack/packer/start/winbar.nvim/lua/winbar/winbar.lua:124: in function 'show_winbar'
        ...m/site/pack/packer/start/winbar.nvim/lua/winbar/init.lua:13: in function <...m/site/pack/packer/sta
rt/winbar.nvim/lua/winbar/init.lua:12>
Press ENTER or type command to continue

lua/plugins/plugins-setup.lua

use 'nvim-treesitter/nvim-treesitter'
use {'fgheng/winbar.nvim'}
use {'SmiteshP/nvim-gps'}

lua/plugins/winbar.lua

require('winbar').setup({
    enabled = true, -- 是否启动winbar
	
    show_file_path = true, -- 是否显示文件路径
    show_symbols = true, -- 是否显示函数标签

    -- 颜色配置,为空,将使用默认配色
    colors = {
        path = '', -- 路径的颜色,比如#ababab
        file_name = '', -- 文件名称的颜色,比如#acacac
        symbols = '',  -- 函数颜色
    },

    -- 图标配置
    icons = {
        seperator = '>', -- 路径分割符号
        editor_state = '',
        lock_icon = '',
    },

    -- 关闭winbar的窗口
    exclude_filetype = {
        'help',
        'startify',
        'dashboard',
        'packer',
        'neogitstatus',
        'NvimTree',
        'Trouble',
        'alpha',
        'lir',
        'Outline',
        'spectre_panel',
        'toggleterm',
        'qf',
    }
	
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant