Update vim prefs
This commit is contained in:
@ -3,7 +3,8 @@ lua << EOF
|
||||
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', '--full', '--noresolved', '--json', "-x=''"},
|
||||
-- command = {'/google/bin/releases/editor-devtools/get_comments.par', '--full', '--noresolved', '--json', "-x=''"},
|
||||
command = {'/google/bin/releases/editor-devtools/get_comments.par', '--nofull', '-u', '--json', "-x=''"},
|
||||
-- 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
|
||||
@ -29,8 +30,11 @@ vim.api.nvim_set_keymap('n', '<Leader>lc',
|
||||
[[<Cmd>lua require('google.comments').toggle_line_comments()<CR>]],
|
||||
{ noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<Leader>ac',
|
||||
[[<Cmd>lua require('google.comments').show_all_comments()<CR>]],
|
||||
[[<Cmd>lua require('google.comments').toggle_all_comments()<CR>]],
|
||||
{ noremap = true, silent = true })
|
||||
|
||||
vim.fn.sign_define('COMMENT_ICON', {text = ''})
|
||||
EOF
|
||||
|
||||
autocmd InsertLeave * :lua require('google.comments').update_signs()
|
||||
autocmd FileType * :lua require('google.comments').fetch_comments()
|
||||
|
Reference in New Issue
Block a user