summaryrefslogtreecommitdiffstats
path: root/.config/nvim/after
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2023-01-14 14:47:33 +0100
committerRomain Gonçalves <me@rgoncalves.se>2023-01-14 14:47:33 +0100
commit23e2bfd987c430bb41bc7860c46c2f572e9e2db4 (patch)
treea9a477e11fb6dbea189835147a149e56c0f03a7f /.config/nvim/after
parentce6be946d024aa55a15d576388d05f90be671cf2 (diff)
downloaddots-23e2bfd987c430bb41bc7860c46c2f572e9e2db4.tar.gz
Sat Jan 14 02:47:33 PM CET 2023
Diffstat (limited to '.config/nvim/after')
-rwxr-xr-x.config/nvim/after/ftplugin/python.lua8
-rwxr-xr-x.config/nvim/after/queries/python/highlights.scm3
2 files changed, 5 insertions, 6 deletions
diff --git a/.config/nvim/after/ftplugin/python.lua b/.config/nvim/after/ftplugin/python.lua
index 64eb9f0..8fa85a6 100755
--- a/.config/nvim/after/ftplugin/python.lua
+++ b/.config/nvim/after/ftplugin/python.lua
@@ -1,5 +1,7 @@
o.colorcolumn = '80'
-require"nvim-treesitter.highlight".set_custom_captures {
- ["docstring"] = "Comment",
-}
+-- require('nvim-treesitter.highlight').set_custom_captures {
+-- ['docstring'] = 'Comment',
+-- }
+
+vim.api.nvim_set_hl(0, '@docstring', { link = 'Comment' })
diff --git a/.config/nvim/after/queries/python/highlights.scm b/.config/nvim/after/queries/python/highlights.scm
deleted file mode 100755
index 4b664d4..0000000
--- a/.config/nvim/after/queries/python/highlights.scm
+++ /dev/null
@@ -1,3 +0,0 @@
-(block (expression_statement (string)) @docstring)
-
-(type) @type
remember that computers suck.