configs/neovim: cleanup a bit, add some missing helpers

This commit is contained in:
Aaron Bieber 2023-05-26 05:43:04 -06:00
parent db22fd97a9
commit 1c524fa0e2
No known key found for this signature in database
2 changed files with 80 additions and 9 deletions

View File

@ -2,19 +2,17 @@ local map = vim.api.nvim_set_keymap
local o = vim.o
local cmd = vim.cmd
--cmd("syntax off");
--cmd("set t_Co=0");
cmd("set nolist");
cmd("set ruler");
cmd("set mouse=");
cmd("set t_Co=256");
-- Theme / overrides
cmd("colorscheme vacme");
cmd("hi! Normal ctermbg=NONE ctermfg=NONE");
cmd("hi! Normal ctermbg=NONE ctermfg=NONE");
cmd("hi! Normal ctermbg=NONE ctermfg=NONE");
cmd("hi! SignColumn NONE");
cmd("hi! LineNr NONE");
cmd("hi! Search cterm=NONE ctermbg=yellow");
cmd("hi Normal ctermbg=none ctermfg=none");
cmd("hi SignColumn none");
cmd("hi LineNr none");
cmd("hi Search cterm=none ctermbg=yellow");
require("compe").setup {
enabled = true;
@ -38,7 +36,6 @@ telescope.load_extension('fzf')
require("nvim-tree").setup({
renderer = {
icons = {
--show = false,
webdev_colors = false,
show = {
file = false,

View File

@ -44,6 +44,74 @@ let
fetchSubmodules = true;
};
};
MsgPackRaw = perlPackages.buildPerlPackage {
pname = "MsgPack-Raw";
version = "0.05";
src = fetchurl {
url = "mirror://cpan/authors/id/J/JA/JACQUESG/MsgPack-Raw-0.05.tar.gz";
sha256 =
"8559e2b64cd98d99abc666edf2a4c8724c9534612616af11f4eb0bbd0d422dac";
};
buildInputs = with perlPackages; [ TestPod TestPodCoverage ];
meta = {
description = "Perl bindings to the msgpack C library";
license = with lib.licenses; [ artistic1 gpl1Plus ];
};
};
EvalSafe = perlPackages.buildPerlPackage {
pname = "Eval-Safe";
version = "0.02";
src = fetchurl {
url =
"mirror://cpan/authors/id/M/MA/MATHIAS/Eval-Safe/Eval-Safe-0.02.tar.gz";
sha256 =
"55a52c233e2dae86113f9f19b34f617edcfc8416f9bece671267bd1811b12111";
};
outputs = [ "out" "dev" ];
meta = {
description = "Simplified safe evaluation of Perl code";
license = lib.licenses.mit;
};
};
NeovimExt = perlPackages.buildPerlPackage {
pname = "Neovim-Ext";
version = "0.06";
src = fetchurl {
url = "mirror://cpan/authors/id/J/JA/JACQUESG/Neovim-Ext-0.06.tar.gz";
sha256 =
"6d2ceb3062c96737dba556cb20463130fc4006871b25b7c4f66cd3819d4504b8";
};
buildInputs = with perlPackages; [
ArchiveZip
FileSlurper
FileWhich
ProcBackground
TestPod
TestPodCoverage
];
propagatedBuildInputs = with perlPackages; [
ClassAccessor
EvalSafe
IOAsync
MsgPackRaw
];
# Attempts to download stuff from the internet.
doCheck = false;
outputs = [ "out" "dev" ];
meta = {
description = "Perl bindings for neovim";
license = with lib.licenses; [ artistic1 gpl1Plus ];
};
};
baseVimPackages = with vimPlugins; [
elm-vim
fugitive
@ -80,6 +148,7 @@ in {
elmPackages.elm
elmPackages.elm-format
elmPackages.elm-language-server
fd
fzf
go
gopls
@ -89,13 +158,18 @@ in {
luaformatter
luajitPackages.lua-lsp
manix
nodejs
nodePackages.typescript-language-server
perl
perlPackages.PerlCritic
perlPackages.PLS
ripgrep
rubyPackages.solargraph
sumneko-lua-language-server
tree-sitter
zls
NeovimExt
];
programs.neovim = {
enable = true;