From 589cbdda36aeebe1438d3205391394d0d7a8304f Mon Sep 17 00:00:00 2001 From: Kalle Struik Date: Sat, 29 Mar 2025 13:36:52 +0100 Subject: [PATCH] Remove copilot and new nvim config --- modules/new_nvim/config/init.lua | 1 - modules/new_nvim/config/lua/config/lazy.lua | 35 ----------------- .../config/lua/config/plugins/theming.lua | 8 ---- modules/new_nvim/default.nix | 38 ------------------- modules/nvim/default.nix | 12 ------ modules/nvim/plugin/cmp.lua | 3 -- 6 files changed, 97 deletions(-) delete mode 100644 modules/new_nvim/config/init.lua delete mode 100644 modules/new_nvim/config/lua/config/lazy.lua delete mode 100644 modules/new_nvim/config/lua/config/plugins/theming.lua delete mode 100644 modules/new_nvim/default.nix diff --git a/modules/new_nvim/config/init.lua b/modules/new_nvim/config/init.lua deleted file mode 100644 index 55b8979..0000000 --- a/modules/new_nvim/config/init.lua +++ /dev/null @@ -1 +0,0 @@ -require("config.lazy") diff --git a/modules/new_nvim/config/lua/config/lazy.lua b/modules/new_nvim/config/lua/config/lazy.lua deleted file mode 100644 index 341ac20..0000000 --- a/modules/new_nvim/config/lua/config/lazy.lua +++ /dev/null @@ -1,35 +0,0 @@ --- Bootstrap lazy.nvim -local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" -if not (vim.uv or vim.loop).fs_stat(lazypath) then - local lazyrepo = "https://github.com/folke/lazy.nvim.git" - local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) - if vim.v.shell_error ~= 0 then - vim.api.nvim_echo({ - { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, - { out, "WarningMsg" }, - { "\nPress any key to exit..." }, - }, true, {}) - vim.fn.getchar() - os.exit(1) - end -end -vim.opt.rtp:prepend(lazypath) - --- Make sure to setup `mapleader` and `maplocalleader` before --- loading lazy.nvim so that mappings are correct. --- This is also a good place to setup other settings (vim.opt) -vim.g.mapleader = " " -vim.g.maplocalleader = "\\" - --- Setup lazy.nvim -require("lazy").setup({ - spec = { - -- import your plugins - { import = "plugins" }, - }, - -- Configure any other settings here. See the documentation for more details. - -- colorscheme that will be used when installing plugins. - install = { colorscheme = { "habamax" } }, - -- automatically check for plugin updates - checker = { enabled = true }, -}) diff --git a/modules/new_nvim/config/lua/config/plugins/theming.lua b/modules/new_nvim/config/lua/config/plugins/theming.lua deleted file mode 100644 index 5c6769c..0000000 --- a/modules/new_nvim/config/lua/config/plugins/theming.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - { - "catppuccin/nvim", - name = "catppuccin", - priority = 1000, - init = function() vim.cmd.colorscheme("catppuccin-mocha") end - }, -} diff --git a/modules/new_nvim/default.nix b/modules/new_nvim/default.nix deleted file mode 100644 index f923dd0..0000000 --- a/modules/new_nvim/default.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ - pkgs, - ... -}: -{ - home-manager.users.kalle = { - programs.neovim = { - enable = true; - - viAlias = true; - vimAlias = true; - vimdiffAlias = true; - - extraPackages = with pkgs; [ - nodejs_22 # Required for copilot-vim - ripgrep # Required for telescope - wl-clipboard # Required for clipboard sync - - # Language servers - clang-tools - lua-language-server - nodePackages.typescript-language-server - nodePackages."@astrojs/language-server" - typescript - tailwindcss-language-server - gopls - vhdl-ls - nixd - nixfmt-rfc-style - ]; - }; - - xdg.configFile.nvim = { - source = ./config; - recursive = true; - }; - }; -} diff --git a/modules/nvim/default.nix b/modules/nvim/default.nix index 1fe0929..851a327 100644 --- a/modules/nvim/default.nix +++ b/modules/nvim/default.nix @@ -22,7 +22,6 @@ vimdiffAlias = true; extraPackages = with pkgs; [ - nodejs_22 # Required for copilot-vim ripgrep # Required for telescope wl-clipboard # Required for clipboard sync @@ -98,7 +97,6 @@ cmp-git cmp-calc cmp_luasnip - copilot-cmp luasnip friendly-snippets { @@ -122,16 +120,6 @@ plugin = (nvim-treesitter.withAllGrammars); config = toLuaFile ./plugin/treesitter.lua; } - - { - plugin = copilot-lua; - config = toLua '' - require("copilot").setup({ - suggestion = { enabled = false }, - panel = { enabled = false }, - }) - ''; - } ]; extraLuaConfig = '' diff --git a/modules/nvim/plugin/cmp.lua b/modules/nvim/plugin/cmp.lua index 0fa8876..070c50c 100644 --- a/modules/nvim/plugin/cmp.lua +++ b/modules/nvim/plugin/cmp.lua @@ -1,8 +1,6 @@ local cmp = require 'cmp' local luasnip = require 'luasnip' -require("copilot_cmp").setup() - local has_words_before = function() if vim.api.nvim_buf_get_option(0, "buftype") == "prompt" then return false end local line, col = unpack(vim.api.nvim_win_get_cursor(0)) @@ -47,7 +45,6 @@ cmp.setup({ }) }), sources = cmp.config.sources({ - { name = "copilot", group_index = 2 }, { name = 'path' }, -- file paths { name = 'nvim_lsp' }, -- from language server { name = 'nvim_lsp_signature_help' }, -- display function signatures with current parameter emphasized