From 3bbcb48c372f322878220e0472906aec70088444 Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Sat, 20 Jan 2024 01:46:33 +0400 Subject: [PATCH] remove the after folder and packer --- nvim/_after/plugin/cloak.lua | 23 --- nvim/_after/plugin/comments.lua | 13 -- nvim/_after/plugin/copilot.lua | 2 - nvim/_after/plugin/dap.lua | 16 --- nvim/_after/plugin/dashboard.lua | 1 - nvim/_after/plugin/fugitive.lua | 29 ---- nvim/_after/plugin/gitsigns.lua | 1 - nvim/_after/plugin/harpoon.lua | 14 -- nvim/_after/plugin/image.lua | 28 ---- nvim/_after/plugin/indent.lua | 1 - nvim/_after/plugin/lightbulb.lua | 3 - nvim/_after/plugin/lsp.lua | 164 ---------------------- nvim/_after/plugin/lualine.lua | 216 ----------------------------- nvim/_after/plugin/neotree.lua | 61 -------- nvim/_after/plugin/noice.lua | 34 ----- nvim/_after/plugin/presence.lua | 5 - nvim/_after/plugin/refactoring.lua | 5 - nvim/_after/plugin/telescope.lua | 52 ------- nvim/_after/plugin/theme.lua | 14 -- nvim/_after/plugin/treesitter.lua | 26 ---- nvim/_after/plugin/trouble.lua | 3 - nvim/_after/plugin/ufo.lua | 11 -- nvim/_after/plugin/undotree.lua | 2 - nvim/_after/plugin/zenmode.lua | 30 ---- nvim/lua/themystery/packer.lua | 168 ---------------------- 25 files changed, 922 deletions(-) delete mode 100644 nvim/_after/plugin/cloak.lua delete mode 100644 nvim/_after/plugin/comments.lua delete mode 100644 nvim/_after/plugin/copilot.lua delete mode 100644 nvim/_after/plugin/dap.lua delete mode 100644 nvim/_after/plugin/dashboard.lua delete mode 100644 nvim/_after/plugin/fugitive.lua delete mode 100644 nvim/_after/plugin/gitsigns.lua delete mode 100644 nvim/_after/plugin/harpoon.lua delete mode 100644 nvim/_after/plugin/image.lua delete mode 100644 nvim/_after/plugin/indent.lua delete mode 100644 nvim/_after/plugin/lightbulb.lua delete mode 100644 nvim/_after/plugin/lsp.lua delete mode 100644 nvim/_after/plugin/lualine.lua delete mode 100644 nvim/_after/plugin/neotree.lua delete mode 100644 nvim/_after/plugin/noice.lua delete mode 100644 nvim/_after/plugin/presence.lua delete mode 100644 nvim/_after/plugin/refactoring.lua delete mode 100644 nvim/_after/plugin/telescope.lua delete mode 100644 nvim/_after/plugin/theme.lua delete mode 100644 nvim/_after/plugin/treesitter.lua delete mode 100755 nvim/_after/plugin/trouble.lua delete mode 100644 nvim/_after/plugin/ufo.lua delete mode 100644 nvim/_after/plugin/undotree.lua delete mode 100644 nvim/_after/plugin/zenmode.lua delete mode 100644 nvim/lua/themystery/packer.lua diff --git a/nvim/_after/plugin/cloak.lua b/nvim/_after/plugin/cloak.lua deleted file mode 100644 index 9a91293..0000000 --- a/nvim/_after/plugin/cloak.lua +++ /dev/null @@ -1,23 +0,0 @@ -require("cloak").setup({ - enabled = true, - cloak_character = "*", - -- The applied highlight group (colors) on the cloaking, see `:h highlight`. - highlight_group = "Comment", - patterns = { - { - -- Match any file starting with ".env". - -- This can be a table to match multiple file patterns. - file_pattern = { - ".env*", - "wrangler.toml", - ".dev.vars", - "*.env*" - }, - -- Match an equals sign and any character after it. - -- This can also be a table of patterns to cloak, - -- example: cloak_pattern = { ":.+", "-.+" } for yaml files. - cloak_pattern = "=.+" - }, - }, -}) - diff --git a/nvim/_after/plugin/comments.lua b/nvim/_after/plugin/comments.lua deleted file mode 100644 index 77487a3..0000000 --- a/nvim/_after/plugin/comments.lua +++ /dev/null @@ -1,13 +0,0 @@ -require('Comment').setup({ - toggler = { - -- if you're using other terminals use '' but for some reason in kitty this didn't work, so i used '' - line = '', - block = '', - }, - opleader = { - -- look at the comment above - line = '', - block = '', - }, -}) - diff --git a/nvim/_after/plugin/copilot.lua b/nvim/_after/plugin/copilot.lua deleted file mode 100644 index 41127be..0000000 --- a/nvim/_after/plugin/copilot.lua +++ /dev/null @@ -1,2 +0,0 @@ -vim.g.copilot_no_tab_map = true -vim.api.nvim_set_keymap("i", "", 'copilot#Accept("")', { silent = true, expr = true }) diff --git a/nvim/_after/plugin/dap.lua b/nvim/_after/plugin/dap.lua deleted file mode 100644 index b9d9766..0000000 --- a/nvim/_after/plugin/dap.lua +++ /dev/null @@ -1,16 +0,0 @@ --- dap keymaps -vim.keymap.set("n", "", "lua require'dap'.continue()") -vim.keymap.set("n", "", "lua require'dap'.step_over()") -vim.keymap.set("n", "", "lua require'dap'.step_into()") -vim.keymap.set("n", "", "lua require'dap'.step_out()") -vim.keymap.set("n", "b", "lua require'dap'.toggle_breakpoint()") -vim.keymap.set("n", "B", "lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: '))") -vim.keymap.set("n", "lp", "lua require'dap'.set_breakpoint(nil, nil, vim.fn.input('Log point message: '))") -vim.keymap.set("n", "dr", "lua require'dap'.repl.open()") - - - -require("dapui").setup() - --- dapui keymaps -vim.keymap.set("n", "dui", "lua require'dapui'.toggle()") diff --git a/nvim/_after/plugin/dashboard.lua b/nvim/_after/plugin/dashboard.lua deleted file mode 100644 index 93ab978..0000000 --- a/nvim/_after/plugin/dashboard.lua +++ /dev/null @@ -1 +0,0 @@ - vim.keymap.set("n", "ds", vim.cmd.Dashboard, {noremap = true}) diff --git a/nvim/_after/plugin/fugitive.lua b/nvim/_after/plugin/fugitive.lua deleted file mode 100644 index 41f0512..0000000 --- a/nvim/_after/plugin/fugitive.lua +++ /dev/null @@ -1,29 +0,0 @@ -vim.keymap.set("n", "gs", vim.cmd.Git) - -local ThePrimeagen_Fugitive = vim.api.nvim_create_augroup("ThePrimeagen_Fugitive", {}) - -local autocmd = vim.api.nvim_create_autocmd -autocmd("BufWinEnter", { - group = ThePrimeagen_Fugitive, - pattern = "*", - callback = function() - if vim.bo.ft ~= "fugitive" then - return - end - - local bufnr = vim.api.nvim_get_current_buf() - local opts = {buffer = bufnr, remap = false} - vim.keymap.set("n", "p", function() - vim.cmd.Git('push') - end, opts) - - -- rebase always - vim.keymap.set("n", "P", function() - vim.cmd.Git({'pull', '--rebase'}) - end, opts) - - -- NOTE: It allows me to easily set the branch i am pushing and any tracking - -- needed if i did not set the branch up correctly - vim.keymap.set("n", "t", ":Git push -u origin ", opts); - end, -}) diff --git a/nvim/_after/plugin/gitsigns.lua b/nvim/_after/plugin/gitsigns.lua deleted file mode 100644 index d16d238..0000000 --- a/nvim/_after/plugin/gitsigns.lua +++ /dev/null @@ -1 +0,0 @@ -require("gitsigns").setup() diff --git a/nvim/_after/plugin/harpoon.lua b/nvim/_after/plugin/harpoon.lua deleted file mode 100644 index 7665e9c..0000000 --- a/nvim/_after/plugin/harpoon.lua +++ /dev/null @@ -1,14 +0,0 @@ -local harpoon = require("harpoon") - -harpoon:setup() - -vim.keymap.set("n", "a", function() harpoon:list():append() end) -vim.keymap.set("n", "", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) - - -vim.keymap.set("n", "hlc", function() harpoon:list():clear() end) -vim.keymap.set("n", "hc", function() harpoon:list():remove() end) -vim.keymap.set("n", "1", function() harpoon:list():select(1) end) -vim.keymap.set("n", "2", function() harpoon:list():select(2) end) -vim.keymap.set("n", "3", function() harpoon:list():select(3) end) -vim.keymap.set("n", "4", function() harpoon:list():select(4) end) diff --git a/nvim/_after/plugin/image.lua b/nvim/_after/plugin/image.lua deleted file mode 100644 index f0afad8..0000000 --- a/nvim/_after/plugin/image.lua +++ /dev/null @@ -1,28 +0,0 @@ -require("image").setup({ - backend = "kitty", - integrations = { - markdown = { - enabled = true, - clear_in_insert_mode = false, - download_remote_images = true, - only_render_image_at_cursor = false, - filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here - }, - neorg = { - enabled = true, - clear_in_insert_mode = false, - download_remote_images = true, - only_render_image_at_cursor = false, - filetypes = { "norg" }, - }, - }, - max_width = nil, - max_height = nil, - max_width_window_percentage = nil, - max_height_window_percentage = 50, - window_overlap_clear_enabled = false, -- toggles images when windows are overlapped - window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" }, - editor_only_render_when_focused = false, -- auto show/hide images when the editor gains/looses focus - tmux_show_only_in_active_window = false, -- auto show/hide images in the correct Tmux window (needs visual-activity off) - hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp" }, -- render image files as images when opened -}) diff --git a/nvim/_after/plugin/indent.lua b/nvim/_after/plugin/indent.lua deleted file mode 100644 index be401dd..0000000 --- a/nvim/_after/plugin/indent.lua +++ /dev/null @@ -1 +0,0 @@ -require("ibl").setup() diff --git a/nvim/_after/plugin/lightbulb.lua b/nvim/_after/plugin/lightbulb.lua deleted file mode 100644 index 4a3e6a0..0000000 --- a/nvim/_after/plugin/lightbulb.lua +++ /dev/null @@ -1,3 +0,0 @@ -require("nvim-lightbulb").setup({ - autocmd = {enabled = true} -}) diff --git a/nvim/_after/plugin/lsp.lua b/nvim/_after/plugin/lsp.lua deleted file mode 100644 index fff9818..0000000 --- a/nvim/_after/plugin/lsp.lua +++ /dev/null @@ -1,164 +0,0 @@ -require("neodev").setup({ - library = { plugins = { "nvim-dap-ui" }, types = true } -}) - - -local lsp = require("lsp-zero") --- lsp.preset("recommended") - - - - -lsp.configure('csharp_ls', { - handlers = { - ["textDocument/definition"] = require("csharpls_extended").handler, - ["textDocument/typeDefinition"] = require("csharpls_extended").handler - } -}) - -lsp.configure('clangd', { - cmd = { 'clangd', '--offset-encoding=utf-16' }, -}) --- --- -- Fix Undefined global 'vim' --- lsp.configure('lua-language-server', { --- settings = { --- Lua = { --- diagnostics = { --- globals = { 'vim' } --- } --- } --- } --- }) - --- this code makes it so that the css language server doesn't complain about tailwindcss classes -lsp.configure("cssls", { - settings = { - css = { - lint = { unknownAtRules = "ignore" } - }, - scss = { - lint = { unknownAtRules = "ignore" } - }, - less = { - lint = { unknownAtRules = "ignore" } - } - } -}) - -lsp.set_server_config({ - capabilities = { - textDocument = { - foldingRange = { - dynamicRegistration = false, - lineFoldingOnly = true - } - } - } -}) - - -local cmp = require('cmp') -local cmp_action = lsp.cmp_action() -local cmp_format = lsp.cmp_format() - -require('luasnip.loaders.from_vscode').lazy_load() - -vim.opt.completeopt = {'menu', 'menuone', 'noselect'} - -cmp.setup({ - formatting = cmp_format, - preselect = 'item', - completion = { - completeopt = 'menu,menuone,noinsert' - }, - window = { - documentation = cmp.config.window.bordered(), - }, - sources = { - {name = 'path'}, - {name = 'nvim_lsp'}, - {name = 'nvim_lua'}, - {name = 'buffer', keyword_length = 3}, - {name = 'luasnip', keyword_length = 2}, - }, - mapping = cmp.mapping.preset.insert({ - -- confirm completion item - [''] = cmp.mapping.confirm({select = false, behavior = cmp.ConfirmBehavior.Insert}), - [''] = cmp.mapping.confirm({select = false, behavior = cmp.ConfirmBehavior.Replace}), - - -- toggle completion menu - [''] = cmp_action.toggle_completion(), - - -- tab complete - -- [''] = cmp_action.tab_complete(), - [''] = cmp.mapping.select_prev_item(), - - -- navigate between snippet placeholder - [''] = cmp_action.luasnip_jump_forward(), - [''] = cmp_action.luasnip_jump_backward(), - - -- scroll documentation window - [''] = cmp.mapping.scroll_docs(5), - [''] = cmp.mapping.scroll_docs(-5), - }), -}) - - -local navic = require("nvim-navic") - -lsp.on_attach(function(client, bufnr) - local opts = { buffer = bufnr, remap = false } - lsp.default_keymaps({buffer = bufnr}) - if client.server_capabilities.documentSymbolProvider then - navic.attach(client, bufnr) - end - vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts) - vim.keymap.set("n", "dc", function() vim.lsp.buf.hover() end, opts) - vim.keymap.set("n", "vws", function() vim.lsp.buf.workspace_symbol() end, opts) - vim.keymap.set("n", "ed", function() vim.diagnostic.open_float() end, opts) - vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, opts) - vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, opts) - -- for the code action key map to work you need to change key binding('.' symbol) of your terminal, otherwise it won't work - vim.keymap.set("n", "", function() vim.lsp.buf.code_action() end, opts) - vim.keymap.set("n", "vrr", function() vim.lsp.buf.references() end, opts) - vim.keymap.set("n", "vrn", function() vim.lsp.buf.rename() end, opts) - vim.keymap.set("i", "", function() vim.lsp.buf.signature_help() end, opts) - -- sometimes lsp fails, we can restart it with this keymap - vim.keymap.set('n', "lr", vim.cmd.LspRestart, opts) -end) - -require("mason").setup({}); -require("mason-lspconfig").setup({ - ensure_installed = {'tsserver', 'tailwindcss', 'svelte', 'lua_ls'}, - handlers = { - lsp.default_setup, - lua_ls = function() - local lua_opts = lsp.nvim_lua_ls() - require('lspconfig').lua_ls.setup(lua_opts) - end, - } -}) - - -lsp.set_sign_icons({ - error = '✘', - warn = '▲', - hint = '⚑', - info = '' -}) - -vim.diagnostic.config({ - virtual_text = false, - severity_sort = true, - float = { - style = 'minimal', - border = 'rounded', - source = 'always', - header = '', - prefix = '', - }, -}) - --- because we want to add another source, the ones that are set by lsp-zero will be lost, --- we need to add them again together with the new one diff --git a/nvim/_after/plugin/lualine.lua b/nvim/_after/plugin/lualine.lua deleted file mode 100644 index 9fde530..0000000 --- a/nvim/_after/plugin/lualine.lua +++ /dev/null @@ -1,216 +0,0 @@ -local colors = { - bg = '#202328', - fg = '#bbc2cf', - yellow = '#ECBE7B', - cyan = '#008080', - darkblue = '#081633', - green = '#98be65', - orange = '#FF8800', - violet = '#a9a1e1', - magenta = '#c678dd', - blue = '#51afef', - red = '#ec5f67', -} - -local conditions = { - buffer_not_empty = function() - return vim.fn.empty(vim.fn.expand('%:t')) ~= 1 - end, - hide_in_width = function() - return vim.fn.winwidth(0) > 80 - end, - check_git_workspace = function() - local filepath = vim.fn.expand('%:p:h') - local gitdir = vim.fn.finddir('.git', filepath .. ';') - return gitdir and #gitdir > 0 and #gitdir < #filepath - end, -} - --- Config -local config = { - options = { - -- Disable sections and component separators - component_separators = '', - section_separators = '', - theme = 'onedark_vivid', - globalstatus = true - }, - sections = { - -- these are to remove the defaults - lualine_a = {}, - lualine_b = {}, - lualine_y = {}, - lualine_z = {}, - -- These will be filled later - lualine_c = {}, - lualine_x = { - { - require("noice").api.status.command.get, - cond = require("noice").api.status.command.has, - color = { fg = "#ff9e64" }, - } - }, - }, - inactive_sections = { - -- these are to remove the defaults - lualine_a = {}, - lualine_b = {}, - lualine_y = {}, - lualine_z = {}, - lualine_c = {}, - lualine_x = {}, - }, -} - --- Inserts a component in lualine_c at left section -local function ins_left(component) - table.insert(config.sections.lualine_c, component) -end - --- Inserts a component in lualine_x at right section -local function ins_right(component) - table.insert(config.sections.lualine_x, component) -end - -ins_left { - function() - return '▊' - end, - color = { fg = colors.blue }, -- Sets highlighting of component - padding = { left = 0, right = 1 }, -- We don't need space before this -} - -ins_left { - -- mode component - function() - return '' - end, - color = function() - -- auto change color according to neovims mode - local mode_color = { - n = colors.red, - i = colors.green, - v = colors.blue, - [''] = colors.blue, - V = colors.blue, - c = colors.magenta, - no = colors.red, - s = colors.orange, - S = colors.orange, - [''] = colors.orange, - ic = colors.yellow, - R = colors.violet, - Rv = colors.violet, - cv = colors.red, - ce = colors.red, - r = colors.cyan, - rm = colors.cyan, - ['r?'] = colors.cyan, - ['!'] = colors.red, - t = colors.red, - } - return { fg = mode_color[vim.fn.mode()] } - end, - padding = { right = 1 }, -} - -ins_left { - -- filesize component - 'filesize', - cond = conditions.buffer_not_empty, -} - -ins_left { - 'filename', - cond = conditions.buffer_not_empty, - color = { fg = colors.magenta, gui = 'bold' }, -} - -ins_left { 'location' } - -ins_left { 'progress', color = { fg = colors.fg, gui = 'bold' } } - -ins_left { - 'diagnostics', - sources = { 'nvim_diagnostic' }, - symbols = { error = ' ', warn = ' ', info = ' ' }, - diagnostics_color = { - color_error = { fg = colors.red }, - color_warn = { fg = colors.yellow }, - color_info = { fg = colors.cyan }, - }, -} - --- Insert mid section. You can make any number of sections in neovim :) --- for lualine it's any number greater then 2 -ins_left { - function() - return '%=' - end, -} - -ins_left { - -- Lsp server name . - function() - local msg = 'No Active Lsp' - local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype') - local clients = vim.lsp.get_active_clients() - if next(clients) == nil then - return msg - end - for _, client in ipairs(clients) do - local filetypes = client.config.filetypes - if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then - return client.name - end - end - return msg - end, - icon = ' LSP:', - color = { fg = '#ffffff', gui = 'bold' }, -} - --- Add components to right sections -ins_right { - 'o:encoding', -- option component same as &encoding in viml - fmt = string.upper, -- I'm not sure why it's upper case either ;) - cond = conditions.hide_in_width, - color = { fg = colors.green, gui = 'bold' }, -} - -ins_right { - 'fileformat', - fmt = string.upper, - icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh - color = { fg = colors.green, gui = 'bold' }, -} - -ins_right { - 'branch', - icon = '', - color = { fg = colors.violet, gui = 'bold' }, -} - -ins_right { - 'diff', - -- Is it me or the symbol for modified us really weird - symbols = { added = ' ', modified = '󰝤 ', removed = ' ' }, - diff_color = { - added = { fg = colors.green }, - modified = { fg = colors.orange }, - removed = { fg = colors.red }, - }, - cond = conditions.hide_in_width, -} - -ins_right { - function() - return '▊' - end, - color = { fg = colors.blue }, - padding = { left = 1 }, -} - - - -require('lualine').setup(config) diff --git a/nvim/_after/plugin/neotree.lua b/nvim/_after/plugin/neotree.lua deleted file mode 100644 index 74ddba3..0000000 --- a/nvim/_after/plugin/neotree.lua +++ /dev/null @@ -1,61 +0,0 @@ --- https://github.com/nvim-neo-tree/neo-tree.nvim/issues/202#issuecomment-1428278234 --- These two functions were taken from the issue above. So, Thanks! - -local delete = function(state) - local inputs = require("neo-tree.ui.inputs") - local path = state.tree:get_node().path - local msg = "Are you sure you want to trash " .. path - inputs.confirm(msg, function(confirmed) - if not confirmed then return end - - vim.fn.system { "trash", path } - require("neo-tree.sources.manager").refresh(state.name) - end) -end - --- over write default 'delete_visual' command to 'trash' x n. -local delete_visual = function(state, selected_nodes) - local inputs = require("neo-tree.ui.inputs") - - -- get table items count - function GetTableLen(tbl) - local len = 0 - for n in pairs(tbl) do - len = len + 1 - end - return len - end - - local count = GetTableLen(selected_nodes) - local msg = "Are you sure you want to trash " .. count .. " files ?" - inputs.confirm(msg, function(confirmed) - if not confirmed then return end - for _, node in ipairs(selected_nodes) do - vim.fn.system { "trash", node.path } - end - require("neo-tree.sources.manager").refresh(state.name) - end) -end - - - -vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) -require("neo-tree").setup({ - window = { - position = "float", - }, - filesystem = { - filtered_items = { - visible = true - }, - use_libuv_file_watcher = true, - commands = { - delete = delete, - delete_visual = delete_visual, - }, - hijack_netrw_behavior = "open_current" - }, -}) -vim.keymap.set("n", "tf", vim.cmd.Neotree) -vim.keymap.set("n", "tt", "Neotree reveal=true position=float toggle ") - diff --git a/nvim/_after/plugin/noice.lua b/nvim/_after/plugin/noice.lua deleted file mode 100644 index 54ff99b..0000000 --- a/nvim/_after/plugin/noice.lua +++ /dev/null @@ -1,34 +0,0 @@ -require("noice").setup({ - lsp = { - -- override markdown rendering so that **cmp** and other plugins use **Treesitter** - override = { - ["vim.lsp.util.convert_input_to_markdown_lines"] = true, - ["vim.lsp.util.stylize_markdown"] = true, - ["cmp.entry.get_documentation"] = true, - }, - }, - -- you can enable a preset for easier configuration - presets = { - bottom_search = true, -- use a classic bottom cmdline for search - command_palette = true, -- position the cmdline and popupmenu together - long_message_to_split = true, -- long messages will be sent to a split - inc_rename = false, -- enables an input dialog for inc-rename.nvim - lsp_doc_border = false, -- add a border to hover docs and signature help - }, - routes = { - { - -- this is needed to filter out excessive lsp progress messages from Ionide(F#) - -- we just check if the message contains .fs extension and skip it - filter = { - event = "lsp", - kind = "progress", - find = ".*%.fs.*", - }, - opts = { skip = true }, - }, - }, -}) - -require("notify").setup({ - background_colour = "#000000", -}) diff --git a/nvim/_after/plugin/presence.lua b/nvim/_after/plugin/presence.lua deleted file mode 100644 index cb259cd..0000000 --- a/nvim/_after/plugin/presence.lua +++ /dev/null @@ -1,5 +0,0 @@ -require("presence").setup({ - workspace_text = "Working on project", - editing_text = "Editing file", - buttons = false - }) diff --git a/nvim/_after/plugin/refactoring.lua b/nvim/_after/plugin/refactoring.lua deleted file mode 100644 index 2f9f70c..0000000 --- a/nvim/_after/plugin/refactoring.lua +++ /dev/null @@ -1,5 +0,0 @@ -require('refactoring').setup({}) - -vim.api.nvim_set_keymap("v", "ri", [[ lua require('refactoring').refactor('Inline Variable')]], {noremap = true, silent = true, expr = false}) - - diff --git a/nvim/_after/plugin/telescope.lua b/nvim/_after/plugin/telescope.lua deleted file mode 100644 index 0aff9eb..0000000 --- a/nvim/_after/plugin/telescope.lua +++ /dev/null @@ -1,52 +0,0 @@ -local builtin = require('telescope.builtin') -vim.keymap.set('n', 'pf', builtin.find_files, {}) -vim.keymap.set('n', '', builtin.git_files, {}) -vim.keymap.set('n', 'ps', function() - builtin.grep_string({ search = vim.fn.input("Grep > ") }) -end) -vim.keymap.set('n', 'pb', builtin.buffers, {}) -vim.keymap.set('n', 'vh', builtin.help_tags, {}) - - -local actions = require('telescope.actions') - -require('telescope').setup{ - extensions = { - ["ui-select"] = { - require("telescope.themes").get_cursor {} - } - }, - defaults = { - mappings = { - i = { - [""] = actions.select_vertical, - }, - n = { - [""] = actions.select_vertical, - }, - }, - }, - pickers = { - find_files = { - theme = "dropdown" - }, - git_files = { - theme = "dropdown" - }, - grep_string = { - theme = "dropdown" - }, - buffers = { - theme = "dropdown", - mappings = { - n = { - [''] = actions.delete_buffer - }, - i = { - [''] = actions.delete_buffer - } - } - } - } -} -require("telescope").load_extension("ui-select") diff --git a/nvim/_after/plugin/theme.lua b/nvim/_after/plugin/theme.lua deleted file mode 100644 index 19e5c5f..0000000 --- a/nvim/_after/plugin/theme.lua +++ /dev/null @@ -1,14 +0,0 @@ --- require('onedark').setup{ --- style = 'deep' --- } --- --- require('onedark').load() - -require("onedarkpro").setup({ - options = { - transparency = true, - } -}) - -vim.cmd("colorscheme onedark_vivid") - diff --git a/nvim/_after/plugin/treesitter.lua b/nvim/_after/plugin/treesitter.lua deleted file mode 100644 index 1087c0f..0000000 --- a/nvim/_after/plugin/treesitter.lua +++ /dev/null @@ -1,26 +0,0 @@ -require'nvim-treesitter.configs'.setup { - -- A list of parser names, or "all" - ensure_installed = { "vimdoc", "javascript", "typescript", "c", "lua", "rust", "c_sharp" }, - - -- Install parsers synchronously (only applied to `ensure_installed`) - sync_install = false, - - -- Automatically install missing parsers when entering buffer - -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally - auto_install = true, - - highlight = { - -- `false` will disable the whole extension - enable = true, - - -- Setting this to true will run `:h syntax` and tree-sitter at the same time. - -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). - -- Using this option may slow down your editor, and you may see some duplicate highlights. - -- Instead of true it can also be a list of languages - additional_vim_regex_highlighting = false, - }, - autotag = { - enable = true, - } -} - diff --git a/nvim/_after/plugin/trouble.lua b/nvim/_after/plugin/trouble.lua deleted file mode 100755 index de70365..0000000 --- a/nvim/_after/plugin/trouble.lua +++ /dev/null @@ -1,3 +0,0 @@ -vim.keymap.set("n", "xq", "TroubleToggle", - {silent = true, noremap = true} -) diff --git a/nvim/_after/plugin/ufo.lua b/nvim/_after/plugin/ufo.lua deleted file mode 100644 index bcb4cdf..0000000 --- a/nvim/_after/plugin/ufo.lua +++ /dev/null @@ -1,11 +0,0 @@ -vim.o.foldcolumn = '1' -- '0' is not bad -vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value -vim.o.foldlevelstart = 99 -vim.o.foldenable = true - -require('ufo').setup() - -vim.keymap.set('n', 'zR', require('ufo').openAllFolds) -vim.keymap.set('n', 'zM', require('ufo').closeAllFolds) -vim.keymap.set('n', 'zr', require('ufo').openFoldsExceptKinds) -vim.keymap.set('n', 'zm', require('ufo').closeFoldsWith) -- closeAllFolds == closeFoldsWith(0) diff --git a/nvim/_after/plugin/undotree.lua b/nvim/_after/plugin/undotree.lua deleted file mode 100644 index 97bb7ab..0000000 --- a/nvim/_after/plugin/undotree.lua +++ /dev/null @@ -1,2 +0,0 @@ -vim.keymap.set("n", "u", vim.cmd.UndotreeToggle) - diff --git a/nvim/_after/plugin/zenmode.lua b/nvim/_after/plugin/zenmode.lua deleted file mode 100644 index 753fbf8..0000000 --- a/nvim/_after/plugin/zenmode.lua +++ /dev/null @@ -1,30 +0,0 @@ - -vim.keymap.set("n", "zz", function() - require("zen-mode").setup { - window = { - width = 90, - options = { } - }, - } - require("zen-mode").toggle() - vim.wo.wrap = false - vim.wo.number = true - vim.wo.rnu = true - ColorMyPencils() -end) - - -vim.keymap.set("n", "zZ", function() - require("zen-mode").setup { - window = { - width = 80, - options = { } - }, - } - require("zen-mode").toggle() - vim.wo.wrap = false - vim.wo.number = false - vim.wo.rnu = false - vim.opt.colorcolumn = "0" - ColorMyPencils() -end) diff --git a/nvim/lua/themystery/packer.lua b/nvim/lua/themystery/packer.lua deleted file mode 100644 index c2702dc..0000000 --- a/nvim/lua/themystery/packer.lua +++ /dev/null @@ -1,168 +0,0 @@ --- This file can be loaded by calling `lua require('plugins')` from your init.vimpacke - --- Only required if you have packer configured as `opt` -vim.cmd.packadd('packer.nvim') - -return require('packer').startup(function(use) - -- Packer can manage itself - use 'wbthomason/packer.nvim' - - use { - 'nvim-telescope/telescope.nvim', tag = '0.1.x', - requires = { { 'nvim-lua/plenary.nvim' } } - } - - use 'numToStr/Comment.nvim' - - use "olimorris/onedarkpro.nvim" - - use({ - "folke/trouble.nvim", - config = function() - require("trouble").setup { - icons = false, - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - } - end - }) - - - use({ "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" }) - use("nvim-treesitter/playground") - use("theprimeagen/refactoring.nvim") - use("mbbill/undotree") - use("tpope/vim-fugitive") - use("nvim-treesitter/nvim-treesitter-context"); - - use { - 'VonHeikemen/lsp-zero.nvim', - branch = 'v3.x', - requires = { - -- LSP Support - { 'neovim/nvim-lspconfig' }, - { 'williamboman/mason.nvim' }, - { 'williamboman/mason-lspconfig.nvim' }, - - -- Autocompletion - { 'hrsh7th/nvim-cmp' }, - { 'hrsh7th/cmp-buffer' }, - { 'hrsh7th/cmp-path' }, - { 'saadparwaiz1/cmp_luasnip' }, - { 'hrsh7th/cmp-nvim-lsp' }, - { 'hrsh7th/cmp-nvim-lua' }, - - -- Snippets - { 'L3MON4D3/LuaSnip' }, - { 'rafamadriz/friendly-snippets' }, - } - } - - use("folke/zen-mode.nvim") - use("github/copilot.vim") - -- use("zbirenbaum/copilot.lua") - - - use("eandrju/cellular-automaton.nvim") - use("laytan/cloak.nvim") - - use { - "nvim-neo-tree/neo-tree.nvim", - branch = "v3.x", - requires = { - "nvim-lua/plenary.nvim", - "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended - "MunifTanjim/nui.nvim", - } - } - - - use('lewis6991/gitsigns.nvim') - - use('windwp/nvim-ts-autotag') - - use('theprimeagen/vim-be-good') - - use { - "windwp/nvim-autopairs", - config = function() require("nvim-autopairs").setup {} end - } - - use { - 'nvim-lualine/lualine.nvim', - requires = { 'nvim-tree/nvim-web-devicons', opt = true } - } - - use 'andweeb/presence.nvim' - - - use { - 'glepnir/dashboard-nvim', - event = 'VimEnter', - config = function() - require('dashboard').setup({ - theme = "hyper", - config = { - project = { - action = function(path) - vim.cmd('Neotree dir=') - end, - }, - } - }) - end, - requires = { 'nvim-tree/nvim-web-devicons' } - } - - use({ - "utilyre/barbecue.nvim", - tag = "*", - requires = { - "SmiteshP/nvim-navic", - "nvim-tree/nvim-web-devicons", -- optional dependency - }, - after = "nvim-web-devicons", -- keep this if you're using NvChad - config = function() - require("barbecue").setup({ - attach_navic = false - }) - end, - }) - - use { 'kosayoda/nvim-lightbulb' } - - use "lukas-reineke/indent-blankline.nvim" - - use { 'nvim-telescope/telescope-ui-select.nvim' } - - use 'mfussenegger/nvim-dap' - - use { "rcarriga/nvim-dap-ui", requires = { "mfussenegger/nvim-dap" } } - - use { "folke/neodev.nvim" } - - use { "folke/noice.nvim", requires = { "MunifTanjim/nui.nvim", "rcarriga/nvim-notify" } } - - use { 'kevinhwang91/nvim-ufo', requires = 'kevinhwang91/promise-async' } - - use { '3rd/image.nvim' } - - use { 'ionide/Ionide-vim', event = 'VimEnter' } - - use { - "ThePrimeagen/harpoon", - branch = "harpoon2", - requires = { { "nvim-lua/plenary.nvim" } } - } - - use ({ - 'ggandor/leap.nvim', - requires = { 'tpope/vim-repeat' }, - config = function () - require('leap').create_default_mappings() - end - }) - - use {"Decodetalkers/csharpls-extended-lsp.nvim"} -end)