Skip to content

Commit 6591076

Browse files
committed
misc
1 parent 103d812 commit 6591076

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
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}

home/.zshrc

-2
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ bindkey '^xh' _complete_help
227227
# General aliases & functions (partially shared with bash) {{{2
228228
[[ -f ~/.alias ]] && source ~/.alias
229229

230-
function arcfilter() { arc amend; git log -1 --pretty=%B | awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:$/ {sub(/^Summary: /,"");print}' | git commit --amend --date=now -F -; }
231-
232230
for i in gb gf gh gr gt; do
233231
zle -N $i
234232
done

0 commit comments

Comments
 (0)