about summary refs log tree commit diff stats
path: root/hm
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-11-08 15:28:37 +0100
committerSoispha <soispha@vhack.eu>2023-11-08 15:28:37 +0100
commit7a6266c9e21cd03eab31e2b45c6ed127790ee917 (patch)
treee572d33f7ee647172a0ddf714ebe1cb87fc15640 /hm
parentfix(flake): Remove the pkgs from the devenv, which are already in nvim (diff)
downloadnixos-config-7a6266c9e21cd03eab31e2b45c6ed127790ee917.tar.gz
nixos-config-7a6266c9e21cd03eab31e2b45c6ed127790ee917.zip
fix(hm/conf/nvim/plgs/vim-tex): Use treesitter highlight
Diffstat (limited to 'hm')
-rw-r--r--hm/soispha/conf/nvim/files/default.nix4
-rw-r--r--hm/soispha/conf/nvim/files/ftplugin/tex.lua20
-rw-r--r--hm/soispha/conf/nvim/plgs/treesitter/default.nix3
-rw-r--r--hm/soispha/conf/nvim/plgs/vim-tex/default.nix7
4 files changed, 3 insertions, 31 deletions
diff --git a/hm/soispha/conf/nvim/files/default.nix b/hm/soispha/conf/nvim/files/default.nix
index c44f45b0..38c00316 100644
--- a/hm/soispha/conf/nvim/files/default.nix
+++ b/hm/soispha/conf/nvim/files/default.nix
@@ -1,12 +1,8 @@
 {
   lib,
-  pkgs,
   ...
 }: {
   programs.nixvim = {
-    extraPlugins = [
-      pkgs.vimExtraPlugins.gruvbox
-    ];
     extraFiles = {
       "ftplugin/tex.lua" = ''
         ${lib.strings.fileContents ./ftplugin/tex.lua}
diff --git a/hm/soispha/conf/nvim/files/ftplugin/tex.lua b/hm/soispha/conf/nvim/files/ftplugin/tex.lua
index 8f39d7bb..9935e287 100644
--- a/hm/soispha/conf/nvim/files/ftplugin/tex.lua
+++ b/hm/soispha/conf/nvim/files/ftplugin/tex.lua
@@ -18,27 +18,7 @@
 -- );
 --
 --
--- Set non-treesitter colorscheme
-require("gruvbox").setup({
-  undercurl = true;
-  underline = true;
-  bold = true;
-  italic = { strings = true; comments = true; operators = false; folds = true; };
-  strikethrough = true;
-  invert_selection = false;
-  invert_signs = false;
-  invert_tabline = false;
-  invert_intend_guides = false;
-  inverse = true; -- invert background for search, diffs, statuslines and errors
-  contrast = "";  -- can be "hard", "soft" or empty string
-  palette_overrides = {};
-  overrides = {};
-  dim_inactive = false;
-  transparent_mode = false;
-})
-vim.cmd("colorscheme gruvbox")
 
-require("lualine").setup({ options = { theme = "gruvbox"; }; })
 
 -- Set tex specific telescope extension
 require("telescope").setup({
diff --git a/hm/soispha/conf/nvim/plgs/treesitter/default.nix b/hm/soispha/conf/nvim/plgs/treesitter/default.nix
index 9d30d6b9..21a29cfb 100644
--- a/hm/soispha/conf/nvim/plgs/treesitter/default.nix
+++ b/hm/soispha/conf/nvim/plgs/treesitter/default.nix
@@ -8,8 +8,7 @@
     # inject nixvim specific highlighting (eg in extraConfigLua).
     nixvimInjections = true;
 
-    # TODO: It would we wonderfull, if we could use treesitter in latex
-    disabledLanguages = ["latex"];
+    disabledLanguages = [];
 
     /*
     # TODO: this is not supported by the nixVim modlue, nixNeovim supports this though ..
diff --git a/hm/soispha/conf/nvim/plgs/vim-tex/default.nix b/hm/soispha/conf/nvim/plgs/vim-tex/default.nix
index 9b5cea5e..2fae2106 100644
--- a/hm/soispha/conf/nvim/plgs/vim-tex/default.nix
+++ b/hm/soispha/conf/nvim/plgs/vim-tex/default.nix
@@ -2,9 +2,6 @@
   programs.nixvim = {
     options.conceallevel = 0;
 
-    #    globals.tex_conceal = "abdmg";
-    #    globals.tex_flavor = "latex";
-
     plugins.vimtex = {
       enable = true;
       extraConfig = {
@@ -15,8 +12,8 @@
         tex_flavor = "latex";
 
         # Useful if treesitter is the highlighter
-        #syntax_enabled = 0;
-        #syntax_conceal_disable = 1;
+        syntax_enabled = 0;
+        syntax_conceal_disable = 1;
 
         mappings_disable = {
           n = ["tsf" "tsc" "tse" "ts$" "tsd" "tsD"];