From 4b6bc84105b224bbdc858b43fe3f0948d91703ae Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sun, 3 Sep 2023 23:58:28 +0200 Subject: [PATCH] Remove unused --- lua/config/catppuccin.lua | 76 ---------------- lua/config/darkplus.lua | 17 ---- lua/config/diffview.lua | 121 ------------------------- lua/config/edge.lua | 33 ------- lua/config/galaxyline.lua | 19 ---- lua/config/github-nvim-theme.lua | 61 ------------- lua/config/gruvbox.lua | 19 ---- lua/config/indent-blankline.lua | 24 ----- lua/config/kanagawa.lua | 34 ------- lua/config/lazygit.lua | 21 ----- lua/config/material.lua | 54 ----------- lua/config/nightfox.lua | 67 -------------- lua/config/nightfox_lualine_custom.lua | 47 ---------- lua/config/nord.lua | 22 ----- lua/config/nvim-comment.lua | 32 ------- lua/config/onedark.lua | 49 ---------- lua/config/sonokai.lua | 20 ---- lua/config/supertab.lua | 17 ---- lua/config/symbols-outline.lua | 69 -------------- lua/config/tokyonight.lua | 26 ------ lua/config/ultisnips.lua | 27 ------ lua/config/vim-code-dark.lua | 17 ---- lua/config/vista.lua | 20 ---- 23 files changed, 892 deletions(-) delete mode 100644 lua/config/catppuccin.lua delete mode 100644 lua/config/darkplus.lua delete mode 100644 lua/config/diffview.lua delete mode 100644 lua/config/edge.lua delete mode 100644 lua/config/galaxyline.lua delete mode 100644 lua/config/github-nvim-theme.lua delete mode 100644 lua/config/gruvbox.lua delete mode 100644 lua/config/indent-blankline.lua delete mode 100644 lua/config/kanagawa.lua delete mode 100644 lua/config/lazygit.lua delete mode 100644 lua/config/material.lua delete mode 100644 lua/config/nightfox.lua delete mode 100644 lua/config/nightfox_lualine_custom.lua delete mode 100644 lua/config/nord.lua delete mode 100644 lua/config/nvim-comment.lua delete mode 100644 lua/config/onedark.lua delete mode 100644 lua/config/sonokai.lua delete mode 100644 lua/config/supertab.lua delete mode 100644 lua/config/symbols-outline.lua delete mode 100644 lua/config/tokyonight.lua delete mode 100644 lua/config/ultisnips.lua delete mode 100644 lua/config/vim-code-dark.lua delete mode 100644 lua/config/vista.lua diff --git a/lua/config/catppuccin.lua b/lua/config/catppuccin.lua deleted file mode 100644 index cb96c32..0000000 --- a/lua/config/catppuccin.lua +++ /dev/null @@ -1,76 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -local colors = require("catppuccin.palettes").get_palette() -- fetch colors from g:catppuccin_flavour palette -vim.g.catppuccin_flavour = "mocha" -- latte, frappe, macchiato, mocha -require("catppuccin").setup({ - compile_path = vim.fn.stdpath("cache") .. "/catppuccin", - transparent_background = false, - term_colors = false, - dim_inactive = { - enabled = false, - shade = "dark", - percentage = 0.15, - }, - styles = { - comments = {}, - conditionals = {}, - loops = {}, - functions = {}, - keywords = {}, - strings = {}, - variables = {}, - numbers = {}, - booleans = {}, - properties = {}, - types = {}, - operators = {}, - }, - integrations = { - cmp = true, - gitsigns = true, - nvimtree = true, - telescope = true, - treesitter = true, - aerial = true, - native_lsp = { - enabled = true, - virtual_text = { - errors = { "italic", }, - hints = { "italic", }, - warnings = { "italic", }, - information = { "italic", }, - }, - underlines = { - errors = { "underline", }, - hints = { "underline", }, - warnings = { "underline", }, - information = { "underline", }, - }, - }, - -- For more plugins integrations please see https://github.com/catppuccin/nvim#integrations - }, - color_overrides = {}, - custom_highlights = { - -- Comment = { fg = colors.flamingo }, - -- TSConstBuiltin = { fg = colors.peach, style = {} }, - -- TSConstant = { fg = colors.sky }, - -- TSComment = { fg = colors.surface2, style = { "italic" } } - ["@parameter"] = { style = {}, }, - }, -}) - -vim.cmd("colorscheme catppuccin") diff --git a/lua/config/darkplus.lua b/lua/config/darkplus.lua deleted file mode 100644 index 4b578fd..0000000 --- a/lua/config/darkplus.lua +++ /dev/null @@ -1,17 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -vim.cmd("colorscheme darkplus") diff --git a/lua/config/diffview.lua b/lua/config/diffview.lua deleted file mode 100644 index 79c5f3e..0000000 --- a/lua/config/diffview.lua +++ /dev/null @@ -1,121 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -local cb = require "diffview.config".diffview_callback - -require "diffview".setup { - diff_binaries = false, -- Show diffs for binaries - enhanced_diff_hl = true, -- See ':h diffview-config-enhanced_diff_hl' - use_icons = true, -- Requires nvim-web-devicons - icons = { -- Only applies when use_icons is true. - folder_closed = "", - folder_open = "", - }, - signs = { - fold_closed = "", - fold_open = "", - }, - file_panel = { - position = "left", -- One of 'left', 'right', 'top', 'bottom' - width = 35, -- Only applies when position is 'left' or 'right' - height = 10, -- Only applies when position is 'top' or 'bottom' - listing_style = "tree", -- One of 'list' or 'tree' - tree_options = { -- Only applies when listing_style is 'tree' - flatten_dirs = true, -- Flatten dirs that only contain one single dir - folder_statuses = "only_folded", -- One of 'never', 'only_folded' or 'always'. - }, - }, - file_history_panel = { - position = "bottom", - width = 35, - height = 16, - log_options = { - max_count = 256, -- Limit the number of commits - follow = false, -- Follow renames (only for single file) - all = false, -- Include all refs under 'refs/' including HEAD - merges = false, -- List only merge commits - no_merges = false, -- List no merge commits - reverse = false, -- List commits in reverse order - }, - }, - default_args = { -- Default args prepended to the arg-list for the listed commands - DiffviewOpen = {}, - DiffviewFileHistory = {}, - }, - hooks = {}, -- See ':h diffview-config-hooks' - 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 - ["gf"] = cb("goto_file"), -- Open the file in a new split in previous tabpage - [""] = cb("goto_file_split"), -- Open the file in a new split - ["gf"] = cb("goto_file_tab"), -- Open the file in a new tabpage - ["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. - ["X"] = cb("restore_entry"), -- Restore entry to the state on the left side. - ["R"] = cb("refresh_files"), -- Update stats and entries in the file list. - [""] = cb("select_next_entry"), - [""] = cb("select_prev_entry"), - ["gf"] = cb("goto_file"), - [""] = cb("goto_file_split"), - ["gf"] = cb("goto_file_tab"), - ["i"] = cb("listing_style"), -- Toggle between 'list' and 'tree' views - ["f"] = cb("toggle_flatten_dirs"), -- Flatten empty subdirectories in tree listing style. - ["e"] = cb("focus_files"), - ["b"] = cb("toggle_files"), - }, - file_history_panel = { - ["g!"] = cb("options"), -- Open the option panel - [""] = cb("open_in_diffview"), -- Open the entry under the cursor in a diffview - ["y"] = cb("copy_hash"), -- Copy the commit hash of the entry under the cursor - ["zR"] = cb("open_all_folds"), - ["zM"] = cb("close_all_folds"), - ["j"] = cb("next_entry"), - [""] = cb("next_entry"), - ["k"] = cb("prev_entry"), - [""] = cb("prev_entry"), - [""] = cb("select_entry"), - ["o"] = cb("select_entry"), - ["<2-LeftMouse>"] = cb("select_entry"), - [""] = cb("select_next_entry"), - [""] = cb("select_prev_entry"), - ["gf"] = cb("goto_file"), - [""] = cb("goto_file_split"), - ["gf"] = cb("goto_file_tab"), - ["e"] = cb("focus_files"), - ["b"] = cb("toggle_files"), - }, - option_panel = { - [""] = cb("select"), - ["q"] = cb("close"), - }, - }, -} diff --git a/lua/config/edge.lua b/lua/config/edge.lua deleted file mode 100644 index 97121d1..0000000 --- a/lua/config/edge.lua +++ /dev/null @@ -1,33 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -vim.g.edge_style = "default" -vim.g.edge_disable_italic_comment = 0 -vim.g.edge_enable_italic = 0 -vim.g.edge_cursor = "auto" -vim.g.edge_transparent_background = 0 -vim.g.edge_menu_selection_background = "blue" -vim.g.edge_spell_foreground = "none" -vim.g.edge_show_eob = 1 -vim.g.edge_diagnostic_text_highlight = 0 -vim.g.edge_diagnostic_line_highlight = 1 -vim.g.edge_diagnostic_virtual_text = "grey" -vim.g.edge_current_word = "grey background" -vim.g.edge_disable_terminal_colors = 0 -vim.g.edge_lightline_disable_bold = 0 -vim.g.edge_better_performance = 1 - -vim.fn.execute("colorscheme edge") diff --git a/lua/config/galaxyline.lua b/lua/config/galaxyline.lua deleted file mode 100644 index 0b815a4..0000000 --- a/lua/config/galaxyline.lua +++ /dev/null @@ -1,19 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -local gl = require("galaxyline") - --- maybe some other day diff --git a/lua/config/github-nvim-theme.lua b/lua/config/github-nvim-theme.lua deleted file mode 100644 index dffe882..0000000 --- a/lua/config/github-nvim-theme.lua +++ /dev/null @@ -1,61 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -require("github-theme").setup( - { - theme_style = "dimmed", - transparent = false, - hide_end_of_buffer = false, - hide_inactive_statusline = false, - dark_float = true, - dev = false, - - -- styles - comment_style = "italic", - function_style = "NONE", - keyword_style = "NONE", - msg_area_style = "NONE", - variable_style = "NONE", - - -- sidebars - sidebars = { - "qf", - "vista_kind", - "terminal", - "packer", - "aerial", - "NvimTree", - }, - - -- Change the "hint" color to the "orange" color, and make the "error" color bright red - -- colors = { hint = 'orange', error = '#ff0000' }, - - -- Overwrite the highlight groups - -- overrides = function(c) - -- return { - -- htmlTag = { - -- fg = c.red, - -- bg = '#282c34', - -- sp = c.hint, - -- style = 'underline' - -- }, - -- DiagnosticHint = { link = 'LspDiagnosticsDefaultHint' }, - -- -- this will remove the highlight groups - -- TSField = {} - -- } - -- end - } -) diff --git a/lua/config/gruvbox.lua b/lua/config/gruvbox.lua deleted file mode 100644 index e17be07..0000000 --- a/lua/config/gruvbox.lua +++ /dev/null @@ -1,19 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -vim.opt.termguicolors = true -vim.o.background = "dark" -- or "light" for light mode -vim.fn.execute("colorscheme gruvbox") diff --git a/lua/config/indent-blankline.lua b/lua/config/indent-blankline.lua deleted file mode 100644 index fd46f0e..0000000 --- a/lua/config/indent-blankline.lua +++ /dev/null @@ -1,24 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -require("indent_blankline").setup({ - show_current_context = true, - show_current_context_start = false, - use_treesitter = true, - show_first_indent_level = true, - char = "│", - -- context_char = '┃', -}) diff --git a/lua/config/kanagawa.lua b/lua/config/kanagawa.lua deleted file mode 100644 index f728550..0000000 --- a/lua/config/kanagawa.lua +++ /dev/null @@ -1,34 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -require("kanagawa").setup({ - undercurl = true, -- enable undercurls - commentStyle = { italic = true, }, - functionStyle = {}, - keywordStyle = {}, - statementStyle = { bold = true, }, - typeStyle = {}, - variablebuiltinStyle = {}, - specialReturn = true, -- special highlight for the return keyword - specialException = true, -- special highlight for exception handling keywords - transparent = false, -- do not set background color - dimInactive = true, -- dim inactive window `:h hl-NormalNC` - globalStatus = true, -- adjust window separators highlight for laststatus=3 - colors = {}, - overrides = {}, -}) - -vim.cmd("colorscheme kanagawa") diff --git a/lua/config/lazygit.lua b/lua/config/lazygit.lua deleted file mode 100644 index 757e1bc..0000000 --- a/lua/config/lazygit.lua +++ /dev/null @@ -1,21 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -vim.g.lazygit_floating_window_winblend = 0 -- transparency of floating window -vim.g.lazygit_floating_window_scaling_factor = 0.9 -- scaling factor for floating window -vim.g.lazygit_floating_window_corner_chars = { "╭", "╮", "╰", "╯", } -- customize lazygit popup window corner characters -vim.g.lazygit_floating_window_use_plenary = 0 -- use plenary.nvim to manage floating window if available -vim.g.lazygit_use_neovim_remote = 1 -- fallback to 0 if neovim-remote is not installed diff --git a/lua/config/material.lua b/lua/config/material.lua deleted file mode 100644 index fb12233..0000000 --- a/lua/config/material.lua +++ /dev/null @@ -1,54 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -require("material").setup({ - contrast = { - sidebars = false, -- Enable contrast for sidebar-like windows ( for example Nvim-Tree ) - floating_windows = false, -- Enable contrast for floating windows - line_numbers = false, -- Enable contrast background for line numbers - sign_column = false, -- Enable contrast background for the sign column - cursor_line = false, -- Enable darker background for the cursor line - non_current_windows = false, -- Enable darker background for non-current windows - popup_menu = false, -- Enable lighter background for the popup menu - }, - italics = { - comments = false, -- Enable italic comments - keywords = false, -- Enable italic keywords - functions = false, -- Enable italic functions - strings = false, -- Enable italic strings - variables = false, -- Enable italic variables - }, - contrast_filetypes = { -- Specify which filetypes get the contrasted (darker) background - "terminal", -- Darker terminal background - "packer", -- Darker packer background - "qf", -- Darker qf list background - }, - high_visibility = { - lighter = false, -- Enable higher contrast text for lighter style - darker = false, -- Enable higher contrast text for darker style - }, - disable = { - borders = false, -- Disable borders between verticaly split windows - background = false, -- Prevent the theme from setting the background (NeoVim then uses your teminal background) - term_colors = false, -- Prevent the theme from setting terminal colors - eob_lines = false, -- Hide the end-of-buffer lines - }, - lualine_style = "default", -- Lualine style ( can be 'stealth' or 'default' ) - async_loading = true, -- Load parts of the theme asyncronously for faster startup (turned on by default) - custom_highlights = {}, -- Overwrite highlights with your own -}) -vim.g.material_style = "deep ocean" -vim.fn.execute("colorscheme material") diff --git a/lua/config/nightfox.lua b/lua/config/nightfox.lua deleted file mode 100644 index 211b33f..0000000 --- a/lua/config/nightfox.lua +++ /dev/null @@ -1,67 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -require("nightfox").setup({ - options = { - -- Compiled file's destination location - compile_path = vim.fn.stdpath("cache") .. "/nightfox", - compile_file_suffix = "_compiled", -- Compiled file suffix - transparent = false, -- Disable setting background - terminal_colors = true, -- Set terminal colors (vim.g.terminal_color_*) used in `:terminal` - dim_inactive = false, -- Non focused panes set to alternative background - styles = { -- Style to be applied to different syntax groups - comments = "NONE", -- Value is any valid attr-list value `:help attr-list` - functions = "NONE", - keywords = "NONE", - numbers = "NONE", - strings = "NONE", - types = "NONE", - variables = "NONE", - }, - inverse = { -- Inverse highlight for different types - match_paren = false, - visual = false, - search = false, - }, - modules = { -- List of various plugins and additional options - cmp = true, - diagnostic = { - enable = true, - background = true, - }, - gitsigns = true, - native_lsp = true, - nvimtree = true, - telescope = true, - treesitter = true, - }, - }, - groups = { - all = { - -- By default nightfox links some groups together. `CursorColumn` is one of these groups. When overriding - -- Make sure `link` is cleared to `""` so that the link will be removed. - -- see https://github.com/EdenEast/nightfox.nvim/blob/main/lua/nightfox/group/editor.lua - Normal = { bg = "palette.bg0", link = "", }, - NormalNC = { bg = "palette.bg0", link = "", }, - NormalFloat = { bg = "palette.bg1", link = "", }, - CursorLine = { bg = "palette.bg1", link = "", }, - StatusLine = { bg = "palette.bg1", link = "", }, - StatusLineNC = { bg = "palette.bg1", link = "", }, - }, - }, -}) - -vim.cmd("colorscheme nightfox") diff --git a/lua/config/nightfox_lualine_custom.lua b/lua/config/nightfox_lualine_custom.lua deleted file mode 100644 index 549d029..0000000 --- a/lua/config/nightfox_lualine_custom.lua +++ /dev/null @@ -1,47 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -local Color = require("nightfox.lib.color") -local spec = require("nightfox.spec").load("nightfox") - -local pal = spec.pallet -local bg = Color.from_hex(spec.bg1) -local fg = spec.fg2 - -local function generate_mode(color, amount) - amount = amount or 0.3 - local fade = bg:blend(Color.from_hex(color), amount):to_css() - local b = bg:to_css() - local f = fg - - return { - a = { bg = color, fg = b, }, - b = { bg = fade, fg = f, }, - c = { bg = b, fg = f, }, - } -end - --- stylua: ignore -local nightfox = { - normal = generate_mode(pal.blue.base), - insert = generate_mode(pal.green.base), - command = generate_mode(pal.yellow.base), - visual = generate_mode(pal.magenta.base), - replace = generate_mode(pal.red.base), - inactive = generate_mode(spec.fg3), -} - -return nightfox diff --git a/lua/config/nord.lua b/lua/config/nord.lua deleted file mode 100644 index 0ec13d2..0000000 --- a/lua/config/nord.lua +++ /dev/null @@ -1,22 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -vim.g.nord_contrast = true -vim.g.nord_borders = false -vim.g.nord_disable_background = false -vim.g.nord_italic = false - -require("nord").set() diff --git a/lua/config/nvim-comment.lua b/lua/config/nvim-comment.lua deleted file mode 100644 index b0a29ff..0000000 --- a/lua/config/nvim-comment.lua +++ /dev/null @@ -1,32 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -require("nvim_comment").setup({ - -- Linters prefer comment and line to have a space in between markers - marker_padding = true, - -- should comment out empty or whitespace only lines - comment_empty = true, - -- Should key mappings be created - create_mappings = true, - -- Normal mode mapping left hand side - -- line_mapping = "cc", - -- Visual/Operator mapping left hand side - -- operator_mapping = "c", - -- Hook function to call before commenting takes place - hook = nil, -}) -vim.keymap.set("n", "c", ":CommentToggle") -vim.keymap.set("v", "c", ":'<, '>CommentToggle") diff --git a/lua/config/onedark.lua b/lua/config/onedark.lua deleted file mode 100644 index 5cf56d3..0000000 --- a/lua/config/onedark.lua +++ /dev/null @@ -1,49 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -require("onedark").setup { - -- Main options -- - style = "darker", -- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light' - transparent = false, -- Show/hide background - term_colors = true, -- Change terminal color as per the selected theme style - ending_tildes = true, -- Show the end-of-buffer tildes. By default they are hidden - -- toggle theme style --- - toggle_style_key = "ts", -- Default keybinding to toggle - toggle_style_list = { "dark", "darker", "cool", "deep", "warm", "warmer", "light", }, -- List of styles to toggle between - - -- Change code style --- - -- Options are italic, bold, underline, none - -- You can configure multiple style with comma seperated, For e.g., keywords = 'italic,bold' - code_style = { - comments = "italic", - keywords = "none", - functions = "none", - strings = "none", - variables = "none", - }, - - -- Custom Highlights -- - colors = {}, -- Override default colors - highlights = {}, -- Override highlight groups - - -- Plugins Config -- - diagnostics = { - darker = true, -- darker colors for diagnostic - undercurl = true, -- use undercurl instead of underline for diagnostics - background = true, -- use background color for virtual text - }, -} -require("onedark").load() diff --git a/lua/config/sonokai.lua b/lua/config/sonokai.lua deleted file mode 100644 index eb17fb0..0000000 --- a/lua/config/sonokai.lua +++ /dev/null @@ -1,20 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -vim.g.sonokai_style = "atlantis" -vim.g.sonokai_enable_italic = 1 -vim.g.sonokai_disable_italic_comment = 1 -vim.fn.execute("colorscheme sonokai") diff --git a/lua/config/supertab.lua b/lua/config/supertab.lua deleted file mode 100644 index f3b45dd..0000000 --- a/lua/config/supertab.lua +++ /dev/null @@ -1,17 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -vim.g.SuperTabDefaultCompletionType = "" diff --git a/lua/config/symbols-outline.lua b/lua/config/symbols-outline.lua deleted file mode 100644 index 8ae6be5..0000000 --- a/lua/config/symbols-outline.lua +++ /dev/null @@ -1,69 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -vim.g.symbols_outline = { - highlight_hovered_item = true, - show_guides = true, - auto_preview = true, - position = "left", - relative_width = true, - width = 25, - auto_close = false, - show_numbers = true, - show_relative_numbers = true, - show_symbol_details = true, - preview_bg_highlight = "Pmenu", - keymaps = { -- These keymaps can be a string or a table for multiple keys - close = { "", "q", }, - goto_location = "", - focus_location = "o", - hover_symbol = "", - toggle_preview = "K", - rename_symbol = "r", - code_actions = "a", - }, - lsp_blacklist = {}, - symbol_blacklist = {}, - symbols = { - File = { icon = "", hl = "TSURI", }, - Module = { icon = "", hl = "TSNamespace", }, - Namespace = { icon = "", hl = "TSNamespace", }, - Package = { icon = "", hl = "TSNamespace", }, - Class = { icon = "𝓒", hl = "TSType", }, - Method = { icon = "ƒ", hl = "TSMethod", }, - Property = { icon = "", hl = "TSMethod", }, - Field = { icon = "", hl = "TSField", }, - Constructor = { icon = "", hl = "TSConstructor", }, - Enum = { icon = "ℰ", hl = "TSType", }, - Interface = { icon = "ﰮ", hl = "TSType", }, - Function = { icon = "", hl = "TSFunction", }, - Variable = { icon = "", hl = "TSConstant", }, - Constant = { icon = "", hl = "TSConstant", }, - String = { icon = "𝓐", hl = "TSString", }, - Number = { icon = "#", hl = "TSNumber", }, - Boolean = { icon = "⊨", hl = "TSBoolean", }, - Array = { icon = "", hl = "TSConstant", }, - Object = { icon = "⦿", hl = "TSType", }, - Key = { icon = "🔐", hl = "TSType", }, - Null = { icon = "NULL", hl = "TSType", }, - EnumMember = { icon = "", hl = "TSField", }, - Struct = { icon = "𝓢", hl = "TSType", }, - Event = { icon = "🗲", hl = "TSType", }, - Operator = { icon = "+", hl = "TSOperator", }, - TypeParameter = { icon = "𝙏", hl = "TSParameter", }, - }, -} -vim.api.nvim_set_keymap("n", "o", ":SymbolsOutlineOpen", { noremap = true, silent = true, }) diff --git a/lua/config/tokyonight.lua b/lua/config/tokyonight.lua deleted file mode 100644 index c39c2dd..0000000 --- a/lua/config/tokyonight.lua +++ /dev/null @@ -1,26 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -vim.g.tokyonight_style = "night" -vim.g.tokyonight_terminal_colors = true -vim.g.tokyonight_italic_comments = true -vim.g.tokyonight_italic_keywords = true -vim.g.tokyonight_sidebars = { "packer", "terminal", } -vim.g.tokyonight_dark_sidebar = true -vim.g.tokyonight_dark_float = true -vim.g.tokyonight_lualine_bold = true - -vim.fn.execute("colorscheme tokyonight") diff --git a/lua/config/ultisnips.lua b/lua/config/ultisnips.lua deleted file mode 100644 index de2ea12..0000000 --- a/lua/config/ultisnips.lua +++ /dev/null @@ -1,27 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - --- Trigger configuration. You need to change this to something other than if you use one of the following: --- - https://github.com/Valloric/YouCompleteMe --- - https://github.com/nvim-lua/completion-nvim --- vim.g.UltiSnipsExpandTrigger="" --- vim.g.UltiSnipsJumpForwardTrigger="" --- vim.g.UltiSnipsJumpBackwardTrigger="" -vim.g.UltiSnipsExpandTrigger = "(ultisnips_expand)" -vim.g.UltiSnipsJumpForwardTrigger = "(ultisnips_jump_forward)" -vim.g.UltiSnipsJumpBackwardTrigger = "(ultisnips_jump_backward)" -vim.g.UltiSnipsListSnippets = "" -vim.g.UltiSnipsRemoveSelectModeMappings = 0 diff --git a/lua/config/vim-code-dark.lua b/lua/config/vim-code-dark.lua deleted file mode 100644 index 21e9e3a..0000000 --- a/lua/config/vim-code-dark.lua +++ /dev/null @@ -1,17 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -vim.cmd("colorscheme codedark") diff --git a/lua/config/vista.lua b/lua/config/vista.lua deleted file mode 100644 index b60cb82..0000000 --- a/lua/config/vista.lua +++ /dev/null @@ -1,20 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - -vim.g.vista_sidebar_position = "vertical topleft" - -vim.g.vista_icon_indent = { "╰─▸ ", "├─▸ ", } -vim.g.vista_default_executive = "nvim_lsp"