Compare commits
No commits in common. "33e5350bbb39ed08372322ccc1d95dd0d0f1a4e4" and "a6be7b1e30dd7242875cf1224744a97c3054a2bd" have entirely different histories.
33e5350bbb
...
a6be7b1e30
4 changed files with 19 additions and 35 deletions
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
curl https://cdn.jsdelivr.net/gh/"$1" \
|
||||
| tail +7 \
|
||||
| head -n -1 \
|
||||
| gzip \
|
||||
| wc --bytes
|
|
@ -34,7 +34,5 @@ return function(_, bufnr)
|
|||
end
|
||||
--vim.keymap.set('n', '<leader>f', vim.lsp.buf.formatting, bufopts)
|
||||
|
||||
vim.api.nvim_buf_create_user_command(bufnr, "Format", function()
|
||||
vim.lsp.buf.format()
|
||||
end, {})
|
||||
vim.api.nvim_buf_create_user_command(bufnr, "Format", vim.lsp.buf.format, {})
|
||||
end
|
||||
|
|
|
@ -1,15 +1,20 @@
|
|||
local config = require 'lspconfig'
|
||||
|
||||
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
|
||||
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'
|
||||
}
|
||||
|
|
|
@ -22,18 +22,6 @@ 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