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
|
end
|
||||||
--vim.keymap.set('n', '<leader>f', vim.lsp.buf.formatting, bufopts)
|
--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
|
end
|
||||||
|
|
|
@ -1,20 +1,15 @@
|
||||||
local config = require 'lspconfig'
|
local config = require 'lspconfig'
|
||||||
|
|
||||||
config.lua_ls.setup {
|
local default = { on_attach = require 'lsp.attach' }
|
||||||
on_attach = require 'lsp.attach'
|
for _, language in ipairs {
|
||||||
}
|
"html",
|
||||||
config.zls.setup {
|
"cssls",
|
||||||
on_attach = require 'lsp.attach'
|
"clangd",
|
||||||
}
|
"denols",
|
||||||
config.standardrb.setup {
|
"lua_ls",
|
||||||
on_attach = require 'lsp.attach'
|
"solargraph",
|
||||||
}
|
"standardrb",
|
||||||
config.clangd.setup {
|
"zls",
|
||||||
on_attach = require 'lsp.attach'
|
} do
|
||||||
}
|
config[language].setup(default)
|
||||||
config.solargraph.setup {
|
end
|
||||||
on_attach = require 'lsp.attach'
|
|
||||||
}
|
|
||||||
config.denols.setup {
|
|
||||||
on_attach = require 'lsp.attach'
|
|
||||||
}
|
|
||||||
|
|
|
@ -22,6 +22,18 @@ use {
|
||||||
};
|
};
|
||||||
config = require 'pack.setup.neotree';
|
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()
|
{ 'jinh0/eyeliner.nvim', config = function()
|
||||||
require('eyeliner').setup {
|
require('eyeliner').setup {
|
||||||
highlight_on_key = true;
|
highlight_on_key = true;
|
||||||
|
|
Loading…
Reference in a new issue