remove specific hashes, the bug enter hack breaks on mac so diff on OS

This commit is contained in:
RingOfStorms (Joshua Bell) 2023-06-29 11:40:34 -05:00
parent 01eb2153e8
commit 0f97642a48
16 changed files with 27 additions and 78 deletions

View file

@ -1,6 +1,5 @@
return {
"Pocco81/auto-save.nvim",
commit = "979b6c82f60cfa80f4cf437d77446d0ded0addf0", -- May 22, 2023
event = "BufEnter",
opts = {
trigger_events = { "InsertLeave", "TextChanged", "TextChangedI", "BufLeave" },

View file

@ -1,6 +1,5 @@
return {
"rest-nvim/rest.nvim",
commit = "d8dc204e9f6fd930d9d1d709f0d19138f804431a",
event = "BufEnter *.http",
requires = { "nvim-lua/plenary.nvim" },
keys = {

View file

@ -1,179 +0,0 @@
return {
"VonHeikemen/lsp-zero.nvim",
branch = "v2.x",
dependencies = {
-- LSP Support
{ "neovim/nvim-lspconfig" },
{
"williamboman/mason.nvim",
cmd = {
"Mason",
"MasonUpdate",
"MasonInstall",
"MasonInstallAll",
"MasonUninstall",
"MasonUninstallAll",
"MasonLog",
},
build = ":MasonUpdate",
event = "BufRead",
},
{ "williamboman/mason-lspconfig.nvim" },
-- Autocompletion
{
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
-- Snips
{
"L3MON4D3/LuaSnip",
dependencies = "rafamadriz/friendly-snippets",
opts = {
history = true,
updateevents = "TextChanged,TextChangedI",
-- config? -- https://github.com/NvChad/NvChad/blob/v2.0/lua/plugins/configs/others.lua#L25-L50
},
},
{
"windwp/nvim-autopairs",
opts = {
fast_wrap = {},
disable_filetype = { "TelescopePrompt", "vim" },
},
config = function(_, opts)
require("nvim-autopairs").setup(opts)
-- setup cmp for autopairs
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
require("cmp").event:on("confirm_done", cmp_autopairs.on_confirm_done())
end,
},
{ "saadparwaiz1/cmp_luasnip" },
{ "hrsh7th/cmp-nvim-lua" },
{ "hrsh7th/cmp-nvim-lsp" },
{ "hrsh7th/cmp-buffer" },
{ "hrsh7th/cmp-path" },
{ "hrsh7th/cmp-cmdline" },
},
},
},
config = function()
local lsp = require("lsp-zero").preset({})
local config = require("lspconfig")
local util = require("lspconfig/util")
local capabilities = require("cmp_nvim_lsp").default_capabilities()
capabilities = vim.tbl_deep_extend("keep", capabilities, vim.lsp.protocol.make_client_capabilities())
capabilities.textDocument.completion.completionItem = {
documentationFormat = { "markdown", "plaintext" },
snippetSupport = true,
preselectSupport = true,
insertReplaceSupport = true,
labelDetailsSupport = true,
deprecatedSupport = true,
commitCharactersSupport = true,
tagSupport = { valueSet = { 1 } },
resolveSupport = {
properties = {
"documentation",
"detail",
"additionalTextEdits",
},
},
}
local on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = false
client.server_capabilities.documentRangeFormattingProvider = false
lsp.default_keymaps({ buffer = bufnr })
local opts = { buffer = bufnr }
local bind = function(map, cmd, mode) vim.keymap.set('n', map, cmd, opts) end
-- diagnostics
bind("<leader>ld", "<cmd>lua vim.diagnostic.open_float()<CR>")
bind("<leader>[d", "<cmd>lua vim.diagnostic.goto_prev()<CR>")
bind("<leader>]d", "<cmd>lua vim.diagnostic.goto_next()<CR>")
bind("<leader>la", "<cmd>lua vim.lsp.buf.code_action()<CR>")
end
lsp.on_attach(on_attach)
local servers = {
-- -- https://github.com/williamboman/mason-lspconfig.nvim#available-lsp-servers
-- lua
"lua_ls",
-- rust
"rust_analyzer",
-- ts/js | web
"tsserver",
"html",
"eslint",
"cssls",
"cssmodules_ls",
-- python
"pyright",
-- docker
"dockerls",
"docker_compose_language_service",
}
lsp.ensure_installed(servers)
local default = require('util').spread {
on_attach = on_attach,
capabilities = capabilities,
}
config.lua_ls.setup(lsp.nvim_lua_ls())
config.rust_analyzer.setup(default {})
config.tsserver.setup(default {
root_dir = util.root_pattern("tsconfig.json", ".git"),
})
config.html.setup(default {})
config.eslint.setup(default {})
config.cssls.setup(default {})
config.cssmodules_ls.setup(default {})
config.pyright.setup(default {})
config.dockerls.setup(default {})
config.docker_compose_language_service.setup(default {})
lsp.setup()
local cmp = require("cmp")
local cmp_action = require("lsp-zero").cmp_action()
cmp.setup({
window = {
documentation = cmp.config.window.bordered(),
},
sources = {
{ name = "nvim_lsp", priority = 1000 },
{ name = "luasnip", priority = 750, keyword_length = 2 },
{ name = "buffer", priority = 500, keyword_length = 3 },
{ nane = "nvim_lua", print = 250, keyword_length = 3 },
{ name = "path", priority = 150, keyword_length = 3 },
-- { name = "cmdline", priority = 50, keyword_length = 5 },
},
mapping = {
["<CR>"] = cmp.mapping.confirm({ select = false }),
["<Tab>"] = cmp_action.tab_complete(),
["<S-Tab>"] = cmp_action.select_prev_or_fallback(),
-- Ctrl+Space to trigger completion menu
["<C-Space>"] = cmp.mapping.complete(),
["<C-f>"] = cmp_action.luasnip_jump_forward(),
["<C-b>"] = cmp_action.luasnip_jump_backward(),
},
})
end,
-- keys = {
-- { "<leader>l", "<Nop>", desc = "LSP" },
-- },
}

View file

@ -1,6 +1,5 @@
return {
"lnc3l0t/glow.nvim",
commit = "bbd0473d72a45094495ee5600b5577823543eefe",
branch = "advanced_window",
config = {
default_type = "keep",

View file

@ -1,7 +1,6 @@
return {
"nvim-neo-tree/neo-tree.nvim",
commit = "e5594d53986b34e584e8afe2ea6ad99d6f6d2105",
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons" },
cmd = "Neotree",
init = function() vim.g.neo_tree_remove_legacy_commands = true end,
pin = true,

View file

@ -1,6 +1,5 @@
return {
"Almo7aya/openingh.nvim",
commit = "374c081409dc238018cd986410f16190d8f9f680",
event = "BufEnter",
keys = {
{ "<leader>gf", ":OpenInGHFile <CR>", desc = "Open in git" }

View file

@ -1,6 +1,5 @@
return {
"marko-cerovac/material.nvim",
commit = "0c725897bc3d22c45fbf25a602002ee02f06f619", -- May 22, 2023
config = function()
vim.g.material_style = "darker"
require("material").setup {

View file

@ -1,7 +1,6 @@
return {
"nvim-treesitter/nvim-treesitter",
dependencies = { "windwp/nvim-ts-autotag", "JoosepAlviste/nvim-ts-context-commentstring" },
commit = "f2778bd1a28b74adf5b1aa51aa57da85adfa3d16",
build = ":TSUpdate",
event = "BufRead",
cmd = {

View file

@ -1,6 +1,5 @@
return {
"mbbill/undotree",
commit = "485f01efde4e22cb1ce547b9e8c9238f36566f21",
event = "BufEnter",
keys = {
{ "<leader>u", vim.cmd.UndotreeToggle, desc = "Undo Tree Toggle" },

View file

@ -1,5 +1,4 @@
return {
"nvim-lua/plenary.nvim",
commit = "9ac3e9541bbabd9d73663d757e4fe48a675bb054",
}