Skip to content

Instantly share code, notes, and snippets.

@liujoey
liujoey / java.lua
Last active June 14, 2023 04:52
nvim-jdtls settings
local status_ok, jdtls = pcall(require, "jdtls")
if not status_ok then
return
end
-- Determine OS
local home = vim.env.HOME
local launcher_path =
vim.fn.glob(home .. "/.local/share/nvim/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_*.jar")
if #launcher_path == 0 then
@liujoey
liujoey / freeze.html
Created March 20, 2018 21:07
Example html file will freeze Spacemacs when using evil-search in vertical splits
{% load static %}
{% load evaluation_extras %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script type='text/javascript' src="{% static 'js/jquery.min.js' %}"></script>
<script type='text/javascript' src="{% static 'js/main.js' %}"></script>
<link rel='stylesheet' id='bootstrap-css-css' href="{% static 'css/bootstrap.css' %}" type='text/css' media='all' />