File tree 3 files changed +22
-4
lines changed
3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,6 @@ if vim.g.neovide then
35
35
end )
36
36
end
37
37
38
- cmd ' filetype plugin on'
39
- cmd ' filetype plugin indent on'
40
-
41
38
local stl = {
42
39
' %#ColorColumn#%2f' , -- buffer number
43
40
' ' , -- separator
@@ -479,6 +476,18 @@ command! GdbDown :call TermDebugSendCommand('down')
479
476
command! GdbQuit :call TermDebugSendCommand('quit')
480
477
]] , {})
481
478
479
+ cmd ' filetype plugin on'
480
+ cmd ' filetype plugin indent on'
481
+
482
+ vim .filetype .add ({extension = {inc = ' cpp' }})
483
+ vim .filetype .add ({
484
+ extension = {
485
+ c3 = " c3" ,
486
+ c3i = " c3" ,
487
+ c3t = " c3" ,
488
+ },
489
+ })
490
+
482
491
vim .g .termdebug_config = {
483
492
wide = 1 ,
484
493
}
Original file line number Diff line number Diff line change @@ -35,6 +35,15 @@ require'better_escape'.setup {
35
35
},
36
36
}
37
37
38
+ local parser_config = require " nvim-treesitter.parsers" .get_parser_configs ()
39
+ parser_config .c3 = {
40
+ install_info = {
41
+ url = " https://github.com/c3lang/tree-sitter-c3" ,
42
+ files = {" src/parser.c" , " src/scanner.c" },
43
+ branch = " main" ,
44
+ },
45
+ }
46
+
38
47
require ' leap' .add_default_mappings (true )
39
48
require ' mini.surround' .setup ({
40
49
mappings = {
Original file line number Diff line number Diff line change 4
4
# Don't respect ignore files (.gitignore, .ignore, etc.).
5
5
--no-ignore
6
6
7
- --glob=!{.git,.jj}
7
+ --glob=!{.git,.jj,out }
You can’t perform that action at this time.
0 commit comments