about summary refs log tree commit diff stats
path: root/home-manager/soispha/config/neovim/nixvim/files
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/soispha/config/neovim/nixvim/files')
-rw-r--r--home-manager/soispha/config/neovim/nixvim/files/default.nix17
-rw-r--r--home-manager/soispha/config/neovim/nixvim/files/ftplugin/tex.lua78
2 files changed, 0 insertions, 95 deletions
diff --git a/home-manager/soispha/config/neovim/nixvim/files/default.nix b/home-manager/soispha/config/neovim/nixvim/files/default.nix
deleted file mode 100644
index 5045eb9f..00000000
--- a/home-manager/soispha/config/neovim/nixvim/files/default.nix
+++ /dev/null
@@ -1,17 +0,0 @@
-{
-  lib,
-  pkgs,
-  ...
-}: {
-  programs.nixvim = {
-    extraPlugins = [
-      pkgs.vimExtraPlugins.gruvbox
-    ];
-    extraFiles = {
-      path = "ftplugin/tex.lua";
-      content = ''
-        ${lib.strings.fileContents ./ftplugin/tex.lua}
-      '';
-    };
-  };
-}
diff --git a/home-manager/soispha/config/neovim/nixvim/files/ftplugin/tex.lua b/home-manager/soispha/config/neovim/nixvim/files/ftplugin/tex.lua
deleted file mode 100644
index 8f39d7bb..00000000
--- a/home-manager/soispha/config/neovim/nixvim/files/ftplugin/tex.lua
+++ /dev/null
@@ -1,78 +0,0 @@
--- local used = false;
--- vim.keymap.set('n', '<leader>t', function()
---     used = not used;
---     if used then
---         require('nvim-treesitter.configs').setup {
---             highlight = {
---                 additional_vim_regex_highlighting = { "latex", "markdown" },
---             },
---         }
---     else
---         require('nvim-treesitter.configs').setup {
---             highlight = {
---                 additional_vim_regex_highlighting = { "" },
---             },
---         }
---     end
--- end
--- );
---
---
--- 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({
-  extensions = {
-    bibtex = {
-      -- Depth for the *.bib file
-      depth = 1;
-      -- Path to global bibliographies (placed outside of the project)
-      global_files = {};
-      -- Define the search keys to use in the picker
-      search_keys = { "author"; "year"; "title"; };
-      -- Template for the formatted citation
-      citation_format = "{{author}} ({{year}}), {{title}}.";
-      -- Only use initials for the authors first name
-      citation_trim_firstname = true;
-      -- Max number of authors to write in the formatted citation
-      -- following authors will be replaced by "et al."
-      citation_max_auth = 2;
-      -- Wrapping in the preview window is disabled by default
-      wrap = false;
-      -- Custom format for citation label
-      custom_formats = {
-        { id = "tex_autocite"; cite_marker = "\\autocite{%s}"; };
-      };
-      format = "tex_autocite";
-      -- Use context awareness
-      context = true;
-      -- Fallback to global/directory .bib files if context not found
-      -- This setting has no effect if context = false
-      context_fallback = true;
-    };
-  };
-})
-require("telescope").load_extension("bibtex")
-vim.api.nvim_set_keymap("n", "<leader>ib", function()
-                          require("telescope").extensions.bibtex.bibtex()
-                        end, { noremap = true; silent = true; desc = "list bibtex entries in telescope"; })