neovim

Personal neovim configuration files
git clone git://gtms.dev/neovim
Log | Files | Refs

comment.lua (359B)


      1 if not pcall(require, 'Comment') then
      2   return
      3 end
      4 
      5 local comment = require 'Comment'
      6 local setup = { ignore = '^$' }
      7 
      8 if pcall(require, 'ts_context_commentstring') then
      9   setup.pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook()
     10 end
     11 
     12 comment.setup(setup)
     13 
     14 local ft = require 'Comment.ft'
     15 ft.dart = { '//%s', '/*%s*/' }