Update nvim config
This commit is contained in:
parent
fa68cf226b
commit
028221ee73
4 changed files with 21 additions and 20 deletions
6
.bin/.e
6
.bin/.e
|
@ -4,7 +4,6 @@ declare -A mapper=(
|
|||
[".e"]="$HOME/.bin/.e"
|
||||
[".t"]="$HOME/.bin/.t"
|
||||
["alacritty"]="$HOME/.config/alacritty/alacritty.toml"
|
||||
["astronvim"]="$HOME/.config/astronvim/lua/user/"
|
||||
["autoinstall.toml"]="$HOME/.config/autoinstall.toml"
|
||||
["autostart.toml"]="$HOME/.config/autostart.toml"
|
||||
["backup"]="$HOME/.bin/host-backup-$(cat /proc/sys/kernel/hostname)"
|
||||
|
@ -17,8 +16,7 @@ declare -A mapper=(
|
|||
["git-ignore"]="$HOME/.config/git/ignore"
|
||||
["home-manager"]="$HOME/.config/home-manager/home.nix"
|
||||
["hyprland"]="$HOME/.config/hypr/hyprland.conf"
|
||||
["nvim"]="$HOME/.config/nvim/"
|
||||
["nvim.packer"]="$HOME/.config/nvim/lua/plugins.lua"
|
||||
["nvim"]="$HOME/.config/astronvim/lua/user/"
|
||||
["polybar"]="$HOME/.config/polybar"
|
||||
["qutebrowser"]="$HOME/.config/qutebrowser/config.py"
|
||||
["qutebrowser-kiosk"]="$HOME/.config/qutebrowser/config_kiosk.py"
|
||||
|
@ -36,8 +34,6 @@ declare -A mapper=(
|
|||
)
|
||||
|
||||
declare -A hooks=(
|
||||
["nvim"]="nvim +PackerSync"
|
||||
["nvim.packer"]="nvim +PackerSync"
|
||||
["qutebrowser"]="qutebrowser :config-source"
|
||||
["qutebrowser-kiosk"]="qutebrowser-kiosk :config-source" # broken due to qutebrowser-kiosk being an alias
|
||||
["waybar"]="killall -SIGUSR2 waybar"
|
||||
|
|
|
@ -4,6 +4,7 @@ return {
|
|||
-- 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, {
|
||||
-- "lua"
|
||||
"pkl"
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -15,7 +15,10 @@ return {
|
|||
-- end,
|
||||
-- },
|
||||
|
||||
"apple/pkl-neovim",
|
||||
{
|
||||
"apple/pkl-neovim",
|
||||
lazy = false,
|
||||
},
|
||||
|
||||
{
|
||||
"wakatime/vim-wakatime",
|
||||
|
|
|
@ -3,21 +3,22 @@
|
|||
{
|
||||
home.packages = with pkgs; [
|
||||
nodejs # needed for lsp
|
||||
neovim # editor
|
||||
fzf # fuzzy finder
|
||||
];
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
extraLuaConfig = ''
|
||||
require("set")
|
||||
require("remap")
|
||||
require("plugins")
|
||||
require("utils")
|
||||
|
||||
local status, ts_install = pcall(require, "nvim-treesitter.install")
|
||||
if(status) then
|
||||
ts_install.compilers = { "${pkgs.gcc}/bin/gcc" }
|
||||
end
|
||||
'';
|
||||
};
|
||||
# programs.neovim = {
|
||||
# enable = true;
|
||||
# extraLuaConfig = ''
|
||||
#require("set")
|
||||
#require("remap")
|
||||
#require("plugins")
|
||||
#require("utils")
|
||||
#
|
||||
#local status, ts_install = pcall(require, "nvim-treesitter.install")
|
||||
#if(status) then
|
||||
# ts_install.compilers = { "${pkgs.gcc}/bin/gcc" }
|
||||
#end
|
||||
# '';
|
||||
# };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue