You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
navigator.lua/lua/navigator/lspclient/config.lua

19 lines
431 B
Lua

3 years ago
local lsp = require("vim.lsp")
M = {}
3 years ago
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
function M.reload_lsp()
vim.lsp.stop_client(vim.lsp.get_active_clients())
vim.cmd [[edit]]
require'navigator.lspclient.clients'.setup()
3 years ago
end
function M.open_lsp_log()
local path = vim.lsp.get_log_path()
vim.cmd("edit " .. path)
end
return M