diff --git a/macOS/.config/iterm/com.googlecode.iterm2.plist b/macOS/.config/iterm/com.googlecode.iterm2.plist index c3f7bef..31fcc28 100644 --- a/macOS/.config/iterm/com.googlecode.iterm2.plist +++ b/macOS/.config/iterm/com.googlecode.iterm2.plist @@ -663,6 +663,8 @@ OpenNoWindowsAtStartup + OpenTmuxWindowsIn + 0 PointerActions Button,1,1,, diff --git a/nvim/m-housh/lua/mappings.lua b/nvim/m-housh/lua/mappings.lua index 93b597b..1e44978 100644 --- a/nvim/m-housh/lua/mappings.lua +++ b/nvim/m-housh/lua/mappings.lua @@ -27,7 +27,7 @@ keymap("n", "", ":resize +1", default_options) keymap("x", "K", ":move '<-2gv-gv", default_options) keymap("x", "J", ":move '>+1gv-gv", default_options) --- Toggle nvim-tree open or closed +-- Toggle neo-tree open or closed keymap("n", "", ":Neotree toggle", default_options) -- LuaSnip Keymaps diff --git a/nvim/m-housh/lua/plugin-config/init.lua b/nvim/m-housh/lua/plugin-config/init.lua index 8af6cf2..810bc55 100644 --- a/nvim/m-housh/lua/plugin-config/init.lua +++ b/nvim/m-housh/lua/plugin-config/init.lua @@ -1,14 +1,5 @@ -- This file contains plugin's that don't require much configuration. return { --- { --- "hrsh7th/vim-vsnip", --- config = function() --- vim.g.vsnip_snippet_dir = os.getenv('HOME') .. '/.config/m-housh/snippets/' --- end --- }, --- { --- dir = "~/LocalProjects/plugins/m-housh/swift.nvim" --- } { "L3MON4D3/LuaSnip", version = "2.*", @@ -29,5 +20,107 @@ return { }, } end - } + }, + { + 'EdenEast/nightfox.nvim', + lazy = false, -- make sure we load this during startup + priority = 1000, -- make sure to load this before all other plugins. + opts = { + fox = "terafox", -- change the colorscheme to use terafox + styles = { + comments = "italic", -- change style of comments to be italic + keywords = "bold", -- change style of keywords to be bold + functions = "italic,bold" -- styles can be a comma separated list + }, + inverse = { + match_paren = true, -- inverse the highlighting of match_parens + }, + colors = { + red = "#FF000", -- Override the red color for MAX POWER + --bg_alt = "#000000", + }, + hlgroups = { + TSPunctDelimiter = { fg = "${red}" }, -- Override a highlight group with the color red + LspCodeLens = { bg = "#000000", style = "italic" }, + } + + }, + config = function() + require('nightfox').load() + vim.cmd("colorscheme terafox") + end + }, + { + "hrsh7th/vim-vsnip", + config = function() + vim.g.vsnip_snippet_dir = os.getenv('HOME') .. '/.config/nvim/snippets/' + end + }, + { + "folke/which-key.nvim", + event = "VeryLazy", + init = function() + vim.o.timeout = true + vim.o.timeoutlen = 300 + end, + }, + { + 'akinsho/toggleterm.nvim', + enable = true, + opts = { + size = 20, + open_mapping = [[]], + hide_numbers = true, + shade_terminals = true, + shading_factor = 2, + start_in_insert = true, + insert_mappings = true, + persist_size = true, + direction = "float", + close_on_exit = true, + shell = vim.o.shell, + float_opts = { + border = "curved", + winblend = 0, + highlights = { + border = "Normal", + background = "Normal", + }, + }, + } + }, + { + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended + "MunifTanjim/nui.nvim", + }, + opts = { + close_if_last_window = false, + enable_git_status = true, + enable_diagnostics = true, + filesystem = { + filtered_items = { + hide_dotfiles = false + }, + use_libuv_file_watcher = true + }, + } + }, + { + 'm-housh/swift.nvim', + dependencies = { + 'akinsho/toggleterm.nvim' + }, + config = function() + require('swift').setup() + local default_options = { noremap = true, silent = true } + local actions = require('swift.actions') + + vim.keymap.set('n', '', actions.build, default_options) + vim.keymap.set('n', '', actions.test, default_options) + end + }, } diff --git a/nvim/m-housh/lua/plugin-config/lsp-installer.lua b/nvim/m-housh/lua/plugin-config/lsp-installer.lua deleted file mode 100644 index 745a7df..0000000 --- a/nvim/m-housh/lua/plugin-config/lsp-installer.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - "williamboman/nvim-lsp-installer", - config = function() - require("nvim-lsp-installer").setup() - end -} diff --git a/nvim/m-housh/lua/plugin-config/lsp.lua b/nvim/m-housh/lua/plugin-config/lsp.lua new file mode 100644 index 0000000..9688ece --- /dev/null +++ b/nvim/m-housh/lua/plugin-config/lsp.lua @@ -0,0 +1,207 @@ +return { + { + "williamboman/nvim-lsp-installer", + config = function() + require("nvim-lsp-installer").setup() + end + }, + { + "williamboman/mason-lspconfig.nvim", + dependencies = { + "williamboman/mason.nvim", + "onsails/lspkind-nvim", + "famiu/bufdelete.nvim", + "ray-x/lsp_signature.nvim", + "neovim/nvim-lspconfig" + }, + opts = { + ensure_installed = { + "bashls", + "clangd", + "dockerls", + "gopls", + "jsonls", + "jedi_language_server", + "lua_ls", + "terraformls", + "tsserver", + "texlab", + "yamlls", + } + } + }, + { + "neovim/nvim-lspconfig", + dependencies = { + "hrsh7th/cmp-nvim-lsp", + }, + config = function() + require("mason").setup() + require("mason-lspconfig").setup() + local nvim_lsp = require("lspconfig") + + -- Use an on_attach function to only map the following keys + -- after the language server attaches to the current buffer + local on_attach = function(bufnr) + local function buf_set_keymap(...) + vim.api.nvim_buf_set_keymap(bufnr, ...) + end + + -- Mappings. + local opts = {noremap = true, silent = true} + + -- See `:help vim.lsp.*` for documentation on any of the below functions + buf_set_keymap("n", "gD", "lua vim.lsp.buf.declaration()", opts) + buf_set_keymap("n", "gd", "lua vim.lsp.buf.definition()", opts) + buf_set_keymap("n", "K", "lua vim.lsp.buf.hover()", opts) + buf_set_keymap("n", "gi", "lua vim.lsp.buf.implementation()", opts) + buf_set_keymap("n", "gT", vim.lsp.buf.type_definition, opts) + -- buf_set_keymap('n', '', 'lua vim.lsp.buf.signature_help()', opts) + buf_set_keymap("n", "wa", + "lua vim.lsp.buf.add_workspace_folder()", opts) + buf_set_keymap("n", "wr", + "lua vim.lsp.buf.remove_workspace_folder()", opts) + buf_set_keymap("n", "wl", + "lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))", + opts) + buf_set_keymap("n", "D", + "lua vim.lsp.buf.type_definition()", opts) + buf_set_keymap("n", "rn", "lua vim.lsp.buf.rename()", opts) + buf_set_keymap("n", "ca", "lua vim.lsp.buf.code_action()", + opts) + buf_set_keymap("n", "gr", "lua vim.lsp.buf.references()", opts) + buf_set_keymap("n", "e", "lua vim.lsp.diagnostic.show_line_diagnostics()", opts) + buf_set_keymap("n", "[d", "lua vim.lsp.diagnostic.goto_prev()", opts) + + buf_set_keymap("n", "]d", "lua vim.lsp.diagnostic.goto_next()", opts) + buf_set_keymap("n", "q", "lua vim.lsp.diagnostic.set_loclist()", opts) + buf_set_keymap("n", "f", "lua vim.lsp.buf.formatting()", opts) + + end + + -- Use a loop to conveniently call 'setup' on multiple servers and + -- map buffer local keybindings when the language server attaches + --local capabilities = vim.lsp.protocol.make_client_capabilities() + capabilities = require("cmp_nvim_lsp").default_capabilities() + + local servers = { + "bashls", + "clangd", + "dockerls", + "gopls", + "jsonls", + "jedi_language_server", + "lua_ls", + "sourcekit", + "terraformls", + "tsserver", + "texlab", + "yamlls", + } + for _, lsp in ipairs(servers) do + nvim_lsp[lsp].setup { + on_attach = on_attach, + capabilities = capabilities, + settings = { + gopls = {analyses = {unusedparams = false}, staticcheck = true}, + lua_ls = { + Lua = { + workspace = { checkThirdParty = false }, + telemetry = { enable = false }, + } + }, + json = { + format = {enabled = false}, + schemas = { + { + description = "ESLint config", + fileMatch = {".eslintrc.json", ".eslintrc"}, + url = "http://json.schemastore.org/eslintrc" + }, { + description = "Package config", + fileMatch = {"package.json"}, + url = "https://json.schemastore.org/package" + }, { + description = "Packer config", + fileMatch = {"packer.json"}, + url = "https://json.schemastore.org/packer" + }, { + description = "Renovate config", + fileMatch = { + "renovate.json", "renovate.json5", + ".github/renovate.json", ".github/renovate.json5", + ".renovaterc", ".renovaterc.json" + }, + url = "https://docs.renovatebot.com/renovate-schema" + }, { + description = "OpenApi config", + fileMatch = {"*api*.json"}, + url = "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json" + } + } + }, + redhat = {telemetry = {enabled = false}}, + texlab = { + auxDirectory = ".", + bibtexFormatter = "texlab", + build = { + args = { + "--keep-intermediates", "--keep-logs", "--synctex", "%f" + }, + executable = "tectonic", + forwardSearchAfter = false, + onSave = false + }, + chktex = {onEdit = false, onOpenAndSave = false}, + diagnosticsDelay = 300, + formatterLineLength = 80, + forwardSearch = {args = {}}, + latexFormatter = "latexindent", + latexindent = {modifyLineBreaks = false} + }, + yaml = { + schemaStore = { + enable = true, + url = "https://www.schemastore.org/api/json/catalog.json" + }, + schemas = { + kubernetes = "/*.yaml", + ["http://json.schemastore.org/github-workflow"] = ".github/workflows/*.{yml,yaml}", + ["http://json.schemastore.org/github-action"] = ".github/action.{yml,yaml}", + ["http://json.schemastore.org/ansible-stable-2.9"] = "roles/tasks/*.{yml,yaml}", + ["http://json.schemastore.org/prettierrc"] = ".prettierrc.{yml,yaml}", + ["http://json.schemastore.org/kustomization"] = "kustomization.{yml,yaml}", + ["http://json.schemastore.org/ansible-playbook"] = "*play*.{yml,yaml}", + ["http://json.schemastore.org/chart"] = "Chart.{yml,yaml}", + ["https://json.schemastore.org/dependabot-v2"] = ".github/dependabot.{yml,yaml}", + ["https://json.schemastore.org/gitlab-ci"] = "*gitlab-ci*.{yml,yaml}", + ["https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json"] = "*api*.{yml,yaml}", + ["https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"] = "docker-compose.{yml,yaml}", + ["https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json"] = "*flow*.{yml,yaml}" + }, + format = {enabled = false}, + validate = false, -- TODO: conflicts between Kubernetes resources and kustomization.yaml + completion = true, + hover = true + } + }, + flags = {debounce_text_changes = 150} + } + require"lsp_signature".setup({ + bind = true, -- This is mandatory, otherwise border config won't get registered. + floating_window = true, -- show hint in a floating window, set to false for virtual text only mode + doc_lines = 2, -- Set to 0 for not showing doc + hint_prefix = "🐼 ", + -- use_lspsaga = false, -- set to true if you want to use lspsaga popup + handler_opts = { + border = "shadow" -- double, single, shadow, none + } + }) + end + + -- Test source-kit + require('lspconfig').sourcekit.setup{} + + end + } +} diff --git a/nvim/m-housh/lua/plugin-config/lspconfig.lua b/nvim/m-housh/lua/plugin-config/lspconfig.lua deleted file mode 100644 index c9302d7..0000000 --- a/nvim/m-housh/lua/plugin-config/lspconfig.lua +++ /dev/null @@ -1,174 +0,0 @@ -return { - "neovim/nvim-lspconfig", - dependencies = { - "hrsh7th/cmp-nvim-lsp", - }, - config = function() - require("mason").setup() - require("mason-lspconfig").setup() - local nvim_lsp = require("lspconfig") - - -- Use an on_attach function to only map the following keys - -- after the language server attaches to the current buffer - local on_attach = function(bufnr) - local function buf_set_keymap(...) - vim.api.nvim_buf_set_keymap(bufnr, ...) - end - - -- Mappings. - local opts = {noremap = true, silent = true} - - -- See `:help vim.lsp.*` for documentation on any of the below functions - buf_set_keymap("n", "gD", "lua vim.lsp.buf.declaration()", opts) - buf_set_keymap("n", "gd", "lua vim.lsp.buf.definition()", opts) - buf_set_keymap("n", "K", "lua vim.lsp.buf.hover()", opts) - buf_set_keymap("n", "gi", "lua vim.lsp.buf.implementation()", opts) - buf_set_keymap("n", "gT", vim.lsp.buf.type_definition, opts) - -- buf_set_keymap('n', '', 'lua vim.lsp.buf.signature_help()', opts) - buf_set_keymap("n", "wa", - "lua vim.lsp.buf.add_workspace_folder()", opts) - buf_set_keymap("n", "wr", - "lua vim.lsp.buf.remove_workspace_folder()", opts) - buf_set_keymap("n", "wl", - "lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))", - opts) - buf_set_keymap("n", "D", - "lua vim.lsp.buf.type_definition()", opts) - buf_set_keymap("n", "rn", "lua vim.lsp.buf.rename()", opts) - buf_set_keymap("n", "ca", "lua vim.lsp.buf.code_action()", - opts) - buf_set_keymap("n", "gr", "lua vim.lsp.buf.references()", opts) - buf_set_keymap("n", "e", "lua vim.lsp.diagnostic.show_line_diagnostics()", opts) - buf_set_keymap("n", "[d", "lua vim.lsp.diagnostic.goto_prev()", opts) - - buf_set_keymap("n", "]d", "lua vim.lsp.diagnostic.goto_next()", opts) - buf_set_keymap("n", "q", "lua vim.lsp.diagnostic.set_loclist()", opts) - buf_set_keymap("n", "f", "lua vim.lsp.buf.formatting()", opts) - - end - - -- Use a loop to conveniently call 'setup' on multiple servers and - -- map buffer local keybindings when the language server attaches - --local capabilities = vim.lsp.protocol.make_client_capabilities() - capabilities = require("cmp_nvim_lsp").default_capabilities() - - local servers = { - "bashls", - "clangd", - "dockerls", - "gopls", - "jsonls", - "jedi_language_server", - "lua_ls", - "sourcekit", - "terraformls", - "tsserver", - "texlab", - "yamlls", - } - for _, lsp in ipairs(servers) do - nvim_lsp[lsp].setup { - on_attach = on_attach, - capabilities = capabilities, - settings = { - gopls = {analyses = {unusedparams = false}, staticcheck = true}, - lua_ls = { - Lua = { - workspace = { checkThirdParty = false }, - telemetry = { enable = false }, - } - }, - json = { - format = {enabled = false}, - schemas = { - { - description = "ESLint config", - fileMatch = {".eslintrc.json", ".eslintrc"}, - url = "http://json.schemastore.org/eslintrc" - }, { - description = "Package config", - fileMatch = {"package.json"}, - url = "https://json.schemastore.org/package" - }, { - description = "Packer config", - fileMatch = {"packer.json"}, - url = "https://json.schemastore.org/packer" - }, { - description = "Renovate config", - fileMatch = { - "renovate.json", "renovate.json5", - ".github/renovate.json", ".github/renovate.json5", - ".renovaterc", ".renovaterc.json" - }, - url = "https://docs.renovatebot.com/renovate-schema" - }, { - description = "OpenApi config", - fileMatch = {"*api*.json"}, - url = "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json" - } - } - }, - redhat = {telemetry = {enabled = false}}, - texlab = { - auxDirectory = ".", - bibtexFormatter = "texlab", - build = { - args = { - "--keep-intermediates", "--keep-logs", "--synctex", "%f" - }, - executable = "tectonic", - forwardSearchAfter = false, - onSave = false - }, - chktex = {onEdit = false, onOpenAndSave = false}, - diagnosticsDelay = 300, - formatterLineLength = 80, - forwardSearch = {args = {}}, - latexFormatter = "latexindent", - latexindent = {modifyLineBreaks = false} - }, - yaml = { - schemaStore = { - enable = true, - url = "https://www.schemastore.org/api/json/catalog.json" - }, - schemas = { - kubernetes = "/*.yaml", - ["http://json.schemastore.org/github-workflow"] = ".github/workflows/*.{yml,yaml}", - ["http://json.schemastore.org/github-action"] = ".github/action.{yml,yaml}", - ["http://json.schemastore.org/ansible-stable-2.9"] = "roles/tasks/*.{yml,yaml}", - ["http://json.schemastore.org/prettierrc"] = ".prettierrc.{yml,yaml}", - ["http://json.schemastore.org/kustomization"] = "kustomization.{yml,yaml}", - ["http://json.schemastore.org/ansible-playbook"] = "*play*.{yml,yaml}", - ["http://json.schemastore.org/chart"] = "Chart.{yml,yaml}", - ["https://json.schemastore.org/dependabot-v2"] = ".github/dependabot.{yml,yaml}", - ["https://json.schemastore.org/gitlab-ci"] = "*gitlab-ci*.{yml,yaml}", - ["https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json"] = "*api*.{yml,yaml}", - ["https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"] = "docker-compose.{yml,yaml}", - ["https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json"] = "*flow*.{yml,yaml}" - }, - format = {enabled = false}, - validate = false, -- TODO: conflicts between Kubernetes resources and kustomization.yaml - completion = true, - hover = true - } - }, - flags = {debounce_text_changes = 150} - } - require"lsp_signature".setup({ - bind = true, -- This is mandatory, otherwise border config won't get registered. - floating_window = true, -- show hint in a floating window, set to false for virtual text only mode - doc_lines = 2, -- Set to 0 for not showing doc - hint_prefix = "🐼 ", - -- use_lspsaga = false, -- set to true if you want to use lspsaga popup - handler_opts = { - border = "shadow" -- double, single, shadow, none - } - }) - end - - -- Test source-kit - require('lspconfig').sourcekit.setup{} - - end -} diff --git a/nvim/m-housh/lua/plugin-config/mason.lua b/nvim/m-housh/lua/plugin-config/mason.lua deleted file mode 100644 index d02ef6b..0000000 --- a/nvim/m-housh/lua/plugin-config/mason.lua +++ /dev/null @@ -1,25 +0,0 @@ -return { - "williamboman/mason-lspconfig.nvim", - dependencies = { - "williamboman/mason.nvim", - "onsails/lspkind-nvim", - "famiu/bufdelete.nvim", - "ray-x/lsp_signature.nvim", - "neovim/nvim-lspconfig" - }, - opts = { - ensure_installed = { - "bashls", - "clangd", - "dockerls", - "gopls", - "jsonls", - "jedi_language_server", - "lua_ls", - "terraformls", - "tsserver", - "texlab", - "yamlls", - } - } - } diff --git a/nvim/m-housh/lua/plugin-config/neo-tree.lua b/nvim/m-housh/lua/plugin-config/neo-tree.lua deleted file mode 100644 index 70878eb..0000000 --- a/nvim/m-housh/lua/plugin-config/neo-tree.lua +++ /dev/null @@ -1,20 +0,0 @@ -return { - "nvim-neo-tree/neo-tree.nvim", - branch = "v3.x", - dependencies = { - "nvim-lua/plenary.nvim", - "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended - "MunifTanjim/nui.nvim", - }, - opts = { - close_if_last_window = false, - enable_git_status = true, - enable_diagnostics = true, - filesystem = { - filtered_items = { - hide_dotfiles = false - }, - use_libuv_file_watcher = true - }, - } -} diff --git a/nvim/m-housh/lua/plugin-config/nightfox.lua b/nvim/m-housh/lua/plugin-config/nightfox.lua deleted file mode 100644 index a3ac070..0000000 --- a/nvim/m-housh/lua/plugin-config/nightfox.lua +++ /dev/null @@ -1,29 +0,0 @@ -return { - 'EdenEast/nightfox.nvim', - lazy = false, -- make sure we load this during startup - priority = 1000, -- make sure to load this before all other plugins. - opts = { - fox = "terafox", -- change the colorscheme to use terafox - styles = { - comments = "italic", -- change style of comments to be italic - keywords = "bold", -- change style of keywords to be bold - functions = "italic,bold" -- styles can be a comma separated list - }, - inverse = { - match_paren = true, -- inverse the highlighting of match_parens - }, - colors = { - red = "#FF000", -- Override the red color for MAX POWER - --bg_alt = "#000000", - }, - hlgroups = { - TSPunctDelimiter = { fg = "${red}" }, -- Override a highlight group with the color red - LspCodeLens = { bg = "#000000", style = "italic" }, - } - - }, - config = function() - require('nightfox').load() - vim.cmd("colorscheme terafox") - end -} diff --git a/nvim/m-housh/lua/plugin-config/swift.lua b/nvim/m-housh/lua/plugin-config/swift.lua deleted file mode 100644 index 06a6a72..0000000 --- a/nvim/m-housh/lua/plugin-config/swift.lua +++ /dev/null @@ -1,14 +0,0 @@ -return { - 'm-housh/swift.nvim', - dependencies = { - 'akinsho/toggleterm.nvim' - }, - config = function() - require('swift').setup() - local default_options = { noremap = true, silent = true } - local actions = require('swift.actions') - - vim.keymap.set('n', '', actions.build, default_options) - vim.keymap.set('n', '', actions.test, default_options) - end -} diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/cmp.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/cmp.lua deleted file mode 100644 index dee0ad5..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/cmp.lua +++ /dev/null @@ -1,118 +0,0 @@ --- Setup nvim-cmp. -local cmp = require "cmp" -local lspkind = require("lspkind") -local capabilities = require('cmp_nvim_lsp').default_capabilities() - -local has_words_before = function() - local line, col = unpack(vim.api.nvim_win_get_cursor(0)) - return col ~= 0 - and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub( - col, col):match("%s") == nil -end - -local feedkey = function(key, mode) - vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(key, true, true, true), - mode, true) -end - - -require'lspconfig'.sourcekit.setup { - capabilities = capabilities -} - -lspkind.init({ - symbol_map = { - Text = "", - Method = "", - Function = "", - Constructor = "", - Field = "ﰠ", - Variable = "", - Class = "ﴯ", - Interface = "", - Module = "", - Property = "ﰠ", - Unit = "塞", - Value = "", - Enum = "", - Keyword = "", - Snippet = "", - Color = "", - File = "", - Reference = "", - Folder = "", - EnumMember = "", - Constant = "", - Struct = "פּ", - Event = "", - Operator = "", - TypeParameter = "" - } -}) - -cmp.setup({ - formatting = { - format = lspkind.cmp_format { - with_text = false, - maxwidth = 50, - menu = { - buffer = "BUF", - nvim_lsp = "LSP", - path = "PATH", - vsnip = "SNIP", - calc = "CALC", - spell = "SPELL", - emoji = "EMOJI" - } - } - }, - experimental = {native_menu = false, ghost_text = false}, - snippet = { - expand = function(args) - vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users. - end - }, - mapping = { - [""] = cmp.mapping.select_prev_item(), - [""] = cmp.mapping.select_next_item(), - [""] = cmp.mapping.scroll_docs(-4), - [""] = cmp.mapping.scroll_docs(4), - [""] = cmp.mapping.complete(), - [""] = cmp.mapping.close(), - [""] = cmp.mapping.confirm { - behavior = cmp.ConfirmBehavior.Replace, - select = false - }, - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif vim.fn["vsnip#available"](1) == 1 then - feedkey("(vsnip-expand-or-jump)", "") - elseif has_words_before() then - cmp.complete() - else - fallback() -- The fallback function sends a already mapped key. In this case, it's probably ``. - end - end, {"i", "s"}), - [""] = cmp.mapping(function() - if cmp.visible() then - cmp.select_prev_item() - elseif vim.fn["vsnip#jumpable"](-1) == 1 then - feedkey("(vsnip-jump-prev)", "") - end - end, {"i", "s"}) - }, - sources = { - {name = "nvim_lsp"}, {name = "buffer", keyword_length = 5}, - {name = "vsnip"}, {name = "calc"}, {name = "emoji"}, {name = "spell"}, - {name = "path"} - } -}) - --- Use buffer source for `/`. -cmp.setup.cmdline("/", {sources = {{name = "buffer"}}}) - --- Use cmdline & path source for ':'. -cmp.setup.cmdline(":", { - sources = cmp.config.sources({{name = "path"}}, {{name = "cmdline"}}) -}) diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/colorizer.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/colorizer.lua deleted file mode 100644 index dc88fec..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/colorizer.lua +++ /dev/null @@ -1,15 +0,0 @@ -require'colorizer'.setup() -local status_ok, colorizer = pcall(require, "colorizer") -if not status_ok then - return -end -colorizer.setup({ "*" }, { - RGB = true, -- #RGB hex codes - RRGGBB = true, -- #RRGGBB hex codes - RRGGBBAA = true, -- #RRGGBBAA hex codes - rgb_fn = true, -- CSS rgb() and rgba() functions - hsl_fn = true, -- CSS hsl() and hsla() functions - css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB - css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn - namess = true, -- "Name" codes like Blue -}) diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/diffview.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/diffview.lua deleted file mode 100644 index 6d01c08..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/diffview.lua +++ /dev/null @@ -1,37 +0,0 @@ -local cb = require'diffview.config'.diffview_callback - -require'diffview'.setup { - diff_binaries = false, -- Show diffs for binaries - use_icons = true, -- Requires nvim-web-devicons - file_panel = { - width = 35, - }, - key_bindings = { - disable_defaults = false, -- Disable the default key bindings - -- The `view` bindings are active in the diff buffers, only when the current - -- tabpage is a Diffview. - view = { - [""] = cb("select_next_entry"), -- Open the diff for the next file - [""] = cb("select_prev_entry"), -- Open the diff for the previous file - ["e"] = cb("focus_files"), -- Bring focus to the files panel - ["b"] = cb("toggle_files"), -- Toggle the files panel. - }, - file_panel = { - ["j"] = cb("next_entry"), -- Bring the cursor to the next file entry - [""] = cb("next_entry"), - ["k"] = cb("prev_entry"), -- Bring the cursor to the previous file entry. - [""] = cb("prev_entry"), - [""] = cb("select_entry"), -- Open the diff for the selected entry. - ["o"] = cb("select_entry"), - ["<2-LeftMouse>"] = cb("select_entry"), - ["-"] = cb("toggle_stage_entry"), -- Stage / unstage the selected entry. - ["S"] = cb("stage_all"), -- Stage all entries. - ["U"] = cb("unstage_all"), -- Unstage all entries. - ["R"] = cb("refresh_files"), -- Update stats and entries in the file list. - [""] = cb("select_next_entry"), - [""] = cb("select_prev_entry"), - ["e"] = cb("focus_files"), - ["b"] = cb("toggle_files"), - } - } -} diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/lsp-installer.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/lsp-installer.lua deleted file mode 100644 index 43dccc9..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/lsp-installer.lua +++ /dev/null @@ -1,16 +0,0 @@ -local lsp_installer = require("nvim-lsp-installer") - --- Register a handler that will be called for all installed servers. --- Alternatively, you may also register handlers on specific server instances instead (see example below). -lsp_installer.on_server_ready(function(server) - local opts = {} - - -- (optional) Customize the options passed to the server - -- if server.name == "tsserver" then - -- opts.root_dir = function() ... end - -- end - - -- This setup() function is exactly the same as lspconfig's setup function. - -- Refer to https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md - server:setup(opts) -end) diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/lsp.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/lsp.lua deleted file mode 100644 index 2eb3b19..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/lsp.lua +++ /dev/null @@ -1,150 +0,0 @@ -require("mason").setup() -require("mason-lspconfig").setup() -local nvim_lsp = require("lspconfig") - --- Use an on_attach function to only map the following keys --- after the language server attaches to the current buffer -local on_attach = function(bufnr) - local function buf_set_keymap(...) - vim.api.nvim_buf_set_keymap(bufnr, ...) - end - - -- Mappings. - local opts = {noremap = true, silent = true} - - -- See `:help vim.lsp.*` for documentation on any of the below functions - buf_set_keymap("n", "gD", "lua vim.lsp.buf.declaration()", opts) - buf_set_keymap("n", "gd", "lua vim.lsp.buf.definition()", opts) - buf_set_keymap("n", "K", "lua vim.lsp.buf.hover()", opts) - buf_set_keymap("n", "gi", "lua vim.lsp.buf.implementation()", opts) - buf_set_keymap("n", "gT", vim.lsp.buf.type_definition, opts) - -- buf_set_keymap('n', '', 'lua vim.lsp.buf.signature_help()', opts) - buf_set_keymap("n", "wa", - "lua vim.lsp.buf.add_workspace_folder()", opts) - buf_set_keymap("n", "wr", - "lua vim.lsp.buf.remove_workspace_folder()", opts) - buf_set_keymap("n", "wl", - "lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))", - opts) - buf_set_keymap("n", "D", - "lua vim.lsp.buf.type_definition()", opts) - buf_set_keymap("n", "rn", "lua vim.lsp.buf.rename()", opts) - buf_set_keymap("n", "ca", "lua vim.lsp.buf.code_action()", - opts) - buf_set_keymap("n", "gr", "lua vim.lsp.buf.references()", opts) - buf_set_keymap("n", "e", "lua vim.lsp.diagnostic.show_line_diagnostics()", opts) - buf_set_keymap("n", "[d", "lua vim.lsp.diagnostic.goto_prev()", opts) - - buf_set_keymap("n", "]d", "lua vim.lsp.diagnostic.goto_next()", opts) - buf_set_keymap("n", "q", "lua vim.lsp.diagnostic.set_loclist()", opts) - buf_set_keymap("n", "f", "lua vim.lsp.buf.formatting()", opts) - -end - --- Use a loop to conveniently call 'setup' on multiple servers and --- map buffer local keybindings when the language server attaches ---local capabilities = vim.lsp.protocol.make_client_capabilities() -capabilities = require("cmp_nvim_lsp").default_capabilities() - -local servers = { - "gopls", "bashls", "jedi_language_server", "dockerls", "terraformls", - "tsserver", "texlab", "yamlls", "jsonls", "clangd", "sourcekit" -} -for _, lsp in ipairs(servers) do - nvim_lsp[lsp].setup { - on_attach = on_attach, - capabilities = capabilities, - settings = { - gopls = {analyses = {unusedparams = false}, staticcheck = true}, - json = { - format = {enabled = false}, - schemas = { - { - description = "ESLint config", - fileMatch = {".eslintrc.json", ".eslintrc"}, - url = "http://json.schemastore.org/eslintrc" - }, { - description = "Package config", - fileMatch = {"package.json"}, - url = "https://json.schemastore.org/package" - }, { - description = "Packer config", - fileMatch = {"packer.json"}, - url = "https://json.schemastore.org/packer" - }, { - description = "Renovate config", - fileMatch = { - "renovate.json", "renovate.json5", - ".github/renovate.json", ".github/renovate.json5", - ".renovaterc", ".renovaterc.json" - }, - url = "https://docs.renovatebot.com/renovate-schema" - }, { - description = "OpenApi config", - fileMatch = {"*api*.json"}, - url = "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json" - } - } - }, - redhat = {telemetry = {enabled = false}}, - texlab = { - auxDirectory = ".", - bibtexFormatter = "texlab", - build = { - args = { - "--keep-intermediates", "--keep-logs", "--synctex", "%f" - }, - executable = "tectonic", - forwardSearchAfter = false, - onSave = false - }, - chktex = {onEdit = false, onOpenAndSave = false}, - diagnosticsDelay = 300, - formatterLineLength = 80, - forwardSearch = {args = {}}, - latexFormatter = "latexindent", - latexindent = {modifyLineBreaks = false} - }, - yaml = { - schemaStore = { - enable = true, - url = "https://www.schemastore.org/api/json/catalog.json" - }, - schemas = { - kubernetes = "/*.yaml", - ["http://json.schemastore.org/github-workflow"] = ".github/workflows/*.{yml,yaml}", - ["http://json.schemastore.org/github-action"] = ".github/action.{yml,yaml}", - ["http://json.schemastore.org/ansible-stable-2.9"] = "roles/tasks/*.{yml,yaml}", - ["http://json.schemastore.org/prettierrc"] = ".prettierrc.{yml,yaml}", - ["http://json.schemastore.org/kustomization"] = "kustomization.{yml,yaml}", - ["http://json.schemastore.org/ansible-playbook"] = "*play*.{yml,yaml}", - ["http://json.schemastore.org/chart"] = "Chart.{yml,yaml}", - ["https://json.schemastore.org/dependabot-v2"] = ".github/dependabot.{yml,yaml}", - ["https://json.schemastore.org/gitlab-ci"] = "*gitlab-ci*.{yml,yaml}", - ["https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json"] = "*api*.{yml,yaml}", - ["https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"] = "docker-compose.{yml,yaml}", - ["https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json"] = "*flow*.{yml,yaml}" - }, - format = {enabled = false}, - validate = false, -- TODO: conflicts between Kubernetes resources and kustomization.yaml - completion = true, - hover = true - } - }, - flags = {debounce_text_changes = 150} - } - require"lsp_signature".setup({ - bind = true, -- This is mandatory, otherwise border config won't get registered. - floating_window = true, -- show hint in a floating window, set to false for virtual text only mode - doc_lines = 2, -- Set to 0 for not showing doc - hint_prefix = "🐼 ", - -- use_lspsaga = false, -- set to true if you want to use lspsaga popup - handler_opts = { - border = "shadow" -- double, single, shadow, none - } - }) -end - --- Test source-kit -require'lspconfig'.sourcekit.setup{} - diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/lualine.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/lualine.lua deleted file mode 100644 index 1283b80..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/lualine.lua +++ /dev/null @@ -1,114 +0,0 @@ -local colors = { - red = '#ca1243', - grey = '#a0a1a7', - black = '#383a42', - white = '#f3f3f3', - light_green = '#83a598', - orange = '#fe8019', - green = '#8ec07c', -} - -local empty = require('lualine.component'):extend() -function empty:draw(default_highlight) - self.status = '' - self.applied_separator = '' - self:apply_highlights(default_highlight) - self:apply_section_separators() - return self.status -end - --- Put proper separators and gaps between components in sections -local function process_sections(sections) - for name, section in pairs(sections) do - local left = name:sub(9, 10) < 'x' - for pos = 1, name ~= 'lualine_z' and #section or #section - 1 do - table.insert(section, pos * 2, { empty, color = { fg = colors.white, bg = colors.white } }) - end - for id, comp in ipairs(section) do - if type(comp) ~= 'table' then - comp = { comp } - section[id] = comp - end - comp.separator = left and { right = '' } or { left = '' } - end - end - return sections -end - -local function search_result() - if vim.v.hlsearch == 0 then - return '' - end - local last_search = vim.fn.getreg '/' - if not last_search or last_search == '' then - return '' - end - local searchcount = vim.fn.searchcount { maxcount = 9999 } - return last_search .. '(' .. searchcount.current .. '/' .. searchcount.total .. ')' -end - -local function modified() - if vim.bo.modified then - return '+' - elseif vim.bo.modifiable == false or vim.bo.readonly == true then - return '-' - end - return '' -end - -require('lualine').setup { - options = { - theme = 'auto', - component_separators = '', - section_separators = { left = '', right = '' }, - }, - sections = process_sections { - lualine_a = { 'mode' }, - lualine_b = { - 'branch', - 'diff', - { - 'diagnostics', - source = { 'nvim' }, - sections = { 'error' }, - diagnostics_color = { error = { bg = colors.red, fg = colors.white } }, - }, - { - 'diagnostics', - source = { 'nvim' }, - sections = { 'warn' }, - diagnostics_color = { warn = { bg = colors.orange, fg = colors.white } }, - }, - { 'filename', file_status = false, path = 1 }, - { modified, color = { bg = colors.red } }, - { - '%w', - cond = function() - return vim.wo.previewwindow - end, - }, - { - '%r', - cond = function() - return vim.bo.readonly - end, - }, - { - '%q', - cond = function() - return vim.bo.buftype == 'quickfix' - end, - }, - }, - lualine_c = {}, - lualine_x = {}, - lualine_y = { search_result, 'filetype' }, - lualine_z = { '%l:%c', '%p%%/%L' }, - }, - inactive_sections = { - lualine_c = { '%f %y %m' }, - lualine_x = {}, - }, - tabline = {}, - extensions = {"nvim-tree"} -} diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/neogit.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/neogit.lua deleted file mode 100644 index ff13f66..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/neogit.lua +++ /dev/null @@ -1,32 +0,0 @@ -local neogit = require('neogit') ---neogit.config.use_magit_keybindings() - -neogit.setup { -disable_signs = false, - disable_context_highlighting = false, - disable_commit_confirmation = true, - -- customize displayed signs - signs = { - -- { CLOSED, OPENED } - section = { ">", "v" }, - item = { ">", "v" }, - hunk = { "", "" }, - }, - integrations = { - diffview = true - }, - -- override/add mappings - mappings = { - -- modify status buffer mappings - status = { - -- Adds a mapping with "B" as key that does the "BranchPopup" command - ["B"] = "BranchPopup", - ["C"] = "CommitPopup", - -- ["P"] = "PullPopup", - ["S"] = "Stage", - -- ["D"] = "Discard", - -- Removes the default mapping of "s" - -- ["s"] = "", - } - } -} diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/nightfox.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/nightfox.lua deleted file mode 100644 index 6f861bd..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/nightfox.lua +++ /dev/null @@ -1,27 +0,0 @@ -local nightfox = require('nightfox') - --- This function set the configuration of nightfox. If a value is not passed in the setup function --- it will be taken from the default configuration above -nightfox.setup({ - fox = "terafox", -- change the colorscheme to use terafox - styles = { - comments = "italic", -- change style of comments to be italic - keywords = "bold", -- change style of keywords to be bold - functions = "italic,bold" -- styles can be a comma separated list - }, - inverse = { - match_paren = true, -- inverse the highlighting of match_parens - }, - colors = { - red = "#FF000", -- Override the red color for MAX POWER - --bg_alt = "#000000", - }, - hlgroups = { - TSPunctDelimiter = { fg = "${red}" }, -- Override a highlight group with the color red - LspCodeLens = { bg = "#000000", style = "italic" }, - } -}) - --- Load the configuration set above and apply the colorscheme -nightfox.load() -vim.cmd("colorscheme terafox") diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/nvim-tree.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/nvim-tree.lua deleted file mode 100644 index c36c90c..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/nvim-tree.lua +++ /dev/null @@ -1,162 +0,0 @@ -local g = vim.g - -g.nvim_tree_indent_markers = 1 -- 0 by default, this option shows indent markers when folders are open -g.nvim_tree_git_hl = 1 -- 0 by default, will enable file highlight for git attributes (can be used without the icons). -g.nvim_tree_highlight_opened_files = 1 -- 0 by default, will enable folder and file icon highlight for opened files/directories. -g.nvim_tree_root_folder_modifier = ":~" -- This is the default. See :help filename-modifiers for more options -g.nvim_tree_add_trailing = 1 -- 0 by default, append a trailing slash to folder names -g.nvim_tree_group_empty = 1 -- 0 by default, compact folders that only contain a single folder into one node in the file tree -g.nvim_tree_disable_window_picker = 1 -- 0 by default, will disable the window picker. -g.nvim_tree_icon_padding = " " -- one space by default, used for rendering the space between the icon and the filename. Use with caution, it could break rendering if you set an empty string depending on your font. -g.nvim_tree_symlink_arrow = " >> " -- defaults to ' ➛ '. used as a separator between symlinks' source and target. -g.nvim_tree_respect_buf_cwd = 1 -- 0 by default, will change cwd of nvim-tree to that of new buffer's when opening nvim-tree. - -g.nvim_tree_show_icons = {git = 1, folders = 1, files = 1, folder_arrows = 1} -g.nvim_tree_icons = { - default = "", - symlink = "", - git = { - unstaged = "", - staged = "S", - unmerged = "", - renamed = "➜", - deleted = "", - untracked = "U", - ignored = "◌" - }, - folder = { - default = "", - open = "", - empty = "", - empty_open = "", - symlink = "" - } -} -g.loaded_netrw = 1 -g.loaded_netrwPlugin = 1 -local tree_cb = require("nvim-tree.config").nvim_tree_callback - --- This function has been generated from your --- view.mappings.list --- view.mappings.custom_only --- remove_keymaps --- --- You should add this function to your configuration and set on_attach = on_attach in the nvim-tree setup call. --- --- Although care was taken to ensure correctness and completeness, your review is required. --- --- Please check for the following issues in auto generated content: --- "Mappings removed" is as you expect --- "Mappings migrated" are correct --- --- Please see https://github.com/nvim-tree/nvim-tree.lua/wiki/Migrating-To-on_attach for assistance in migrating. --- - -local function on_attach(bufnr) - local api = require('nvim-tree.api') - - local function opts(desc) - return { desc = 'nvim-tree: ' .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true } - end - - - -- Default mappings not inserted as: - -- remove_keymaps = true - -- OR - -- view.mappings.custom_only = true - - - -- Mappings migrated from view.mappings.list - -- - -- You will need to insert "your code goes here" for any mappings with a custom action_cb - vim.keymap.set('n', '', api.node.open.edit, opts('Open')) - vim.keymap.set('n', 'o', api.node.open.edit, opts('Open')) - vim.keymap.set('n', '<2-LeftMouse>', api.node.open.edit, opts('Open')) - vim.keymap.set('n', '<2-RightMouse>', api.tree.change_root_to_node, opts('CD')) - vim.keymap.set('n', '', api.tree.change_root_to_node, opts('CD')) - vim.keymap.set('n', '', api.node.open.vertical, opts('Open: Vertical Split')) - vim.keymap.set('n', '', api.node.open.horizontal, opts('Open: Horizontal Split')) - vim.keymap.set('n', '', api.node.open.tab, opts('Open: New Tab')) - vim.keymap.set('n', '<', api.node.navigate.sibling.prev, opts('Previous Sibling')) - vim.keymap.set('n', '>', api.node.navigate.sibling.next, opts('Next Sibling')) - vim.keymap.set('n', 'P', api.node.navigate.parent, opts('Parent Directory')) - vim.keymap.set('n', '', api.node.navigate.parent_close, opts('Close Directory')) - vim.keymap.set('n', '', api.node.navigate.parent_close, opts('Close Directory')) - vim.keymap.set('n', '', api.node.open.preview, opts('Open Preview')) - vim.keymap.set('n', 'K', api.node.navigate.sibling.first, opts('First Sibling')) - vim.keymap.set('n', 'J', api.node.navigate.sibling.last, opts('Last Sibling')) - vim.keymap.set('n', 'H', api.tree.toggle_hidden_filter, opts('Toggle Dotfiles')) - vim.keymap.set('n', 'R', api.tree.reload, opts('Refresh')) - vim.keymap.set('n', 'a', api.fs.create, opts('Create')) - vim.keymap.set('n', 'd', api.fs.remove, opts('Delete')) - vim.keymap.set('n', 'r', api.fs.rename, opts('Rename')) - vim.keymap.set('n', '', api.fs.rename_sub, opts('Rename: Omit Filename')) - vim.keymap.set('n', 'x', api.fs.cut, opts('Cut')) - vim.keymap.set('n', 'c', api.fs.copy.node, opts('Copy')) - vim.keymap.set('n', 'p', api.fs.paste, opts('Paste')) - vim.keymap.set('n', 'y', api.fs.copy.filename, opts('Copy Name')) - vim.keymap.set('n', 'Y', api.fs.copy.relative_path, opts('Copy Relative Path')) - vim.keymap.set('n', 'gy', api.fs.copy.absolute_path, opts('Copy Absolute Path')) - vim.keymap.set('n', '[c', api.node.navigate.git.prev, opts('Prev Git')) - vim.keymap.set('n', ']c', api.node.navigate.git.next, opts('Next Git')) - vim.keymap.set('n', '-', api.tree.change_root_to_parent, opts('Up')) - vim.keymap.set('n', 's', api.node.run.system, opts('Run System')) - vim.keymap.set('n', 'q', api.tree.close, opts('Close')) - vim.keymap.set('n', 'g?', api.tree.toggle_help, opts('Help')) -end - -require("nvim-tree").setup { - -- disables netrw completely - disable_netrw = true, - -- hijack netrw window on startup - hijack_netrw = true, - -- closes neovim automatically when the tree is the last **WINDOW** in the view - --auto_close = true, - -- opens the tree when changing/opening a new tab if the tree wasn't previously opened - open_on_tab = true, - -- hijack the cursor in the tree to put it at the start of the filename - hijack_cursor = true, - -- updates the root directory of the tree on `DirChanged` (when your run `:cd` usually) - update_cwd = true, - -- this option hides files and folders starting with a dot `.` - --hide_dotfiles = true, - -- show lsp diagnostics in the signcolumn - diagnostics = { - enable = true, - icons = {hint = "", info = "", warning = "", error = ""} - }, - git = {ignore = true}, - -- update the focused file on `BufEnter`, un-collapses the folders recursively until it finds the file - update_focused_file = { - -- enables the feature - enable = true, - -- update the root directory of the tree to the one of the folder containing the file if the file is not under the current root directory - -- only relevant when `update_focused_file.enable` is true - update_cwd = true, - -- list of buffer names / filetypes that will not update the cwd if the file isn't found under the current root directory - -- only relevant when `update_focused_file.update_cwd` is true and `update_focused_file.enable` is true - ignore_list = {".git", "node_modules", ".cache"} - }, - -- configuration options for the system open command (`s` in the tree by default) - system_open = { - -- the command to run this, leaving nil should work in most cases - cmd = nil, - -- the command arguments as a list - args = {} - }, - - trash = {cmd = "trash-put"}, - - view = { - -- show line numbers in tree disabled - number = false, - relativenumber = false, - -- width of the window, can be either a number (columns) or a string in `%` - width = 30, - -- side of the tree, can be one of 'left' | 'right' | 'top' | 'bottom' - side = "left", - -- if true the tree will resize itself after opening a file - --auto_resize = true, - }, - on_attach = on_attach -} diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/telescope.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/telescope.lua deleted file mode 100644 index bf02448..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/telescope.lua +++ /dev/null @@ -1,66 +0,0 @@ -local actions = require('telescope.actions') -local telescope = require('telescope') - ---telescope.load_extension('projects') -telescope.load_extension('fzf') - -telescope.setup{ - defaults = { - file_ignore_patterns = {"node_modules", "%.jpg", "%.png"}, - vimgrep_arguments = { - 'rg', - '--follow', - '--color=never', - '--no-heading', - '--with-filename', - '--line-number', - '--column', - '--smart-case' - }, - mappings = { - i = { - -- Close on first esc instead of gonig to normal mode - [""] = actions.close, - [""] = actions.send_selected_to_qflist, - [""] = actions.send_to_qflist, - [""] = actions.toggle_selection + actions.move_selection_next, - [""] = actions.toggle_selection + actions.move_selection_previous, - }, - n = { - [""] = actions.toggle_selection + actions.move_selection_next, - [""] = actions.toggle_selection + actions.move_selection_previous, - [""] = actions.send_selected_to_qflist, - [""] = actions.send_to_qflist, - }, - }, - prompt_prefix = " ", - selection_caret = " ", - entry_prefix = " ", - initial_mode = "insert", - selection_strategy = "reset", - sorting_strategy = "descending", - layout_strategy = "flex", - layout_config = { - width = 0.75, - prompt_position = "bottom", - preview_cutoff = 120, - horizontal = { mirror = false }, - vertical = { mirror = true }, - }, - file_sorter = require'telescope.sorters'.get_fuzzy_file, - generic_sorter = require'telescope.sorters'.get_generic_fuzzy_sorter, - -- path_display = true, -- strange behaviour not showing the files in result window - winblend = 0, - border = {}, - borderchars = { '─', '│', '─', '│', '╭', '╮', '╯', '╰' }, - color_devicons = true, - use_less = true, - set_env = { ['COLORTERM'] = 'truecolor' }, -- default = nil, - file_previewer = require'telescope.previewers'.vim_buffer_cat.new, - grep_previewer = require'telescope.previewers'.vim_buffer_vimgrep.new, - qflist_previewer = require'telescope.previewers'.vim_buffer_qflist.new, - - -- Developer configurations: Not meant for general override - buffer_previewer_maker = require'telescope.previewers'.buffer_previewer_maker - } -} diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/treesitter.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/treesitter.lua deleted file mode 100644 index 8982ff0..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/treesitter.lua +++ /dev/null @@ -1,47 +0,0 @@ -require"nvim-treesitter.configs".setup { - ensure_installed = { - "bash", "cmake", "dockerfile", "go", "hcl", "html", "java", - "javascript", "json", "latex", "ledger", "lua", "python", "toml", "yaml" - }, -- one of "all", "maintained" (parsers with maintainers), or a list of languages - ignore_install = {}, -- List of parsers to ignore installing - highlight = { - enable = true, -- false will disable the whole extension - disable = {} -- list of language that will be disabled - }, - incremental_selection = { - enable = true, - keymaps = { - init_selection = "", - scope_incremental = "", - node_incremental = "", - node_decremental = "" - } - }, - indent = {enable = true}, - autopairs = {{enable = true}}, - textobjects = { - select = { - enable = true, - -- Automatically jump forward to textobj, similar to targets.vim - lookahead = true, - keymaps = { - -- You can use the capture groups defined in textobjects.scm - ["af"] = "@function.outer", - ["if"] = "@function.inner", - ["ac"] = "@class.outer", - ["ic"] = "@class.inner", - ["al"] = "@loop.outer", - ["il"] = "@loop.inner", - ["ib"] = "@block.inner", - ["ab"] = "@block.outer", - ["ir"] = "@parameter.inner", - ["ar"] = "@parameter.outer" - } - } - }, - rainbow = { - enable = true, - extended_mode = true, -- Highlight also non-parentheses delimiters, boolean or table: lang -> boolean - max_file_lines = 2000 -- Do not enable for files with more than specified lines - } -} diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/vsnip.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/vsnip.lua deleted file mode 100644 index d177aa1..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/vsnip.lua +++ /dev/null @@ -1,2 +0,0 @@ -local g = vim.g -g.vsnip_snippet_dir = os.getenv('HOME') .. '/.config/nvim/snippets/' diff --git a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/which.lua b/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/which.lua deleted file mode 100644 index a0db3ad..0000000 --- a/nvim/m-housh/lua/plugin-config/tmp-old-packer-configs/which.lua +++ /dev/null @@ -1,111 +0,0 @@ ---isable v --- local presets = require("which-key.plugins.presets") --- presets.operators["v"] = nil -require("which-key").setup { - plugins = { - marks = true, -- shows a list of your marks on ' and ` - registers = true, -- shows your registers on " in NORMAL or in INSERT mode - spelling = { - enabled = true, -- enabling this will show WhichKey when pressing z= to select spelling suggestions - suggestions = 20 -- how many suggestions should be shown in the list? - }, - -- the presets plugin, adds help for a bunch of default keybindings in Neovim - -- No actual key bindings are created - presets = { - operators = true, -- adds help for operators like d, y, ... and registers them for motion / text object completion - motions = true, -- adds help for motions - text_objects = true, -- help for text objects triggered after entering an operator - windows = true, -- default bindings on - nav = true, -- misc bindings to work with windows - z = true, -- bindings for folds, spelling and others prefixed with z - g = true -- bindings for prefixed with g - } - }, - -- add operators that will trigger motion and text object completion - -- to enable all native operators, set the preset / operators plugin above - operators = {gc = "Comments"}, - key_labels = { - -- override the label used to display some keys. It doesn't effect WK in any other way. - -- For example: - -- [""] = "SPC", - -- [""] = "RET", - -- [""] = "TAB", - }, - icons = { - breadcrumb = "»", -- symbol used in the command line area that shows your active key combo - separator = "➜", -- symbol used between a key and it's label - group = "+" -- symbol prepended to a group - }, - window = { - border = "none", -- none, single, double, shadow - position = "bottom", -- bottom, top - margin = {1, 0, 1, 0}, -- extra window margin [top, right, bottom, left] - padding = {2, 2, 2, 2} -- extra window padding [top, right, bottom, left] - }, - layout = { - height = {min = 4, max = 25}, -- min and max height of the columns - width = {min = 20, max = 50}, -- min and max width of the columns - spacing = 3, -- spacing between columns - align = "left" -- align columns left, center or right - }, - ignore_missing = false, -- enable this to hide mappings for which you didn't specify a label - hidden = { - "", "", "", "", "", "call", "lua", "require", - "^:", "^ " - }, -- hide mapping boilerplate - show_help = true, -- show help message on the command line when the popup is visible - triggers = "auto", -- automatically setup triggers - -- triggers = {""} -- or specify a list manually - triggers_blacklist = { - -- list of mode / prefixes that should never be hooked by WhichKey - -- this is mostly relevant for key maps that start with a native binding - -- most people should not need to change this - i = {"j", "k"}, - v = {"j", "k"} - } - -} -local wk = require("which-key") -default_options = {noremap = true, silent = true} - --- register non leader based mappings ---wk.register({ga = {"(EasyAlign)", "Align", mode = "x"}}) - --- Register all leader based mappings -local wk = require("which-key") --- As an example, we will create the following mappings: --- * ff find files --- * fr show recent files --- * fb Foobar --- we'll document: --- * fn new file --- * fe edit file --- and hide 1 -wk.register({ - [""] = { - b = { - name = "Buffers", - b = { - "lua require'telescope.builtin'.buffers({ sort_mru = true, ignore_current_buffer = true })", - "Find buffer" - } - }, - g = { - name = "Git", - c = { "Neogit Commit", "Git Commit" }, - g = { "Neogit", "Open NeoGit" }, - p = { " Neogit Push" } - }, - f = { - name = "File", - f = { "Telescope find_files", "Find File" }, - r = { "Telescope oldfiles", "Open Recent File" }, - n = { "enew", "New File" }, - }, - }, - s = { - name = "Search", - c = {"Telescope colorscheme", "Colorscheme" } - } - -}) diff --git a/nvim/m-housh/lua/plugin-config/toggle-term.lua b/nvim/m-housh/lua/plugin-config/toggle-term.lua deleted file mode 100644 index 70e906a..0000000 --- a/nvim/m-housh/lua/plugin-config/toggle-term.lua +++ /dev/null @@ -1,25 +0,0 @@ -return { - 'akinsho/toggleterm.nvim', - enable = true, - opts = { - size = 20, - open_mapping = [[]], - hide_numbers = true, - shade_terminals = true, - shading_factor = 2, - start_in_insert = true, - insert_mappings = true, - persist_size = true, - direction = "float", - close_on_exit = true, - shell = vim.o.shell, - float_opts = { - border = "curved", - winblend = 0, - highlights = { - border = "Normal", - background = "Normal", - }, - }, - } -} diff --git a/nvim/m-housh/lua/plugin-config/which-key.lua b/nvim/m-housh/lua/plugin-config/which-key.lua deleted file mode 100644 index 3edd7ba..0000000 --- a/nvim/m-housh/lua/plugin-config/which-key.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - "folke/which-key.nvim", - event = "VeryLazy", - init = function() - vim.o.timeout = true - vim.o.timeoutlen = 300 - end, -}