feat: some updates
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
# OBS Studio
|
||||
bind = Ctrl,F10, exec, obs-cmd recording start
|
||||
bind = Ctrl,F11, exec, obs-cmd recording stop
|
||||
bind = Ctrl,F1, exec, obs-cmd scene Placeholder "Scene"
|
||||
bind = Ctrl,F2, exec, obs-cmd scene Placeholder "Full Camera"
|
||||
# ---------------------------------
|
||||
|
||||
bindl = Alt ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden]
|
||||
@ -26,7 +28,7 @@ bind = , Super, exec, true # Open app launcher
|
||||
bind = Ctrl+Super, T, exec, ~/.config/ags/scripts/color_generation/switchwall.sh # Change wallpaper
|
||||
##! Actions
|
||||
# Screenshot, Record, OCR, Color picker, Clipboard history
|
||||
bind = Super, V, exec, pkill fuzzel || cliphist list | fuzzel --no-fuzzy --dmenu | cliphist decode | wl-copy # Clipboard history >> clipboard
|
||||
bind = Super, v, exec, pkill fuzzel || cliphist list | fuzzel --dmenu | cliphist decode | wl-copy # Clipboard history >> clipboard
|
||||
bind = Super, Period, exec, pkill fuzzel || ~/.local/bin/fuzzel-emoji # Pick emoji >> clipboard
|
||||
bind = Ctrl+Shift+Alt, Delete, exec, pkill wlogout || wlogout -p layer-shell # [hidden]
|
||||
bind = Super+Shift, S, exec, ~/.config/ags/scripts/grimblast.sh --freeze copy area # Screen snip
|
||||
|
@ -5,4 +5,4 @@ git:
|
||||
branchLogCmd: "git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium --oneline {{branchName}} --"
|
||||
paging:
|
||||
colorArg: always
|
||||
pager: diff-so-fancy
|
||||
pager: delta --dark --paging=never --line-numbers --hyperlinks --hyperlinks-file-link-format="lazygit-edit://{path}:{line}"
|
||||
|
@ -70,6 +70,13 @@ end
|
||||
-- Save --
|
||||
vim.keymap.set("n", "<C-s>", "<Cmd>w<CR>")
|
||||
|
||||
-- Lint on save --
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
callback = function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
})
|
||||
|
||||
-- Split navigation --
|
||||
vim.keymap.set("n", "<C-h>", "<C-w>h")
|
||||
vim.keymap.set("n", "<C-j>", "<C-w>j")
|
||||
|
@ -1,21 +1,52 @@
|
||||
return {
|
||||
{ "wakatime/vim-wakatime", lazy = false },
|
||||
{
|
||||
"nvimtools/none-ls.nvim",
|
||||
"stevearc/conform.nvim",
|
||||
config = function()
|
||||
local null_ls = require("null-ls")
|
||||
|
||||
local formatting = null_ls.builtins.formatting
|
||||
|
||||
local sources = {
|
||||
formatting.ocamlformat,
|
||||
}
|
||||
|
||||
null_ls.setup({
|
||||
sources = sources,
|
||||
require("conform").setup({
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
rust = { "rustfmt", lsp_format = "fallback" },
|
||||
javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
},
|
||||
format_on_save = {
|
||||
lsp_format = "fallback",
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
config = function()
|
||||
--[[
|
||||
require("lint").linters_by_ft = {
|
||||
javascript = {
|
||||
"eslint_d",
|
||||
},
|
||||
typescript = {
|
||||
"eslint_d",
|
||||
},
|
||||
javascriptreact = {
|
||||
"eslint_d",
|
||||
},
|
||||
typescriptreact = {
|
||||
"eslint_d",
|
||||
},
|
||||
}
|
||||
]]
|
||||
--
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-telescope/telescope-fzf-native.nvim",
|
||||
build = "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release",
|
||||
},
|
||||
{
|
||||
"numToStr/Comment.nvim",
|
||||
opts = {
|
||||
-- add any options here
|
||||
},
|
||||
},
|
||||
{ "akinsho/toggleterm.nvim", version = "*", config = true },
|
||||
{
|
||||
"christoomey/vim-tmux-navigator",
|
||||
@ -72,23 +103,13 @@ return {
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"nvimdev/guard.nvim",
|
||||
-- Builtin configuration, optional
|
||||
dependencies = {
|
||||
"nvimdev/guard-collection",
|
||||
},
|
||||
config = function()
|
||||
local ft = require("guard.filetype")
|
||||
ft("lua"):fmt("lsp"):append("stylua")
|
||||
ft("typescript,javascript,typescriptreact"):fmt("prettierd")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
tag = "0.1.x",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
require("telescope").load_extension("fzf")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
@ -189,6 +210,9 @@ return {
|
||||
lsp.ocamllsp.setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
lsp.svelte.setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user