Update nvim config

This commit is contained in:
Tobias Reisinger 2024-02-29 00:42:00 +01:00
parent fa68cf226b
commit 028221ee73
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 21 additions and 20 deletions

View file

@ -4,7 +4,6 @@ declare -A mapper=(
[".e"]="$HOME/.bin/.e" [".e"]="$HOME/.bin/.e"
[".t"]="$HOME/.bin/.t" [".t"]="$HOME/.bin/.t"
["alacritty"]="$HOME/.config/alacritty/alacritty.toml" ["alacritty"]="$HOME/.config/alacritty/alacritty.toml"
["astronvim"]="$HOME/.config/astronvim/lua/user/"
["autoinstall.toml"]="$HOME/.config/autoinstall.toml" ["autoinstall.toml"]="$HOME/.config/autoinstall.toml"
["autostart.toml"]="$HOME/.config/autostart.toml" ["autostart.toml"]="$HOME/.config/autostart.toml"
["backup"]="$HOME/.bin/host-backup-$(cat /proc/sys/kernel/hostname)" ["backup"]="$HOME/.bin/host-backup-$(cat /proc/sys/kernel/hostname)"
@ -17,8 +16,7 @@ declare -A mapper=(
["git-ignore"]="$HOME/.config/git/ignore" ["git-ignore"]="$HOME/.config/git/ignore"
["home-manager"]="$HOME/.config/home-manager/home.nix" ["home-manager"]="$HOME/.config/home-manager/home.nix"
["hyprland"]="$HOME/.config/hypr/hyprland.conf" ["hyprland"]="$HOME/.config/hypr/hyprland.conf"
["nvim"]="$HOME/.config/nvim/" ["nvim"]="$HOME/.config/astronvim/lua/user/"
["nvim.packer"]="$HOME/.config/nvim/lua/plugins.lua"
["polybar"]="$HOME/.config/polybar" ["polybar"]="$HOME/.config/polybar"
["qutebrowser"]="$HOME/.config/qutebrowser/config.py" ["qutebrowser"]="$HOME/.config/qutebrowser/config.py"
["qutebrowser-kiosk"]="$HOME/.config/qutebrowser/config_kiosk.py" ["qutebrowser-kiosk"]="$HOME/.config/qutebrowser/config_kiosk.py"
@ -36,8 +34,6 @@ declare -A mapper=(
) )
declare -A hooks=( declare -A hooks=(
["nvim"]="nvim +PackerSync"
["nvim.packer"]="nvim +PackerSync"
["qutebrowser"]="qutebrowser :config-source" ["qutebrowser"]="qutebrowser :config-source"
["qutebrowser-kiosk"]="qutebrowser-kiosk :config-source" # broken due to qutebrowser-kiosk being an alias ["qutebrowser-kiosk"]="qutebrowser-kiosk :config-source" # broken due to qutebrowser-kiosk being an alias
["waybar"]="killall -SIGUSR2 waybar" ["waybar"]="killall -SIGUSR2 waybar"

View file

@ -4,6 +4,7 @@ return {
-- add more things to the ensure_installed table protecting against community packs modifying it -- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, { opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
-- "lua" -- "lua"
"pkl"
}) })
end, end,
} }

View file

@ -15,7 +15,10 @@ return {
-- end, -- end,
-- }, -- },
{
"apple/pkl-neovim", "apple/pkl-neovim",
lazy = false,
},
{ {
"wakatime/vim-wakatime", "wakatime/vim-wakatime",

View file

@ -3,21 +3,22 @@
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
nodejs # needed for lsp nodejs # needed for lsp
neovim # editor
fzf # fuzzy finder fzf # fuzzy finder
]; ];
programs.neovim = { # programs.neovim = {
enable = true; # enable = true;
extraLuaConfig = '' # extraLuaConfig = ''
require("set") #require("set")
require("remap") #require("remap")
require("plugins") #require("plugins")
require("utils") #require("utils")
#
local status, ts_install = pcall(require, "nvim-treesitter.install") #local status, ts_install = pcall(require, "nvim-treesitter.install")
if(status) then #if(status) then
ts_install.compilers = { "${pkgs.gcc}/bin/gcc" } # ts_install.compilers = { "${pkgs.gcc}/bin/gcc" }
end #end
''; # '';
}; # };
} }