Update nixvim config
This commit is contained in:
@@ -8,7 +8,6 @@ top @ { config
|
|||||||
inputs.nixvim.homeModules.nixvim
|
inputs.nixvim.homeModules.nixvim
|
||||||
inputs.catppuccin.homeModules.catppuccin
|
inputs.catppuccin.homeModules.catppuccin
|
||||||
inputs.spicetify-nix.homeManagerModules.default
|
inputs.spicetify-nix.homeManagerModules.default
|
||||||
./nixvim
|
|
||||||
./borgmatic.nix
|
./borgmatic.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
];
|
];
|
||||||
@@ -37,6 +36,10 @@ top @ { config
|
|||||||
gdb
|
gdb
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
};
|
||||||
|
|
||||||
home.pointerCursor =
|
home.pointerCursor =
|
||||||
let
|
let
|
||||||
size = 24;
|
size = 24;
|
||||||
@@ -73,6 +76,11 @@ top @ { config
|
|||||||
|
|
||||||
#TODO: GDB configuration
|
#TODO: GDB configuration
|
||||||
|
|
||||||
|
programs.nixvim = {
|
||||||
|
enable = true;
|
||||||
|
imports = [ ./nixvim ];
|
||||||
|
};
|
||||||
|
|
||||||
programs.thunderbird = {
|
programs.thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles.default.isDefault = true;
|
profiles.default.isDefault = true;
|
||||||
|
|||||||
@@ -5,19 +5,15 @@
|
|||||||
./plugins
|
./plugins
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.nixvim = {
|
clipboard.register = "unnamedplus";
|
||||||
|
|
||||||
|
colorschemes.catppuccin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
settings.flavour = "mocha";
|
||||||
clipboard.register = "unnamedplus";
|
settings.integrations = {
|
||||||
|
gitsigns = true;
|
||||||
colorschemes.catppuccin = {
|
treesitter = true;
|
||||||
enable = true;
|
cmp = true;
|
||||||
settings.flavour = "mocha";
|
|
||||||
settings.integrations = {
|
|
||||||
gitsigns = true;
|
|
||||||
treesitter = true;
|
|
||||||
cmp = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
programs.nixvim.globals.mapleader = " ";
|
globals.mapleader = " ";
|
||||||
|
|
||||||
programs.nixvim.keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
key = "<esc>";
|
key = "<esc>";
|
||||||
action = ":noh<CR>";
|
action = ":noh<CR>";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
programs.nixvim.opts = {
|
opts = {
|
||||||
# Expand tabs to 4 spaces
|
# Expand tabs to 4 spaces
|
||||||
shiftwidth = 4;
|
shiftwidth = 4;
|
||||||
softtabstop = 4;
|
softtabstop = 4;
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{...}: {
|
{ ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./keymaps.nix
|
./keymaps.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.nixvim.plugins = {
|
plugins = {
|
||||||
lspkind.enable = true;
|
lspkind.enable = true;
|
||||||
|
|
||||||
cmp-nvim-lsp-signature-help.enable = true;
|
cmp-nvim-lsp-signature-help.enable = true;
|
||||||
@@ -14,9 +14,9 @@
|
|||||||
autoLoad = true;
|
autoLoad = true;
|
||||||
|
|
||||||
settings.sources = [
|
settings.sources = [
|
||||||
{name = "nvim_lsp";}
|
{ name = "nvim_lsp"; }
|
||||||
{name = "nvim_lsp_signature_help";}
|
{ name = "nvim_lsp_signature_help"; }
|
||||||
{name = "path";}
|
{ name = "path"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
settings.mapping = {
|
settings.mapping = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{...}: {
|
{ ... }: {
|
||||||
programs.nixvim.keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
key = "grd";
|
key = "grd";
|
||||||
action = "<cmd>Telescope lsp_definitions<CR>";
|
action = "<cmd>Telescope lsp_definitions<CR>";
|
||||||
|
|||||||
@@ -5,14 +5,13 @@
|
|||||||
./cmp
|
./cmp
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.nixvim.plugins = {
|
plugins = {
|
||||||
lualine.enable = true;
|
lualine.enable = true;
|
||||||
|
|
||||||
web-devicons.enable = true;
|
web-devicons.enable = true;
|
||||||
|
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
folding = true;
|
|
||||||
autoLoad = true;
|
autoLoad = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,38 +1,36 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
programs.nixvim = {
|
dependencies.rust-analyzer.enable = true;
|
||||||
dependencies.rust-analyzer.enable = true;
|
|
||||||
|
|
||||||
lsp = {
|
lsp = {
|
||||||
inlayHints.enable = true;
|
inlayHints.enable = true;
|
||||||
servers = {
|
servers = {
|
||||||
"*" = {
|
"*" = {
|
||||||
config.capabilities.textDocument.semanticTokens.multilineTokenSupport = true;
|
config.capabilities.textDocument.semanticTokens.multilineTokenSupport = true;
|
||||||
config.root_markers = [
|
config.root_markers = [
|
||||||
".git"
|
".git"
|
||||||
];
|
];
|
||||||
};
|
|
||||||
clangd = {
|
|
||||||
enable = true;
|
|
||||||
config.root_markers = [
|
|
||||||
"compile_commands.json"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
rust_analyzer = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
rnix.enable = true;
|
|
||||||
};
|
};
|
||||||
|
clangd = {
|
||||||
keymaps = [
|
enable = true;
|
||||||
{
|
config.root_markers = [
|
||||||
key = "<leader>e";
|
"compile_commands.json"
|
||||||
action = "<cmd>lua vim.diagnostic.open_float()<CR>";
|
];
|
||||||
options.desc = "Open Diagnostics";
|
};
|
||||||
}
|
rust_analyzer = {
|
||||||
];
|
enable = true;
|
||||||
|
};
|
||||||
|
rnix.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
plugins.lspconfig.enable = true;
|
keymaps = [
|
||||||
plugins.clangd-extensions.enable = true;
|
{
|
||||||
|
key = "<leader>e";
|
||||||
|
action = "<cmd>lua vim.diagnostic.open_float()<CR>";
|
||||||
|
options.desc = "Open Diagnostics";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugins.lspconfig.enable = true;
|
||||||
|
plugins.clangd-extensions.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{...}: {
|
{ ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./keymaps.nix
|
./keymaps.nix
|
||||||
];
|
];
|
||||||
programs.nixvim.dependencies.ripgrep.enable = true;
|
dependencies.ripgrep.enable = true;
|
||||||
|
|
||||||
programs.nixvim.plugins.telescope = {
|
plugins.telescope = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.file-browser = {
|
extensions.file-browser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{...}: {
|
{ ... }: {
|
||||||
programs.nixvim.keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
key = "<leader>sf";
|
key = "<leader>sf";
|
||||||
action = "<cmd>Telescope find_files<CR>";
|
action = "<cmd>Telescope find_files<CR>";
|
||||||
|
|||||||
Reference in New Issue
Block a user