Skip to content

Commit 27a914c

Browse files
committed
misc
1 parent 2d8c990 commit 27a914c

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

home/.config/nvim/init.lua

+12-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ if vim.g.neovide then
3535
end)
3636
end
3737

38-
cmd 'filetype plugin on'
39-
cmd 'filetype plugin indent on'
40-
4138
local stl = {
4239
'%#ColorColumn#%2f', -- buffer number
4340
' ', -- separator
@@ -479,6 +476,18 @@ command! GdbDown :call TermDebugSendCommand('down')
479476
command! GdbQuit :call TermDebugSendCommand('quit')
480477
]], {})
481478

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+
482491
vim.g.termdebug_config = {
483492
wide = 1,
484493
}

home/.config/nvim/lua/plugins.lua

+9
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ require'better_escape'.setup {
3535
},
3636
}
3737

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+
3847
require'leap'.add_default_mappings(true)
3948
require'mini.surround'.setup({
4049
mappings = {

home/.ripgreprc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# Don't respect ignore files (.gitignore, .ignore, etc.).
55
--no-ignore
66

7-
--glob=!{.git,.jj}
7+
--glob=!{.git,.jj,out}

0 commit comments

Comments
 (0)