Deleting old unused stuff, move some configs to _saved.
This commit is contained in:
parent
623c114870
commit
9e8fd82547
@ -1,14 +0,0 @@
|
||||
return {
|
||||
ColorColumn = { bg = "#770000" },
|
||||
DiffChange = { bg = NONE, fg = "#e7c547" },
|
||||
DiffText = { bg = NONE, fg = "#ff8700" },
|
||||
FoldColumn = { bg = NONE },
|
||||
LineNr = { bg = NONE, fg = "#465457" },
|
||||
NonText = { bg = NONE },
|
||||
Normal = { bg = NONE },
|
||||
SignColumn = { bg = NONE },
|
||||
SpellBad = { bg = "#770000", fg = "#ffffff" },
|
||||
TelescopeNormal = { bg = NONE },
|
||||
Visual = { bg = "#005577", fg = "#ffffff" },
|
||||
NormalFloat = { bg = NONE },
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
return {
|
||||
colorscheme = "monokai",
|
||||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||
pattern = {"*.gotmpl"},
|
||||
callback = function() vim.bo.filetype = "yaml" end,
|
||||
}),
|
||||
vim.api.nvim_create_autocmd({ "VimLeave" }, {
|
||||
callback = function()
|
||||
vim.fn.jobstart("", { detach = true })
|
||||
end,
|
||||
}),
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
return {
|
||||
i = {
|
||||
["<C-a>"] = { "<esc>I" },
|
||||
["<C-e>"] = { "<esc>A" },
|
||||
},
|
||||
n = {
|
||||
["<esc><cr>"] = { "<esc><cmd>wq!<cr>", silent = true },
|
||||
["<leader>c"] = { '<cmd>execute "set colorcolumn=" . (&colorcolumn == "" ? "80,120" : "")<cr>', silent = true, desc = "Toggle Column" },
|
||||
["<leader>h"] = { "<cmd>set hlsearch!<cr>", silent = true, desc = "Toggle hlsearch" },
|
||||
["<leader>j"] = { "<cmd>bprevious<cr>", silent = true, desc = "Buffer Previous" },
|
||||
["<leader>k"] = { "<cmd>bnext<cr>", silent = true, desc = "Buffer Next" },
|
||||
["<leader>n"] = { '<cmd>set number!<cr><cmd>IBLToggle<cr><cmd>execute "set signcolumn=" . (&signcolumn == "yes" ? "no" : "yes")<cr>', silent = true, desc = "Toggle Decorations" },
|
||||
["<leader>w"] = { "<cmd>lua require('whitespace-nvim').trim()<cr>", silent = true, desc = "Trim Trailing Whitespaces" },
|
||||
["<leader>x"] = { "<cmd>bd<cr>", silent = true, desc = "close buffer" },
|
||||
["<tab>"] = { "<C-w>w", silent = true },
|
||||
},
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
return {
|
||||
opt = {
|
||||
cursorcolumn = true,
|
||||
cursorline = true,
|
||||
expandtab = true,
|
||||
gdefault = true,
|
||||
hlsearch = false,
|
||||
ignorecase = true,
|
||||
number = true,
|
||||
shiftround = true,
|
||||
relativenumber = false,
|
||||
showmode = false,
|
||||
smartcase = true,
|
||||
splitbelow = true,
|
||||
splitright = true,
|
||||
termguicolors = true,
|
||||
wrap = true,
|
||||
whichwrap = '',
|
||||
writebackup = false,
|
||||
clipboard = "",
|
||||
cmdheight = 1,
|
||||
foldcolumn = "0",
|
||||
laststatus = 2,
|
||||
mouse = "",
|
||||
scrolloff = 5,
|
||||
shiftwidth = 2,
|
||||
softtabstop = 2,
|
||||
tabstop = 2,
|
||||
updatetime = 100,
|
||||
},
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
return {
|
||||
{ "goolord/alpha-nvim", enabled = false },
|
||||
{ "rebelot/heirline.nvim", enabled = false },
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
return {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
options = {
|
||||
component_separators = '',
|
||||
icons_enabled = true,
|
||||
section_separators = '',
|
||||
theme = "powerline",
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { "mode" },
|
||||
lualine_b = { { "filename", file_status = true, path = 1 } },
|
||||
lualine_c = { { "branch", icon = "" } },
|
||||
lualine_x = { "filetype" },
|
||||
lualine_y = { "progress" },
|
||||
lualine_z = { "location" },
|
||||
},
|
||||
tabline = {
|
||||
lualine_a = { "buffers" },
|
||||
},
|
||||
},
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
return {
|
||||
"tanvirtin/monokai.nvim",
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
opts = {
|
||||
close_if_last_window = false,
|
||||
sort_case_insensitive = true,
|
||||
window = {
|
||||
position = "left",
|
||||
auto_expand_width = true,
|
||||
mappings = {
|
||||
["<bs>"] = "close_node",
|
||||
["s"] = "open_split",
|
||||
["v"] = "open_vsplit",
|
||||
},
|
||||
},
|
||||
nesting_rules = {},
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
hide_dotfiles = true,
|
||||
hide_gitignored = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
return {
|
||||
"rcarriga/nvim-notify",
|
||||
opts = {
|
||||
background_colour = "#000000",
|
||||
},
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
version = "0.9.2",
|
||||
commit = false,
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"python",
|
||||
"terraform",
|
||||
"vim",
|
||||
"yaml",
|
||||
},
|
||||
},
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
return {
|
||||
{ "johnfrankmorgan/whitespace.nvim",
|
||||
event = "User AstroFile",
|
||||
opts = {
|
||||
highlight = 'SpellBad',
|
||||
},
|
||||
},
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
# Example_config
|
||||
|
||||
This can be used as an example custom config for NvChad. Do check the https://github.com/NvChad/nvcommunity
|
@ -1,23 +0,0 @@
|
||||
--@type ChadrcConfig
|
||||
local M = {}
|
||||
|
||||
-- Path to overriding theme and highlights files
|
||||
local highlights = require "custom.highlights"
|
||||
|
||||
M.ui = {
|
||||
theme = "monekai",
|
||||
|
||||
hl_override = highlights.override,
|
||||
hl_add = highlights.add,
|
||||
|
||||
statusline = {
|
||||
theme = "vscode_colored",
|
||||
}
|
||||
}
|
||||
|
||||
M.plugins = "custom.plugins"
|
||||
|
||||
-- check core.mappings for table structure
|
||||
M.mappings = require "custom.mappings"
|
||||
|
||||
return M
|
@ -1,16 +0,0 @@
|
||||
local on_attach = require("plugins.configs.lspconfig").on_attach
|
||||
local capabilities = require("plugins.configs.lspconfig").capabilities
|
||||
|
||||
local lspconfig = require "lspconfig"
|
||||
|
||||
-- if you just want default config for the servers then put them in a table
|
||||
local servers = {}
|
||||
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
end
|
||||
|
||||
-- lspconfig.pyright.setup { blabla}
|
@ -1,21 +0,0 @@
|
||||
local null_ls = require "null-ls"
|
||||
|
||||
local b = null_ls.builtins
|
||||
|
||||
local sources = {
|
||||
|
||||
-- webdev stuff
|
||||
b.formatting.deno_fmt, -- choosed deno for ts/js files cuz its very fast!
|
||||
b.formatting.prettier.with { filetypes = { "html", "markdown", "css" } }, -- so prettier works only on these filetypes
|
||||
|
||||
-- Lua
|
||||
b.formatting.stylua,
|
||||
|
||||
-- cpp
|
||||
b.formatting.clang_format,
|
||||
}
|
||||
|
||||
null_ls.setup {
|
||||
debug = true,
|
||||
sources = sources,
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
local M = {}
|
||||
|
||||
M.treesitter = {
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"lua",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"python",
|
||||
"terraform",
|
||||
"vim",
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
-- disable = {
|
||||
-- "python"
|
||||
-- },
|
||||
},
|
||||
}
|
||||
|
||||
-- M.mason = {
|
||||
-- ensure_installed = {},
|
||||
-- }
|
||||
|
||||
-- git support in nvimtree
|
||||
M.nvimtree = {
|
||||
git = {
|
||||
enable = true,
|
||||
},
|
||||
|
||||
renderer = {
|
||||
highlight_git = true,
|
||||
icons = {
|
||||
show = {
|
||||
git = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return M
|
@ -1,23 +0,0 @@
|
||||
-- To find any highlight groups: "<cmd> Telescope highlights"
|
||||
-- Each highlight group can take a table with variables fg, bg, bold, italic, etc
|
||||
-- base30 variable names can also be used as colors
|
||||
|
||||
local M = {}
|
||||
|
||||
---@type Base46HLGroupsList
|
||||
M.override = {
|
||||
ColorColumn = { bg = "#770000" },
|
||||
Comment = { italic = true, },
|
||||
DiffChange = { bg = "NONE", fg = "#e7c547" },
|
||||
DiffText = { bg = "NONE", fg = "#ff8700" },
|
||||
FoldColumn = { bg = "NONE" },
|
||||
NormalFloat = { bg = "NONE" },
|
||||
NonText = { bg = "NONE" },
|
||||
Normal = { bg = "NONE" },
|
||||
SignColumn = { bg = "NONE" },
|
||||
SpellBad = { bg = "#770000", fg = "#ffffff" },
|
||||
TelescopeNormal = { bg = "NONE" },
|
||||
Visual = { bg = "#0094d8", fg = "#ffffff" },
|
||||
}
|
||||
|
||||
return M
|
@ -1,26 +0,0 @@
|
||||
local autocmd = vim.api.nvim_create_autocmd
|
||||
local opt = vim.opt
|
||||
|
||||
autocmd("BufRead", {
|
||||
pattern = "*.gotmpl",
|
||||
command = "set filetype=yaml",
|
||||
})
|
||||
autocmd("BufNewFile", {
|
||||
pattern = "*.gotmpl",
|
||||
command = "set filetype=yaml",
|
||||
})
|
||||
|
||||
opt.gdefault = true
|
||||
opt.hlsearch = false
|
||||
opt.shiftround = true
|
||||
opt.relativenumber = false
|
||||
opt.wrap = true
|
||||
opt.whichwrap = ''
|
||||
opt.writebackup = false
|
||||
|
||||
opt.clipboard = ""
|
||||
opt.foldcolumn = "0"
|
||||
opt.mouse = ""
|
||||
-- opt.laststatus = 2
|
||||
-- opt.mouse = ""
|
||||
-- opt.scrolloff = 5
|
@ -1,30 +0,0 @@
|
||||
local M = {}
|
||||
|
||||
M.disabled = {
|
||||
n = {
|
||||
["<leader>m"] = "",
|
||||
}
|
||||
}
|
||||
|
||||
M.general = {
|
||||
i = {
|
||||
["<C-a>"] = { "<esc>I" },
|
||||
["<C-e>"] = { "<esc>A" },
|
||||
},
|
||||
n = {
|
||||
["<esc><cr>"] = { "<esc><cmd>wq!<cr>", "Save and Exit" },
|
||||
["<leader>m"] = { '<cmd>execute "set colorcolumn=" . (&colorcolumn == "" ? "80,120" : "")<cr>', "Toggle Column" },
|
||||
["<leader>h"] = { "<cmd>set hlsearch!<cr>", "Toggle hlsearch" },
|
||||
["<leader>j"] = { "<cmd>bprevious<cr>", "Buffer Previous" },
|
||||
["<leader>k"] = { "<cmd>bnext<cr>", "Buffer Next" },
|
||||
["<leader>n"] = { '<cmd>set number!<cr><cmd>IndentBlanklineToggle<cr><cmd>execute "set signcolumn=" . (&signcolumn == "yes" ? "no" : "yes")<cr>', "Toggle Decorations" },
|
||||
["<leader>w"] = { "<cmd>lua require('whitespace-nvim').trim()<cr>", "Trim Trailing Whitespaces" },
|
||||
["<leader>x"] = { "<cmd>bd<cr>", "Buffer Close" },
|
||||
["<tab>"] = { "<C-w>w", },
|
||||
},
|
||||
v = {
|
||||
[">"] = { ">gv", "indent"},
|
||||
},
|
||||
}
|
||||
|
||||
return M
|
@ -1,65 +0,0 @@
|
||||
local overrides = require("custom.configs.overrides")
|
||||
|
||||
---@type NvPluginSpec[]
|
||||
local plugins = {
|
||||
|
||||
-- Override plugin definition options
|
||||
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
-- format & linting
|
||||
{
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
config = function()
|
||||
require "custom.configs.null-ls"
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require "plugins.configs.lspconfig"
|
||||
require "custom.configs.lspconfig"
|
||||
end, -- Override to setup mason-lspconfig
|
||||
},
|
||||
|
||||
-- override plugin configs
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = overrides.mason
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = overrides.treesitter,
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
opts = overrides.nvimtree,
|
||||
},
|
||||
|
||||
-- Install a plugin
|
||||
{
|
||||
"max397574/better-escape.nvim",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("better_escape").setup()
|
||||
end,
|
||||
},
|
||||
|
||||
-- To make a plugin not be loaded
|
||||
-- {
|
||||
-- "NvChad/nvim-colorizer.lua",
|
||||
-- enabled = false
|
||||
-- },
|
||||
|
||||
-- All NvChad plugins are lazy-loaded by default
|
||||
-- For a plugin to be loaded, you will need to set either `ft`, `cmd`, `keys`, `event`, or set `lazy = false`
|
||||
-- If you want a plugin to load on startup, add `lazy = false` to a plugin spec, for example
|
||||
-- {
|
||||
-- "mg979/vim-visual-multi",
|
||||
-- lazy = false,
|
||||
-- }
|
||||
}
|
||||
|
||||
return plugins
|
@ -13,7 +13,7 @@ gd() {
|
||||
git pull
|
||||
}
|
||||
alias gl="git log --graph --abbrev-commit --date=short --pretty=format:'%Cred%h%Creset %Cgreen%cr%Creset: %s : %C(bold blue)%an%Creset %C(yellow)%d%Creset'"
|
||||
|
||||
alias lg=lazygit
|
||||
alias less='less -R'
|
||||
|
||||
if [[ $(command -v bat) ]]; then
|
||||
@ -71,5 +71,4 @@ function upgrade() {
|
||||
brew update && brew upgrade && brew cleanup
|
||||
rm -rf ~/Library/Caches/Homebrew/*
|
||||
fi
|
||||
oh-my-posh upgrade
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user