[feat] Added some stuff from nixneovim
This commit is contained in:
@@ -13,6 +13,7 @@ in {
|
|||||||
|
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
[
|
[
|
||||||
|
sqls
|
||||||
vcpkg
|
vcpkg
|
||||||
# vcpkg-tool
|
# vcpkg-tool
|
||||||
file
|
file
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
nil = {
|
nil = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig =
|
extraConfig =
|
||||||
# lua
|
/* lua */
|
||||||
''
|
''
|
||||||
settings = {
|
settings = {
|
||||||
['nil'] = {
|
['nil'] = {
|
||||||
@@ -48,6 +48,15 @@
|
|||||||
lua-language-server.enable = true;
|
lua-language-server.enable = true;
|
||||||
jsonls.enable = true;
|
jsonls.enable = true;
|
||||||
html.enable = true;
|
html.enable = true;
|
||||||
|
pylyzer.enable = true;
|
||||||
|
sqls = {
|
||||||
|
enable = true;
|
||||||
|
onAttachExtra =
|
||||||
|
/* lua */
|
||||||
|
''
|
||||||
|
require('sqls').on_attach(client, bufnr)
|
||||||
|
'';
|
||||||
|
};
|
||||||
# rust-analyzer.enable = true;
|
# rust-analyzer.enable = true;
|
||||||
};
|
};
|
||||||
extraLua.pre =
|
extraLua.pre =
|
||||||
@@ -117,16 +126,18 @@
|
|||||||
"<leader>ee" = "[[<Plug>RestNvim]]";
|
"<leader>ee" = "[[<Plug>RestNvim]]";
|
||||||
"<leader>ec" = "[[<Plug>RestNvimPreview]]";
|
"<leader>ec" = "[[<Plug>RestNvimPreview]]";
|
||||||
"<leader>\\\"" = ''[["+]]'';
|
"<leader>\\\"" = ''[["+]]'';
|
||||||
"<leader><leader>" = "'<c-^>'";
|
"vff" = "[[<cmd>vertical Gdiffsplit<cr>]]";
|
||||||
"vff" = "'<cmd>vertical Gdiffsplit<cr>'";
|
|
||||||
"<C-k>" = "vim.lsp.buf.definition";
|
"<C-k>" = "vim.lsp.buf.definition";
|
||||||
"gi" = "vim.lsp.buf.implementation";
|
"gi" = "vim.lsp.buf.implementation";
|
||||||
"<leader>a" = "vim.lsp.buf.code_action";
|
"<leader>a" = "vim.lsp.buf.code_action";
|
||||||
"F" = "function() vim.lsp.buf.format({ async = true }) end";
|
"F" = "function() vim.lsp.buf.format({ async = true }) end";
|
||||||
"<C-l>" = "'copilot#Accept(\"<CR>\")'";
|
|
||||||
|
"<leader><leader>" = "'<c-^>'";
|
||||||
"<leader>q" = "[[<cmd>bw<cr>]]";
|
"<leader>q" = "[[<cmd>bw<cr>]]";
|
||||||
"<leader>n" = "[[<cmd>bnext<cr>]]";
|
"<leader>n" = "[[<cmd>bnext<cr>]]";
|
||||||
"<leader>p" = "[[<cmd>bprev<cr>]]";
|
"<leader>p" = "[[<cmd>bprev<cr>]]";
|
||||||
|
|
||||||
|
"<C-l>" = "[[<cmd>Outline<cr>]]";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -140,6 +151,9 @@
|
|||||||
telescope-dap-nvim
|
telescope-dap-nvim
|
||||||
rustaceanvim
|
rustaceanvim
|
||||||
|
|
||||||
|
# Treesitter stuff
|
||||||
|
outline-nvim
|
||||||
|
|
||||||
# lsp stuff
|
# lsp stuff
|
||||||
nvim-cmp
|
nvim-cmp
|
||||||
cmp-buffer
|
cmp-buffer
|
||||||
@@ -156,6 +170,7 @@
|
|||||||
lsp-zero-nvim
|
lsp-zero-nvim
|
||||||
trouble-nvim
|
trouble-nvim
|
||||||
crates-nvim
|
crates-nvim
|
||||||
|
sqls-nvim
|
||||||
|
|
||||||
# No more postman
|
# No more postman
|
||||||
rest-nvim
|
rest-nvim
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ cmp.setup.filetype('gitcommit', {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
require('crates').setup()
|
require('crates').setup()
|
||||||
|
require('outline').setup()
|
||||||
require("noice").setup({
|
require("noice").setup({
|
||||||
lsp = {
|
lsp = {
|
||||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
programs.wezterm = {
|
programs.wezterm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = # lua
|
extraConfig =
|
||||||
|
/* lua */
|
||||||
''
|
''
|
||||||
local wezterm = require 'wezterm';
|
local wezterm = require 'wezterm';
|
||||||
return {
|
return {
|
||||||
|
|||||||
118
config/nix/flake.lock
generated
118
config/nix/flake.lock
generated
@@ -395,24 +395,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_8": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_8"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1689068808,
|
|
||||||
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gitignore": {
|
"gitignore": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -691,28 +673,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-github-actions_2": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixneovimplugins",
|
|
||||||
"poetry2nix",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1688870561,
|
|
||||||
"narHash": "sha256-4UYkifnPEw1nAzqqPOTL2MvWtm3sNGw1UTYTalkTcGY=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nix-github-actions",
|
|
||||||
"rev": "165b1650b753316aa7f1787f3005a8d2da0f5301",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nix-github-actions",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixneovim": {
|
"nixneovim": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_7",
|
"flake-utils": "flake-utils_7",
|
||||||
@@ -727,16 +687,16 @@
|
|||||||
"nmt": "nmt"
|
"nmt": "nmt"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709513017,
|
"lastModified": 1709737441,
|
||||||
"narHash": "sha256-Ch86BJ023rvYI4bHAeLKkY6ctQIXMJ+NOVKYo3+SEjQ=",
|
"narHash": "sha256-SM68Sn82qk8osLkpIcvE8Z4iE8C6dWcAdig8TZz2QKM=",
|
||||||
"owner": "nixneovim",
|
"owner": "uttarayan21",
|
||||||
"repo": "nixneovim",
|
"repo": "NixNeovim",
|
||||||
"rev": "80485170869551e50a405e61bb3b37bf17319c98",
|
"rev": "21961ef3fd7193aba8ec76572ce7d5d2e79d027f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixneovim",
|
"owner": "uttarayan21",
|
||||||
"repo": "nixneovim",
|
"repo": "NixNeovim",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -766,28 +726,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixneovimplugins_2": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils_8",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"poetry2nix": "poetry2nix_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1709475467,
|
|
||||||
"narHash": "sha256-lGTtQyGkR1/XIwIQiPFLgtawrMn5DedbAH+Qn5Vk+Zg=",
|
|
||||||
"owner": "NixNeovim",
|
|
||||||
"repo": "NixNeovimPlugins",
|
|
||||||
"rev": "f830c560c66a489f84d165efb5fbc6659718fc83",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixNeovim",
|
|
||||||
"repo": "NixNeovimPlugins",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1706487304,
|
"lastModified": 1706487304,
|
||||||
@@ -975,32 +913,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"poetry2nix_2": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": [
|
|
||||||
"nixneovimplugins",
|
|
||||||
"flake-utils"
|
|
||||||
],
|
|
||||||
"nix-github-actions": "nix-github-actions_2",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixneovimplugins",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1689849924,
|
|
||||||
"narHash": "sha256-d259Z2S7CS7Na04qQNQ6LYQILuI7cf4Rpe76qc4mz40=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "poetry2nix",
|
|
||||||
"rev": "1d7eda9336f336392d24e9602be5cb9be7ae405c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "poetry2nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"pre-commit-hooks-nix": {
|
"pre-commit-hooks-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": [
|
"flake-compat": [
|
||||||
@@ -1045,7 +957,6 @@
|
|||||||
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nixneovim": "nixneovim",
|
"nixneovim": "nixneovim",
|
||||||
"nixneovimplugins": "nixneovimplugins_2",
|
|
||||||
"nixpkgs": "nixpkgs_5",
|
"nixpkgs": "nixpkgs_5",
|
||||||
"nur": "nur"
|
"nur": "nur"
|
||||||
}
|
}
|
||||||
@@ -1239,21 +1150,6 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"systems_8": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
@@ -48,14 +48,15 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
nixneovim = {
|
nixneovim = {
|
||||||
url = "github:nixneovim/nixneovim";
|
# url = "github:nixneovim/nixneovim";
|
||||||
|
url = "github:uttarayan21/NixNeovim";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixneovimplugins = {
|
# nixneovimplugins = {
|
||||||
url = "github:NixNeovim/NixNeovimPlugins";
|
# url = "github:NixNeovim/NixNeovimPlugins";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
# };
|
||||||
|
|
||||||
nur.url = "github:nix-community/nur";
|
nur.url = "github:nix-community/nur";
|
||||||
|
|
||||||
@@ -78,8 +79,16 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, nix-darwin, flake-utils, anyrun, nur
|
outputs =
|
||||||
, neovim-nightly-overlay, ... }@inputs:
|
{ nixpkgs
|
||||||
|
, home-manager
|
||||||
|
, nix-darwin
|
||||||
|
, flake-utils
|
||||||
|
, anyrun
|
||||||
|
, nur
|
||||||
|
, neovim-nightly-overlay
|
||||||
|
, ...
|
||||||
|
}@inputs:
|
||||||
let
|
let
|
||||||
config_devices = [
|
config_devices = [
|
||||||
{
|
{
|
||||||
@@ -146,6 +155,24 @@
|
|||||||
sha256 = "sha256-S1LJXmShhpCJIg/FEPx3jFbmPpS/1U4MAQN2RY/nkI0";
|
sha256 = "sha256-S1LJXmShhpCJIg/FEPx3jFbmPpS/1U4MAQN2RY/nkI0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
sqls-nvim = final.pkgs.vimUtils.buildVimPlugin {
|
||||||
|
name = "sqls-nvim";
|
||||||
|
src = final.pkgs.fetchFromGitHub {
|
||||||
|
owner = "nanotee";
|
||||||
|
repo = "sqls.nvim";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-jKFut6NZAf/eIeIkY7/2EsjsIhvZQKCKAJzeQ6XSr0s";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
outline-nvim = final.pkgs.vimUtils.buildVimPlugin {
|
||||||
|
name = "outline-nvim";
|
||||||
|
src = final.pkgs.fetchFromGitHub {
|
||||||
|
owner = "hedyhli";
|
||||||
|
repo = "outline.nvim";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-HaxfnvgFy7fpa2CS7/dQhf6dK9+Js7wP5qGdIeXLGPY";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -177,23 +204,27 @@
|
|||||||
inputs.neovim-nightly-overlay.overlay
|
inputs.neovim-nightly-overlay.overlay
|
||||||
anyrun-overlay
|
anyrun-overlay
|
||||||
inputs.nixneovim.overlays.default
|
inputs.nixneovim.overlays.default
|
||||||
inputs.nixneovimplugins.overlays.default
|
# inputs.nixneovimplugins.overlays.default
|
||||||
nur.overlay
|
nur.overlay
|
||||||
];
|
];
|
||||||
in {
|
in
|
||||||
nixosConfigurations = let devices = nixos_devices;
|
{
|
||||||
in import ./nixos/device.nix {
|
nixosConfigurations =
|
||||||
inherit devices inputs nixpkgs home-manager overlays nur;
|
let devices = nixos_devices;
|
||||||
};
|
in import ./nixos/device.nix {
|
||||||
|
inherit devices inputs nixpkgs home-manager overlays nur;
|
||||||
|
};
|
||||||
|
|
||||||
darwinConfigurations = let devices = darwin_devices;
|
darwinConfigurations =
|
||||||
in import ./darwin/device.nix {
|
let devices = darwin_devices;
|
||||||
inherit devices inputs nixpkgs home-manager overlays nix-darwin;
|
in import ./darwin/device.nix {
|
||||||
};
|
inherit devices inputs nixpkgs home-manager overlays nix-darwin;
|
||||||
|
};
|
||||||
|
|
||||||
homeConfigurations = let devices = linux_devices;
|
homeConfigurations =
|
||||||
in import ./linux/device.nix {
|
let devices = linux_devices;
|
||||||
inherit devices inputs nixpkgs home-manager overlays;
|
in import ./linux/device.nix {
|
||||||
};
|
inherit devices inputs nixpkgs home-manager overlays;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user