feat: some updates
This commit is contained in:
@ -4,6 +4,8 @@
|
|||||||
# OBS Studio
|
# OBS Studio
|
||||||
bind = Ctrl,F10, exec, obs-cmd recording start
|
bind = Ctrl,F10, exec, obs-cmd recording start
|
||||||
bind = Ctrl,F11, exec, obs-cmd recording stop
|
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]
|
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
|
bind = Ctrl+Super, T, exec, ~/.config/ags/scripts/color_generation/switchwall.sh # Change wallpaper
|
||||||
##! Actions
|
##! Actions
|
||||||
# Screenshot, Record, OCR, Color picker, Clipboard history
|
# 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 = 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 = 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
|
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}} --"
|
branchLogCmd: "git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium --oneline {{branchName}} --"
|
||||||
paging:
|
paging:
|
||||||
colorArg: always
|
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 --
|
-- Save --
|
||||||
vim.keymap.set("n", "<C-s>", "<Cmd>w<CR>")
|
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 --
|
-- Split navigation --
|
||||||
vim.keymap.set("n", "<C-h>", "<C-w>h")
|
vim.keymap.set("n", "<C-h>", "<C-w>h")
|
||||||
vim.keymap.set("n", "<C-j>", "<C-w>j")
|
vim.keymap.set("n", "<C-j>", "<C-w>j")
|
||||||
|
@ -1,21 +1,52 @@
|
|||||||
return {
|
return {
|
||||||
{ "wakatime/vim-wakatime", lazy = false },
|
{ "wakatime/vim-wakatime", lazy = false },
|
||||||
{
|
{
|
||||||
"nvimtools/none-ls.nvim",
|
"stevearc/conform.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
local null_ls = require("null-ls")
|
require("conform").setup({
|
||||||
|
formatters_by_ft = {
|
||||||
local formatting = null_ls.builtins.formatting
|
lua = { "stylua" },
|
||||||
|
rust = { "rustfmt", lsp_format = "fallback" },
|
||||||
local sources = {
|
javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||||
formatting.ocamlformat,
|
},
|
||||||
}
|
format_on_save = {
|
||||||
|
lsp_format = "fallback",
|
||||||
null_ls.setup({
|
},
|
||||||
sources = sources,
|
|
||||||
})
|
})
|
||||||
end,
|
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 },
|
{ "akinsho/toggleterm.nvim", version = "*", config = true },
|
||||||
{
|
{
|
||||||
"christoomey/vim-tmux-navigator",
|
"christoomey/vim-tmux-navigator",
|
||||||
@ -72,23 +103,13 @@ return {
|
|||||||
})
|
})
|
||||||
end,
|
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",
|
"nvim-telescope/telescope.nvim",
|
||||||
tag = "0.1.x",
|
tag = "0.1.x",
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
|
config = function()
|
||||||
|
require("telescope").load_extension("fzf")
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
@ -189,6 +210,9 @@ return {
|
|||||||
lsp.ocamllsp.setup({
|
lsp.ocamllsp.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
|
lsp.svelte.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user