summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/editor.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/editor.lua')
-rw-r--r--.config/nvim/lua/plugins/editor.lua47
1 files changed, 12 insertions, 35 deletions
diff --git a/.config/nvim/lua/plugins/editor.lua b/.config/nvim/lua/plugins/editor.lua
index 7cc48ea..99c4647 100644
--- a/.config/nvim/lua/plugins/editor.lua
+++ b/.config/nvim/lua/plugins/editor.lua
@@ -1,4 +1,15 @@
return {
+ { "nvimdev/hlsearch.nvim", event = { "BufReadPre", "BufNewFile" }, opts = {} },
+ { "folke/todo-comments.nvim", event = { "BufReadPre", "BufNewFile" }, opts = {} },
+ { "kylechui/nvim-surround", event = "VeryLazy", opts = {} },
+ { "numtostr/comment.nvim", event = "VeryLazy", opts = {} },
+ { "folke/neodev.nvim", ft = "lua", opts = {} },
+ { "simrat39/rust-tools.nvim", ft = "rust", opts = {} },
+ {
+ "iamcco/markdown-preview.nvim",
+ build = "cd app && npm install",
+ cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
+ },
{
"Olical/conjure",
ft = {
@@ -15,43 +26,9 @@ return {
"lua",
"python",
},
- },
- { "nvimdev/hlsearch.nvim", event = { "BufReadPre", "BufNewFile" }, opts = {} },
- { "folke/todo-comments.nvim", event = { "BufReadPre", "BufNewFile" }, opts = {} },
- { "stevearc/dressing.nvim", event = "VeryLazy", opts = {} },
- { "kylechui/nvim-surround", event = "VeryLazy", opts = {} },
- { "numtostr/comment.nvim", event = "VeryLazy", opts = {} },
- { "folke/neodev.nvim", ft = "lua", opts = {} },
- {
- "iamcco/markdown-preview.nvim",
- build = "cd app && npm install",
- cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
- },
- {
- "RRethy/vim-illuminate",
- event = { "BufReadPre", "BufNewFile" },
config = function()
- require("illuminate").configure({
- providers = { "lsp", "treesitter" },
- })
- vim.api.nvim_set_hl(0, "IlluminatedWordText", { link = "illuminatedWord" })
- vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "illuminatedWord" })
- vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { link = "illuminatedWord" })
+ vim.g.conjure = { mapping = { doc_word = false } }
end,
},
- {
- "echasnovski/mini.ai",
- event = "VeryLazy",
- config = function()
- local ai = require("mini.ai")
- ai.setup({
- n_lines = 200,
- custom_textobjects = {
- F = ai.gen_spec.treesitter({ a = "@function.outer", i = "@function.inner" }),
- c = ai.gen_spec.treesitter({ a = "@class.outer", i = "@class.inner" }),
- },
- })
- end
- },
}