Updated scripts
This commit is contained in:
parent
7278aab6fe
commit
647cae63e3
@ -146,19 +146,6 @@ require("lazy").setup({
|
|||||||
map("gO", require("fzf-lua").lsp_document_symbols, "Open Document Symbols")
|
map("gO", require("fzf-lua").lsp_document_symbols, "Open Document Symbols")
|
||||||
map("gW", require("fzf-lua").lsp_live_workspace_symbols, "Open Workspace Symbols")
|
map("gW", require("fzf-lua").lsp_live_workspace_symbols, "Open Workspace Symbols")
|
||||||
map("grt", require("fzf-lua").lsp_typedefs, "[G]oto [T]ype Definition")
|
map("grt", require("fzf-lua").lsp_typedefs, "[G]oto [T]ype Definition")
|
||||||
|
|
||||||
-- This function resolves a difference between neovim nightly (version 0.11) and stable (version 0.10)
|
|
||||||
---@param client vim.lsp.Client
|
|
||||||
---@param method vim.lsp.protocol.Method
|
|
||||||
---@param bufnr? integer some lsp support methods only in specific files
|
|
||||||
---@return boolean
|
|
||||||
local function client_supports_method(client, method, bufnr)
|
|
||||||
if vim.fn.has("nvim-0.11") == 1 then
|
|
||||||
return client:supports_method(method, bufnr)
|
|
||||||
else
|
|
||||||
return client.supports_method(method, { bufnr = bufnr })
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -256,22 +243,8 @@ require("lazy").setup({
|
|||||||
"saghen/blink.cmp",
|
"saghen/blink.cmp",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
version = "1.*",
|
version = "1.*",
|
||||||
dependencies = {
|
-- optional: provides snippets for the snippet source
|
||||||
-- Snippet Engine
|
dependencies = { "rafamadriz/friendly-snippets" },
|
||||||
{
|
|
||||||
"L3MON4D3/LuaSnip",
|
|
||||||
version = "2.*",
|
|
||||||
build = (function()
|
|
||||||
if vim.fn.has("win32") == 1 or vim.fn.executable("make") == 0 then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
return "make install_jsregexp"
|
|
||||||
end)(),
|
|
||||||
dependencies = {},
|
|
||||||
opts = {},
|
|
||||||
},
|
|
||||||
"folke/lazydev.nvim",
|
|
||||||
},
|
|
||||||
--- @module 'blink.cmp'
|
--- @module 'blink.cmp'
|
||||||
--- @type blink.cmp.Config
|
--- @type blink.cmp.Config
|
||||||
opts = {
|
opts = {
|
||||||
@ -288,15 +261,10 @@ require("lazy").setup({
|
|||||||
},
|
},
|
||||||
|
|
||||||
sources = {
|
sources = {
|
||||||
default = { "lsp", "buffer", "path", "snippets", "lazydev" },
|
default = { "lsp", "buffer", "path", "snippets" },
|
||||||
providers = {
|
|
||||||
lazydev = { module = "lazydev.integrations.blink", score_offset = 100 },
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
snippets = { preset = "luasnip" },
|
|
||||||
fuzzy = { implementation = "prefer_rust_with_warning" },
|
fuzzy = { implementation = "prefer_rust_with_warning" },
|
||||||
signature = { enabled = true },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -333,13 +301,12 @@ require("lazy").setup({
|
|||||||
"ibhagwan/fzf-lua",
|
"ibhagwan/fzf-lua",
|
||||||
dependencies = { "echasnovski/mini.icons" },
|
dependencies = { "echasnovski/mini.icons" },
|
||||||
opts = {
|
opts = {
|
||||||
"fzf-tmux",
|
"telescope",
|
||||||
fzf_opts = { ["--tmux"] = "center,80%,80%" },
|
|
||||||
fzf_colors = {
|
fzf_colors = {
|
||||||
true, -- inherit fzf colors that aren't specified below from
|
true, -- inherit fzf colors that aren't specified below from
|
||||||
-- the auto-generated theme similar to `fzf_colors=true`
|
-- the auto-generated theme similar to `fzf_colors=true`
|
||||||
["fg"] = { "fg", "CursorLine" },
|
["fg"] = { "fg", "CursorLine" },
|
||||||
["bg"] = { "bg", "Black" },
|
["bg"] = { "bg", "Normal" },
|
||||||
["hl"] = { "fg", "Comment" },
|
["hl"] = { "fg", "Comment" },
|
||||||
["fg+"] = { "fg", "Normal", "underline" },
|
["fg+"] = { "fg", "Normal", "underline" },
|
||||||
["bg+"] = { "bg", { "CursorLine", "Normal" } },
|
["bg+"] = { "bg", { "CursorLine", "Normal" } },
|
||||||
@ -365,6 +332,9 @@ require("lazy").setup({
|
|||||||
lazy = false,
|
lazy = false,
|
||||||
opts = {
|
opts = {
|
||||||
at_edge = "stop",
|
at_edge = "stop",
|
||||||
|
float_win_behavior = "mux",
|
||||||
|
ignored_buftypes = { "nofile", "quickfix", "prompt", "fzf" },
|
||||||
|
ignored_filetypes = { "NvimTree", "fzf" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -489,6 +459,16 @@ require("lazy").setup({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"MeanderingProgrammer/render-markdown.nvim",
|
||||||
|
-- dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.nvim" }, -- if you use the mini.nvim suite
|
||||||
|
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.icons" }, -- if you use standalone mini plugins
|
||||||
|
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons
|
||||||
|
---@module 'render-markdown'
|
||||||
|
---@type render.md.UserConfig
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
main = "ibl",
|
main = "ibl",
|
||||||
@ -517,8 +497,19 @@ require("lazy").setup({
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"stevearc/dressing.nvim",
|
"folke/noice.nvim",
|
||||||
opts = {},
|
event = "VeryLazy",
|
||||||
|
opts = {
|
||||||
|
-- add any options here
|
||||||
|
},
|
||||||
|
dependencies = {
|
||||||
|
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
-- OPTIONAL:
|
||||||
|
-- `nvim-notify` is only needed, if you want to use the notification view.
|
||||||
|
-- If not available, we use `mini` as the fallback
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -569,3 +560,4 @@ vim.keymap.set("n", "<leader>b", ":FzfLua buffers<cr>", { desc = "Buffers", sile
|
|||||||
vim.keymap.set("n", "<leader>d", ":FzfLua lsp_document_diagnostics<cr>", { desc = "Diagnostics", silent = true })
|
vim.keymap.set("n", "<leader>d", ":FzfLua lsp_document_diagnostics<cr>", { desc = "Diagnostics", silent = true })
|
||||||
vim.keymap.set("n", "<leader>o", ":FzfLua oldfiles<cr>", { desc = "Old file", silent = true })
|
vim.keymap.set("n", "<leader>o", ":FzfLua oldfiles<cr>", { desc = "Old file", silent = true })
|
||||||
vim.keymap.set("n", "<leader>g", ":FzfLua git_status<cr>", { desc = "Git status", silent = true })
|
vim.keymap.set("n", "<leader>g", ":FzfLua git_status<cr>", { desc = "Git status", silent = true })
|
||||||
|
vim.keymap.set("n", "<leader>t", ":below terminal<cr>", { desc = "Terminal", silent = true })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user