Switch to AstroNvim.

This commit is contained in:
Bartek Stalewski 2023-04-16 00:10:33 +02:00
parent 6dc42b37e6
commit d36cf3a49c
15 changed files with 150 additions and 1 deletions

View File

@ -0,0 +1,12 @@
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" },
Visual = { bg = "#005577", fg = "#ffffff" },
}

View File

@ -0,0 +1,7 @@
return {
colorscheme = "monokai",
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = {"*.gotmpl"},
callback = function() vim.bo.filetype = "yaml" end,
}),
}

View File

@ -0,0 +1,16 @@
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 = "previous buffer" },
["<leader>k"] = { "<cmd>bnext<cr>", silent = true, desc = "next buffer" },
["<leader>n"] = { '<cmd>set number!<cr><cmd>IndentBlanklineToggle<cr><cmd>execute "set signcolumn=" . (&signcolumn == "yes" ? "no" : "yes")<cr>', silent = true, desc = "toggle decorations" },
["<leader>x"] = { "<cmd>bd<cr>", silent = true, desc = "close buffer" },
["<tab>"] = { "<C-w>w", silent = true },
},
}

View File

@ -0,0 +1,27 @@
return {
opt = {
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,
writebackup = false,
clipboard = "",
foldcolumn = "0",
mouse = "",
scrolloff = 5,
shiftwidth = 2,
softtabstop = 2,
tabstop = 2,
updatetime = 100,
laststatus = 2,
},
}

View File

@ -0,0 +1,6 @@
return {
"lukas-reineke/indent-blankline.nvim",
opts = {
show_current_context = false,
}
}

View File

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

View File

@ -0,0 +1,23 @@
return {
"nvim-lualine/lualine.nvim",
event = "User AstroFile",
opts = {
options = {
component_separators = '',
icons_enabled = true,
section_separators = '',
theme = "molokai",
},
sections = {
lualine_a = { "mode" },
lualine_b = { { "filename", file_status = true, path = 1 } },
lualine_c = { "branch" },
lualine_x = { "filetype" },
lualine_y = { "progress" },
lualine_z = { "location" },
},
tabline = {
lualine_a = { "buffers" },
},
},
}

View File

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

View File

@ -0,0 +1,24 @@
return {
"nvim-neo-tree/neo-tree.nvim",
opts = {
close_if_last_window = false,
sort_case_insensitive = true,
window = {
position = "left",
auto_expand_width = true,
-- width = 100,
mappings = {
["s"] = "open_split",
["v"] = "open_vsplit",
},
},
nesting_rules = {},
filesystem = {
filtered_items = {
visible = true,
hide_dotfiles = false,
hide_gitignored = true,
},
},
}
}

View File

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

View File

@ -0,0 +1,12 @@
return {
"nvim-treesitter/nvim-treesitter",
opts = {
auto_install = true,
ensure_installed = {
"bash",
"python",
"terraform",
"vim",
},
},
}

View File

@ -0,0 +1,5 @@
return {
{ "johnfrankmorgan/whitespace.nvim",
event = "User AstroFile",
},
}

View File

@ -18,11 +18,15 @@ rm -rf $XDG_DATA_HOME/repos/dotfiles
git clone --recurse https://git.insomniac.pl/ftpd/dotfiles $XDG_DATA_HOME/repos/dotfiles git clone --recurse https://git.insomniac.pl/ftpd/dotfiles $XDG_DATA_HOME/repos/dotfiles
# configs # configs
for i in fd htop nvim tmux; do for i in fd htop astronvim tmux; do
rm -rf ~/.config/${i} rm -rf ~/.config/${i}
ln -sf $XDG_DATA_HOME/repos/dotfiles/${i} ~/.config/ ln -sf $XDG_DATA_HOME/repos/dotfiles/${i} ~/.config/
done done
# astronvim
rm -rf ~/.config/nvim
git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim
## zsh ## zsh
### modules ### modules
mkdir -p $XDG_DATA_HOME/repos/zsh_modules mkdir -p $XDG_DATA_HOME/repos/zsh_modules