diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2023-07-05 21:26:02 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2023-07-05 21:26:02 -0400 |
| commit | e5c8f244466ff4da4b12c1bbfd2292a8408ff1d2 (patch) | |
| tree | 978e99f5e9fdb7877a15ebe54eaa6d06dee71a92 /.config/nvim/lua/plugins/editor.lua | |
| parent | 22f001c91a158c1bc576a74ecae5a33402f83ab8 (diff) | |
Add Neovim config
Diffstat (limited to '.config/nvim/lua/plugins/editor.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/editor.lua | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/editor.lua b/.config/nvim/lua/plugins/editor.lua new file mode 100644 index 0000000..7cc48ea --- /dev/null +++ b/.config/nvim/lua/plugins/editor.lua @@ -0,0 +1,57 @@ +return { + { + "Olical/conjure", + ft = { + "clojure", + "fennel", + "janet", + "racket", + "hy", + "scheme", + "guile", + "commonlisp", + "julia", + "rust", + "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" }) + 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 + }, +} + |
