diff --git a/.config/nvim/lua/plugin/comment.lua b/.config/nvim/lua/plugin/comment.lua deleted file mode 100644 index 9c3ca2e..0000000 --- a/.config/nvim/lua/plugin/comment.lua +++ /dev/null @@ -1,21 +0,0 @@ --- Author : swytch --- Created : Sunday Jan. 29, 2023 00:20:31 CET --- License : GPLv3 --- Description : Mini.comment plugin config file - -return { - "echasnovski/mini.comment", - version = "*", - opts = { - mappings = { - comment = "c", - - comment_line = "", - - text_object = "gc", - }, - }, - config = function(_, opts) - require("mini.comment").setup(opts) - end, -} diff --git a/.config/nvim/lua/plugin/editor.lua b/.config/nvim/lua/plugin/editor.lua new file mode 100644 index 0000000..ae16167 --- /dev/null +++ b/.config/nvim/lua/plugin/editor.lua @@ -0,0 +1,44 @@ +-- Author : swytch +-- Created : Sunday Jan. 29, 2023 00:20:31 CET +-- License : GPLv3 +-- Description : Mini.comment plugin config file + +return { + { + "echasnovski/mini.comment", + version = "*", + opts = { + mappings = { + comment = "c", + + comment_line = "", + + text_object = "gc", + }, + }, + config = function(_, opts) + require("mini.comment").setup(opts) + end + }, + { + "echasnovski/mini.pairs", + version = "*", + config = function() require("mini.pairs").setup() end, + }, + { + "echasnovski/mini.indentscope", + version = "*", + opts = function() + local plugin = require("mini.indentscope") + return { + draw = { + animation = plugin.gen_animation.none() + } + } + end, + config = function(_, opts) + require("mini.indentscope").setup(opts) + end, + + } +} diff --git a/.config/nvim/lua/plugin/lsp/init.lua b/.config/nvim/lua/plugin/lsp/init.lua index 034730e..4721084 100644 --- a/.config/nvim/lua/plugin/lsp/init.lua +++ b/.config/nvim/lua/plugin/lsp/init.lua @@ -9,7 +9,7 @@ _G.lsp_root_dir = vim.fn.stdpath("data") .. "/mason/bin" local servers = { "clangd", "rust_analyzer", - "sumneko_lua", + "lua_ls", "texlab", } diff --git a/.config/nvim/lua/plugin/lsp/sumneko_lua.lua b/.config/nvim/lua/plugin/lsp/lua_ls.lua similarity index 100% rename from .config/nvim/lua/plugin/lsp/sumneko_lua.lua rename to .config/nvim/lua/plugin/lsp/lua_ls.lua