Add more plugins mainly from LazyVim
This commit is contained in:
parent
65836158fa
commit
c903cf7655
|
@ -7,6 +7,9 @@
|
|||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
"conform.nvim": { "branch": "master", "commit": "0ebe875d9c306f5fc829db38492ffff2a70d8e9d" },
|
||||
"crates.nvim": { "branch": "main", "commit": "891063a2dc8471501b9742406a514be62a20c138" },
|
||||
"dashboard-nvim": { "branch": "master", "commit": "fabf5feec96185817c732d47d363f34034212685" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "c5775a888adbc50652cb370073fcfec963eca93e" },
|
||||
"fidget.nvim": { "branch": "main", "commit": "d855eed8a06531a7e8fd0684889b2943f373c469" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "00ebcaa159e817150bd83bfe2d51fa3b3377d5c4" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "899e993850084ea33d001ec229d237bc020c19ae" },
|
||||
|
@ -34,6 +37,7 @@
|
|||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "375c2d86cee6674afd75b4f727ce3a80065552f7" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" },
|
||||
"refactoring.nvim": { "branch": "master", "commit": "c406fc5fb4d7ba5fce7b668637075fad6e75e9f8" },
|
||||
"smart-splits.nvim": { "branch": "master", "commit": "aee30930689ae427729aad41568ccaae57c167fe" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
|
||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
-- https://github.com/Saecki/crates.nvim
|
||||
return {
|
||||
'saecki/crates.nvim',
|
||||
event = { 'BufRead Cargo.toml' },
|
||||
opts = {},
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
-- https://github.com/nvimdev/dashboard-nvim
|
||||
return {
|
||||
'nvimdev/dashboard-nvim',
|
||||
dependencies = { { 'nvim-tree/nvim-web-devicons' } },
|
||||
event = 'VimEnter',
|
||||
opts = {},
|
||||
config = function(_, opts)
|
||||
require('dashboard').setup(opts)
|
||||
end,
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
-- https://github.com/stevearc/dressing.nvim
|
||||
return {
|
||||
'stevearc/dressing.nvim',
|
||||
opts = {},
|
||||
}
|
|
@ -2,9 +2,10 @@
|
|||
return {
|
||||
'ray-x/lsp_signature.nvim',
|
||||
event = 'VeryLazy',
|
||||
opts = {},
|
||||
opts = {
|
||||
toggle_key = '<C-g>',
|
||||
},
|
||||
config = function(_, opts)
|
||||
require('lsp_signature').setup(opts)
|
||||
vim.keymap.set('i', '<C-g>', vim.lsp.buf.signature_help, { silent = true, noremap = true, desc = 'toggle function signature' })
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -32,31 +32,31 @@ return {
|
|||
command_palette = true, -- position the cmdline and popupmenu together
|
||||
long_message_to_split = true, -- long messages will be sent to a split
|
||||
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
||||
lsp_doc_border = false, -- add a border to hover docs and signature help
|
||||
lsp_doc_border = true, -- add a border to hover docs and signature help
|
||||
},
|
||||
}
|
||||
local search = vim.api.nvim_get_hl(0, { name = 'Search' })
|
||||
vim.api.nvim_set_hl(0, 'TransparentSearch', { fg = search.foreground })
|
||||
|
||||
local help = vim.api.nvim_get_hl(0, { name = 'IncSearch' })
|
||||
vim.api.nvim_set_hl(0, 'TransparentHelp', { fg = help.foreground })
|
||||
|
||||
local cmdGroup = 'DevIconLua'
|
||||
local noice_cmd_types = {
|
||||
CmdLine = cmdGroup,
|
||||
Input = cmdGroup,
|
||||
Lua = cmdGroup,
|
||||
Filter = cmdGroup,
|
||||
Rename = cmdGroup,
|
||||
Substitute = 'Define',
|
||||
Help = 'TransparentHelp',
|
||||
Search = 'TransparentSearch',
|
||||
}
|
||||
|
||||
for type, hl in pairs(noice_cmd_types) do
|
||||
vim.api.nvim_set_hl(0, 'NoiceCmdlinePopupBorder' .. type, { link = hl })
|
||||
vim.api.nvim_set_hl(0, 'NoiceCmdlineIcon' .. type, { link = hl })
|
||||
end
|
||||
vim.api.nvim_set_hl(0, 'NoiceConfirmBorder', { link = cmdGroup })
|
||||
-- local search = vim.api.nvim_get_hl(0, { name = 'Search' })
|
||||
-- vim.api.nvim_set_hl(0, 'TransparentSearch', { fg = search.foreground })
|
||||
--
|
||||
-- local help = vim.api.nvim_get_hl(0, { name = 'IncSearch' })
|
||||
-- vim.api.nvim_set_hl(0, 'TransparentHelp', { fg = help.foreground })
|
||||
--
|
||||
-- local cmdGroup = 'DevIconLua'
|
||||
-- local noice_cmd_types = {
|
||||
-- CmdLine = cmdGroup,
|
||||
-- Input = cmdGroup,
|
||||
-- Lua = cmdGroup,
|
||||
-- Filter = cmdGroup,
|
||||
-- Rename = cmdGroup,
|
||||
-- Substitute = 'Define',
|
||||
-- Help = 'TransparentHelp',
|
||||
-- Search = 'TransparentSearch',
|
||||
-- }
|
||||
--
|
||||
-- for type, hl in pairs(noice_cmd_types) do
|
||||
-- vim.api.nvim_set_hl(0, 'NoiceCmdlinePopupBorder' .. type, { link = hl })
|
||||
-- vim.api.nvim_set_hl(0, 'NoiceCmdlineIcon' .. type, { link = hl })
|
||||
-- end
|
||||
-- vim.api.nvim_set_hl(0, 'NoiceConfirmBorder', { link = cmdGroup })
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
-- https://github.com/ThePrimeagen/refactoring.nvim
|
||||
return {
|
||||
'ThePrimeagen/refactoring.nvim',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
},
|
||||
opts = {},
|
||||
}
|
|
@ -4,6 +4,19 @@ return {
|
|||
-- Enable `lukas-reineke/indent-blankline.nvim`
|
||||
-- See `:help ibl`
|
||||
main = 'ibl',
|
||||
opts = {},
|
||||
opts = {
|
||||
indent = {
|
||||
-- char = '▏',
|
||||
char = '╎',
|
||||
},
|
||||
exclude = {
|
||||
filetypes = { 'dashboard' },
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require('ibl').setup(opts)
|
||||
|
||||
vim.keymap.set('n', '<leader>ti', ':IBLToggle<CR>', { noremap = true, silent = true, desc = '[T]oggle [I]ndent guides' })
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue