configs/neovim: cleanup a bit, add some missing helpers
This commit is contained in:
parent
db22fd97a9
commit
1c524fa0e2
@ -2,19 +2,17 @@ local map = vim.api.nvim_set_keymap
|
|||||||
local o = vim.o
|
local o = vim.o
|
||||||
local cmd = vim.cmd
|
local cmd = vim.cmd
|
||||||
|
|
||||||
--cmd("syntax off");
|
|
||||||
--cmd("set t_Co=0");
|
|
||||||
cmd("set nolist");
|
cmd("set nolist");
|
||||||
cmd("set ruler");
|
cmd("set ruler");
|
||||||
cmd("set mouse=");
|
cmd("set mouse=");
|
||||||
cmd("set t_Co=256");
|
cmd("set t_Co=256");
|
||||||
|
|
||||||
|
-- Theme / overrides
|
||||||
cmd("colorscheme vacme");
|
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! Normal ctermbg=NONE ctermfg=NONE");
|
cmd("hi LineNr none");
|
||||||
cmd("hi! SignColumn NONE");
|
cmd("hi Search cterm=none ctermbg=yellow");
|
||||||
cmd("hi! LineNr NONE");
|
|
||||||
cmd("hi! Search cterm=NONE ctermbg=yellow");
|
|
||||||
|
|
||||||
require("compe").setup {
|
require("compe").setup {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
@ -38,7 +36,6 @@ telescope.load_extension('fzf')
|
|||||||
require("nvim-tree").setup({
|
require("nvim-tree").setup({
|
||||||
renderer = {
|
renderer = {
|
||||||
icons = {
|
icons = {
|
||||||
--show = false,
|
|
||||||
webdev_colors = false,
|
webdev_colors = false,
|
||||||
show = {
|
show = {
|
||||||
file = false,
|
file = false,
|
||||||
|
@ -44,6 +44,74 @@ let
|
|||||||
fetchSubmodules = true;
|
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; [
|
baseVimPackages = with vimPlugins; [
|
||||||
elm-vim
|
elm-vim
|
||||||
fugitive
|
fugitive
|
||||||
@ -80,6 +148,7 @@ in {
|
|||||||
elmPackages.elm
|
elmPackages.elm
|
||||||
elmPackages.elm-format
|
elmPackages.elm-format
|
||||||
elmPackages.elm-language-server
|
elmPackages.elm-language-server
|
||||||
|
fd
|
||||||
fzf
|
fzf
|
||||||
go
|
go
|
||||||
gopls
|
gopls
|
||||||
@ -89,13 +158,18 @@ in {
|
|||||||
luaformatter
|
luaformatter
|
||||||
luajitPackages.lua-lsp
|
luajitPackages.lua-lsp
|
||||||
manix
|
manix
|
||||||
|
nodejs
|
||||||
nodePackages.typescript-language-server
|
nodePackages.typescript-language-server
|
||||||
|
perl
|
||||||
perlPackages.PerlCritic
|
perlPackages.PerlCritic
|
||||||
perlPackages.PLS
|
perlPackages.PLS
|
||||||
ripgrep
|
ripgrep
|
||||||
rubyPackages.solargraph
|
rubyPackages.solargraph
|
||||||
sumneko-lua-language-server
|
sumneko-lua-language-server
|
||||||
|
tree-sitter
|
||||||
zls
|
zls
|
||||||
|
|
||||||
|
NeovimExt
|
||||||
];
|
];
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user