Added comments, unified indentation and style
This commit is contained in:
parent
5b1b76ce94
commit
8cc56f2ca8
4
init.lua
4
init.lua
|
@ -8,6 +8,8 @@
|
||||||
-- ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═╝
|
-- ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═╝
|
||||||
|
|
||||||
|
|
||||||
|
-- Setup Lazy.nvim and plugins
|
||||||
require("plugins")
|
require("plugins")
|
||||||
|
|
||||||
|
-- Setup standard neovim options
|
||||||
require("options")
|
require("options")
|
||||||
|
|
|
@ -3,4 +3,3 @@
|
||||||
|
|
||||||
-- vim.g.onedark_config = { style = 'darker' }
|
-- vim.g.onedark_config = { style = 'darker' }
|
||||||
vim.cmd("colorscheme carbonfox")
|
vim.cmd("colorscheme carbonfox")
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,23 @@
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local map = vim.api.nvim_set_keymap
|
local map = vim.api.nvim_set_keymap
|
||||||
local cmap = vim.keymap.set
|
local cmap = vim.keymap.set
|
||||||
|
|
||||||
local options = { noremap = true }
|
local options = { noremap = true }
|
||||||
local cmd_options = { noremap = true, silent = true }
|
local cmd_options = { noremap = true, silent = true }
|
||||||
|
|
||||||
|
|
||||||
local tele = require('telescope.builtin')
|
local tele = require('telescope.builtin')
|
||||||
local neogit = require('neogit')
|
local neogit = require('neogit')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- open git integration
|
||||||
map("n", "<leader>g", "<cmd>Neogit kind=split<CR>", options)
|
map("n", "<leader>g", "<cmd>Neogit kind=split<CR>", options)
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,29 +34,33 @@ end)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- slef explanitory
|
||||||
map("n", "<leader>tw", "<cmd>lua MiniTrailspace.trim()<CR>", options)
|
map("n", "<leader>tw", "<cmd>lua MiniTrailspace.trim()<CR>", options)
|
||||||
map("n", "<leader>fm", "<cmd>CHADopen<CR>", options)
|
map("n", "<leader>fm", "<cmd>CHADopen<CR>", options)
|
||||||
map("n", "<leader>fc", "<cmd>NERDTreeClose<CR>", options)
|
|
||||||
map("n", "<leader>tt", "<cmd>12 split <CR><cmd>Tnew<CR>", options)
|
map("n", "<leader>tt", "<cmd>12 split <CR><cmd>Tnew<CR>", options)
|
||||||
map("n", "<leader>zt", "<cmd>Twilight<CR>", options)
|
map("n", "<leader>zt", "<cmd>Twilight<CR>", options)
|
||||||
map("n", "<leader>zz", "<cmd>ZenMode<CR>", options)
|
map("n", "<leader>zz", "<cmd>ZenMode<CR>", options)
|
||||||
|
|
||||||
|
|
||||||
|
-- remap keys so that they dont skip camelCase
|
||||||
map("n", "w", "<Plug>CamelCaseMotion_w", cmd_options)
|
map("n", "w", "<Plug>CamelCaseMotion_w", cmd_options)
|
||||||
map("n", "b", "<Plug>CamelCaseMotion_b", cmd_options)
|
map("n", "b", "<Plug>CamelCaseMotion_b", cmd_options)
|
||||||
map("n", "e", "<Plug>CamelCaseMotion_e", cmd_options)
|
map("n", "e", "<Plug>CamelCaseMotion_e", cmd_options)
|
||||||
map("n", "ge", "<Plug>CamelCaseMotion_ge", cmd_options)
|
map("n", "ge", "<Plug>CamelCaseMotion_ge", cmd_options)
|
||||||
|
|
||||||
|
|
||||||
|
-- Dashboard and pomodoro
|
||||||
map("n", "<leader>v", "<cmd>Veil<CR>", options)
|
map("n", "<leader>v", "<cmd>Veil<CR>", options)
|
||||||
map("n", "<leader>p", "<cmd>NomoMenu<CR>", options)
|
map("n", "<leader>p", "<cmd>NomoMenu<CR>", options)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- this little guy helps you move text, really helpful
|
||||||
map("v", "J", ":m '>+1<CR>gv=gv", options)
|
map("v", "J", ":m '>+1<CR>gv=gv", options)
|
||||||
map("v", "K", ":m '<-2<CR>gv=gv", options)
|
map("v", "K", ":m '<-2<CR>gv=gv", options)
|
||||||
|
|
||||||
|
|
||||||
|
-- Cursor always stays on center
|
||||||
map("n", "J", "mzJ`z", options)
|
map("n", "J", "mzJ`z", options)
|
||||||
map("n", "<C-d>", "<C-d>zz", options)
|
map("n", "<C-d>", "<C-d>zz", options)
|
||||||
map("n", "<C-u>", "<C-u>zz", options)
|
map("n", "<C-u>", "<C-u>zz", options)
|
||||||
|
@ -62,20 +68,26 @@ map("n", "n", "nzzzv", options)
|
||||||
map("n", "N", "Nzzzv", options)
|
map("n", "N", "Nzzzv", options)
|
||||||
|
|
||||||
|
|
||||||
-- greatest remap ever
|
|
||||||
|
-- paste text but DONT copy the overridden text
|
||||||
cmap("x", "p", [["_dP]])
|
cmap("x", "p", [["_dP]])
|
||||||
cmap("x", "<leader>p", [["+dP]])
|
cmap("x", "<leader>p", [["+dP]])
|
||||||
|
-- delete text but DONT copy to clipboard
|
||||||
cmap({ "n", "v" }, "<leader>d", [["_d]])
|
cmap({ "n", "v" }, "<leader>d", [["_d]])
|
||||||
|
|
||||||
|
-- quickfix stuff
|
||||||
|
--
|
||||||
|
--
|
||||||
map("n", "<C-k>", "<cmd>cnext<CR>zz", options)
|
map("n", "<C-k>", "<cmd>cnext<CR>zz", options)
|
||||||
map("n", "<C-j>", "<cmd>cprev<CR>zz", options)
|
map("n", "<C-j>", "<cmd>cprev<CR>zz", options)
|
||||||
map("n", "<leader>k", "<cmd>lnext<CR>zz", options)
|
map("n", "<leader>k", "<cmd>lnext<CR>zz", options)
|
||||||
map("n", "<leader>j", "<cmd>lprev<CR>zz", options)
|
map("n", "<leader>j", "<cmd>lprev<CR>zz", options)
|
||||||
|
|
||||||
|
|
||||||
|
-- search and replace every instance of word under cursor
|
||||||
cmap("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
|
cmap("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
|
||||||
|
|
||||||
|
-- take a break !
|
||||||
map("n", "<leader>mr", "<cmd>CellularAutomaton make_it_rain<CR>", options)
|
map("n", "<leader>mr", "<cmd>CellularAutomaton make_it_rain<CR>", options)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,10 @@ o.termguicolors = true -- true colours for better experience
|
||||||
o.wrap = false -- don't wrap lines
|
o.wrap = false -- don't wrap lines
|
||||||
o.backupcopy = "yes" -- fix weirdness for stuff that replaces the entire file when hot reloading
|
o.backupcopy = "yes" -- fix weirdness for stuff that replaces the entire file when hot reloading
|
||||||
|
|
||||||
o.compatible = false
|
o.compatible = false -- disable compatibility with old vi
|
||||||
o.showmatch = true
|
o.showmatch = true -- show matches while searching for text
|
||||||
o.hlsearch = true
|
o.hlsearch = true -- highlight text that has been searched
|
||||||
o.incsearch = true
|
o.incsearch = true -- incramentally search
|
||||||
o.tabstop = 16
|
o.tabstop = 16
|
||||||
o.softtabstop = 4
|
o.softtabstop = 4
|
||||||
o.shiftwidth = 4
|
o.shiftwidth = 4
|
||||||
|
@ -28,13 +28,13 @@ o.autoindent = true
|
||||||
o.wildmode = "longest,list"
|
o.wildmode = "longest,list"
|
||||||
o.mouse = "v"
|
o.mouse = "v"
|
||||||
o.mouse = "a"
|
o.mouse = "a"
|
||||||
o.clipboard = "unnamedplus"
|
o.clipboard = "unnamedplus" -- use system clipboard
|
||||||
o.ttyfast = true
|
o.ttyfast = true
|
||||||
o.cursorline = true
|
o.cursorline = true
|
||||||
o.splitbelow = true
|
o.splitbelow = true
|
||||||
o.autochdir = true
|
o.autochdir = true
|
||||||
o.signcolumn="yes:1"
|
o.signcolumn="yes:1"
|
||||||
o.shell = "/bin/dash"
|
o.shell = "/bin/bash"
|
||||||
|
|
||||||
vim.api.nvim_command("filetype off")
|
vim.api.nvim_command("filetype off")
|
||||||
vim.api.nvim_command("let &runtimepath.=',~/.vim/bundle/neoterm'")
|
vim.api.nvim_command("let &runtimepath.=',~/.vim/bundle/neoterm'")
|
||||||
|
@ -44,7 +44,7 @@ vim.api.nvim_command("syntax on")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- disable builtin plugins as they are not needed
|
||||||
local disabled_built_ins = {
|
local disabled_built_ins = {
|
||||||
"netrw",
|
"netrw",
|
||||||
"netrwPlugin",
|
"netrwPlugin",
|
||||||
|
|
|
@ -2,41 +2,46 @@ require'nvim-web-devicons'.setup {
|
||||||
-- your personnal icons can go here (to override)
|
-- your personnal icons can go here (to override)
|
||||||
-- you can specify color or cterm_color instead of specifying both of them
|
-- you can specify color or cterm_color instead of specifying both of them
|
||||||
-- DevIcon will be appended to `name`
|
-- DevIcon will be appended to `name`
|
||||||
override = {
|
override = {
|
||||||
zsh = {
|
zsh = {
|
||||||
icon = "",
|
icon = "",
|
||||||
color = "#428850",
|
color = "#428850",
|
||||||
cterm_color = "65",
|
cterm_color = "65",
|
||||||
name = "Zsh"
|
name = "Zsh"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
-- globally enable different highlight colors per icon (default to true)
|
-- globally enable different highlight colors per icon (default to true)
|
||||||
-- if set to false all icons will have the default icon's color
|
-- if set to false all icons will have the default icon's color
|
||||||
color_icons = true;
|
color_icons = true;
|
||||||
|
|
||||||
-- globally enable default icons (default to false)
|
-- globally enable default icons (default to false)
|
||||||
-- will get overriden by `get_icons` option
|
-- will get overriden by `get_icons` option
|
||||||
default = true;
|
default = true;
|
||||||
|
|
||||||
-- globally enable "strict" selection of icons - icon will be looked up in
|
-- globally enable "strict" selection of icons - icon will be looked up in
|
||||||
-- different tables, first by filename, and if not found by extension; this
|
-- different tables, first by filename, and if not found by extension; this
|
||||||
-- prevents cases when file doesn't have any extension but still gets some icon
|
-- prevents cases when file doesn't have any extension but still gets some icon
|
||||||
-- because its name happened to match some extension (default to false)
|
-- because its name happened to match some extension (default to false)
|
||||||
strict = true;
|
strict = true;
|
||||||
|
|
||||||
-- same as `override` but specifically for overrides by filename
|
-- same as `override` but specifically for overrides by filename
|
||||||
-- takes effect when `strict` is true
|
-- takes effect when `strict` is true
|
||||||
override_by_filename = {
|
override_by_filename = {
|
||||||
[".gitignore"] = {
|
[".gitignore"] = {
|
||||||
icon = "",
|
icon = "",
|
||||||
color = "#f1502f",
|
color = "#f1502f",
|
||||||
name = "Gitignore"
|
name = "Gitignore"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
-- same as `override` but specifically for overrides by extension
|
-- same as `override` but specifically for overrides by extension
|
||||||
-- takes effect when `strict` is true
|
-- takes effect when `strict` is true
|
||||||
override_by_extension = {
|
override_by_extension = {
|
||||||
["log"] = {
|
["log"] = {
|
||||||
icon = "",
|
icon = "",
|
||||||
color = "#81e043",
|
color = "#81e043",
|
||||||
name = "Log"
|
name = "Log"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
require('drop').setup
|
require('drop').setup
|
||||||
{
|
{
|
||||||
---@type DropTheme|string
|
---@type DropTheme|string
|
||||||
theme = "leaves", -- can be one of rhe default themes, or a custom theme
|
theme = "leaves", -- can be one of rhe default themes, or a custom theme
|
||||||
max = 15, -- maximum number of drops on the screen
|
max = 15, -- maximum number of drops on the screen
|
||||||
interval = 100, -- every 150ms we update the drops
|
interval = 100, -- every 100ms we update the drops
|
||||||
screensaver = 1000 * 60 * 1, -- show after 5 minutes. Set to false, to disable
|
screensaver = 1000 * 60 * 3, -- show after 3 minutes. Set to false, to disable
|
||||||
filetypes = { "veil" }, -- will enable/disable automatically for the following filetypes
|
filetypes = { "veil" }, -- will enable/disable automatically for the following filetypes
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
|
||||||
local mark = require("harpoon.mark")
|
local mark = require("harpoon.mark")
|
||||||
local ui = require("harpoon.ui")
|
local ui = require("harpoon.ui")
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
|
||||||
|
|
||||||
|
|
||||||
|
-- show harpoon menu and add file to harpoon list
|
||||||
vim.keymap.set("n", "<leader>ma", mark.add_file)
|
vim.keymap.set("n", "<leader>ma", mark.add_file)
|
||||||
vim.keymap.set("n", "<leader>mm", ui.toggle_quick_menu)
|
vim.keymap.set("n", "<leader>mm", ui.toggle_quick_menu)
|
||||||
|
|
||||||
|
-- main 4 files of harpoon jumping
|
||||||
vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end)
|
vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end)
|
||||||
vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end)
|
vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end)
|
||||||
vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end)
|
vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end)
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
require('hlchunk').setup({
|
require('hlchunk').setup({
|
||||||
indent = {
|
indent = {
|
||||||
chars = { "·", "·", "·", "·", }, -- more code can be found in https://unicodeplus.com/
|
chars = { "·", "·", "·", "·", },
|
||||||
-- chars = { "│", "¦", "┆", "┊", }, -- more code can be found in https://unicodeplus.com/
|
--chars = { "│", "¦", "┆", "┊", }, -- more code can be found in https://unicodeplus.com/
|
||||||
|
|
||||||
style = {
|
style = {
|
||||||
"#333333",
|
"#333333",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
blank = {
|
blank = {
|
||||||
enable = false,
|
enable = false,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
require("plugins.lazy")
|
require("plugins.lazy")
|
||||||
|
|
||||||
require("plugins.noice")
|
require("plugins.noice")
|
||||||
|
|
||||||
require("plugins.neorg")
|
require("plugins.neorg")
|
||||||
require("plugins.treesitter")
|
require("plugins.treesitter")
|
||||||
require("plugins.drop")
|
require("plugins.drop")
|
||||||
|
@ -11,10 +9,6 @@ require("plugins.nomodoro")
|
||||||
require("plugins.devicons")
|
require("plugins.devicons")
|
||||||
require("plugins.lualine")
|
require("plugins.lualine")
|
||||||
require("plugins.veil")
|
require("plugins.veil")
|
||||||
|
|
||||||
|
|
||||||
require("plugins.harpoon")
|
require("plugins.harpoon")
|
||||||
require("plugins.hlblocks")
|
require("plugins.hlblocks")
|
||||||
|
|
||||||
|
|
||||||
require("plugins.gitsigns")
|
require("plugins.gitsigns")
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
|
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
vim.fn.system({
|
||||||
"git",
|
"git",
|
||||||
"clone",
|
"clone",
|
||||||
"--filter=blob:none",
|
"--filter=blob:none",
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
"--branch=stable", -- latest stable release
|
"--branch=stable", -- latest stable release
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
|
||||||
|
@ -176,6 +178,7 @@ require("lazy").setup({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
-- this is pure magic, i love this guy
|
||||||
{
|
{
|
||||||
'VonHeikemen/lsp-zero.nvim',
|
'VonHeikemen/lsp-zero.nvim',
|
||||||
branch = 'v2.x',
|
branch = 'v2.x',
|
||||||
|
|
|
@ -25,7 +25,7 @@ cmp.setup({
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- Cycle with tab, as intended by divine creation
|
||||||
["<Tab>"] = cmp.mapping(function(fallback)
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
cmp.select_next_item()
|
cmp.select_next_item()
|
||||||
|
|
|
@ -1,41 +1,47 @@
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
theme = 'carbonfox',
|
theme = 'carbonfox',
|
||||||
component_separators = { left = '', right = ''},
|
|
||||||
section_separators = { left = '', right = ''},
|
component_separators = { left = '', right = ''},
|
||||||
disabled_filetypes = {
|
section_separators = { left = '', right = ''},
|
||||||
statusline = {},
|
|
||||||
winbar = {},
|
disabled_filetypes = {
|
||||||
|
statusline = {},
|
||||||
|
winbar = {},
|
||||||
|
},
|
||||||
|
|
||||||
|
ignore_focus = {},
|
||||||
|
always_divide_middle = true,
|
||||||
|
globalstatus = false,
|
||||||
|
|
||||||
|
refresh = {
|
||||||
|
statusline = 1000,
|
||||||
|
tabline = 1000,
|
||||||
|
winbar = 1000,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
ignore_focus = {},
|
|
||||||
always_divide_middle = true,
|
sections = {
|
||||||
globalstatus = false,
|
lualine_a = {'mode'},
|
||||||
refresh = {
|
lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||||
statusline = 1000,
|
lualine_c = {'filename'},
|
||||||
tabline = 1000,
|
lualine_x = { require("nomodoro").status },
|
||||||
winbar = 1000,
|
lualine_y = {'progress'},
|
||||||
}
|
lualine_z = {'location'}
|
||||||
},
|
},
|
||||||
sections = {
|
inactive_sections = {
|
||||||
lualine_a = {'mode'},
|
lualine_a = {},
|
||||||
lualine_b = {'branch', 'diff', 'diagnostics'},
|
lualine_b = {},
|
||||||
lualine_c = {'filename'},
|
lualine_c = {'filename'},
|
||||||
lualine_x = { require("nomodoro").status },
|
lualine_x = {'location'},
|
||||||
lualine_y = {'progress'},
|
lualine_y = {},
|
||||||
lualine_z = {'location'}
|
lualine_z = {}
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
|
||||||
lualine_a = {},
|
tabline = {},
|
||||||
lualine_b = {},
|
winbar = {},
|
||||||
lualine_c = {'filename'},
|
inactive_winbar = {},
|
||||||
lualine_x = {'location'},
|
extensions = {}
|
||||||
lualine_y = {},
|
|
||||||
lualine_z = {}
|
|
||||||
},
|
|
||||||
tabline = {},
|
|
||||||
winbar = {},
|
|
||||||
inactive_winbar = {},
|
|
||||||
extensions = {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,8 @@ require("noice").setup({
|
||||||
health = {
|
health = {
|
||||||
checker = false
|
checker = false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
cmdline = {
|
cmdline = {
|
||||||
format = {
|
format = {
|
||||||
cmdline = {
|
cmdline = {
|
||||||
|
@ -39,6 +41,8 @@ require("noice").setup({
|
||||||
input = {}
|
input = {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
win_options = {
|
win_options = {
|
||||||
winhighlight = {
|
winhighlight = {
|
||||||
|
@ -48,6 +52,8 @@ require("noice").setup({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
lsp = {
|
lsp = {
|
||||||
progress = {
|
progress = {
|
||||||
enabled = true
|
enabled = true
|
||||||
|
@ -58,6 +64,8 @@ require("noice").setup({
|
||||||
["cmp.entry.get_documentation"] = true
|
["cmp.entry.get_documentation"] = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- show command prompt on top of the buffer, no border
|
||||||
views = {
|
views = {
|
||||||
cmdline_popup = {
|
cmdline_popup = {
|
||||||
position = {
|
position = {
|
||||||
|
@ -73,13 +81,19 @@ require("noice").setup({
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
presets = {
|
presets = {
|
||||||
long_message_to_split = true,
|
long_message_to_split = true,
|
||||||
lsp_doc_border = true
|
lsp_doc_border = true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
popupmenu = {
|
popupmenu = {
|
||||||
backend = "cmp"
|
backend = "cmp"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
format = {}
|
format = {}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,28 @@
|
||||||
require('nomodoro').setup({
|
require('nomodoro').setup({
|
||||||
work_time = 1,
|
work_time = 25,
|
||||||
break_time = 1,
|
break_time = 5,
|
||||||
menu_available = true,
|
menu_available = true,
|
||||||
|
|
||||||
texts = {
|
texts = {
|
||||||
on_break_complete = "BREAK IS UP!",
|
on_break_complete = "Break is over!",
|
||||||
on_work_complete = "TIME IS UP!",
|
on_work_complete = "Take a break!",
|
||||||
status_icon = "羽",
|
status_icon = "羽",
|
||||||
timer_format = '!%0M:%0S' -- To include hours: '!%0H:%0M:%0S'
|
timer_format = '!%0M:%0S' -- To include hours: '!%0H:%0M:%0S'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- force break time yaaay
|
||||||
on_work_complete = function()
|
on_work_complete = function()
|
||||||
vim.cmd('CellularAutomaton make_it_rain')
|
vim.cmd('CellularAutomaton make_it_rain')
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
-- resume
|
||||||
on_break_complete = function()
|
on_break_complete = function()
|
||||||
vim.cmd('Veil')
|
vim.cmd('Veil')
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
-- Show timer status in lualine, on the right
|
||||||
require('lualine').setup({
|
require('lualine').setup({
|
||||||
sections = {
|
sections = {
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||||
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "haskell", "go", "bash" },
|
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "haskell", "go", "bash" },
|
||||||
|
|
||||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
|
|
||||||
-- Automatically install missing parsers when entering buffer
|
-- Automatically install missing parsers when entering buffer
|
||||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
|
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,51 +5,56 @@ local builtin = require("veil.builtin")
|
||||||
|
|
||||||
|
|
||||||
require("veil").setup({
|
require("veil").setup({
|
||||||
sections = {
|
sections = {
|
||||||
builtin.sections.animated(builtin.headers.frames_days_of_week[current_day], {
|
builtin.sections.animated(builtin.headers.frames_days_of_week[current_day], {
|
||||||
hl = { fg = "#5de4c7" },
|
hl = { fg = "#5de4c7" },
|
||||||
}),
|
}),
|
||||||
|
|
||||||
builtin.sections.buttons({
|
builtin.sections.buttons({
|
||||||
{
|
{
|
||||||
icon = "",
|
icon = "",
|
||||||
text = "Find Files",
|
text = "Config",
|
||||||
shortcut = "f",
|
shortcut = "c",
|
||||||
callback = function()
|
callback = function()
|
||||||
require("telescope.builtin").find_files()
|
require("telescope").extensions.file_browser.file_browser({
|
||||||
end,
|
path = vim.fn.stdpath("config"),
|
||||||
},
|
})
|
||||||
{
|
end,
|
||||||
icon = "",
|
},
|
||||||
text = "Find Word",
|
|
||||||
shortcut = "w",
|
{
|
||||||
callback = function()
|
icon = "",
|
||||||
require("telescope.builtin").live_grep()
|
text = "Find Files",
|
||||||
end,
|
shortcut = "f",
|
||||||
},
|
callback = function()
|
||||||
{
|
require("telescope.builtin").find_files()
|
||||||
icon = "",
|
end,
|
||||||
text = "Buffers",
|
},
|
||||||
shortcut = "b",
|
|
||||||
callback = function()
|
{
|
||||||
require("telescope.builtin").buffers()
|
icon = "",
|
||||||
end,
|
text = "Grep",
|
||||||
},
|
shortcut = "g",
|
||||||
{
|
callback = function()
|
||||||
icon = "",
|
require("telescope.builtin").live_grep()
|
||||||
text = "Config",
|
end,
|
||||||
shortcut = "c",
|
},
|
||||||
callback = function()
|
|
||||||
require("telescope").extensions.file_browser.file_browser({
|
{
|
||||||
path = vim.fn.stdpath("config"),
|
icon = "",
|
||||||
})
|
text = "Buffers",
|
||||||
end,
|
shortcut = "b",
|
||||||
},
|
callback = function()
|
||||||
|
require("telescope.builtin").buffers()
|
||||||
|
end,
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
builtin.sections.oldfiles(),
|
|
||||||
},
|
builtin.sections.oldfiles(),
|
||||||
mappings = {},
|
},
|
||||||
startup = true,
|
|
||||||
listed = false
|
startup = true,
|
||||||
|
listed = true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue