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 = {
|
||||
rust-analyzer = {
|
||||
cargo.targetDir = true;
|
||||
files.watcher = "server";
|
||||
diagnostics.refresh_update = true;
|
||||
};
|
||||
};
|
||||
@@ -145,10 +144,6 @@
|
||||
settings = {
|
||||
nixd = {
|
||||
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;
|
||||
};
|
||||
};
|
||||
lsp-format = {
|
||||
enable = true;
|
||||
# lspServersToEnable = [ "qmlls" ];
|
||||
};
|
||||
notify = {
|
||||
enable = true;
|
||||
settings = {
|
||||
background_color = "#00000000";
|
||||
};
|
||||
};
|
||||
mini-cursorword.enable = true;
|
||||
# mini-statusline.enable = true;
|
||||
lualine = {
|
||||
enable = true;
|
||||
@@ -207,11 +191,6 @@
|
||||
};
|
||||
};
|
||||
web-devicons.enable = true;
|
||||
vim-dadbod-completion.enable = true;
|
||||
telescope = {
|
||||
enable = true;
|
||||
extensions.file-browser.enable = true;
|
||||
};
|
||||
lazygit.enable = true;
|
||||
mini-indentscope = {
|
||||
enable = true;
|
||||
@@ -301,14 +280,6 @@
|
||||
tiny-inline-diagnostic.enable = true;
|
||||
# tiny-code-action.enable = true;
|
||||
# persisted.enable = true;
|
||||
auto-session = {
|
||||
enable = false;
|
||||
settings = {
|
||||
enabled = true;
|
||||
auto_save = true;
|
||||
auto_restore = true;
|
||||
};
|
||||
};
|
||||
wakatime.enable = true;
|
||||
treesitter = {
|
||||
enable = true;
|
||||
@@ -371,14 +342,7 @@
|
||||
'';
|
||||
keymaps = [
|
||||
{
|
||||
action = "<cmd>Telescope persisted<cr>";
|
||||
key = "<leader>fs";
|
||||
options = {
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<cmd>Telescope find_files<cr>";
|
||||
action = "<cmd>lua require('snacks.picker').files()<cr>";
|
||||
key = "<leader>ff";
|
||||
options = {
|
||||
silent = true;
|
||||
@@ -399,14 +363,14 @@
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<cmd>Telescope buffers<cr>";
|
||||
action = "<cmd>lua require('snacks.picker').buffers()<cr>";
|
||||
key = "<leader>fb";
|
||||
options = {
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<cmd>Telescope live_grep<cr>";
|
||||
action = "<cmd>lua require('snacks.picker').grep()<cr>";
|
||||
key = "<leader>fg";
|
||||
options = {
|
||||
silent = true;
|
||||
@@ -465,7 +429,7 @@
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<cmd>Telescope lsp_references<cr>";
|
||||
action = "<cmd>lua require('snacks.picker').lsp_references()<cr>";
|
||||
key = "gr";
|
||||
options = {
|
||||
silent = true;
|
||||
|
||||
Reference in New Issue
Block a user