mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
719 lines
18 KiB
Lua
719 lines
18 KiB
Lua
-- local build = "powershell ./install.ps1"
|
|
-- if vim.fn.has("win32") == 0 then
|
|
-- build = "./install.sh"
|
|
-- end
|
|
return {
|
|
-- plugin ini merupakan penyedia library neovim lua
|
|
{
|
|
"nvim-lua/plenary.nvim",
|
|
lazy = true,
|
|
},
|
|
-- coding start
|
|
-- coloring code
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
event = "BufRead",
|
|
priority = 1000,
|
|
cmd = {
|
|
"TSBufDisable",
|
|
"TSBufEnable",
|
|
"TSBufToggle",
|
|
"TSDisable",
|
|
"TSEnable",
|
|
"TSToggle",
|
|
"TSInstall",
|
|
"TSInstallInfo",
|
|
"TSInstallSync",
|
|
"TSModuleInfo",
|
|
"TSUninstall",
|
|
"TSUpdate",
|
|
"TSUpdateSync",
|
|
},
|
|
build = function()
|
|
local status_ok, ts = pcall(require, "nvim-treesitter.install")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
ts.update({ with_sync = true })()
|
|
end,
|
|
config = function()
|
|
local status_ok, _ = pcall(require, "nvim-treesitter")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
require("user.treesitter")
|
|
end,
|
|
},
|
|
-- snippets
|
|
{
|
|
"L3MON4D3/LuaSnip",
|
|
dependencies = {
|
|
"rafamadriz/friendly-snippets",
|
|
config = function()
|
|
require("luasnip.loaders.from_vscode").lazy_load()
|
|
require("user.snip")
|
|
end,
|
|
},
|
|
opts = {
|
|
history = true,
|
|
delete_check_events = "TextChanged",
|
|
},
|
|
-- stylua: ignore
|
|
keys = {
|
|
{
|
|
"<tab>",
|
|
function()
|
|
return require("luasnip").jumpable(1) and "<Plug>luasnip-jump-next" or "<tab>"
|
|
end,
|
|
expr = true, silent = true, mode = "i",
|
|
},
|
|
{ "<tab>", function() require("luasnip").jump(1) end, mode = "s" },
|
|
{ "<s-tab>", function() require("luasnip").jump(-1) end, mode = { "i", "s" } },
|
|
},
|
|
},
|
|
-- for cmp
|
|
{
|
|
"hrsh7th/nvim-cmp",
|
|
version = false, -- last release is way too old
|
|
event = "InsertEnter",
|
|
dependencies = {
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
"hrsh7th/cmp-buffer",
|
|
"hrsh7th/cmp-path",
|
|
"saadparwaiz1/cmp_luasnip",
|
|
"hrsh7th/cmp-nvim-lua",
|
|
-- {
|
|
-- "hrsh7th/cmp-cmdline",
|
|
-- --event = "BufWinEnter",
|
|
-- event = "VeryLazy",
|
|
-- config = function()
|
|
-- require("user.cmdline")
|
|
-- end,
|
|
-- },
|
|
},
|
|
opts = function()
|
|
local cmp = require("cmp")
|
|
local luasnip = require("luasnip")
|
|
|
|
local check_backspace = function()
|
|
local col = vim.fn.col(".") - 1
|
|
return col == 0 or vim.fn.getline("."):sub(col, col):match("%s")
|
|
end
|
|
|
|
return {
|
|
completion = {
|
|
completeopt = "menu,menuone,noinsert",
|
|
},
|
|
snippet = {
|
|
expand = function(args)
|
|
require("luasnip").lsp_expand(args.body)
|
|
end,
|
|
},
|
|
mapping = cmp.mapping.preset.insert({
|
|
["<C-b>"] = cmp.mapping.scroll_docs(-4),
|
|
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
|
["<C-Space>"] = cmp.mapping.complete(),
|
|
["<C-e>"] = cmp.mapping.abort(),
|
|
["<CR>"] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
|
["<Tab>"] = cmp.mapping(function(fallback)
|
|
if cmp.visible() then
|
|
cmp.select_next_item()
|
|
elseif luasnip.expandable() then
|
|
luasnip.expand()
|
|
elseif luasnip.expand_or_jumpable() then
|
|
luasnip.expand_or_jump()
|
|
elseif check_backspace() then
|
|
fallback()
|
|
else
|
|
fallback()
|
|
end
|
|
end, {
|
|
"i",
|
|
"s",
|
|
}),
|
|
}),
|
|
sources = cmp.config.sources({
|
|
{ name = "nvim_lsp" },
|
|
{ name = "luasnip" },
|
|
{ name = "buffer" },
|
|
{ name = "path" },
|
|
{ name = "nvim_lua" },
|
|
}),
|
|
formatting = {
|
|
fields = { "kind", "abbr", "menu" },
|
|
format = function(entry, vim_item)
|
|
vim_item.kind = string.format("%s", require("user.icons")["kind"][vim_item.kind])
|
|
vim_item.menu = ({
|
|
nvim_lsp = "(LSP)",
|
|
luasnip = "(Snippet)",
|
|
buffer = "(Buffer)",
|
|
path = "(Path)",
|
|
})[entry.source.name]
|
|
return vim_item
|
|
end,
|
|
},
|
|
window = {
|
|
completion = cmp.config.window.bordered(),
|
|
documentation = cmp.config.window.bordered(),
|
|
},
|
|
experimental = {
|
|
ghost_text = false,
|
|
native_menu = false,
|
|
},
|
|
}
|
|
end,
|
|
},
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
event = "BufWinEnter",
|
|
dependencies = {
|
|
"williamboman/mason-lspconfig.nvim",
|
|
},
|
|
config = function()
|
|
require("user.lsp")
|
|
end,
|
|
},
|
|
-- {
|
|
-- "williamboman/mason.nvim",
|
|
-- event = "VeryLazy",
|
|
-- cmd = {
|
|
-- "Mason",
|
|
-- "MasonInstall",
|
|
-- "MasonUninstall",
|
|
-- "MasonUninstallAll",
|
|
-- "MasonLog",
|
|
-- },
|
|
-- dependencies = { "williamboman/mason-lspconfig.nvim" },
|
|
-- init = function()
|
|
-- vim.tbl_map(function(plugin)
|
|
-- pcall(require, plugin)
|
|
-- end, { "lspconfig", "null-ls" })
|
|
-- end,
|
|
-- },
|
|
{
|
|
"williamboman/mason.nvim",
|
|
cmd = "Mason",
|
|
keys = { { "<leader>cm", "<cmd>Mason<cr>", desc = "Mason" } },
|
|
},
|
|
-- for formater linter
|
|
{ "RRethy/vim-illuminate", event = "BufRead" },
|
|
{
|
|
"jayp0521/mason-null-ls.nvim",
|
|
dependencies = "jose-elias-alvarez/null-ls.nvim",
|
|
event = "BufRead",
|
|
opts = function()
|
|
require("user.mason-null-ls")
|
|
end,
|
|
},
|
|
-- debuging
|
|
{
|
|
"rcarriga/nvim-dap-ui",
|
|
event = "BufWinEnter",
|
|
dependencies = "mfussenegger/nvim-dap",
|
|
enabled = vim.fn.has("win32") == 0,
|
|
config = function()
|
|
require("user.dapui")
|
|
end,
|
|
},
|
|
{
|
|
"jayp0521/mason-nvim-dap.nvim",
|
|
event = "VeryLazy",
|
|
dependencies = { "williamboman/mason.nvim", "mfussenegger/nvim-dap" },
|
|
enabled = vim.fn.has("win32") == 0,
|
|
init = function()
|
|
require("user.mason_dap")
|
|
end,
|
|
},
|
|
-- for install lsp tidak support mason
|
|
{ "williamboman/nvim-lsp-installer", event = "VeryLazy" },
|
|
-- auto pairs
|
|
{
|
|
"windwp/nvim-autopairs",
|
|
commit = "4fc96c8f3df89b6d23e5092d31c866c53a346347",
|
|
dependencies = "hrsh7th/nvim-cmp",
|
|
event = "InsertEnter",
|
|
config = function()
|
|
require("user.autopairs")
|
|
end,
|
|
},
|
|
-- untuk comment
|
|
{
|
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
|
event = "BufRead",
|
|
dependencies = "nvim-treesitter/nvim-treesitter",
|
|
},
|
|
{
|
|
"numToStr/Comment.nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("user.comment")
|
|
end,
|
|
},
|
|
-- better todo coloring and icon
|
|
{
|
|
"folke/todo-comments.nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("todo-comments").setup()
|
|
end,
|
|
},
|
|
-- styleing indent
|
|
{
|
|
"lukas-reineke/indent-blankline.nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("user.indentline")
|
|
end,
|
|
},
|
|
-- { "ahmedkhalf/project.nvim", commit = "628de7e433dd503e782831fe150bb750e56e55d6", event = "VeryLazy" },
|
|
-- for Speed up loading Lua modules in Neovim to improve startup time.
|
|
{
|
|
"lewis6991/impatient.nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("user.impatient")
|
|
end,
|
|
},
|
|
-- for live server html,css,js
|
|
{
|
|
"manzeloth/live-server",
|
|
cmd = { "LiveServer" },
|
|
event = "BufRead",
|
|
build = "npm install -g live-server",
|
|
},
|
|
-- for multi cursor select
|
|
{ "mg979/vim-visual-multi", event = "BufRead" },
|
|
-- for auto close tag
|
|
{
|
|
"windwp/nvim-ts-autotag",
|
|
event = "BufRead",
|
|
dependencies = "nvim-treesitter/nvim-treesitter",
|
|
config = function()
|
|
require("nvim-ts-autotag").setup()
|
|
end,
|
|
},
|
|
-- for auto detection file and run code
|
|
{
|
|
"CRAG666/code_runner.nvim",
|
|
event = "BufRead",
|
|
-- dependencies = "nvim-lua/plenary.nvim",
|
|
cmd = { "RunCode", "RunFile", "RunProject", "RunClose" },
|
|
config = function()
|
|
require("user.coderunner")
|
|
end,
|
|
},
|
|
{
|
|
"is0n/jaq-nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("user.jaq")
|
|
end,
|
|
},
|
|
-- for color view
|
|
{
|
|
"NvChad/nvim-colorizer.lua",
|
|
event = "BufRead",
|
|
opts = function()
|
|
require("user.colorizer")
|
|
end,
|
|
},
|
|
-- for winbar icon
|
|
{
|
|
"SmiteshP/nvim-navic",
|
|
dependencies = "neovim/nvim-lspconfig",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("user.breadcrumb")
|
|
require("user.winbar")
|
|
end,
|
|
},
|
|
-- for popup alert
|
|
{
|
|
"rcarriga/nvim-notify",
|
|
event = "BufWinEnter",
|
|
config = function()
|
|
local notify = require("notify")
|
|
-- this for transparency
|
|
notify.setup({ background_colour = "#000000" })
|
|
-- this overwrites the vim notify function
|
|
vim.notify = notify.notify
|
|
end,
|
|
},
|
|
-- for resize screen
|
|
{
|
|
"mrjones2014/smart-splits.nvim",
|
|
event = "BufWinEnter",
|
|
config = function()
|
|
require("user.smartspit")
|
|
end,
|
|
},
|
|
-- for popup input
|
|
{
|
|
"stevearc/dressing.nvim",
|
|
event = "BufWinEnter",
|
|
config = function()
|
|
require("user.dressing")
|
|
end,
|
|
},
|
|
-- mini scrollview
|
|
{
|
|
"karb94/neoscroll.nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("user.neoscroll")
|
|
end,
|
|
},
|
|
{
|
|
"dstein64/nvim-scrollview",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("user.nvimscroll")
|
|
end,
|
|
},
|
|
-- for manage and coloring copy
|
|
{
|
|
"gbprod/yanky.nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("user.yanky")
|
|
end,
|
|
},
|
|
-- for check startuptime
|
|
{ "dstein64/vim-startuptime", cmd = "StartupTime", event = "BufRead" },
|
|
-- for coloring pairs
|
|
{
|
|
"p00f/nvim-ts-rainbow",
|
|
event = "BufRead",
|
|
dependencies = "nvim-treesitter/nvim-treesitter",
|
|
},
|
|
-- for git
|
|
{
|
|
"lewis6991/gitsigns.nvim",
|
|
enabled = vim.fn.executable("git") == 1,
|
|
ft = "gitcommit",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("user.gitsigns")
|
|
end,
|
|
},
|
|
|
|
-- additional plugins
|
|
-- active indent guide and indent text objects
|
|
{
|
|
"echasnovski/mini.indentscope",
|
|
version = false, -- wait till new 0.7.0 release to put it back on semver
|
|
event = "BufReadPre",
|
|
opts = {
|
|
-- symbol = "▏",
|
|
symbol = "│",
|
|
options = { try_as_border = true },
|
|
},
|
|
config = function(_, opts)
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" },
|
|
callback = function()
|
|
vim.b.miniindentscope_disable = true
|
|
end,
|
|
})
|
|
require("mini.indentscope").setup(opts)
|
|
end,
|
|
},
|
|
-- makes some plugins dot-repeatable like leap
|
|
-- { "tpope/vim-repeat", event = "VeryLazy" },
|
|
-- better diagnostics list and others
|
|
{
|
|
"folke/trouble.nvim",
|
|
event = "BufRead",
|
|
cmd = { "TroubleToggle", "Trouble" },
|
|
opts = { use_diagnostic_signs = true },
|
|
keys = {
|
|
{ "<leader>xx", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Document Diagnostics (Trouble)" },
|
|
{ "<leader>xX", "<cmd>TroubleToggle workspace_diagnostics<cr>", desc = "Workspace Diagnostics (Trouble)" },
|
|
},
|
|
},
|
|
-- for markdown preview
|
|
-- make sure already install npm and yarn
|
|
-- {
|
|
-- "iamcco/markdown-preview.nvim",
|
|
-- event = "VeryLazy",
|
|
-- build = "cd app && npm install",
|
|
-- init = function()
|
|
-- vim.g.mkdp_filetypes = { "markdown" }
|
|
-- end,
|
|
-- ft = { "markdown" },
|
|
-- cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
|
|
-- },
|
|
-- for codeGPT
|
|
-- {
|
|
-- "jackMort/ChatGPT.nvim",
|
|
-- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" },
|
|
-- lazy = true,
|
|
-- event = "VeryLazy",
|
|
-- -- opts = function()
|
|
-- -- require("user.chat_gpt")
|
|
-- -- end,
|
|
-- },
|
|
-- indent detection
|
|
-- {
|
|
-- "Darazaki/indent-o-matic",
|
|
-- event = "VeryLazy",
|
|
-- opt = true,
|
|
-- cmd = { "IndentOMatic" },
|
|
-- config = function()
|
|
-- require("user.indent-o-matic")
|
|
-- end,
|
|
-- },
|
|
-- Lsp Saga
|
|
-- {
|
|
-- "glepnir/lspsaga.nvim",
|
|
-- event = "BufRead",
|
|
-- config = function()
|
|
-- require("lspsaga").setup({})
|
|
-- end,
|
|
-- dependencies = { { "kyazdani42/nvim-web-devicons" } },
|
|
-- init = function()
|
|
-- require("user.lspsaga_config")
|
|
-- end,
|
|
-- },
|
|
-- Khusus Projek laravel baru di buka
|
|
-- {
|
|
-- "adalessa/laravel.nvim",
|
|
-- dependencies = {
|
|
-- "nvim-telescope/telescope.nvim",
|
|
-- },
|
|
-- cmd = { "Sail", "Artisan", "Composer" },
|
|
-- keys = {
|
|
-- { "<leader>pa", ":Artisan<cr>" },
|
|
-- },
|
|
-- config = function()
|
|
-- require("laravel").setup()
|
|
-- require("telescope").load_extension("laravel")
|
|
-- end,
|
|
-- },
|
|
|
|
-- for loading info
|
|
{
|
|
"j-hui/fidget.nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("fidget").setup()
|
|
end,
|
|
},
|
|
{
|
|
"gelguy/wilder.nvim",
|
|
event = "BufWinEnter",
|
|
config = function()
|
|
local wilder = require("wilder")
|
|
wilder.setup({ modes = { ":", "/", "?" } })
|
|
wilder.set_option(
|
|
"renderer",
|
|
wilder.popupmenu_renderer({
|
|
highlighter = wilder.basic_highlighter(),
|
|
left = { " ", wilder.popupmenu_devicons() },
|
|
right = { " ", wilder.popupmenu_scrollbar() },
|
|
})
|
|
)
|
|
end,
|
|
},
|
|
-- for UI
|
|
-- color scheme
|
|
-- {
|
|
-- "folke/tokyonight.nvim",
|
|
-- -- commit = "66bfc2e8f754869c7b651f3f47a2ee56ae557764",
|
|
-- lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
|
-- priority = 1000, -- make sure to load this before all the other start plugins
|
|
-- config = function()
|
|
-- local is_transparant = false
|
|
-- if is_transparant then
|
|
-- require("user.tokyonight_transparant")
|
|
-- else
|
|
-- require("user.tokyonight")
|
|
-- end
|
|
-- -- require("core")
|
|
-- require("user.colorscheme")
|
|
-- end,
|
|
-- },
|
|
-- {
|
|
-- "navarasu/onedark.nvim",
|
|
-- init = function()
|
|
-- require("user.onedark")
|
|
-- require("onedark").load()
|
|
-- end,
|
|
-- },
|
|
-- { "lunarvim/lunar.nvim" },
|
|
-- -- { "arcticicestudio/nord-vim" },
|
|
-- {
|
|
-- "catppuccin/nvim",
|
|
-- name = "catppuccin",
|
|
-- init = function()
|
|
-- require("user.catppuccin")
|
|
-- end,
|
|
-- },
|
|
{ "luisiacc/gruvbox-baby", lazy = true },
|
|
-- {
|
|
-- "ellisonleao/gruvbox.nvim",
|
|
-- init = function()
|
|
-- require("gruvbox").setup({
|
|
-- undercurl = true,
|
|
-- underline = true,
|
|
-- bold = true,
|
|
-- italic = true,
|
|
-- strikethrough = true,
|
|
-- invert_selection = false,
|
|
-- invert_signs = false,
|
|
-- invert_tabline = false,
|
|
-- invert_intend_guides = false,
|
|
-- inverse = true, -- invert background for search, diffs, statuslines and errors
|
|
-- contrast = "", -- can be "hard", "soft" or empty string
|
|
-- palette_overrides = {},
|
|
-- overrides = {},
|
|
-- dim_inactive = false,
|
|
-- transparent_mode = false,
|
|
-- })
|
|
-- vim.o.background = "dark" -- or "light" for light mode
|
|
-- end,
|
|
-- },
|
|
-- { "sainnhe/sonokai" },
|
|
-- -- { "EdenEast/nightfox.nvim" },
|
|
-- {
|
|
-- "marko-cerovac/material.nvim",
|
|
-- init = function()
|
|
-- vim.g.material_style = "darker"
|
|
-- end,
|
|
-- },
|
|
|
|
-- include treesitter
|
|
-- require("plugins.treesitter"),
|
|
-- {
|
|
-- "nvim-treesitter/nvim-treesitter",
|
|
-- commit = "8e763332b7bf7b3a426fd8707b7f5aa85823a5ac",
|
|
-- run = ":TSUpdate",
|
|
-- event = "BufWinEnter",
|
|
-- opts = function()
|
|
-- require("user.treesitter")
|
|
-- end,
|
|
-- },
|
|
-- dashboard
|
|
{
|
|
"goolord/alpha-nvim",
|
|
-- event = "BufWinEnter",
|
|
event = "VimEnter",
|
|
config = function()
|
|
require("user.alpha")
|
|
end,
|
|
},
|
|
-- line info bootom
|
|
{
|
|
"nvim-lualine/lualine.nvim",
|
|
-- dependencies = { "kyazdani42/nvim-web-devicons", opt = true },
|
|
event = "BufWinEnter",
|
|
config = function()
|
|
local model = 0
|
|
if model == 1 then
|
|
require("user.lualine1")
|
|
elseif model == 2 then
|
|
require("user.lualine2")
|
|
else
|
|
require("user.lualine")
|
|
end
|
|
end,
|
|
},
|
|
-- for show icon
|
|
{
|
|
"kyazdani42/nvim-web-devicons",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("user.webdevicons")
|
|
end,
|
|
},
|
|
-- for tree exploler
|
|
{
|
|
"kyazdani42/nvim-tree.lua",
|
|
-- event = "BufWinEnter",
|
|
cmd = { "NvimTree", "NvimTreeToggle", "NvimTreeFocus", "NvimTreeClose" },
|
|
-- dependencies = "kyazdani42/nvim-web-devicons",
|
|
config = function()
|
|
require("user.nvim-tree")
|
|
end,
|
|
},
|
|
-- for file tab
|
|
{
|
|
"famiu/bufdelete.nvim",
|
|
event = "BufRead",
|
|
},
|
|
{
|
|
"akinsho/bufferline.nvim",
|
|
event = "BufWinEnter",
|
|
config = function()
|
|
require("user.bufferline")
|
|
end,
|
|
},
|
|
-- for delete buffers (close files) without closing your windows or messing up your layout.
|
|
{ "moll/vim-bbye", event = "BufRead" },
|
|
-- for view terminal
|
|
{
|
|
"akinsho/toggleterm.nvim",
|
|
cmd = "Toggleterm",
|
|
event = "BufWinEnter",
|
|
init = function()
|
|
require("user.toggleterm")
|
|
end,
|
|
},
|
|
-- key mapping
|
|
{
|
|
"folke/which-key.nvim",
|
|
event = "VeryLazy",
|
|
init = function()
|
|
require("user.whichkey")
|
|
end,
|
|
},
|
|
-- for search
|
|
{
|
|
"nvim-telescope/telescope.nvim",
|
|
-- event = "BufRead",
|
|
-- dependencies = { { "nvim-lua/plenary.nvim" } },
|
|
cmd = "Telescope",
|
|
version = false, -- telescope did only one release, so use HEAD for now
|
|
config = function()
|
|
require("user.telescope")
|
|
end,
|
|
},
|
|
-- -- ui components
|
|
-- { "MunifTanjim/nui.nvim", lazy = true },
|
|
-- -- noicer ui
|
|
-- {
|
|
-- "folke/noice.nvim",
|
|
-- event = "VeryLazy",
|
|
-- opts = {
|
|
-- lsp = {
|
|
-- override = {
|
|
-- ["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
|
-- ["vim.lsp.util.stylize_markdown"] = true,
|
|
-- },
|
|
-- },
|
|
-- presets = {
|
|
-- bottom_search = true,
|
|
-- command_palette = true,
|
|
-- long_message_to_split = true,
|
|
-- },
|
|
-- },
|
|
-- -- stylua: ignore
|
|
-- keys = {
|
|
-- { "<S-Enter>", function() require("noice").redirect(vim.fn.getcmdline()) end, mode = "c", desc = "Redirect Cmdline" },
|
|
-- { "<leader>snl", function() require("noice").cmd("last") end, desc = "Noice Last Message" },
|
|
-- { "<leader>snh", function() require("noice").cmd("history") end, desc = "Noice History" },
|
|
-- { "<leader>sna", function() require("noice").cmd("all") end, desc = "Noice All" },
|
|
-- { "<c-f>", function() if not require("noice.lsp").scroll(4) then return "<c-f>" end end, silent = true, expr = true, desc = "Scroll forward", mode = {"i", "n", "s"} },
|
|
-- { "<c-b>", function() if not require("noice.lsp").scroll(-4) then return "<c-b>" end end, silent = true, expr = true, desc = "Scroll backward", mode = {"i", "n", "s"}},
|
|
-- },
|
|
-- },
|
|
|
|
-- simbol outline
|
|
{
|
|
"simrat39/symbols-outline.nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("symbols-outline").setup()
|
|
end,
|
|
},
|
|
}
|