summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/home/programs/nixvim/plugins/cmp.nix45
-rw-r--r--common/home/programs/nixvim/plugins/dashboard.nix68
-rw-r--r--common/home/programs/nixvim/plugins/default.nix5
-rw-r--r--common/home/programs/nixvim/plugins/lsp.nix47
4 files changed, 0 insertions, 165 deletions
diff --git a/common/home/programs/nixvim/plugins/cmp.nix b/common/home/programs/nixvim/plugins/cmp.nix
deleted file mode 100644
index 27cca04..0000000
--- a/common/home/programs/nixvim/plugins/cmp.nix
+++ /dev/null
@@ -1,45 +0,0 @@
-{ ... }:
-{
- enable = true;
- autoEnableSources = true;
- settings = {
- mapping = {
- "<C-b>" = "cmp.mapping.scroll_docs(-4)";
- "<C-f>" = "cmp.mapping.scroll_docs(4)";
- "<C-Space>" = "cmp.mapping.complete()";
- "<C-e>" = "cmp.mapping.abort()";
- "<CR>" = "cmp.mapping.confirm({ select = true })";
- "<Tab>" = ''
- cmp.mapping(function(fallback)
- if cmp.visible() then
- cmp.select_next_item()
- else
- fallback()
- end
- end, { "i", "s" })
- '';
- "<S-Tab>" = ''
- cmp.mapping(function(fallback)
- if cmp.visible() then
- cmp.select_prev_item()
- else
- fallback()
- end
- end, { "i", "s" })
- '';
- };
- snippet = {
- expand = ''
- function(args)
- require('luasnip').lsp_expand(args.body)
- end
- '';
- };
- sources = [
- { name = "nvim_lsp"; }
- { name = "luasnip"; }
- { name = "path"; }
- { name = "buffer"; }
- ];
- };
-}
diff --git a/common/home/programs/nixvim/plugins/dashboard.nix b/common/home/programs/nixvim/plugins/dashboard.nix
deleted file mode 100644
index 68308da..0000000
--- a/common/home/programs/nixvim/plugins/dashboard.nix
+++ /dev/null
@@ -1,68 +0,0 @@
-{ ... }:
-{
- enable = true;
- settings = {
- change_to_vcs_root = true;
- config = {
- footer = [ "" ];
-
- header = [
- "███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗"
- "████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║"
- "██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║"
- "██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║"
- "██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║"
- "╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝"
- ];
-
- mru = {
- limit = 10;
- };
-
- project = {
- enable = true;
- };
-
- packages.enable = false;
-
- shortcut = [
- {
- action = {
- __raw = ''
- function(path)
- vim.cmd('Telescope find_files')
- end
- '';
- };
- desc = "Files";
- group = "Label";
- icon = " ";
- icon_hl = "@variable";
- key = "f";
- }
- {
- action = {
- __raw = ''
- function()
- vim.cmd('cd ~/global/system/config')
- vim.cmd('Telescope find_files')
- end
- '';
- };
- icon = "󱄅 ";
- icon_hl = "@variable";
- desc = "System Config";
- group = "Number";
- key = "c";
- }
- ];
-
- hide = [
- "statusline"
- "tabline"
- "winbar"
- ];
- };
- theme = "hyper";
- };
-}
diff --git a/common/home/programs/nixvim/plugins/default.nix b/common/home/programs/nixvim/plugins/default.nix
index efe4988..4898ff6 100644
--- a/common/home/programs/nixvim/plugins/default.nix
+++ b/common/home/programs/nixvim/plugins/default.nix
@@ -2,15 +2,10 @@
let
plugins = [
"web-devicons"
- "dashboard"
"nvim-tree"
"telescope"
"lualine"
"treesitter"
- "luasnip"
- "friendly-snippets"
- "cmp"
- "lsp"
];
in
builtins.listToAttrs (
diff --git a/common/home/programs/nixvim/plugins/lsp.nix b/common/home/programs/nixvim/plugins/lsp.nix
deleted file mode 100644
index b60994e..0000000
--- a/common/home/programs/nixvim/plugins/lsp.nix
+++ /dev/null
@@ -1,47 +0,0 @@
-{ pkgs, ... }:
-{
- enable = true;
- servers = {
-
- bashls = {
- enable = true;
- package = pkgs.unstable.bash-language-server;
- };
-
- clangd.enable = true;
-
- nixd = {
- enable = true;
- settings.formatting.command = [ "nixfmt" ];
- };
-
- rust_analyzer = {
- enable = true;
- installCargo = true;
- installRustc = true;
- };
-
- pyright.enable = true;
-
- ocamllsp = {
- enable = true;
- package = null;
- cmd = [ "ocamllsp" ];
- };
-
- zls = {
- enable = true;
- };
- };
-
- keymaps.lspBuf = {
- "gd" = "definition";
- "gD" = "references";
- "gt" = "type_definition";
- "gi" = "implementation";
- "K" = "hover";
- "<space>rn" = "rename";
- "<space>ca" = "code_action";
- "<space>f" = "format";
- };
-}