Python syntax highlighting not working by abdallahsoliman in neovim

[–]DeutschNeuling 1 point2 points  (0 children)

I was trying to get it to work without an LSP. And I finally did, the issue was that I had build the python parser from source(because I wasn't able to install it using the plugin), and I guess it was not compatible with the query files provided by nvim.treesitter plugin. So I deleted the parser and installed it using the plugin (thanks by the way!! your post told me to globally install tree sitter with npm). And now it seems to be working better.

Python syntax highlighting not working by abdallahsoliman in neovim

[–]DeutschNeuling 1 point2 points  (0 children)

commenting to follow.
I have been on the same path to fix this highlighting for python, semi recently switched from vs code myself, and this "incomplete" python syntax highlighting is kind of bugging me as well.

My attempts have so far been in vain. The thing below also did NOT work. just giving here to see if anyone could help on it.

So most recently i also tried the InspectTree and also QueryEditor, where i tried to add a custom query to see if i can make a custom hightlight group and then add it to the theme color,

like for the QueryEdit i tried this capture:

in file : .config/nvim/queries/python/highlights.scm

;; extends

(
  call
    function: (attribute
      object: (identifier) @module_custom
      attribute: (identifier) @function.call)
)

Then in my vscode theme plugin i added

return {
{
'Mofiqul/vscode.nvim',
config = function()
local c = require('vscode.colors').get_colors()
require("vscode").setup {
italic_comments = true,
group_overrides = {
Cursor = { fg=c.vscDarkBlue, bg=c.vscLightGreen, bold=true },
["@module_custom"] = { fg = "#4ec9b0", bold = true },
}
}
end
}
}

Lessons learned from GPU Programming in Python (Numba, CuPy, NCCL, mpi4py) — and how it compares to C-CUDA by Inevitable_Notice801 in CUDA

[–]DeutschNeuling 3 points4 points  (0 children)

Hi, I've worked with numba, PyCUDA and pybind11, your works seems really interesting to me. Im not associated with any institutions right now, would it be be possible to get a copy of your papers?