Better handling of Astrovim's user configuration.

This commit is contained in:
Bartek Stalewski 2024-03-28 00:45:20 +01:00
parent 29bc3efded
commit 8ab1d2f8e3
No known key found for this signature in database
12 changed files with 2 additions and 1 deletions

View file

@ -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 },
}

View file

@ -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,
}),
}

View file

@ -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 },
},
}

View file

@ -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,
},
}

View file

@ -1,4 +0,0 @@
return {
{ "goolord/alpha-nvim", enabled = false },
{ "rebelot/heirline.nvim", enabled = false },
}

View file

@ -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" },
},
},
}

View file

@ -1,3 +0,0 @@
return {
"tanvirtin/monokai.nvim",
}

View file

@ -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,
},
},
}
}

View file

@ -1,6 +0,0 @@
return {
"rcarriga/nvim-notify",
opts = {
background_colour = "#000000",
},
}

View file

@ -1,14 +0,0 @@
return {
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"bash",
"markdown",
"markdown_inline",
"python",
"terraform",
"vim",
"yaml",
},
},
}

View file

@ -1,8 +0,0 @@
return {
{ "johnfrankmorgan/whitespace.nvim",
event = "User AstroFile",
opts = {
highlight = 'SpellBad',
},
},
}