WIP on new config
This commit is contained in:
parent
c86f67f0f7
commit
c42f197307
13 changed files with 354 additions and 85 deletions
18
lua/plugins/editor_auto_save.lua
Normal file
18
lua/plugins/editor_auto_save.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
"Pocco81/auto-save.nvim",
|
||||
event = "BufEnter",
|
||||
opts = {
|
||||
trigger_events = { "InsertLeave", "TextChanged", "TextChangedI", "BufLeave" },
|
||||
condition = function(buf)
|
||||
local disallowed_filetypes = { "TelescopePrompt", "quickfix", "terminal" }
|
||||
local utils = require("auto-save.utils.data")
|
||||
if
|
||||
vim.fn.getbufvar(buf, "&modifiable") == 1
|
||||
and utils.not_in(vim.fn.getbufvar(buf, "&filetype"), disallowed_filetypes)
|
||||
then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end,
|
||||
},
|
||||
}
|
10
lua/plugins/editor_earl_retirement.lua
Normal file
10
lua/plugins/editor_earl_retirement.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
"chrisgrieser/nvim-early-retirement",
|
||||
config = true,
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
retirementAgeMins = 1,
|
||||
notificationOnAutoClose = true,
|
||||
-- deleteBufferWhenFileDeleted = true,
|
||||
},
|
||||
}
|
32
lua/plugins/editor_noice.lua
Normal file
32
lua/plugins/editor_noice.lua
Normal file
|
@ -0,0 +1,32 @@
|
|||
return {
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
cmdline = {
|
||||
format = {
|
||||
conceal = {
|
||||
pattern = "^noh"
|
||||
},
|
||||
},
|
||||
},
|
||||
lsp = {
|
||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||
override = {
|
||||
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
||||
["vim.lsp.util.stylize_markdown"] = true,
|
||||
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
|
||||
},
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("noice").setup(opts)
|
||||
end,
|
||||
dependencies = {
|
||||
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||
"MunifTanjim/nui.nvim",
|
||||
-- OPTIONAL:
|
||||
-- `nvim-notify` is only needed, if you want to use the notification view.
|
||||
-- If not available, we use `mini` as the fallback
|
||||
"rcarriga/nvim-notify",
|
||||
},
|
||||
}
|
27
lua/plugins/editor_notify.lua
Normal file
27
lua/plugins/editor_notify.lua
Normal file
|
@ -0,0 +1,27 @@
|
|||
return {
|
||||
"rcarriga/nvim-notify",
|
||||
-- dependencies = { "nvim-telescope/telescope.nvim", optional = true },
|
||||
lazy = false,
|
||||
priority = 999,
|
||||
opts = {
|
||||
top_down = false,
|
||||
timeout = 3000,
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("notify").setup(opts)
|
||||
vim.notify = require("notify")
|
||||
|
||||
-- TODO move to telescope instead...
|
||||
-- if package.loaded["telescope"] then
|
||||
-- require("telescope").load_extension("notify")
|
||||
-- require("util").keymaps({
|
||||
-- {
|
||||
-- "<leader>fn",
|
||||
-- "<cmd>Telescope notify<cr>",
|
||||
-- desc = "Telescope search notifications",
|
||||
-- mode = { "n", "v", "x" },
|
||||
-- },
|
||||
-- })
|
||||
-- end
|
||||
end,
|
||||
}
|
15
lua/plugins/editor_smooth_scroll.lua
Normal file
15
lua/plugins/editor_smooth_scroll.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
-- Smooth scrolling
|
||||
"declancm/cinnamon.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
extra_keymaps = true,
|
||||
extended_keymaps = true,
|
||||
-- override_keymaps = true,
|
||||
max_length = 300,
|
||||
default_delay = 2,
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("cinnamon").setup(opts)
|
||||
end,
|
||||
}
|
|
@ -1,5 +1,8 @@
|
|||
return {
|
||||
"catppuccin/nvim",
|
||||
-- load theme right away
|
||||
lazy = false,
|
||||
priority = 100,
|
||||
opts = {
|
||||
flavour = "mocha", -- latte, frappe, macchiato, mocha (default)
|
||||
color_overrides = {
|
Loading…
Add table
Add a link
Reference in a new issue