nvim: remove unnecessary files

This commit is contained in:
Andreas Tsouchlos 2025-11-16 00:47:14 +01:00
parent 48ad61643f
commit 08585a0010
3 changed files with 1 additions and 51 deletions

View File

@ -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" },

View File

@ -6,7 +6,6 @@ return {
local loader = require("luasnip.loaders.from_lua")
loader.lazy_load({ paths = { "./snippets" } })
-- TODO: Find out how to enable autosnippets without having the status line disappear
require("luasnip").config.set_config({
enable_autosnippets = true,
store_selection_keys = "<leader>v"

View File

@ -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 })