Compare commits

...

6 commits

4 changed files with 35 additions and 19 deletions

7
bin/jssize Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
curl https://cdn.jsdelivr.net/gh/"$1" \
| tail +7 \
| head -n -1 \
| gzip \
| wc --bytes

View file

@ -34,5 +34,7 @@ return function(_, bufnr)
end
--vim.keymap.set('n', '<leader>f', vim.lsp.buf.formatting, bufopts)
vim.api.nvim_buf_create_user_command(bufnr, "Format", vim.lsp.buf.format, {})
vim.api.nvim_buf_create_user_command(bufnr, "Format", function()
vim.lsp.buf.format()
end, {})
end

View file

@ -1,20 +1,15 @@
local config = require 'lspconfig'
config.lua_ls.setup {
on_attach = require 'lsp.attach'
}
config.zls.setup {
on_attach = require 'lsp.attach'
}
config.standardrb.setup {
on_attach = require 'lsp.attach'
}
config.clangd.setup {
on_attach = require 'lsp.attach'
}
config.solargraph.setup {
on_attach = require 'lsp.attach'
}
config.denols.setup {
on_attach = require 'lsp.attach'
}
local default = { on_attach = require 'lsp.attach' }
for _, language in ipairs {
"html",
"cssls",
"clangd",
"denols",
"lua_ls",
"solargraph",
"standardrb",
"zls",
} do
config[language].setup(default)
end

View file

@ -22,6 +22,18 @@ use {
};
config = require 'pack.setup.neotree';
};
{
"stevearc/aerial.nvim", config = function()
require("aerial").setup()
end
};
{
"hedyhli/outline.nvim",
config = function()
vim.keymap.set("n", "<leader>o", "<cmd>OutlineOpen<CR><cmd>OutlineFocus<CR>", { desc = "Toggle Outline" })
require("outline").setup()
end
};
{ 'jinh0/eyeliner.nvim', config = function()
require('eyeliner').setup {
highlight_on_key = true;