feat(nvim): upgrade to nvim v10 and nixvim unstable
This commit is contained in:
parent
faa11b525a
commit
e7c5986b79
@ -22,8 +22,8 @@
|
|||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
treefmt-nix.url = "github:numtide/treefmt-nix";
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
||||||
nixvim = {
|
nixvim = {
|
||||||
url = "github:nix-community/nixvim/nixos-24.05";
|
url = "github:nix-community/nixvim";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "unstable";
|
||||||
};
|
};
|
||||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||||
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
|
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
{
|
{
|
||||||
plugins.treesitter = {
|
plugins.treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
indent = true;
|
|
||||||
folding = true;
|
folding = true;
|
||||||
nixvimInjections = true;
|
nixvimInjections = true;
|
||||||
|
settings = {
|
||||||
|
highlight.enable = true;
|
||||||
|
indent.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2,21 +2,23 @@
|
|||||||
plugins.none-ls = {
|
plugins.none-ls = {
|
||||||
enable = false;
|
enable = false;
|
||||||
enableLspFormat = false;
|
enableLspFormat = false;
|
||||||
updateInInsert = false;
|
settings = {
|
||||||
onAttach = ''
|
update_in_insert = false;
|
||||||
function(client, bufnr)
|
on_attach = ''
|
||||||
if client.supports_method "textDocument/formatting" then
|
function(client, bufnr)
|
||||||
vim.api.nvim_clear_autocmds { group = augroup, buffer = bufnr }
|
if client.supports_method "textDocument/formatting" then
|
||||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
vim.api.nvim_clear_autocmds { group = augroup, buffer = bufnr }
|
||||||
group = augroup,
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
buffer = bufnr,
|
group = augroup,
|
||||||
callback = function()
|
buffer = bufnr,
|
||||||
vim.lsp.buf.format { bufnr = bufnr }
|
callback = function()
|
||||||
end,
|
vim.lsp.buf.format { bufnr = bufnr }
|
||||||
})
|
end,
|
||||||
|
})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
'';
|
||||||
'';
|
};
|
||||||
sources = {
|
sources = {
|
||||||
code_actions = {
|
code_actions = {
|
||||||
gitsigns.enable = true;
|
gitsigns.enable = true;
|
||||||
@ -36,11 +38,6 @@
|
|||||||
};
|
};
|
||||||
prettier = {
|
prettier = {
|
||||||
enable = true;
|
enable = true;
|
||||||
withArgs = ''
|
|
||||||
{
|
|
||||||
extra_args = { "--no-semi", "--single-quote" },
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
google_java_format = {
|
google_java_format = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -50,7 +47,7 @@
|
|||||||
};
|
};
|
||||||
black = {
|
black = {
|
||||||
enable = true;
|
enable = true;
|
||||||
withArgs = ''
|
settings = ''
|
||||||
{
|
{
|
||||||
extra_args = { "--fast" },
|
extra_args = { "--fast" },
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,20 @@
|
|||||||
{
|
{
|
||||||
plugins.flash = {
|
plugins.flash = {
|
||||||
enable = false;
|
enable = false;
|
||||||
labels = "asdfghjklqwertyuiopzxcvbnm";
|
settings = {
|
||||||
search = {
|
labels = "asdfghjklqwertyuiopzxcvbnm";
|
||||||
mode = "fuzzy";
|
search = {
|
||||||
};
|
mode = "fuzzy";
|
||||||
jump = {
|
};
|
||||||
autojump = true;
|
jump = {
|
||||||
};
|
autojump = true;
|
||||||
label = {
|
};
|
||||||
uppercase = false;
|
label = {
|
||||||
rainbow = {
|
uppercase = false;
|
||||||
enabled = false;
|
rainbow = {
|
||||||
shade = 5;
|
enabled = false;
|
||||||
|
shade = 5;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -3,12 +3,13 @@
|
|||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
system = pkgs.system;
|
inherit (pkgs) system;
|
||||||
nixvim = inputs.nixvim.legacyPackages.${system};
|
nixvim = inputs.nixvim.legacyPackages.${system};
|
||||||
icons = import ./config/icons.nix;
|
icons = import ./config/icons.nix;
|
||||||
nixvimModule = {
|
nixvimModule = {
|
||||||
inherit pkgs;
|
pkgs = inputs.unstable.legacyPackages.${system};
|
||||||
module = import ./config;
|
module = import ./config;
|
||||||
extraSpecialArgs = {inherit icons;};
|
extraSpecialArgs = {inherit icons;};
|
||||||
};
|
};
|
||||||
in (nixvim.makeNixvimWithModule nixvimModule)
|
in
|
||||||
|
nixvim.makeNixvimWithModule nixvimModule
|
||||||
|
Loading…
x
Reference in New Issue
Block a user