chore: move some build processes to nix home-manager
This commit is contained in:
parent
cfbcb0b3a8
commit
1f6326b4ce
4 changed files with 21 additions and 16 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue