diff options
5 files changed, 69 insertions, 2 deletions
diff --git a/home-manager/soispha/config/neovim/nixvim/default.nix b/home-manager/soispha/config/neovim/nixvim/default.nix index 93729501..61467618 100644 --- a/home-manager/soispha/config/neovim/nixvim/default.nix +++ b/home-manager/soispha/config/neovim/nixvim/default.nix @@ -1,7 +1,12 @@ -{pkgs, lib, ...}: { +{ + pkgs, + lib, + ... +}: { imports = [ ./autocmds ./clipboard + ./files ./mappings ./options ./plugins diff --git a/home-manager/soispha/config/neovim/nixvim/files/default.nix b/home-manager/soispha/config/neovim/nixvim/files/default.nix new file mode 100644 index 00000000..f8445563 --- /dev/null +++ b/home-manager/soispha/config/neovim/nixvim/files/default.nix @@ -0,0 +1,10 @@ +{lib, ...}: { + programs.nixvim = { + 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 new file mode 100644 index 00000000..926866a7 --- /dev/null +++ b/home-manager/soispha/config/neovim/nixvim/files/ftplugin/tex.lua @@ -0,0 +1,51 @@ +-- 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 +-- ); +-- +-- + + +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', + }, +} diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/raw_plugins/default.nix b/home-manager/soispha/config/neovim/nixvim/plugins/raw_plugins/default.nix index fdc30d7f..28944ff9 100644 --- a/home-manager/soispha/config/neovim/nixvim/plugins/raw_plugins/default.nix +++ b/home-manager/soispha/config/neovim/nixvim/plugins/raw_plugins/default.nix @@ -8,6 +8,7 @@ nightfox-nvim nvim-lint lf-nvim + gruvbox nvim-toggleterm-lua # required by lf-nvim ]; diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/treesitter/default.nix b/home-manager/soispha/config/neovim/nixvim/plugins/treesitter/default.nix index 4aca6887..d206b2a9 100644 --- a/home-manager/soispha/config/neovim/nixvim/plugins/treesitter/default.nix +++ b/home-manager/soispha/config/neovim/nixvim/plugins/treesitter/default.nix @@ -9,7 +9,7 @@ nixvimInjections = true; # TODO It would we wonderfull, if we could use treesitter in latex - #disabledLanguages = ["latex"]; + disabledLanguages = ["latex"]; /* # TODO this is not supported by the nixVim modlue, nixNeovim supports this though .. |