mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
Update home/.chezmoiignore
Update home/.config/nvim/lsp/luals.lua Update home/.config/nvim/lua/plugins/lang/markdown/obsidian-nvim.lua Update home/.config/nvim/lua/plugins/mod/snacks-nvim.lua Add home/.config/nvim/luarc.jsonc Update home/.config/zed/keymap.json Update nixcfgs/users/js0ny/packages/cli.nix Update nixcfgs/users/js0ny/packages/gui.nix Update nixcfgs/users/js0ny/programs/gnome.nix
This commit is contained in:
parent
0e851754d7
commit
3d12a52b47
9 changed files with 116 additions and 15 deletions
|
|
@ -35,6 +35,7 @@ scripts
|
||||||
.config/keyd
|
.config/keyd
|
||||||
.config/readline
|
.config/readline
|
||||||
.chezmoiscripts/*
|
.chezmoiscripts/*
|
||||||
|
.bashrc
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ exec "$HOME/.local/build/lua-language-server/bin/lua-language-server" "$@"
|
||||||
--]]
|
--]]
|
||||||
return {
|
return {
|
||||||
cmd = { "lua-language-server" },
|
cmd = { "lua-language-server" },
|
||||||
|
filetypes = { "lua" },
|
||||||
root_markers = {
|
root_markers = {
|
||||||
".luarc.json",
|
".luarc.json",
|
||||||
".luarc.jsonc",
|
".luarc.jsonc",
|
||||||
|
|
@ -24,14 +25,63 @@ return {
|
||||||
"stylua.toml",
|
"stylua.toml",
|
||||||
"selene.toml",
|
"selene.toml",
|
||||||
"selene.yml",
|
"selene.yml",
|
||||||
|
".git",
|
||||||
},
|
},
|
||||||
filetypes = { "lua" },
|
on_init = function(client)
|
||||||
|
local path = client.workspace_folders and client.workspace_folders[1] and client.workspace_folders[1].name
|
||||||
|
if path and (vim.uv.fs_stat(path .. "/.luarc.json") or vim.uv.fs_stat(path .. "/.luarc.jsonc")) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
client.config.settings = vim.tbl_deep_extend("force", client.config.settings, {
|
||||||
|
Lua = {
|
||||||
|
runtime = {
|
||||||
|
version = "LuaJIT",
|
||||||
|
},
|
||||||
|
workspace = {
|
||||||
|
checkThirdParty = false,
|
||||||
|
library = {
|
||||||
|
vim.env.VIMRUNTIME,
|
||||||
|
"${3rd}/luv/library",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
|
-- Inlay hints
|
||||||
hint = {
|
hint = {
|
||||||
enable = true,
|
enable = true,
|
||||||
setType = true,
|
setType = true,
|
||||||
|
arrayIndex = "Disable",
|
||||||
},
|
},
|
||||||
|
codeLens = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
completion = {
|
||||||
|
callSnippet = "Replace",
|
||||||
|
postfix = ".",
|
||||||
|
displayContext = 50,
|
||||||
|
},
|
||||||
|
telemetry = {
|
||||||
|
enable = false,
|
||||||
|
},
|
||||||
|
-- Lua LS offers a code formatter
|
||||||
|
-- Ref: https://github.com/LuaLS/lua-language-server/wiki/Formatter
|
||||||
|
-- format = {
|
||||||
|
-- enable = true,
|
||||||
|
-- defaultConfig = {
|
||||||
|
-- indent_size = "4",
|
||||||
|
-- max_line_length = "100",
|
||||||
|
-- continuation_indent = "8",
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- diagnostics = {
|
||||||
|
-- -- Code style checking offered by the Lua LS code formatter
|
||||||
|
-- neededFileStatus = {
|
||||||
|
-- ["codestyle-check"] = "Any",
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,9 @@ return {
|
||||||
"ibhagwan/fzf-lua",
|
"ibhagwan/fzf-lua",
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
|
footer = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
workspaces = {
|
workspaces = {
|
||||||
{
|
{
|
||||||
name = "personal",
|
name = "personal",
|
||||||
|
|
@ -132,14 +135,14 @@ return {
|
||||||
return string.format("%s-", os.time())
|
return string.format("%s-", os.time())
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
mappings = {
|
-- mappings = {
|
||||||
["<cr>"] = {
|
-- ["<cr>"] = {
|
||||||
action = function()
|
-- action = function()
|
||||||
require("obsidian").util.smart_action()
|
-- require("obsidian").util.smart_action()
|
||||||
end,
|
-- end,
|
||||||
opts = { buffer = true, expr = true },
|
-- opts = { buffer = true, expr = true },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
new_notes_location = "current_dir",
|
new_notes_location = "current_dir",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ return {
|
||||||
-- words = { enabled = true },
|
-- words = { enabled = true },
|
||||||
image = {
|
image = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
img_dirs = { "_Global/Assets" }
|
img_dirs = { "90 - System/Assets" }
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
|
|
|
||||||
20
home/dot_config/nvim/luarc.jsonc
Normal file
20
home/dot_config/nvim/luarc.jsonc
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
|
||||||
|
"runtime": {
|
||||||
|
"version": "LuaJIT"
|
||||||
|
},
|
||||||
|
"workspace": {
|
||||||
|
"checkThirdParty" : false,
|
||||||
|
"library": [
|
||||||
|
// Runtime and builtin libraries
|
||||||
|
"$VIMRUNTIME",
|
||||||
|
"${3rd}/luv/library"
|
||||||
|
],
|
||||||
|
"ignoreDir": [
|
||||||
|
"luasnippets"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"diagnostics.disable": [
|
||||||
|
"missing-fields"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -74,6 +74,9 @@
|
||||||
"ctrl-w l": "workspace::ActivatePaneRight",
|
"ctrl-w l": "workspace::ActivatePaneRight",
|
||||||
"ctrl-w k": "workspace::ActivatePaneUp",
|
"ctrl-w k": "workspace::ActivatePaneUp",
|
||||||
"ctrl-w j": "workspace::ActivatePaneDown",
|
"ctrl-w j": "workspace::ActivatePaneDown",
|
||||||
|
"ctrl-w alt-h": "workspace::ToggleLeftDock",
|
||||||
|
"ctrl-w alt-l": "workspace::ToggleRightDock",
|
||||||
|
"ctrl-w alt-j": "workspace::ToggleBottomDock",
|
||||||
"[ d": "editor::GoToPreviousDiagnostic",
|
"[ d": "editor::GoToPreviousDiagnostic",
|
||||||
"] d": "editor::GoToDiagnostic",
|
"] d": "editor::GoToDiagnostic",
|
||||||
"[ g": "editor::GoToPreviousHunk",
|
"[ g": "editor::GoToPreviousHunk",
|
||||||
|
|
|
||||||
|
|
@ -50,5 +50,6 @@
|
||||||
ta-lib
|
ta-lib
|
||||||
ddgr
|
ddgr
|
||||||
protonvpn-cli
|
protonvpn-cli
|
||||||
|
markdown-oxide
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
kitty
|
kitty
|
||||||
ghostty
|
ghostty
|
||||||
|
|
@ -31,6 +30,6 @@
|
||||||
qbittorrent
|
qbittorrent
|
||||||
protonvpn-gui
|
protonvpn-gui
|
||||||
proton-pass
|
proton-pass
|
||||||
protonmail-bridge
|
protonmail-bridge-gui
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
gnome-tweaks
|
gnome-tweaks
|
||||||
sushi
|
sushi
|
||||||
|
dconf-editor
|
||||||
gnomeExtensions.dash-to-dock
|
gnomeExtensions.dash-to-dock
|
||||||
gnomeExtensions.caffeine
|
gnomeExtensions.caffeine
|
||||||
gnomeExtensions.logo-menu
|
gnomeExtensions.logo-menu
|
||||||
|
|
@ -27,6 +28,8 @@
|
||||||
|
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
"org/gnome/desktop/interface" = {
|
"org/gnome/desktop/interface" = {
|
||||||
|
clock-show-seconds = true;
|
||||||
|
clock-show-weekday = true;
|
||||||
icon-theme = "Papirus";
|
icon-theme = "Papirus";
|
||||||
accent-color = "pink";
|
accent-color = "pink";
|
||||||
show-battery-percentage = true;
|
show-battery-percentage = true;
|
||||||
|
|
@ -46,12 +49,33 @@
|
||||||
};
|
};
|
||||||
"org/gnome/shell" = {
|
"org/gnome/shell" = {
|
||||||
favorite-apps = [
|
favorite-apps = [
|
||||||
"org.kde.dolphin.desktop"
|
|
||||||
"com.mitchellh.ghostty.desktop"
|
"com.mitchellh.ghostty.desktop"
|
||||||
"firefox.desktop"
|
"firefox.desktop"
|
||||||
"code.desktop"
|
"code.desktop"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom-0" = {
|
||||||
|
name = "Open File Explorer";
|
||||||
|
command = "dolphin";
|
||||||
|
binding = "<Super>e";
|
||||||
|
};
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom-1" = {
|
||||||
|
name = "Open Terminal via Win-R";
|
||||||
|
command = "ghostty";
|
||||||
|
binding = "<Super>r";
|
||||||
|
};
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom-2" = {
|
||||||
|
name = "Open Terminal via Ctrl-Alt-T";
|
||||||
|
command = "ghostty";
|
||||||
|
binding = "<Ctrl><Alt>t";
|
||||||
|
};
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||||
|
custom-keybindings = [
|
||||||
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom-0/"
|
||||||
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom-1/"
|
||||||
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom-2/"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# qt.style.name = "adwaita";
|
# qt.style.name = "adwaita";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue