many changes

This commit is contained in:
2025-02-23 16:00:33 +01:00
parent e2add63337
commit 386b70314d
29 changed files with 1840 additions and 423 deletions

View File

@@ -5,8 +5,8 @@ self: super: {
version = "1.0.0";
src = super.fetchgit {
url = "https://git.cloonar.com/Cloonar/chatgpt.vim.git";
rev = "aa12bca3abc868b4ebacbd22b6fde83deb656869";
sha256 = "sha256-eK7GQNHR03fQ7j2ExX9QSA+AIW5c1b8fsat3kbS6f9k=";
rev = "7fb8671840181ca5166fcf7b8a8d5f5e10a5efa7";
sha256 = "sha256-g4sEUoZqxlliKHj1TAxwNXN400yLN+QB4wV3drmvf9w=";
};
};
};

View File

@@ -41,5 +41,14 @@ lspc.yamlls.setup({
},
});
-- autoformat json files with jq
vim.api.nvim_create_autocmd("FileType", {
pattern = "json",
callback = function(ev)
vim.bo[ev.buf].formatprg = jq
print("It's a json file")
end,
})
-- lspc.intelephense.setup()

View File

@@ -1,4 +1,9 @@
{ pkgs, ... }:
let
unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) {
config = { allowUnfree = true; };
};
in
{
environment.variables = { EDITOR = "vim"; };
nixpkgs.overlays = [
@@ -9,6 +14,7 @@
environment.systemPackages = with pkgs; [
nodePackages.typescript-language-server
sumneko-lua-language-server
nest
nodePackages.intelephense
nodePackages.vscode-langservers-extracted
nodePackages.yaml-language-server
@@ -17,6 +23,7 @@
ripgrep
lua
luaPackages.lyaml
unstable.aider-chat
(neovim.override {
vimAlias = true;
configure = {
@@ -41,6 +48,7 @@
dracula-vim
friendly-snippets
gitsigns-nvim
jq
lightline-vim
lspkind-nvim
mini-icons
@@ -67,7 +75,8 @@
vim-sneak
vim-vsnip
which-key-nvim
rest-nvim
unstable.pkgs.vimPlugins.rest-nvim
aider-nvim
];
opt = [];
};