chore: move some build processes to nix home-manager

This commit is contained in:
Zhongheng Liu 2026-03-16 16:37:29 +01:00
commit 1f6326b4ce
Signed by untrusted user who does not match committer: steven
GPG key ID: 805A28B071DAD84B
4 changed files with 21 additions and 16 deletions

View file

@ -15,6 +15,7 @@
programs = {
home-manager.enable = true;
fish.enable = true;
zoxide.enable = true;
starship = {
enable = true;
enableFishIntegration = true;
@ -46,15 +47,16 @@
vimAlias = true;
plugins = with pkgs.vimPlugins; [
oil-nvim
nvim-colorizer-lua
nvim-treesitter
mini-nvim
plenary-nvim
telescope-nvim
gitsigns-nvim
vim-airline
nvim-web-devicons
vim-startify
nvim-colorizer-lua
nvim-treesitter
mini-nvim
plenary-nvim
telescope-nvim
gitsigns-nvim
vim-airline
nvim-web-devicons
vim-startify
nvim-lspconfig
];
extraLuaConfig = builtins.readFile ./neovim/init.lua;
};

View file

@ -12,10 +12,18 @@ vim.cmd [[
-- Disable netrw first:
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.diagnostic.config({
virtual_text = true,
})
require("oil").setup({
default_file_explorer = true,
})
vim.lsp.config['rust-analyzer'] = {
cmd = { 'rust-analyzer' },
filetypes = { 'rust' },
root_markers = { {'Cargo.toml', 'Cargo.lock'} },
}
vim.lsp.enable('rust-analyzer')
-- Keymaps
vim.keymap.set("n", "-", require("oil").open, { desc = "Open Oil" })
vim.keymap.set("n", "<leader>-", require("oil").open_float, { desc = "Open Oil float" })