Compare commits
6 commits
a6be7b1e30
...
33e5350bbb
Author | SHA1 | Date | |
---|---|---|---|
33e5350bbb | |||
ea92572a62 | |||
4fbb924030 | |||
147961de3a | |||
3c032f4f8c | |||
07aa44b523 |
4 changed files with 35 additions and 19 deletions
7
bin/jssize
Executable file
7
bin/jssize
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
curl https://cdn.jsdelivr.net/gh/"$1" \
|
||||
| tail +7 \
|
||||
| head -n -1 \
|
||||
| gzip \
|
||||
| wc --bytes
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue