Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A Neovim plugin that can do sometings like VAssistX.
use {
'Kohirus/cppassist.nvim',
opt = true,
ft = { "h", "cpp", "hpp", "c", "cc", "cxx" },
ft = { "h", "cpp", "hpp", "c", "cc", "cxx", "cuda" },
config = function()
require("cppassist").setup()
end,
Expand Down
8 changes: 4 additions & 4 deletions lua/cppassist/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ function M.ExtensionCmd(extension)
else
local res = nil
local firstch = string.sub(extension, 1, 1)
if firstch == "h" then
res = " -e cpp -e cxx -e c -e cc "
elseif firstch == "c" then
res = " -e h -e hpp -e hxx "
if firstch == "h" or extension == "cuh" then
res = " -e cpp -e cxx -e c -e cc -e cu"
elseif firstch == "c" or extension == "cu" then
res = " -e h -e hpp -e hxx -e cuh"
else
print("Invalid filetype!")
end
Expand Down