aboutsummaryrefslogtreecommitdiffstats
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-rw-r--r--nvim/default.nix37
-rw-r--r--nvim/keybindings.lua8
-rw-r--r--nvim/options.lua21
-rw-r--r--nvim/plugins/base16.lua6
-rw-r--r--nvim/plugins/comment.lua1
-rw-r--r--nvim/plugins/lualine.lua5
-rw-r--r--nvim/plugins/nvim-tree.lua13
-rw-r--r--nvim/plugins/treesitter.nix13
8 files changed, 0 insertions, 104 deletions
diff --git a/nvim/default.nix b/nvim/default.nix
deleted file mode 100644
index 73dc359..0000000
--- a/nvim/default.nix
+++ /dev/null
@@ -1,37 +0,0 @@
-{ pkgs, config, ... }:
-
-{
- programs.neovim.enable = true;
- programs.neovim.viAlias = true;
- programs.neovim.vimAlias = true;
- programs.neovim.vimdiffAlias = true;
- programs.neovim.defaultEditor = true;
-
- programs.neovim.extraPackages = with pkgs; [
- gcc # Required for treesitter
- ];
-
- programs.neovim.extraLuaConfig =
-''
-${builtins.readFile ./options.lua}
-${builtins.readFile ./keybindings.lua}
-
--- Plugins configuration
-${builtins.readFile ./plugins/comment.lua}
-${builtins.readFile ./plugins/lualine.lua}
-${import ./plugins/treesitter.nix config}
-${builtins.readFile ./plugins/base16.lua}
-${builtins.readFile ./plugins/nvim-tree.lua}
-'';
-
- programs.neovim.plugins = with pkgs.vimPlugins; [
- comment-nvim
- lualine-nvim
- nvim-treesitter
- nvim-web-devicons
- nvim-tree-lua
- (base16-vim.overrideAttrs (old: {
- patchPhase = "ln -s ${config.scheme base16-vim} colors/base16-scheme.vim";
- }))
- ];
-}
diff --git a/nvim/keybindings.lua b/nvim/keybindings.lua
deleted file mode 100644
index 3e8e0fa..0000000
--- a/nvim/keybindings.lua
+++ /dev/null
@@ -1,8 +0,0 @@
--- Navigate splits
-vim.keymap.set("n", "<C-h>", ":wincmd h<CR>", { silent = true });
-vim.keymap.set("n", "<C-j>", ":wincmd j<CR>", { silent = true });
-vim.keymap.set("n", "<C-k>", ":wincmd k<CR>", { silent = true });
-vim.keymap.set("n", "<C-l>", ":wincmd l<CR>", { silent = true });
-
--- NvimTree
-vim.keymap.set("n", "<C-n>", ":NvimTreeToggle<CR>", { silent = true });
diff --git a/nvim/options.lua b/nvim/options.lua
deleted file mode 100644
index b1fe9cb..0000000
--- a/nvim/options.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-vim.g.mapleader = " ";
-vim.g.maplocalleader = " ";
-
-vim.o.clipboard = "unnamedplus";
-
-vim.o.number = true;
-vim.o.list = true;
-vim.o.listchars = "tab:| ,trail:_,lead:_";
-
-vim.o.laststatus = 3;
-
-vim.o.signcolumn = "auto";
-vim.opt.fillchars = { eob = " " };
-
-vim.o.tabstop = 2;
-vim.o.shiftwidth = 2;
-vim.o.expandtab = false;
-
-vim.o.updatetime = 300;
-
-vim.o.mouse = "a";
diff --git a/nvim/plugins/base16.lua b/nvim/plugins/base16.lua
deleted file mode 100644
index 9843b76..0000000
--- a/nvim/plugins/base16.lua
+++ /dev/null
@@ -1,6 +0,0 @@
-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/comment.lua b/nvim/plugins/comment.lua
deleted file mode 100644
index 9086261..0000000
--- a/nvim/plugins/comment.lua
+++ /dev/null
@@ -1 +0,0 @@
-require("Comment").setup();
diff --git a/nvim/plugins/lualine.lua b/nvim/plugins/lualine.lua
deleted file mode 100644
index ba2eda6..0000000
--- a/nvim/plugins/lualine.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-require("lualine").setup {
- options = {
- globalstatus = true,
- },
-};
diff --git a/nvim/plugins/nvim-tree.lua b/nvim/plugins/nvim-tree.lua
deleted file mode 100644
index c6c4102..0000000
--- a/nvim/plugins/nvim-tree.lua
+++ /dev/null
@@ -1,13 +0,0 @@
-require("nvim-tree").setup {
- filters = {
- enable = false
- },
- renderer = {
- indent_markers = {
- enable = true
- },
- root_folder_label = function(path)
- return vim.fn.fnamemodify(path, ":t")
- end,
- },
-};
diff --git a/nvim/plugins/treesitter.nix b/nvim/plugins/treesitter.nix
deleted file mode 100644
index 05f1f2a..0000000
--- a/nvim/plugins/treesitter.nix
+++ /dev/null
@@ -1,13 +0,0 @@
-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");
-''