aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/plugins')
-rw-r--r--nvim/plugins/base16.lua6
-rw-r--r--nvim/plugins/base16.nix11
-rw-r--r--nvim/plugins/treesitter.nix13
3 files changed, 19 insertions, 11 deletions
diff --git a/nvim/plugins/base16.lua b/nvim/plugins/base16.lua
new file mode 100644
index 0000000..9843b76
--- /dev/null
+++ b/nvim/plugins/base16.lua
@@ -0,0 +1,6 @@
+vim.o.termguicolors = true;
+vim.opt.termguicolors = true;
+vim.o.background = "dark";
+vim.g.base16colorspace = 256
+vim.cmd.colorscheme("base16-scheme");
+vim.api.nvim_set_hl(0, "LineNr", { link = "Normal" }); -- disable the background of line numbers
diff --git a/nvim/plugins/base16.nix b/nvim/plugins/base16.nix
deleted file mode 100644
index 170b68b..0000000
--- a/nvim/plugins/base16.nix
+++ /dev/null
@@ -1,11 +0,0 @@
-config:
-
-with config.lib.stylix.colors.withHashtag;
-''
-require("base16-colorscheme").setup {
- base00 = "${base00}", base01 = "${base01}", base02 = "${base02}", base03 = "${base03}",
- base04 = "${base04}", base05 = "${base05}", base06 = "${base06}", base07 = "${base07}",
- base08 = "${base08}", base09 = "${base09}", base0A = "${base0A}", base0B = "${base0B}",
- base0C = "${base0C}", base0D = "${base0D}", base0E = "${base0E}", base0F = "${base0F}",
-};
-''
diff --git a/nvim/plugins/treesitter.nix b/nvim/plugins/treesitter.nix
new file mode 100644
index 0000000..05f1f2a
--- /dev/null
+++ b/nvim/plugins/treesitter.nix
@@ -0,0 +1,13 @@
+config:
+
+''
+require("nvim-treesitter.configs").setup {
+ auto_install = true,
+ highlight = {
+ enable = true,
+ },
+ parser_install_dir = "${config.xdg.dataHome}/nvim",
+};
+
+vim.opt.runtimepath:append("${config.xdg.dataHome}/nvim");
+''