1
0
Fork 0
This commit is contained in:
Luca Bilke 2024-03-12 15:56:05 +01:00
commit be0b7a8a7e
20 changed files with 85 additions and 55 deletions

View File

@ -7,7 +7,6 @@ left_legend = true
unnormalized_cpu = true
enable_cache_memory = true
group_processes = false
tree = true
battery = true
expanded_on_startup = true
show_table_scroll_position = true

View File

@ -16,6 +16,7 @@ M.sections = {
e = { desc = icons.FileTree .. " File Manager" },
}
-- TODO: Move these to LazyKeysSpec tables
M.standard_maps = function()
local maps = f.empty_map_table()
-- Standard --

View File

@ -329,4 +329,7 @@ function M.get_lsp_key(key)
end
end
function M.lazy_file()
end
return M

View File

@ -1,6 +1,9 @@
local M = { "rcarriga/cmp-dap" }
M.event = { "VeryLazy" }
M.dependencies = { "nvim-cmp" }
M.config = function()
require("cmp").setup.filetype({ "dap-repl", "dapui_watches", "dapui_hover" }, {
sources = {

View File

@ -4,12 +4,14 @@ local icons = require("config.icons")
M.opts = {
dev = {
path = (os.getenv("XDG_DOCUMENTS_DIR") or "~/Documents") .. "/dev/nvim",
patterns = { "ssnailed" },
},
install = {
missing = true,
colorscheme = { "tokyonight" },
},
ui = {
title = "packages",
border = "single",
icons = {
cmd = icons.Console .. " ",
@ -29,6 +31,26 @@ M.opts = {
task = icons.Task,
},
},
change_detection = {
enabled = false,
},
-- checker = {
-- enabled = true,
-- },
disabled_plugins = {
"gzip",
-- "matchit",
"matchparen",
"netrwPlugin",
"tarPlugin",
-- "tohtml",
"tutor",
"zipPlugin",
},
profiling = {
loader = true,
require = true,
}
}
return M

View File

@ -1,6 +1,6 @@
local M = { "stevearc/aerial.nvim" }
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
M.opts = {
attach_mode = "global",

View File

@ -4,7 +4,7 @@ local serverconf = require("config.lsp")
M.dependencies = { "mason.nvim", "neoconf.nvim", "neodev.nvim" }
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
M.cmd = { "LspInstall", "LspUninstall" }

View File

@ -1,6 +1,6 @@
local M = { "nvimtools/none-ls.nvim" }
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
M.dependencies = { "mason-null-ls.nvim" }

View File

@ -1,5 +1,9 @@
local M = { "goolord/alpha-nvim" }
M.lazy = true
M.event = { "VimEnter" }
M.dependencies = { "telescope.nvim", "todo-comments.nvim" }
M.opts = function()

View File

@ -1,6 +1,8 @@
local M = { "windwp/nvim-autopairs" }
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.lazy = true
M.event = { "VeryLazy" }
M.opts = {
check_ts = true,

View File

@ -1,6 +1,6 @@
local M = { "akinsho/bufferline.nvim" }
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.event = { "VeryLazy" }
M.opts = function()
local icons = require("config.icons")

View File

@ -1,5 +1,7 @@
local M = { "NvChad/nvim-colorizer.lua" }
M.lazy = true
M.cmd = { "ColorizerToggle", "ColorizerAttachToBuffer", "ColorizerDetachFromBuffer", "ColorizerReloadAllBuffers" }
M.opts = { user_default_options = { names = false } }

View File

@ -1,6 +1,6 @@
local M = { "numToStr/Comment.nvim" }
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
M.opts = {
mappings = {

View File

@ -1,6 +1,6 @@
local M = { "lewis6991/gitsigns.nvim" }
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
local icons = require("config.icons")

View File

@ -2,7 +2,7 @@ local M = { "lukas-reineke/indent-blankline.nvim" }
M.main = "ibl"
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
M.dependencies = { "nvim-treesitter" }
@ -19,13 +19,17 @@ M.opts = {
},
exclude = {
filetypes = {
"help",
"packer",
"NvimTree",
},
buftypes = {
"terminal",
"nofile",
"help",
"alpha",
"dashboard",
"neo-tree",
"Trouble",
"trouble",
"lazy",
"mason",
"notify",
"toggleterm",
"lazyterm",
},
},
}

View File

@ -1,5 +1,7 @@
local M = { "nvim-lualine/lualine.nvim" }
-- M.event = { "VeryLazy" }
M.opts = function()
local colors = require("tokyonight.colors").setup({ transform = true })
local icons = require("config.icons")

View File

@ -2,7 +2,7 @@ local M = { "codota/tabnine-nvim" }
M.build = "./dl_binaries.sh"
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
M.main = "tabnine"

View File

@ -1,7 +1,7 @@
local M = { "folke/todo-comments.nvim" }
local icons = require("config.icons")
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
M.opts = {
signs = false,

View File

@ -2,7 +2,7 @@ local M = { "nvim-treesitter/nvim-treesitter" }
M.build = ":TSUpdate"
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
-- M.cmd = {
-- "TSBufDisable",

View File

@ -1,15 +1,6 @@
# ____ ____
# / __/___ / __/
# / /_/_ / / /_
# / __/ / /_/ __/
# /_/ /___/_/ key-bindings.zsh
#
# - $FZF_TMUX_OPTS
# - $FZF_CTRL_T_COMMAND
# - $FZF_CTRL_T_OPTS
# - $FZF_CTRL_R_OPTS
# - $FZF_ALT_C_COMMAND
# - $FZF_ALT_C_OPTS
#!/bin/zsh
# TODO: move this into other zsh config
# Key bindings
# ------------
@ -71,30 +62,27 @@ bindkey -M vicmd '^T' fzf-file-widget
bindkey -M viins '^T' fzf-file-widget
# ALT-C - cd into the selected directory
# WARN: Disabled because the vim-browse patch for st uses this key combo already
# LF is better for this anyways
# fzf-cd-widget() {
# local cmd="${FZF_ALT_C_COMMAND:-"command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune \
# -o -type d -print 2> /dev/null | cut -b3-"}"
# setopt localoptions pipefail no_aliases 2> /dev/null
# local dir="$(eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --bind=ctrl-z:ignore $FZF_DEFAULT_OPTS $FZF_ALT_C_OPTS" $(__fzfcmd) +m)"
# if [[ -z "$dir" ]]; then
# zle redisplay
# return 0
# fi
# zle push-line # Clear buffer. Auto-restored on next prompt.
# BUFFER="builtin cd -- ${(q)dir}"
# zle accept-line
# local ret=$?
# unset dir # ensure this doesn't end up appearing in prompt expansion
# zle reset-prompt
# return $ret
# }
# zle -N fzf-cd-widget
# bindkey -M emacs '\ec' fzf-cd-widget
# bindkey -M vicmd '\ec' fzf-cd-widget
# bindkey -M viins '\ec' fzf-cd-widget
fzf-cd-widget() {
local cmd="${FZF_ALT_C_COMMAND:-"command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune \
-o -type d -print 2> /dev/null | cut -b3-"}"
setopt localoptions pipefail no_aliases 2> /dev/null
local dir="$(eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --bind=ctrl-z:ignore $FZF_DEFAULT_OPTS $FZF_ALT_C_OPTS" $(__fzfcmd) +m)"
if [[ -z "$dir" ]]; then
zle redisplay
return 0
fi
zle push-line # Clear buffer. Auto-restored on next prompt.
BUFFER="builtin cd -- ${(q)dir}"
zle accept-line
local ret=$?
unset dir # ensure this doesn't end up appearing in prompt expansion
zle reset-prompt
return $ret
}
zle -N fzf-cd-widget
bindkey -M emacs '\ec' fzf-cd-widget
bindkey -M vicmd '\ec' fzf-cd-widget
bindkey -M viins '\ec' fzf-cd-widget
# CTRL-R - Paste the selected command from history into the command line
fzf-history-widget() {