mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Compare commits
No commits in common. "126a2076cc9fb1466d9ed57538a54ffc06ff0623" and "29eacd05bbce414747948f0349b0d00d92c8aa44" have entirely different histories.
126a2076cc
...
29eacd05bb
|
@ -45,10 +45,7 @@
|
||||||
(editor == "nano")) then
|
(editor == "nano")) then
|
||||||
"exec " + term + " -e " + editor
|
"exec " + term + " -e " + editor
|
||||||
else
|
else
|
||||||
(if (editor == "neovide") then
|
editor);
|
||||||
"neovide -- --listen /tmp/nvimsocket"
|
|
||||||
else
|
|
||||||
editor));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# create patched nixpkgs
|
# create patched nixpkgs
|
||||||
|
|
|
@ -115,7 +115,6 @@ if (os.path.isfile(secretFile)):
|
||||||
import qutesecrets
|
import qutesecrets
|
||||||
secretsExists = True
|
secretsExists = True
|
||||||
|
|
||||||
config.set('scrolling.smooth',True)
|
|
||||||
config.set('qt.args',['ignore-gpu-blacklist','enable-gpu-rasterization','enable-native-gpu-memory-buffers','num-raster-threads=4'])
|
config.set('qt.args',['ignore-gpu-blacklist','enable-gpu-rasterization','enable-native-gpu-memory-buffers','num-raster-threads=4'])
|
||||||
config.load_autoconfig(True)
|
config.load_autoconfig(True)
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,9 @@ in
|
||||||
|
|
||||||
home.packages = (with pkgs-emacs; [
|
home.packages = (with pkgs-emacs; [
|
||||||
emacs-lsp-booster
|
emacs-lsp-booster
|
||||||
|
nil
|
||||||
|
nixfmt
|
||||||
|
kotlin-language-server
|
||||||
file
|
file
|
||||||
wmctrl
|
wmctrl
|
||||||
jshon
|
jshon
|
||||||
|
|
|
@ -11,8 +11,6 @@ if vim.g.neovide then
|
||||||
vim.g.neovide_transparency = 0.8
|
vim.g.neovide_transparency = 0.8
|
||||||
vim.g.neovide_floating_blur_amount_x = 8.0
|
vim.g.neovide_floating_blur_amount_x = 8.0
|
||||||
vim.g.neovide_floating_blur_amount_y = 8.0
|
vim.g.neovide_floating_blur_amount_y = 8.0
|
||||||
vim.g.neovide_refresh_rate = 120
|
|
||||||
vim.g.neovide_cursor_vfx_mode = "pixiedust"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.g.neovide_scale_factor = 1.0
|
vim.g.neovide_scale_factor = 1.0
|
||||||
|
|
|
@ -14,19 +14,4 @@ M.base46 = {
|
||||||
-- },
|
-- },
|
||||||
}
|
}
|
||||||
|
|
||||||
M.ui = {
|
|
||||||
theme = "stylix",
|
|
||||||
nvdash = {
|
|
||||||
load_on_startup = true,
|
|
||||||
buttons = {
|
|
||||||
{ " Find File", "Spc .", "Telescope find_files" },
|
|
||||||
{ " Nvimtree", "SPC e", "NvimTreeToggle" },
|
|
||||||
{ " Projects ", "Spc p p", "Telescope workspaces" },
|
|
||||||
{ " Vsplit ", "Spc w v", "vsplit" },
|
|
||||||
{ " Split ", "Spc w s", "split" },
|
|
||||||
{ " Help", "Spc c h", "NvCheatsheet" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -4,7 +4,7 @@ require("nvchad.configs.lspconfig").defaults()
|
||||||
local lspconfig = require "lspconfig"
|
local lspconfig = require "lspconfig"
|
||||||
|
|
||||||
-- EXAMPLE
|
-- EXAMPLE
|
||||||
local servers = { "html", "cssls", "nil_ls", "marksman", "clangd", "pylsp", "ts_ls", "java_language_server", "dockerls", "docker_compose_language_service", "jsonls", "kotlin_language_server", "bashls", "yamlls", "sqls" }
|
local servers = { "html", "cssls" }
|
||||||
local nvlsp = require "nvchad.configs.lspconfig"
|
local nvlsp = require "nvchad.configs.lspconfig"
|
||||||
|
|
||||||
-- lsps with default config
|
-- lsps with default config
|
||||||
|
@ -15,9 +15,6 @@ for _, lsp in ipairs(servers) do
|
||||||
capabilities = nvlsp.capabilities,
|
capabilities = nvlsp.capabilities,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
lspconfig.gdscript.setup {
|
|
||||||
cmd = { "ncat", "localhost", "6005"}
|
|
||||||
}
|
|
||||||
|
|
||||||
-- configuring single server, example: typescript
|
-- configuring single server, example: typescript
|
||||||
-- lspconfig.ts_ls.setup {
|
-- lspconfig.ts_ls.setup {
|
||||||
|
|
|
@ -17,30 +17,10 @@ vim.keymap.set("n", "<C-->", function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
map("n", ";", ":", { desc = "CMD enter command mode" })
|
map("n", ";", ":", { desc = "CMD enter command mode" })
|
||||||
map({"n", "t", "v", "i"}, "<A-x>", ":", { desc = "CMD enter command mode" })
|
map({"n", "v", "i"}, "<A-x>", ":", { desc = "CMD enter command mode" })
|
||||||
map({"n", "t", "v", "i"}, "<C-n>", "<Down>", { desc = "up" })
|
|
||||||
map({"n", "t", "v", "i"}, "<C-p>", "<Up>", { desc = "down" })
|
|
||||||
map({"n", "t", "v", "i"}, "<C-h>", "<C-w>h", { desc = "switch window left" })
|
|
||||||
map({"n", "t", "v", "i"}, "<C-l>", "<C-w>l", { desc = "switch window right" })
|
|
||||||
map({"n", "t", "v", "i"}, "<C-j>", "<C-w>j", { desc = "switch window down" })
|
|
||||||
map({"n", "t", "v", "i"}, "<C-k>", "<C-w>k", { desc = "switch window up" })
|
|
||||||
map("n", "<leader>.", "<cmd>Telescope find_files<cr>", { desc = "telescope find files" })
|
map("n", "<leader>.", "<cmd>Telescope find_files<cr>", { desc = "telescope find files" })
|
||||||
map("n", "<leader>/", "<cmd>Telescope live_grep<cr>", { desc = "telescope live grep" })
|
|
||||||
map("n", "<leader>gg", "<cmd>Neogit<cr>", { desc = "Neogit status buffer" })
|
map("n", "<leader>gg", "<cmd>Neogit<cr>", { desc = "Neogit status buffer" })
|
||||||
map("n", "<leader>c", "gcc", { desc = "Toggle Comment", remap = true })
|
|
||||||
map("v", "<leader>c", "gc", { desc = "Toggle comment", remap = true })
|
|
||||||
map("n", "<leader>pp", "<cmd>Telescope workspaces<cr>", { desc = "telescope workspaces" })
|
map("n", "<leader>pp", "<cmd>Telescope workspaces<cr>", { desc = "telescope workspaces" })
|
||||||
map("n", "<leader>pf", "<cmd>Telescope find_files<cr>", { desc = "telescope find files" })
|
|
||||||
map("n", "<A-w>", "<cmd>q<cr>", { desc = "quit" })
|
|
||||||
map("n", "<leader>wd>", "<cmd>q<cr>", { desc = "quit" })
|
|
||||||
map("n", "<leader>ws", "<cmd>split<cr>", { desc = "horizontal split" })
|
|
||||||
map("n", "<leader>wS", "<cmd>split<cr>", { desc = "horizontal split" })
|
|
||||||
map("n", "<leader>wv", "<cmd>vsplit<cr>", { desc = "vertical split" })
|
|
||||||
map("n", "<leader>wV", "<cmd>vsplit<cr>", { desc = "vertical split" })
|
|
||||||
map({ "n", "t", "i", "v" }, "<A-f>", "<cmd>NvimTreeToggle<CR>", { desc = "nvimtree toggle window" })
|
|
||||||
map({ "n", "t", "i", "v" }, "<A-z>", function()
|
|
||||||
require("nvchad.term").toggle { pos = "sp", id = "htoggleTerm" }
|
|
||||||
end, { desc = "terminal toggleable horizontal term" })
|
|
||||||
map("i", "jk", "<ESC>")
|
map("i", "jk", "<ESC>")
|
||||||
|
|
||||||
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
|
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
|
||||||
|
|
|
@ -18,7 +18,7 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"vim", "lua", "vimdoc",
|
"vim", "lua", "vimdoc",
|
||||||
"html", "css", 'gdscript'
|
"html", "css"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,28 +3,9 @@
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
neovim
|
neovim
|
||||||
neovim-remote
|
|
||||||
neovide
|
neovide
|
||||||
lua-language-server
|
lua-language-server
|
||||||
vscode-langservers-extracted
|
|
||||||
nil
|
|
||||||
clang-tools
|
|
||||||
marksman
|
|
||||||
python311Packages.python-lsp-server
|
|
||||||
typescript-language-server
|
|
||||||
java-language-server
|
|
||||||
dockerfile-language-server-nodejs
|
|
||||||
docker-compose-language-service
|
|
||||||
kotlin-language-server
|
|
||||||
bash-language-server
|
|
||||||
yaml-language-server
|
|
||||||
sqls
|
|
||||||
nmap
|
|
||||||
];
|
];
|
||||||
programs.neovim = {
|
|
||||||
viAlias = true;
|
|
||||||
vimAlias = true;
|
|
||||||
};
|
|
||||||
home.file.".config/nvim".source = ./.;
|
home.file.".config/nvim".source = ./.;
|
||||||
home.file.".config/nvim".recursive = true;
|
home.file.".config/nvim".recursive = true;
|
||||||
home.file.".config/nvim/lua/themes/stylix.lua".source = config.lib.stylix.colors {
|
home.file.".config/nvim/lua/themes/stylix.lua".source = config.lib.stylix.colors {
|
||||||
|
|
|
@ -49,6 +49,7 @@ in
|
||||||
|
|
||||||
exec-once = hyprprofile Default
|
exec-once = hyprprofile Default
|
||||||
|
|
||||||
|
exec-once = emacs --daemon
|
||||||
exec-once = ydotoold
|
exec-once = ydotoold
|
||||||
#exec-once = STEAM_FRAME_FORCE_CLOSE=1 steam -silent
|
#exec-once = STEAM_FRAME_FORCE_CLOSE=1 steam -silent
|
||||||
exec-once = nm-applet
|
exec-once = nm-applet
|
||||||
|
@ -549,7 +550,14 @@ in
|
||||||
if pgrep -x nixos-rebuild > /dev/null || pgrep -x home-manager > /dev/null || pgrep -x kdenlive > /dev/null || pgrep -x FL64.exe > /dev/null || pgrep -x blender > /dev/null || pgrep -x flatpak > /dev/null;
|
if pgrep -x nixos-rebuild > /dev/null || pgrep -x home-manager > /dev/null || pgrep -x kdenlive > /dev/null || pgrep -x FL64.exe > /dev/null || pgrep -x blender > /dev/null || pgrep -x flatpak > /dev/null;
|
||||||
then echo "Shouldn't suspend"; sleep 10; else echo "Should suspend"; systemctl suspend; fi
|
then echo "Shouldn't suspend"; sleep 10; else echo "Should suspend"; systemctl suspend; fi
|
||||||
'')
|
'')
|
||||||
])
|
(pkgs.makeDesktopItem {
|
||||||
|
name = "emacsclientnewframe";
|
||||||
|
desktopName = "Emacs Client New Frame";
|
||||||
|
exec = "emacsclient -c -a emacs";
|
||||||
|
terminal = false;
|
||||||
|
icon = "emacs";
|
||||||
|
type = "Application";
|
||||||
|
})])
|
||||||
++
|
++
|
||||||
(with pkgs-hyprland; [ ])
|
(with pkgs-hyprland; [ ])
|
||||||
++ (with pkgs-nwg-dock-hyprland; [
|
++ (with pkgs-nwg-dock-hyprland; [
|
||||||
|
@ -600,7 +608,7 @@ in
|
||||||
home.file.".config/nwg-dock-pinned".text = ''
|
home.file.".config/nwg-dock-pinned".text = ''
|
||||||
nwggrid
|
nwggrid
|
||||||
Alacritty
|
Alacritty
|
||||||
neovide
|
emacsclientnewframe
|
||||||
qutebrowser
|
qutebrowser
|
||||||
brave-browser
|
brave-browser
|
||||||
writer
|
writer
|
||||||
|
|
Loading…
Reference in a new issue