config(nvim): replace config with opts

main
sudo pacman -Syu 2024-10-28 02:00:04 +07:00
parent c1791cb774
commit 2f06c38f41
1 changed files with 54 additions and 61 deletions

View File

@ -184,8 +184,8 @@ require("lazy").setup({
dependencies = {
"neovim/nvim-lspconfig",
},
config = function()
require("fzf-lua").setup({
opts = {
winopts = {
preview = {
wrap = "wrap",
@ -199,8 +199,7 @@ require("lazy").setup({
multiline = 1,
},
fzf_colors = true,
})
end,
},
},
-- https://github.com/Saghen/blink.cmp
@ -251,12 +250,10 @@ require("lazy").setup({
-- https://github.com/svban/YankAssassin.nvim
{
"svban/YankAssassin.nvim",
config = function()
require("YankAssassin").setup({
opts = {
auto_normal = true,
auto_visual = true,
})
end,
},
},
-- https://github.com/echasnovski/mini.nvim
@ -411,8 +408,7 @@ require("lazy").setup({
build = {
":TSUpdate",
},
config = function()
require("nvim-treesitter.configs").setup({
opts = {
ensure_installed = {
"bash",
"c",
@ -442,8 +438,7 @@ require("lazy").setup({
incremental_selection = { enable = false },
textobjects = { enable = false },
indent = { enable = false },
})
end,
},
},
-- https://github.com/nvim-treesitter/nvim-treesitter-context
@ -452,12 +447,10 @@ require("lazy").setup({
dependencies = {
"nvim-treesitter/nvim-treesitter",
},
config = function()
require("treesitter-context").setup({
opts = {
enable = true,
max_lines = 2,
})
end,
},
},
-- https://github.com/neovim/nvim-lspconfig