lua << EOF -- Here are all the options and their default values: require('google.comments').setup { -- The command for fetching comments, refer to `get_comments.par --help` to -- see all the options. -- command = {'/google/bin/releases/editor-devtools/get_comments.par', '--nofull', '-u', '--json', "-x=''"}, command = {'/google/bin/releases/editor-devtools/get_comments.par', '--nofull', '--json', '--noresolved', '--cl_comments', '--file_comments', '--unreplied_only'}, -- Define your own icon by `vim.fn.sign_define('ICON_NAME', {text = ' '})`. -- See :help sign_define -- The sign property passed to setup should be the 'ICON_NAME' in the define -- example above. sign = 'COMMENT_ICON', -- Fetch the comments after calling `setup`. auto_fetch = true, display = { -- The width of the comment display window. width = 50, -- When showing file paths, use relative paths or not. relative_path = true, }, } -- here are some mappings you might want: vim.api.nvim_set_keymap('n', 'nc', [[lua require('google.comments').goto_next_comment()]], { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', 'pc', [[lua require('google.comments').goto_prev_comment()]], { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', 'lc', [[lua require('google.comments').toggle_line_comments()]], { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', 'ac', [[lua require('google.comments').toggle_all_comments()]], { noremap = true, silent = true }) vim.fn.sign_define('COMMENT_ICON', {text = ''}) EOF autocmd InsertLeave * :lua require('google.comments').update_signs()