plugin cleanup
This commit is contained in:
@@ -23,28 +23,28 @@ return {
|
|||||||
|
|
||||||
-- │ Completion │
|
-- │ Completion │
|
||||||
{
|
{
|
||||||
'saghen/blink.cmp',
|
'saghen/blink.cmp',
|
||||||
dependencies = { 'rafamadriz/friendly-snippets' },
|
dependencies = { 'rafamadriz/friendly-snippets' },
|
||||||
version = '1.*',
|
version = '1.*',
|
||||||
opts = {
|
opts = {
|
||||||
-- C-e: Hide menu
|
-- C-e: Hide menu
|
||||||
-- C-k: Toggle signature help (if signature.enabled = true)
|
-- C-k: Toggle signature help (if signature.enabled = true)
|
||||||
keymap = {
|
keymap = {
|
||||||
preset = 'default',
|
preset = 'default',
|
||||||
['<Enter>'] = { 'accept', 'fallback' },
|
['<Enter>'] = { 'accept', 'fallback' },
|
||||||
['<Tab>'] = { 'select_next', 'fallback' },
|
['<Tab>'] = { 'select_next', 'fallback' },
|
||||||
['<S-Tab>'] = { 'select_prev', 'fallback' },
|
['<S-Tab>'] = { 'select_prev', 'fallback' },
|
||||||
},
|
|
||||||
appearance = {
|
|
||||||
nerd_font_variant = 'mono'
|
|
||||||
},
|
|
||||||
completion = { documentation = { auto_show = false } },
|
|
||||||
sources = {
|
|
||||||
},
|
},
|
||||||
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
appearance = {
|
||||||
fuzzy = { implementation = "prefer_rust_with_warning" }
|
nerd_font_variant = 'mono'
|
||||||
},
|
},
|
||||||
opts_extend = { "sources.default" }
|
completion = { documentation = { auto_show = false } },
|
||||||
|
sources = {
|
||||||
|
},
|
||||||
|
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
||||||
|
fuzzy = { implementation = "prefer_rust_with_warning" }
|
||||||
|
},
|
||||||
|
opts_extend = { "sources.default" }
|
||||||
},
|
},
|
||||||
|
|
||||||
-- -- │ Auto close │
|
-- -- │ Auto close │
|
||||||
@@ -52,11 +52,11 @@ return {
|
|||||||
"windwp/nvim-ts-autotag",
|
"windwp/nvim-ts-autotag",
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require('nvim-ts-autotag').setup({
|
require('nvim-ts-autotag').setup({
|
||||||
opts = {
|
opts = {
|
||||||
enable_close = true,
|
enable_close = true,
|
||||||
enable_rename = true,
|
enable_rename = true,
|
||||||
enable_close_on_slash = false
|
enable_close_on_slash = false
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
@@ -68,18 +68,18 @@ return {
|
|||||||
},
|
},
|
||||||
|
|
||||||
-- │ Easy comments │
|
-- │ Easy comments │
|
||||||
{
|
-- {
|
||||||
"numToStr/Comment.nvim",
|
-- "numToStr/Comment.nvim",
|
||||||
keys = {
|
-- keys = {
|
||||||
{ "gcc", mode = "n", desc = "Comment toggle current line" },
|
-- { "gcc", mode = "n", desc = "Comment toggle current line" },
|
||||||
{ "gc", mode = { "n", "o" }, desc = "Comment toggle linewise" },
|
-- { "gc", mode = { "n", "o" }, desc = "Comment toggle linewise" },
|
||||||
{ "gc", mode = "x", desc = "Comment toggle linewise (visual)" },
|
-- { "gc", mode = "x", desc = "Comment toggle linewise (visual)" },
|
||||||
{ "gbc", mode = "n", desc = "Comment toggle current block" },
|
-- { "gbc", mode = "n", desc = "Comment toggle current block" },
|
||||||
{ "gb", mode = { "n", "o" }, desc = "Comment toggle blockwise" },
|
-- { "gb", mode = { "n", "o" }, desc = "Comment toggle blockwise" },
|
||||||
{ "gb", mode = "x", desc = "Comment toggle blockwise (visual)" },
|
-- { "gb", mode = "x", desc = "Comment toggle blockwise (visual)" },
|
||||||
},
|
-- },
|
||||||
config = function(_, opts)
|
-- config = function(_, opts)
|
||||||
require("Comment").setup(opts)
|
-- require("Comment").setup(opts)
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,5 +19,4 @@ return {
|
|||||||
-- },
|
-- },
|
||||||
-- },
|
-- },
|
||||||
-- }
|
-- }
|
||||||
{ 'ThePrimeagen/vim-be-good' }
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,27 +2,27 @@ return {
|
|||||||
-- ╭────────────╮
|
-- ╭────────────╮
|
||||||
-- │ Navigation │
|
-- │ Navigation │
|
||||||
-- ╰────────────╯
|
-- ╰────────────╯
|
||||||
{
|
-- {
|
||||||
"folke/flash.nvim",
|
-- "folke/flash.nvim",
|
||||||
event = "VeryLazy",
|
-- event = "VeryLazy",
|
||||||
opts = {},
|
-- opts = {},
|
||||||
keys = {
|
-- keys = {
|
||||||
{
|
-- {
|
||||||
"s",
|
-- "s",
|
||||||
mode = { "n", "x", "o" },
|
-- mode = { "n", "x", "o" },
|
||||||
function()
|
-- function()
|
||||||
require("flash").jump()
|
-- require("flash").jump()
|
||||||
end,
|
-- end,
|
||||||
desc = "Flash",
|
-- desc = "Flash",
|
||||||
},
|
-- },
|
||||||
{
|
-- {
|
||||||
"S",
|
-- "S",
|
||||||
mode = { "n", "x", "o" },
|
-- mode = { "n", "x", "o" },
|
||||||
function()
|
-- function()
|
||||||
require("flash").treesitter()
|
-- require("flash").treesitter()
|
||||||
end,
|
-- end,
|
||||||
desc = "Flash Treesitter",
|
-- desc = "Flash Treesitter",
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
local options = {
|
|
||||||
auto_session_enabled = true,
|
|
||||||
auto_save_enabled = false,
|
|
||||||
auto_restore_enabled = false,
|
|
||||||
auto_session_use_git_branch = true,
|
|
||||||
log_level = "error",
|
|
||||||
auto_session_suppress_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
|
|
||||||
session_lens = {
|
|
||||||
-- If load_on_setup is false, make sure you use `:SessionSearch` to open the picker as it will initialize everything first
|
|
||||||
load_on_setup = false,
|
|
||||||
theme_conf = { border = true },
|
|
||||||
previewer = false,
|
|
||||||
mappings = {
|
|
||||||
-- Mode can be a string or a table, e.g. {"i", "n"} for both insert and normal mode
|
|
||||||
delete_session = { "i", "<C-D>" },
|
|
||||||
alternate_session = { "i", "<C-S>" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return options
|
|
||||||
@@ -76,7 +76,6 @@ local config = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "Shells",
|
name = "Shells",
|
||||||
icon = " ",
|
|
||||||
highlight = { undercurl = false, sp = "grey" },
|
highlight = { undercurl = false, sp = "grey" },
|
||||||
auto_close = false,
|
auto_close = false,
|
||||||
matcher = function(buf)
|
matcher = function(buf)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ local config = {
|
|||||||
},
|
},
|
||||||
cmdline = {
|
cmdline = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
view = "cmdline_popup",
|
view = "cmdline", -- cmdline, cmdline_popup
|
||||||
opts = {},
|
opts = {},
|
||||||
---@type table<string, CmdlineFormat>
|
---@type table<string, CmdlineFormat>
|
||||||
format = {
|
format = {
|
||||||
@@ -59,11 +59,11 @@ local config = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
presets = {
|
presets = {
|
||||||
bottom_search = true, -- use a classic bottom cmdline for search
|
bottom_search = true, -- use a classic bottom cmdline for search
|
||||||
command_palette = true, -- position the cmdline and popupmenu together
|
command_palette = true, -- position the cmdline and popupmenu together
|
||||||
long_message_to_split = true, -- long messages will be sent to a split
|
long_message_to_split = true, -- long messages will be sent to a split
|
||||||
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
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 = false, -- add a border to hover docs and signature help
|
||||||
},
|
},
|
||||||
routes = {
|
routes = {
|
||||||
{ view = "cmdline", filter = { event = "msg_showmode" } },
|
{ view = "cmdline", filter = { event = "msg_showmode" } },
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
-- ╭──────────╮
|
|
||||||
-- │ Sessions │
|
|
||||||
-- ╰──────────╯
|
|
||||||
return {
|
|
||||||
{
|
|
||||||
|
|
||||||
"rmagatti/auto-session",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
},
|
|
||||||
opts = function()
|
|
||||||
return require("plugins.opts.autosession")
|
|
||||||
end,
|
|
||||||
lazy = false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -45,11 +45,11 @@ return {
|
|||||||
smear_insert_mode = true,
|
smear_insert_mode = true,
|
||||||
|
|
||||||
-- fast smear
|
-- fast smear
|
||||||
stiffness = 0.8, -- 0.6 [0, 1]
|
stiffness = 0.8, -- 0.6 [0, 1]
|
||||||
trailing_stiffness = 0.5, -- 0.4 [0, 1]
|
trailing_stiffness = 0.5, -- 0.4 [0, 1]
|
||||||
stiffness_insert_mode = 0.6, -- 0.4 [0, 1]
|
stiffness_insert_mode = 0.6, -- 0.4 [0, 1]
|
||||||
trailing_stiffness_insert_mode = 0.6, -- 0.4 [0, 1]
|
trailing_stiffness_insert_mode = 0.6, -- 0.4 [0, 1]
|
||||||
distance_stop_animating = 0.5, -- 0.1 > 0
|
distance_stop_animating = 0.5, -- 0.1 > 0
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user