Switch to AstroNvim.
This commit is contained in:
parent
6dc42b37e6
commit
d36cf3a49c
12
astronvim/lua/user/highlights/init.lua
Normal file
12
astronvim/lua/user/highlights/init.lua
Normal 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" },
|
||||
}
|
7
astronvim/lua/user/init.lua
Normal file
7
astronvim/lua/user/init.lua
Normal file
@ -0,0 +1,7 @@
|
||||
return {
|
||||
colorscheme = "monokai",
|
||||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||
pattern = {"*.gotmpl"},
|
||||
callback = function() vim.bo.filetype = "yaml" end,
|
||||
}),
|
||||
}
|
16
astronvim/lua/user/mappings.lua
Normal file
16
astronvim/lua/user/mappings.lua
Normal 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 },
|
||||
},
|
||||
}
|
27
astronvim/lua/user/options.lua
Normal file
27
astronvim/lua/user/options.lua
Normal 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,
|
||||
},
|
||||
}
|
6
astronvim/lua/user/plugins/indent.lua
Normal file
6
astronvim/lua/user/plugins/indent.lua
Normal file
@ -0,0 +1,6 @@
|
||||
return {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
opts = {
|
||||
show_current_context = false,
|
||||
}
|
||||
}
|
4
astronvim/lua/user/plugins/init.lua
Normal file
4
astronvim/lua/user/plugins/init.lua
Normal file
@ -0,0 +1,4 @@
|
||||
return {
|
||||
{ "goolord/alpha-nvim", enabled = false },
|
||||
{ "rebelot/heirline.nvim", enabled = false },
|
||||
}
|
23
astronvim/lua/user/plugins/lualine.lua
Normal file
23
astronvim/lua/user/plugins/lualine.lua
Normal 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" },
|
||||
},
|
||||
},
|
||||
}
|
3
astronvim/lua/user/plugins/monokai.lua
Normal file
3
astronvim/lua/user/plugins/monokai.lua
Normal file
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"tanvirtin/monokai.nvim",
|
||||
}
|
24
astronvim/lua/user/plugins/neotree.lua
Normal file
24
astronvim/lua/user/plugins/neotree.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
6
astronvim/lua/user/plugins/notify.lua
Normal file
6
astronvim/lua/user/plugins/notify.lua
Normal file
@ -0,0 +1,6 @@
|
||||
return {
|
||||
"rcarriga/nvim-notify",
|
||||
opts = {
|
||||
background_colour = "#000000",
|
||||
},
|
||||
}
|
12
astronvim/lua/user/plugins/treesitter.lua
Normal file
12
astronvim/lua/user/plugins/treesitter.lua
Normal file
@ -0,0 +1,12 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
auto_install = true,
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"python",
|
||||
"terraform",
|
||||
"vim",
|
||||
},
|
||||
},
|
||||
}
|
5
astronvim/lua/user/plugins/whitespace.lua
Normal file
5
astronvim/lua/user/plugins/whitespace.lua
Normal file
@ -0,0 +1,5 @@
|
||||
return {
|
||||
{ "johnfrankmorgan/whitespace.nvim",
|
||||
event = "User AstroFile",
|
||||
},
|
||||
}
|
@ -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
|
||||
|
||||
# configs
|
||||
for i in fd htop nvim tmux; do
|
||||
for i in fd htop astronvim tmux; do
|
||||
rm -rf ~/.config/${i}
|
||||
ln -sf $XDG_DATA_HOME/repos/dotfiles/${i} ~/.config/
|
||||
done
|
||||
|
||||
# astronvim
|
||||
rm -rf ~/.config/nvim
|
||||
git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim
|
||||
|
||||
## zsh
|
||||
### modules
|
||||
mkdir -p $XDG_DATA_HOME/repos/zsh_modules
|
||||
|
Loading…
Reference in New Issue
Block a user