refactor(nixvim): drop redundant plugins, keep snacks
- drop lsp-format (conform lsp_format=fallback already formats via LSP) - drop notify (snacks.notifier is the toast system) - drop mini-cursorword (snacks.words covers word highlighting) - drop telescope+file-browser (snacks.picker replaces it; keymaps swapped) - drop vim-dadbod-completion (no vim-dadbod installed, source never fires) - drop auto-session dead block (disabled with settings) - drop <leader>fs persisted keymap (extension disabled, errored on press) - rustaceanvim: drop files.watcher=server (RA notify 'No path was found' errors) - nixd: drop options exprs (flake configs stack-overflow on eval, broken)
This commit is contained in:
@@ -114,7 +114,6 @@
|
|||||||
default_settings = {
|
default_settings = {
|
||||||
rust-analyzer = {
|
rust-analyzer = {
|
||||||
cargo.targetDir = true;
|
cargo.targetDir = true;
|
||||||
files.watcher = "server";
|
|
||||||
diagnostics.refresh_update = true;
|
diagnostics.refresh_update = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -145,10 +144,6 @@
|
|||||||
settings = {
|
settings = {
|
||||||
nixd = {
|
nixd = {
|
||||||
nixpkgs.expr = "import (builtins.getFlake \"${toString /home/doloro/dotfiles}\").inputs.nixpkgs { }";
|
nixpkgs.expr = "import (builtins.getFlake \"${toString /home/doloro/dotfiles}\").inputs.nixpkgs { }";
|
||||||
options = {
|
|
||||||
nixos.expr = "(builtins.getFlake \"${toString /home/doloro/dotfiles}\").nixosConfigurations.desktop.options";
|
|
||||||
home_manager.expr = "(builtins.getFlake \"${toString /home/doloro/dotfiles}\").homeConfigurations.doloro-desktop.options";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -165,17 +160,6 @@
|
|||||||
svelte.enable = true;
|
svelte.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
lsp-format = {
|
|
||||||
enable = true;
|
|
||||||
# lspServersToEnable = [ "qmlls" ];
|
|
||||||
};
|
|
||||||
notify = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
background_color = "#00000000";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
mini-cursorword.enable = true;
|
|
||||||
# mini-statusline.enable = true;
|
# mini-statusline.enable = true;
|
||||||
lualine = {
|
lualine = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -207,11 +191,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
web-devicons.enable = true;
|
web-devicons.enable = true;
|
||||||
vim-dadbod-completion.enable = true;
|
|
||||||
telescope = {
|
|
||||||
enable = true;
|
|
||||||
extensions.file-browser.enable = true;
|
|
||||||
};
|
|
||||||
lazygit.enable = true;
|
lazygit.enable = true;
|
||||||
mini-indentscope = {
|
mini-indentscope = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -301,14 +280,6 @@
|
|||||||
tiny-inline-diagnostic.enable = true;
|
tiny-inline-diagnostic.enable = true;
|
||||||
# tiny-code-action.enable = true;
|
# tiny-code-action.enable = true;
|
||||||
# persisted.enable = true;
|
# persisted.enable = true;
|
||||||
auto-session = {
|
|
||||||
enable = false;
|
|
||||||
settings = {
|
|
||||||
enabled = true;
|
|
||||||
auto_save = true;
|
|
||||||
auto_restore = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
wakatime.enable = true;
|
wakatime.enable = true;
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -371,14 +342,7 @@
|
|||||||
'';
|
'';
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
action = "<cmd>Telescope persisted<cr>";
|
action = "<cmd>lua require('snacks.picker').files()<cr>";
|
||||||
key = "<leader>fs";
|
|
||||||
options = {
|
|
||||||
silent = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
action = "<cmd>Telescope find_files<cr>";
|
|
||||||
key = "<leader>ff";
|
key = "<leader>ff";
|
||||||
options = {
|
options = {
|
||||||
silent = true;
|
silent = true;
|
||||||
@@ -399,14 +363,14 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
action = "<cmd>Telescope buffers<cr>";
|
action = "<cmd>lua require('snacks.picker').buffers()<cr>";
|
||||||
key = "<leader>fb";
|
key = "<leader>fb";
|
||||||
options = {
|
options = {
|
||||||
silent = true;
|
silent = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
action = "<cmd>Telescope live_grep<cr>";
|
action = "<cmd>lua require('snacks.picker').grep()<cr>";
|
||||||
key = "<leader>fg";
|
key = "<leader>fg";
|
||||||
options = {
|
options = {
|
||||||
silent = true;
|
silent = true;
|
||||||
@@ -465,7 +429,7 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
action = "<cmd>Telescope lsp_references<cr>";
|
action = "<cmd>lua require('snacks.picker').lsp_references()<cr>";
|
||||||
key = "gr";
|
key = "gr";
|
||||||
options = {
|
options = {
|
||||||
silent = true;
|
silent = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user