From c86f0ff515593ebd675f647f6eab9bfbac8dde30 Mon Sep 17 00:00:00 2001 From: Fey Naomi Schrewe Date: Mon, 9 Sep 2024 10:13:56 +0200 Subject: [PATCH] feat: improve editing experience --- init.lua | 3 +++ lazy-lock.json | 4 ++++ lua/plugins/editing.lua | 30 ++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 lua/plugins/editing.lua diff --git a/init.lua b/init.lua index a34db8e..6d94644 100644 --- a/init.lua +++ b/init.lua @@ -9,6 +9,9 @@ vim.opt.tabstop = 2 vim.opt.shiftwidth = 2 vim.opt.expandtab = false vim.opt.relativenumber = true +vim.opt.cursorline = true +vim.opt.ignorecase = true +vim.opt.smartcase = true -- bootstrap lazy local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" diff --git a/lazy-lock.json b/lazy-lock.json index 48d951b..8b12cee 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -23,6 +23,7 @@ "neogit": { "branch": "master", "commit": "bc0c609e3568a171e0549b449aa1b2b4b5b20e8c" }, "neotest": { "branch": "master", "commit": "6d6ad113f56edc7c3f2a77a0836ea8c1b955ebea" }, "neotest-jest": { "branch": "main", "commit": "514fd4eae7da15fd409133086bb8e029b65ac43f" }, + "nvim-autopairs": { "branch": "master", "commit": "fd2badc24e675f947162a16c124d395bde80dbd6" }, "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, "nvim-coverage": { "branch": "main", "commit": "aa4b4400588e2259e87e372b1e4e90ae13cf5a39" }, "nvim-dap": { "branch": "master", "commit": "20a4859ebde1c9bc8e96f8cc11a20667e7fdd516" }, @@ -31,11 +32,14 @@ "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" }, "nvim-test": { "branch": "main", "commit": "e06f3d029ee161f3ead6193cf27354d1eb8723c3" }, "nvim-treesitter": { "branch": "master", "commit": "00f128dd73086aa578dc3d9142de06c633b7c685" }, + "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" }, + "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" }, "nvim-web-devicons": { "branch": "master", "commit": "9793801f974bba70e4ac5d7eae6c4f5659993d8e" }, "plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" }, "project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" }, "rose-pine": { "branch": "main", "commit": "8b1fd252255a7f2c41b4192a787ab62660b29f72" }, "rust-tools.nvim": { "branch": "master", "commit": "676187908a1ce35ffcd727c654ed68d851299d3e" }, + "sentiment.nvim": { "branch": "main", "commit": "54a6db15b630eccfa98c32a76baf90f21c6f1e40" }, "spaceport.nvim": { "branch": "main", "commit": "f57a6848903adcb6bf2dd9f56bb0b8c33a51d4be" }, "suda.vim": { "branch": "master", "commit": "b97fab52f9cdeabe2bbb5eb98d82356899f30829" }, "telescope.nvim": { "branch": "master", "commit": "5972437de807c3bc101565175da66a1aa4f8707a" }, diff --git a/lua/plugins/editing.lua b/lua/plugins/editing.lua new file mode 100644 index 0000000..0c1cf5b --- /dev/null +++ b/lua/plugins/editing.lua @@ -0,0 +1,30 @@ +return { + { + 'windwp/nvim-autopairs', + event = "InsertEnter", + opts = {} + }, + { + 'windwp/nvim-ts-autotag', + opts = {} + }, + { + 'RRethy/nvim-treesitter-endwise', + config = function() + require('nvim-treesitter.configs').setup { + endwise = { + enable = true, + }, + } + end + }, + { + "utilyre/sentiment.nvim", + version = "*", + event = "VeryLazy", + opts = {}, + init = function() + vim.g.loaded_matchparen = 1 + end, + } +}