diff --git a/.backup/after/plugin/autopairs.lua b/.backup/after/plugin/autopairs.lua deleted file mode 100755 index e9adc1e..0000000 --- a/.backup/after/plugin/autopairs.lua +++ /dev/null @@ -1,14 +0,0 @@ -local npairs = require("nvim-autopairs") -local Rule = require("nvim-autopairs.rule") - -npairs.setup({ - check_ts = true, - ts_config = { - lua = {"string"}, - javascript = {"template_string"}, - }, - enable_check_bracket_line = false, - ignored_next_char = "[%w%.]", -}) - -local ts_conds = require("nvim-autopairs.ts-conds") \ No newline at end of file diff --git a/.backup/after/plugin/dash.lua b/.backup/after/plugin/dash.lua deleted file mode 100755 index c1affb0..0000000 --- a/.backup/after/plugin/dash.lua +++ /dev/null @@ -1,30 +0,0 @@ -local home = os.getenv('HOME') -local db = require('dashboard') - -db.custom_header = {"", - " /$$$$$$ /$$ /$$ ", - " /$$__ $$ | $$ | $$ ", - " /$$$$$$$ /$$$$$$ /$$$$$$ | $$ \\__//$$$$$$ /$$$$$$ /$$$$$$$| $$$$$$$ ", - "| $$__ $$ /$$__ $$ /$$__ $$| $$$$ /$$__ $$|_ $$_/ /$$_____/| $$__ $$", - "| $$ \\ $$| $$$$$$$$| $$ \\ $$| $$_/ | $$$$$$$$ | $$ | $$ | $$ \\ $$", - "| $$ | $$| $$_____/| $$ | $$| $$ | $$_____/ | $$ /$$| $$ | $$ | $$", - "| $$ | $$| $$$$$$$| $$$$$$/| $$ | $$$$$$$ | $$$$/| $$$$$$$| $$ | $$", - "|__/ |__/ \\_______/ \\______/ |__/ \\_______/ \\___/ \\_______/|__/ |__/", - "", - "", - "", - "", - "", - "", - "", -} - -db.custom_center = { - { - icon = ' ', - desc ='File Browser ', - action = 'Telescope file_browser', - shortcut = 'SPC e e' - }, -} - diff --git a/.backup/after/plugin/git.lua b/.backup/after/plugin/git.lua deleted file mode 100755 index b4dc7d6..0000000 --- a/.backup/after/plugin/git.lua +++ /dev/null @@ -1,9 +0,0 @@ -require('gitsigns').setup { - signs = { - add = { text = '+' }, - change = { text = '~' }, - delete = { text = '_' }, - topdelete = { text = '‾' }, - changedelete = { text = '~' }, - }, -} \ No newline at end of file diff --git a/.backup/after/plugin/lsp.lua b/.backup/after/plugin/lsp.lua deleted file mode 100755 index c5dbd0e..0000000 --- a/.backup/after/plugin/lsp.lua +++ /dev/null @@ -1,214 +0,0 @@ -require('neodev').setup() --- vim.lsp.ensure_installed({ --- "clangd", --- "gopls", --- "jdtls", --- "eslint", --- "tailwindcss", --- "tsserver", --- "cssmodules_ls", --- "rome", --- "jsonls", --- "sumneko_lua", --- "pylsp", --- "rust_analyzer", --- "stylelint_lsp", --- }) - -local navic = require("nvim-navic") -navic.setup { - icons = { - File = " ", - Module = " ", - Namespace = " ", - Package = " ", - Class = " ", - Method = " ", - Property = " ", - Field = " ", - Constructor = " ", - Enum = "練", - Interface = "練", - Function = " ", - Variable = " ", - Constant = " ", - String = " ", - Number = " ", - Boolean = "◩ ", - Array = " ", - Object = " ", - Key = " ", - Null = "ﳠ ", - EnumMember = " ", - Struct = " ", - Event = " ", - Operator = " ", - TypeParameter = " ", - }, - highlight = false, - separator = " > ", - depth_limit = 0, - depth_limit_indicator = "..", - safe_output = true -} -local on_attach = function(client, bufnr) - local nmap = function(keys, func, desc) - if desc then - desc = 'LSP: ' .. desc - end - - vim.keymap.set('n', keys, func, { buffer = bufnr, desc = desc }) - end - - if client.server_capabilities.documentSymbolProvider then - navic.attach(client, bufnr) - end - - nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences') - nmap('gI', vim.lsp.buf.implementation, '[G]oto [I]mplementation') - nmap('vt', vim.lsp.buf.type_definition, 'Type [D]efinition') - nmap('vs', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols') - - nmap('', vim.lsp.buf.signature_help, 'Signature Documentation') - - -- Lesser used LSP functionality - nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') - nmap('wa', vim.lsp.buf.add_workspace_folder, '[W]orkspace [A]dd Folder') - nmap('wr', vim.lsp.buf.remove_workspace_folder, '[W]orkspace [R]emove Folder') - nmap('wl', function() - print(vim.inspect(vim.lsp.buf.list_workspace_folders())) - end, '[W]orkspace [L]ist Folders') - - -- Create a command `:Format` local to the LSP buffer - vim.api.nvim_buf_create_user_command(bufnr, 'Format', function(_) - vim.lsp.buf.format() - end, { desc = 'Format current buffer with LSP' }) -end - -local servers = { - clangd = {}, - gopls = {}, - pyright = {}, - rust_analyzer = {}, - tsserver = {}, - - sumneko_lua = { - Lua = { - workspace = { checkThirdParty = false }, - telemetry = { enable = false }, - }, - }, -} - -local capabilities = vim.lsp.protocol.make_client_capabilities() -capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities) - -require('mason').setup() -local mason_lspconfig = require 'mason-lspconfig' -mason_lspconfig.setup { - ensure_installed = vim.tbl_keys(servers), -} -mason_lspconfig.setup_handlers { - function(server_name) - require('lspconfig')[server_name].setup { - capabilities = capabilities, - on_attach = on_attach, - settings = servers[server_name], - } - end, -} - --- lspinfo -require('fidget').setup() - -local cmp_autopairs = require('nvim-autopairs.completion.cmp') - -local cmp = require 'cmp' -local luasnip = require 'luasnip' - - - --- local tabnine = require('cmp_tabnine.config') --- --- tabnine:setup({ --- max_lines = 1000, --- max_num_results = 20, --- sort = true, --- run_on_every_keystroke = true, --- snippet_placeholder = '..', --- ignored_file_types = { --- -- default is not to ignore --- -- uncomment to ignore in lua: --- -- lua = true --- }, --- show_prediction_strength = false --- }) - -cmp.setup { - snippet = { - expand = function(args) - luasnip.lsp_expand(args.body) - end, - }, - mapping = cmp.mapping.preset.insert { - [""] = cmp.mapping.confirm({ slelect = true}), - [""] = cmp.mapping.complete(), - [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.scroll_docs(4), - [''] = cmp.mapping.complete(), - [''] = cmp.mapping.confirm { - behavior = cmp.ConfirmBehavior.Replace, - select = true, - }, - [''] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif luasnip.expand_or_jumpable() then - luasnip.expand_or_jump() - else - fallback() - end - end, { 'i', 's' }), - [''] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif luasnip.jumpable(-1) then - luasnip.jump(-1) - else - fallback() - end - end, { 'i', 's' }), - }, - sources = { - { name = 'nvim_lsp' }, - { name = 'luasnip' }, - { name = "crates" }, - -- { name = "cmp_tabnine" }, - }, -} - -cmp.event:on( - 'confirm_done', - cmp_autopairs.on_confirm_done() -) - -vim.diagnostic.config({ - signs = true, - underline = true, - update_in_insert = true, - virtual_text = true, -}) - -require("cmp").config.formatting = { - format = require("tailwindcss-colorizer-cmp").formatter, - behavior = cmp.SelectBehavior.Select, -} - --- require('tabnine').setup({ --- disable_auto_comment=true, --- accept_keymap="", --- dismiss_keymap = "", --- debounce_ms = 300, --- suggestion_color = {gui = "#808080", cterm = 244}, --- execlude_filetypes = {"TelescopePrompt"} --- }) diff --git a/.backup/after/plugin/presence.lua b/.backup/after/plugin/presence.lua deleted file mode 100755 index 1b080f2..0000000 --- a/.backup/after/plugin/presence.lua +++ /dev/null @@ -1,22 +0,0 @@ -require("presence"):setup({ - auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`) - neovim_image_text = "The best PDE, Personalized Development Enviroment", -- Text displayed when hovered over the Neovim image - main_image = "neovim", -- Main image display (either "neovim" or "file") - client_id = "793271441293967371", -- Use your own Discord application client id (not recommended) - log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error") - debounce_timeout = 15, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(, true)`) - enable_line_number = false, -- Displays the current line number instead of the current project - blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches - buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "