Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Issue 2654673002: Add ftplugin for gn filetype (Closed)

Created:
3 years, 11 months ago by Nate Fischer
Modified:
3 years, 11 months ago
Reviewers:
scottmg
CC:
agrieve+watch_chromium.org, chromium-reviews, Dirk Pranke, Paweł Hajdan Jr., tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ftplugin for gn filetype The 'includeexpr' setting (and corresponding autoload function) allows users to jump from one gn file to another with the 'gf' command (as long as vim's cwd is set to /src/). The commentstring setting lets vim know what the correct comments are for gn files (this integrates nicely with plugins like vim-commentary). BUG= Review-Url: https://codereview.chromium.org/2654673002 Cr-Commit-Position: refs/heads/master@{#445782} Committed: https://chromium.googlesource.com/chromium/src/+/23449b77810518956542fb0b65be9da863e8492a

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove maktaba dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -0 lines) Patch
A tools/gn/misc/vim/autoload/gn.vim View 1 1 chunk +17 lines, -0 lines 0 comments Download
A tools/gn/misc/vim/ftplugin/gn.vim View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
Nate Fischer
PTAL
3 years, 11 months ago (2017-01-23 22:41:36 UTC) #2
scottmg
Awesome, having gf look to a network path has always aggravated me. https://codereview.chromium.org/2654673002/diff/1/tools/gn/misc/vim/autoload/gn.vim File tools/gn/misc/vim/autoload/gn.vim ...
3 years, 11 months ago (2017-01-24 04:22:59 UTC) #3
Nate Fischer
PTAL https://codereview.chromium.org/2654673002/diff/1/tools/gn/misc/vim/autoload/gn.vim File tools/gn/misc/vim/autoload/gn.vim (right): https://codereview.chromium.org/2654673002/diff/1/tools/gn/misc/vim/autoload/gn.vim#newcode13 tools/gn/misc/vim/autoload/gn.vim:13: " installed, there's not much we can do ...
3 years, 11 months ago (2017-01-24 18:12:19 UTC) #4
scottmg
Thanks! lgtm
3 years, 11 months ago (2017-01-24 18:19:52 UTC) #5
scottmg
Thanks! lgtm
3 years, 11 months ago (2017-01-24 18:19:52 UTC) #6
scottmg
Oh, just update the CL description before landing.
3 years, 11 months ago (2017-01-24 18:20:32 UTC) #7
Nate Fischer
On 2017/01/24 at 18:20:32, scottmg wrote: > Oh, just update the CL description before landing. ...
3 years, 11 months ago (2017-01-24 19:17:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2654673002/20001
3 years, 11 months ago (2017-01-24 19:28:37 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/23449b77810518956542fb0b65be9da863e8492a
3 years, 11 months ago (2017-01-24 19:42:28 UTC) #17
scottmg
On 2017/01/24 19:17:23, Nate Fischer wrote: > On 2017/01/24 at 18:20:32, scottmg wrote: > > ...
3 years, 11 months ago (2017-01-24 21:04:17 UTC) #18
Nate Fischer
3 years, 11 months ago (2017-01-24 21:43:06 UTC) #19
Message was sent while issue was closed.
On 2017/01/24 at 21:04:17, scottmg wrote:
> On 2017/01/24 19:17:23, Nate Fischer wrote:
> > On 2017/01/24 at 18:20:32, scottmg wrote:
> > > Oh, just update the CL description before landing.
> > 
> > Updated. This last patch requires users to keep vim's cwd at /src/ in order
for
> > this to work (so 'autochdir' would break this). Maktaba's probably the most
> > reliable approach, but this sort of works.
> 
> OK. Maybe make this the fallback case if maktaba isn't available?

I'll take a look into it.

Powered by Google App Engine
This is Rietveld 408576698