From 0613f29757b688b55b74027063d35dcebc23b10a Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Mon, 10 Jul 2023 14:05:55 -0400 Subject: nvim: stuff --- .config/nvim/lua/plugins/editor.lua | 47 ++++++++++--------------------------- 1 file changed, 12 insertions(+), 35 deletions(-) (limited to '.config/nvim/lua/plugins/editor.lua') 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 - }, } -- cgit v1.2.3