neovim to be managed home-manager instead of Lazy
This commit is contained in:
parent
618a923165
commit
95ba2a9ee0
@ -25,11 +25,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1697522715,
|
||||
"narHash": "sha256-QXk+nnQtdfsShjXCYmH6aq3wVQqsQD8h5VIDFIust8A=",
|
||||
"lastModified": 1697531492,
|
||||
"narHash": "sha256-v813jggnyO+wLMKvbkeOruZCh6wubVZEdfxKqJS4bq8=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "132f9851858986d78db0b08157256384bbc5738c",
|
||||
"rev": "7a46e6cb3ca02a478bdafc53c0ac89da6efc050c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -59,9 +59,6 @@
|
||||
gcon = "git config user.name";
|
||||
all-switch = "nix-switch && home-switch";
|
||||
all-update = "nix flake update ${flake_path}# && all-switch";
|
||||
vi = "nvim";
|
||||
vim = "nvim";
|
||||
vimdiff = "nvim -d";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -1,7 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./neovim.nix
|
||||
./neovim
|
||||
./zsh.nix
|
||||
./packages.nix
|
||||
];
|
||||
|
@ -1,25 +0,0 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
neovim
|
||||
ripgrep
|
||||
|
||||
# Language Servers
|
||||
lua-language-server # Lua
|
||||
nixd # Nix
|
||||
gopls # GoLang
|
||||
rust-analyzer # Rust
|
||||
zls # Zig
|
||||
llvmPackages_15.clang-unwrapped #C, C++
|
||||
python311Packages.jedi-language-server #Python
|
||||
nodePackages_latest.vscode-langservers-extracted #HTML,CSS, JSON
|
||||
nodePackages_latest.grammarly-languageserver #Markdown
|
||||
nodePackages_latest.typescript-language-server #Javascript and Typescript
|
||||
nodePackages_latest.bash-language-server #Bash
|
||||
nodePackages_latest.dockerfile-language-server-nodejs #Dockerfiles
|
||||
nodePackages_latest.yaml-language-server #Yaml
|
||||
];
|
||||
xdg.configFile = {
|
||||
"nvim".source = "${inputs.self}/nvim";
|
||||
};
|
||||
}
|
15
nix/users/base/neovim/default.nix
Normal file
15
nix/users/base/neovim/default.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
programs.neovim =
|
||||
let
|
||||
toLua = str: "lua << EOF\n${str}\nEOF\n";
|
||||
toLuaFile = file: "lua << EOF\n${builtins.readFile file}\nEOF\n";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
};
|
||||
}
|
@ -31,7 +31,6 @@
|
||||
lutris
|
||||
mpv
|
||||
neofetch
|
||||
neovim
|
||||
nix-prefetch-github
|
||||
obs-studio
|
||||
obs-studio-plugins.obs-pipewire-audio-capture
|
||||
|
@ -1,5 +0,0 @@
|
||||
--- Plugin Managers ---
|
||||
require(".lazy")
|
||||
|
||||
--- Colorschemes ---
|
||||
vim.cmd("runtime! lua/plugins/colorschemes/*.lua")
|
@ -1,26 +0,0 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
print([[
|
||||
Installing lazy.vim and plugins....
|
||||
]])
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
local plugins = {
|
||||
--- Lazy ---
|
||||
"folke/lazy.nvim" --- Lazy will manage itself
|
||||
|
||||
--- Colorschemes ---
|
||||
{ "catppuccin/nvim", name = "catppuccin", lazy = false, priority = 1000 },
|
||||
}
|
||||
|
||||
local opts = {}
|
||||
require("lazy").setup(plugins, opts)
|
@ -1,49 +0,0 @@
|
||||
local status, plugin = pcall(require, 'catppuccin')
|
||||
if not status then
|
||||
print('Plugin Error: ', plugin)
|
||||
return
|
||||
end
|
||||
|
||||
plugin.setup({
|
||||
flavour = "mocha", -- latte, frappe, macchiato, mocha
|
||||
background = { -- :h background
|
||||
light = "latte",
|
||||
dark = "mocha",
|
||||
},
|
||||
transparent_background = false,
|
||||
show_end_of_buffer = false, -- show the '~' characters after the end of buffers
|
||||
term_colors = false,
|
||||
dim_inactive = {
|
||||
enabled = false,
|
||||
shade = "dark",
|
||||
percentage = 0.15,
|
||||
},
|
||||
no_italic = false, -- Force no italic
|
||||
no_bold = false, -- Force no bold
|
||||
no_underline = false, -- Force no underline
|
||||
styles = {
|
||||
comments = { "italic" },
|
||||
conditionals = { "italic" },
|
||||
loops = {},
|
||||
functions = {},
|
||||
keywords = {},
|
||||
strings = {},
|
||||
variables = {},
|
||||
numbers = {},
|
||||
booleans = {},
|
||||
properties = {},
|
||||
types = {},
|
||||
operators = {},
|
||||
},
|
||||
color_overrides = {},
|
||||
custom_highlights = {},
|
||||
integrations = {
|
||||
cmp = true,
|
||||
gitsigns = true,
|
||||
nvimtree = true,
|
||||
telescope = true,
|
||||
notify = false,
|
||||
mini = false,
|
||||
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
|
||||
},
|
||||
})
|
Loading…
Reference in New Issue
Block a user