Compare commits

..

No commits in common. "f65975316b19536fab5691c8ca243035b13e0508" and "dd484dd4aefd6d6c21879b0dd809d62b498d37ad" have entirely different histories.

2 changed files with 5 additions and 14 deletions

View File

@ -43,14 +43,9 @@ vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
if vim.bo.filetype ~= "make" then
vim.opt_local.expandtab = true
end
local ft = vim.bo.filetype
local indent = 4
if ft == "ruby" or ft == "html" or ft == "xml" then
indent = 2
end
vim.opt_local.ts = indent
vim.opt_local.sw = indent
vim.opt_local.sts = indent
vim.opt_local.ts = 4
vim.opt_local.sw = 4
vim.opt_local.sts = 4
vim.opt_local.cinoptions = ":0,g0"
end)
end,

View File

@ -8,11 +8,7 @@ if exists("b:current_syntax")
endif
if !exists("b:propane_subtype")
if search('\<import\s\+\%(std\|core\)\.', 'nw') > 0
let b:propane_subtype = "d"
else
let b:propane_subtype = "cpp"
endif
endif
exe "syn include @propaneTarget syntax/".b:propane_subtype.".vim"
@ -24,7 +20,7 @@ syn match propaneOperator "->"
syn match propaneFieldAlias ":[a-zA-Z0-9_]\+" contains=propaneFieldOperator
syn match propaneFieldOperator ":" contained
syn match propaneOperator "?"
syn keyword propaneKeyword context_user_fields drop free_token_node lex_fn module noline on_token_node prefix ptype start token token_user_fields tokenid tree tree_prefix tree_suffix
syn keyword propaneKeyword drop free_token_node free_token_user_fields module prefix ptype start token token_user_fields tokenid tree tree_prefix tree_suffix
syn region propaneRegex start="/" end="/" skip="\v\\\\|\\/"