From 4526f3e704ee988bbc2d218f7ac45117b9648e13 Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Sun, 16 Nov 2025 00:47:14 +0100 Subject: [PATCH] nvim: remove unnecessary files --- nvim/.config/nvim/lazy-lock.json | 2 +- .../plugins/{luasnip/init.lua => luasnip.lua} | 0 .../luasnip/completion-integration.lua | 49 ------------------- 3 files changed, 1 insertion(+), 50 deletions(-) rename nvim/.config/nvim/lua/plugins/{luasnip/init.lua => luasnip.lua} (100%) delete mode 100644 nvim/.config/nvim/lua/plugins/luasnip/completion-integration.lua diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index b556475..a199a2d 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -9,7 +9,7 @@ "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, "copilot.lua": { "branch": "master", "commit": "e919876a5523b06406f0bc7285477da87a338a61" }, "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, - "gruvbox-material": { "branch": "master", "commit": "4bfc6983abc249c5943a60d8eb3980a3c2ababe1" }, + "gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" }, "harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" }, "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" }, "lualine.nvim": { "branch": "master", "commit": "3946f0122255bc377d14a59b27b609fb3ab25768" }, diff --git a/nvim/.config/nvim/lua/plugins/luasnip/init.lua b/nvim/.config/nvim/lua/plugins/luasnip.lua similarity index 100% rename from nvim/.config/nvim/lua/plugins/luasnip/init.lua rename to nvim/.config/nvim/lua/plugins/luasnip.lua diff --git a/nvim/.config/nvim/lua/plugins/luasnip/completion-integration.lua b/nvim/.config/nvim/lua/plugins/luasnip/completion-integration.lua deleted file mode 100644 index 414275c..0000000 --- a/nvim/.config/nvim/lua/plugins/luasnip/completion-integration.lua +++ /dev/null @@ -1,49 +0,0 @@ --- TODO: Implement - --- A server implementation is just a function that returns a table with several methods --- `dispatchers` is a table with a couple methods that allow the server to interact with the client -local function server(dispatchers) - local closing = false - local srv = {} - - -- This method is called each time the client makes a request to the server - -- `method` is the LSP method name - -- `params` is the payload that the client sends - -- `callback` is a function which takes two parameters: `err` and `result` - -- The callback must be called to send a response to the client - -- To learn more about what method names are available and the structure of - -- the payloads you'll need to read the specification: - -- https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/ - function srv.request(method, params, callback) - if method == 'initialize' then - callback(nil, { capabilities = {} }) - elseif method == 'shutdown' then - callback(nil, nil) - end - return true, 1 - end - - -- This method is called each time the client sends a notification to the server - -- The difference between `request` and `notify` is that notifications don't expect a response - function srv.notify(method, params) - if method == 'exit' then - dispatchers.on_exit(0, 15) - end - end - - -- Indicates if the client is shutting down - function srv.is_closing() - return closing - end - - -- Callend when the client wants to terminate the process - function srv.terminate() - closing = true - end - - return srv -end - --- print( require("luasnip").get_current_choices()) - --- vim.lsp.start({ name = "luasnip", cmd = server })