about summary refs log tree commit diff
path: root/fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-09-02 11:38:37 +0900
committersefidel <contact@sefidel.net>2023-09-02 11:38:37 +0900
commit38a7badbfa67f29556836c94ce66d872af246385 (patch)
tree2905b9dc188e22217dd7293d3e951d3d38d7a12f /fnl
parentbe3968e4bcce75e64ced71a35d26c8d985161720 (diff)
downloadnvimrc-38a7badbfa67f29556836c94ce66d872af246385.tar.gz
nvimrc-38a7badbfa67f29556836c94ce66d872af246385.zip
feat(packs/rust)!: disable semantic highlighting
Diffstat (limited to 'fnl')
-rw-r--r--fnl/nvrc/packs/rust.fnl5
1 files changed, 4 insertions, 1 deletions
diff --git a/fnl/nvrc/packs/rust.fnl b/fnl/nvrc/packs/rust.fnl
index cb2d9f5..8a1aa98 100644
--- a/fnl/nvrc/packs/rust.fnl
+++ b/fnl/nvrc/packs/rust.fnl
@@ -1,3 +1,6 @@
 (local {: setup} (require :rust-tools))
 
-(setup {:server {:settings {:rust-analyzer {:files {:excludeDirs [:.direnv]} :check {:command :clippy}}}}})
+(setup {:server {
+       :settings {:rust-analyzer {:files {:excludeDirs [:.direnv]} :check {:command :clippy}}}
+       ;; Disable semantic highlighting
+       :on_attach (fn [client bufnr] (set client.server_capabilities.semanticTokensProvider nil))}})