This commit is contained in:
asep komarudin 2023-04-09 14:35:15 +07:00
parent 8505c1e9e5
commit 3a69b6cee1
3 changed files with 141 additions and 160 deletions

View file

@ -5,7 +5,6 @@
"bufdelete.nvim": { "branch": "master", "commit": "8933abc09df6c381d47dc271b1ee5d266541448e" }, "bufdelete.nvim": { "branch": "master", "commit": "8933abc09df6c381d47dc271b1ee5d266541448e" },
"bufferline.nvim": { "branch": "main", "commit": "eb4e95be22c55890b90fc01a8223e0c0ea4a0862" }, "bufferline.nvim": { "branch": "main", "commit": "eb4e95be22c55890b90fc01a8223e0c0ea4a0862" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "8fcc934a52af96120fe26358985c10c035984b53" },
"cmp-nvim-lsp": { "branch": "main", "commit": "0e6b2ed705ddcff9738ec4ea838141654f12eeef" }, "cmp-nvim-lsp": { "branch": "main", "commit": "0e6b2ed705ddcff9738ec4ea838141654f12eeef" },
"cmp-nvim-lua": { "branch": "main", "commit": "f3491638d123cfd2c8048aefaf66d246ff250ca6" }, "cmp-nvim-lua": { "branch": "main", "commit": "f3491638d123cfd2c8048aefaf66d246ff250ca6" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
@ -29,8 +28,6 @@
"mini.animate": { "branch": "main", "commit": "ca9b687b6da98b48081dc72e27a9657c85cde135" }, "mini.animate": { "branch": "main", "commit": "ca9b687b6da98b48081dc72e27a9657c85cde135" },
"mini.indentscope": { "branch": "main", "commit": "43f6761c9a3e397b7c12b3c72f678bcf61efcfcf" }, "mini.indentscope": { "branch": "main", "commit": "43f6761c9a3e397b7c12b3c72f678bcf61efcfcf" },
"neoscroll.nvim": { "branch": "master", "commit": "d7601c26c8a183fa8994ed339e70c2d841253e93" }, "neoscroll.nvim": { "branch": "master", "commit": "d7601c26c8a183fa8994ed339e70c2d841253e93" },
"noice.nvim": { "branch": "main", "commit": "1da4edfba3e9278e98fc9723d7235d9ab3889744" },
"nui.nvim": { "branch": "main", "commit": "1f43b13d133eb4b4f53a4485379d9afa58808389" },
"null-ls.nvim": { "branch": "main", "commit": "5855128178fa78293acdfb5b4e41ef046779240b" }, "null-ls.nvim": { "branch": "main", "commit": "5855128178fa78293acdfb5b4e41ef046779240b" },
"nvim-autopairs": { "branch": "master", "commit": "4fc96c8f3df89b6d23e5092d31c866c53a346347" }, "nvim-autopairs": { "branch": "master", "commit": "4fc96c8f3df89b6d23e5092d31c866c53a346347" },
"nvim-cmp": { "branch": "main", "commit": "777450fd0ae289463a14481673e26246b5e38bf2" }, "nvim-cmp": { "branch": "main", "commit": "777450fd0ae289463a14481673e26246b5e38bf2" },
@ -49,7 +46,6 @@
"nvim-web-devicons": { "branch": "master", "commit": "f16ec8f6e5d23e4349501dae46e0a661918e086e" }, "nvim-web-devicons": { "branch": "master", "commit": "f16ec8f6e5d23e4349501dae46e0a661918e086e" },
"plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" }, "plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" },
"smart-splits.nvim": { "branch": "master", "commit": "d0111ef84fc82c9a31f4b000ff99190eaf18e790" }, "smart-splits.nvim": { "branch": "master", "commit": "d0111ef84fc82c9a31f4b000ff99190eaf18e790" },
"symbols-outline.nvim": { "branch": "master", "commit": "512791925d57a61c545bc303356e8a8f7869763c" },
"telescope.nvim": { "branch": "master", "commit": "942fe5faef47b21241e970551eba407bc10d9547" }, "telescope.nvim": { "branch": "master", "commit": "942fe5faef47b21241e970551eba407bc10d9547" },
"todo-comments.nvim": { "branch": "main", "commit": "8febc60a76feefd8203077ef78b6a262ea1a41f9" }, "todo-comments.nvim": { "branch": "main", "commit": "8febc60a76feefd8203077ef78b6a262ea1a41f9" },
"toggleterm.nvim": { "branch": "main", "commit": "b86982429325112d2b20c6d0cc7a5c4b182ab705" }, "toggleterm.nvim": { "branch": "main", "commit": "b86982429325112d2b20c6d0cc7a5c4b182ab705" },
@ -59,5 +55,6 @@
"vim-startuptime": { "branch": "master", "commit": "5f52ed26e0296a3e1d1453935f417e5808eefab8" }, "vim-startuptime": { "branch": "master", "commit": "5f52ed26e0296a3e1d1453935f417e5808eefab8" },
"vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" }, "vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" },
"which-key.nvim": { "branch": "main", "commit": "4b73390eec680b4c061ea175eb32c0ff3412271d" }, "which-key.nvim": { "branch": "main", "commit": "4b73390eec680b4c061ea175eb32c0ff3412271d" },
"wilder.nvim": { "branch": "master", "commit": "679f348dc90d80ff9ba0e7c470c40a4d038dcecf" },
"yanky.nvim": { "branch": "main", "commit": "9fb1c211775b5a6c83b9fe806cfd99f68c65f8a0" } "yanky.nvim": { "branch": "main", "commit": "9fb1c211775b5a6c83b9fe806cfd99f68c65f8a0" }
} }

View file

@ -7,151 +7,135 @@ if vim.g.neovide then
end end
vim.opt.lazyredraw = is_neovide vim.opt.lazyredraw = is_neovide
return { return {
{ "gelguy/wilder.nvim", enabled = false }, -- { "gelguy/wilder.nvim", enabled = false },
{ -- {
"folke/noice.nvim", -- "folke/noice.nvim",
enabled = use_noice, -- enabled = use_noice,
dependencies = { -- dependencies = {
{ "MunifTanjim/nui.nvim", enabled = use_noice }, -- { "MunifTanjim/nui.nvim", enabled = use_noice },
}, -- },
event = "BufWinEnter", -- event = "BufWinEnter",
opts = { -- opts = {
messages = { -- messages = {
enabled = false, -- enabled = false,
}, -- },
notify = { -- notify = {
enabled = false, -- enabled = false,
}, -- },
lsp = { -- lsp = {
progress = { -- progress = {
enabled = false, -- enabled = false,
}, -- },
hover = { -- hover = {
enabled = false, -- enabled = false,
}, -- },
signature = { -- signature = {
enabled = false, -- enabled = false,
}, -- },
}, -- },
}, -- },
keys = { -- keys = {
{ -- {
"<S-Enter>", -- "<S-Enter>",
function() -- function()
require("noice").redirect(vim.fn.getcmdline()) -- require("noice").redirect(vim.fn.getcmdline())
end, -- end,
mode = "c", -- mode = "c",
desc = "Redirect Cmdline", -- desc = "Redirect Cmdline",
}, -- },
{ -- {
"<leader>snl", -- "<leader>snl",
function() -- function()
require("noice").cmd("last") -- require("noice").cmd("last")
end, -- end,
desc = "Noice Last Message", -- desc = "Noice Last Message",
}, -- },
{ -- {
"<leader>snh", -- "<leader>snh",
function() -- function()
require("noice").cmd("history") -- require("noice").cmd("history")
end, -- end,
desc = "Noice History", -- desc = "Noice History",
}, -- },
{ -- {
"<leader>sna", -- "<leader>sna",
function() -- function()
require("noice").cmd("all") -- require("noice").cmd("all")
end, -- end,
desc = "Noice All", -- desc = "Noice All",
}, -- },
{ -- {
"<c-f>", -- "<c-f>",
function() -- function()
if not require("noice.lsp").scroll(4) then -- if not require("noice.lsp").scroll(4) then
return "<c-f>" -- return "<c-f>"
end -- end
end, -- end,
silent = true, -- silent = true,
expr = true, -- expr = true,
desc = "Scroll forward", -- desc = "Scroll forward",
mode = { "i", "n", "s" }, -- mode = { "i", "n", "s" },
}, -- },
{ -- {
"<c-b>", -- "<c-b>",
function() -- function()
if not require("noice.lsp").scroll(-4) then -- if not require("noice.lsp").scroll(-4) then
return "<c-b>" -- return "<c-b>"
end -- end
end, -- end,
silent = true, -- silent = true,
expr = true, -- expr = true,
desc = "Scroll backward", -- desc = "Scroll backward",
mode = { "i", "n", "s" }, -- mode = { "i", "n", "s" },
}, -- },
}, -- },
-- config = function() -- },
-- vim.opt.lazyredraw = false -- {
-- require("noice").setup({ -- "hrsh7th/cmp-cmdline",
-- messages = { -- event = "VeryLazy",
-- enabled = false, -- config = function()
-- }, -- local cmp = require("cmp")
-- notify = { -- local mapping = {
-- enabled = false, -- ["<CR>"] = cmp.mapping.confirm({ select = true }),
-- }, -- ["<Up>"] = cmp.mapping(cmp.mapping.select_prev_item(), { "i", "c" }),
-- lsp = { -- ["<S-Tab>"] = cmp.mapping(cmp.mapping.select_prev_item(), { "i", "c" }),
-- progress = { -- ["<Down>"] = cmp.mapping(cmp.mapping.select_next_item(), { "i", "c" }),
-- enabled = false, -- ["<Tab>"] = cmp.mapping(cmp.mapping.select_next_item(), { "i", "c" }),
-- }, -- }
-- }, --
-- }) -- -- Use buffer source for `/`.
-- end, -- cmp.setup.cmdline("/", {
}, -- preselect = "none",
{ -- completion = {
"hrsh7th/cmp-cmdline", -- completeopt = "menu,preview,menuone,noselect",
event = "VeryLazy", -- },
config = function() -- mapping = mapping,
local cmp = require("cmp") -- sources = {
local mapping = { -- { name = "buffer" },
["<CR>"] = cmp.mapping.confirm({ select = true }), -- },
["<Up>"] = cmp.mapping(cmp.mapping.select_prev_item(), { "i", "c" }), -- experimental = {
["<S-Tab>"] = cmp.mapping(cmp.mapping.select_prev_item(), { "i", "c" }), -- ghost_text = true,
["<Down>"] = cmp.mapping(cmp.mapping.select_next_item(), { "i", "c" }), -- native_menu = false,
["<Tab>"] = cmp.mapping(cmp.mapping.select_next_item(), { "i", "c" }), -- },
} -- })
--
-- Use buffer source for `/`. -- -- Use cmdline & path source for ':'.
cmp.setup.cmdline("/", { -- cmp.setup.cmdline(":", {
preselect = "none", -- preselect = "none",
completion = { -- completion = {
completeopt = "menu,preview,menuone,noselect", -- completeopt = "menu,preview,menuone,noselect",
}, -- },
mapping = mapping, -- mapping = mapping,
sources = { -- sources = cmp.config.sources({
{ name = "buffer" }, -- { name = "path" },
}, -- }, {
experimental = { -- { name = "cmdline" },
ghost_text = true, -- }),
native_menu = false, -- experimental = {
}, -- ghost_text = true,
}) -- native_menu = false,
-- },
-- Use cmdline & path source for ':'. -- })
cmp.setup.cmdline(":", { -- end,
preselect = "none", -- },
completion = {
completeopt = "menu,preview,menuone,noselect",
},
mapping = mapping,
sources = cmp.config.sources({
{ name = "path" },
}, {
{ name = "cmdline" },
}),
experimental = {
ghost_text = true,
native_menu = false,
},
})
end,
},
} }

View file

@ -1,14 +1,14 @@
return { return {
-- { "RRethy/nvim-base16" }, -- { "RRethy/nvim-base16" },
-- simbol outline -- -- simbol outline
{ -- {
"simrat39/symbols-outline.nvim", -- "simrat39/symbols-outline.nvim",
lazy = true, -- lazy = true,
event = "BufRead", -- event = "BufRead",
config = function() -- config = function()
require("symbols-outline").setup() -- require("symbols-outline").setup()
end, -- end,
}, -- },
-- { -- {
-- "nvim-lualine/lualine.nvim", -- "nvim-lualine/lualine.nvim",
-- lazy = true, -- lazy = true,