summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/editor.lua
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2023-07-10 14:05:55 -0400
committerSam Nystrom <sam@samnystrom.dev>2023-07-19 11:52:52 -0400
commit0613f29757b688b55b74027063d35dcebc23b10a (patch)
tree65223cfb311adcdadd9d673095c153cba99236cf /.config/nvim/lua/plugins/editor.lua
parent9b4332d25594ff14a4b3038acc4a482325207759 (diff)
nvim: stuff
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
- },
}