update plugins
This commit is contained in:
parent
1287118d16
commit
08b00ba398
6 changed files with 52 additions and 35 deletions
|
|
@ -26,7 +26,6 @@
|
||||||
formatter = forAllSystems (system:
|
formatter = forAllSystems (system:
|
||||||
nix-formatter-pack.lib.mkFormatter {
|
nix-formatter-pack.lib.mkFormatter {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
|
||||||
config.tools = {
|
config.tools = {
|
||||||
deadnix.enable = true;
|
deadnix.enable = true;
|
||||||
nixfmt.enable = true;
|
nixfmt.enable = true;
|
||||||
|
|
|
||||||
11
plugins/cmp.nix
Normal file
11
plugins/cmp.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
plugins.cmp = {
|
||||||
|
autoEnableSources = true;
|
||||||
|
settings.sources = [
|
||||||
|
{ name = "nvim_lsp"; }
|
||||||
|
{ name = "path"; }
|
||||||
|
{ name = "buffer"; }
|
||||||
|
{ name = "cmdline"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,44 +1,26 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./lsp
|
./cmp.nix
|
||||||
|
./lsp.nix
|
||||||
./mini.nix
|
./mini.nix
|
||||||
|
./treesitter.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
treesitter = {
|
# todo comments highlighter
|
||||||
enable = true;
|
|
||||||
# folding = true; # i dont like the way it starts neovim with everything folded
|
|
||||||
settings = {
|
|
||||||
ensure_installed = [
|
|
||||||
"python"
|
|
||||||
"astro"
|
|
||||||
"just"
|
|
||||||
"dockerfile"
|
|
||||||
"json"
|
|
||||||
"yaml"
|
|
||||||
"lua"
|
|
||||||
"nix"
|
|
||||||
"c"
|
|
||||||
"markdown"
|
|
||||||
];
|
|
||||||
highlight = { enable = true; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
todo-comments.enable = true;
|
todo-comments.enable = true;
|
||||||
|
|
||||||
|
# a statusline plugin
|
||||||
lualine.enable = true;
|
lualine.enable = true;
|
||||||
|
|
||||||
# cmp = {
|
# syntax highlighting
|
||||||
# # TODO read what this does
|
treesitter.enable = true;
|
||||||
# # basically, it's a completion plugin
|
|
||||||
# enable = true;
|
|
||||||
# autoEnableSources = true;
|
|
||||||
# };
|
|
||||||
cmp-nvim-lsp.enable = true;
|
|
||||||
|
|
||||||
# blink completion
|
# completion plugin
|
||||||
blink-cmp.enable = true;
|
cmp.enable = true;
|
||||||
blink-compat.enable = true;
|
|
||||||
|
# blink completion plugin (disabled in favor of cmp)
|
||||||
|
blink-cmp.enable = false;
|
||||||
|
|
||||||
# Extensible UI for Neovim notifications and LSP progress messages.
|
# Extensible UI for Neovim notifications and LSP progress messages.
|
||||||
fidget.enable = true;
|
fidget.enable = true;
|
||||||
|
|
@ -55,9 +37,15 @@
|
||||||
# vim exercises
|
# vim exercises
|
||||||
vim-be-good.enable = true;
|
vim-be-good.enable = true;
|
||||||
|
|
||||||
web-devicons.enable = true; # be concious of this choice
|
# Provides Nerd Font icons
|
||||||
|
web-devicons.enable = true;
|
||||||
|
|
||||||
|
# better ui experience
|
||||||
|
noice.enable = true;
|
||||||
|
|
||||||
|
# an introduction plugin
|
||||||
|
mini.enable = true; # TODO look more into the mini plugin
|
||||||
|
|
||||||
# TODO: add floating command inputter
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{config, lib, ...}:{
|
{config, lib, ...}:{
|
||||||
plugins.mini = {
|
plugins.mini = {
|
||||||
enable = true;
|
|
||||||
modules = {
|
modules = {
|
||||||
starter = {
|
starter = {
|
||||||
header = ''
|
header = ''
|
||||||
|
|
|
||||||
20
plugins/treesitter.nix
Normal file
20
plugins/treesitter.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
plugins.treesitter = {
|
||||||
|
# folding = true; # i dont like the way it starts neovim with everything folded
|
||||||
|
settings = {
|
||||||
|
ensure_installed = [
|
||||||
|
"python"
|
||||||
|
"astro"
|
||||||
|
"just"
|
||||||
|
"dockerfile"
|
||||||
|
"json"
|
||||||
|
"yaml"
|
||||||
|
"lua"
|
||||||
|
"nix"
|
||||||
|
"c"
|
||||||
|
"markdown"
|
||||||
|
];
|
||||||
|
highlight = { enable = true; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue