mirror of
https://github.com/davegallant/nix-config
synced 2025-08-09 18:52:28 +00:00
Package up vim-prettier plugin
This commit is contained in:
@@ -1,6 +1,16 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
|
vim-prettier = pkgs.vimUtils.buildVimPlugin {
|
||||||
|
name = "vim-prettier";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "prettier";
|
||||||
|
repo = "vim-prettier";
|
||||||
|
rev = "0.2.7";
|
||||||
|
sha256 = "sha256-FDeyGH5OPAYV7zePCfDujsj+nGd5AFnqySPStJYEY2E=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
|
||||||
home = { sessionVariables = { EDITOR = "vim"; }; };
|
home = { sessionVariables = { EDITOR = "vim"; }; };
|
||||||
|
|
||||||
@@ -152,7 +162,6 @@
|
|||||||
window.padding.y = 10;
|
window.padding.y = 10;
|
||||||
scrolling.history = 100000;
|
scrolling.history = 100000;
|
||||||
live_config_reload = true;
|
live_config_reload = true;
|
||||||
selection.save_to_clipboard = true;
|
|
||||||
mouse.hide_when_typing = true;
|
mouse.hide_when_typing = true;
|
||||||
|
|
||||||
font = {
|
font = {
|
||||||
@@ -291,7 +300,6 @@
|
|||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
|
|
||||||
extraConfig = builtins.readFile ./init.vim;
|
extraConfig = builtins.readFile ./init.vim;
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
coc-go
|
coc-go
|
||||||
coc-json
|
coc-json
|
||||||
@@ -314,6 +322,7 @@
|
|||||||
vim-markdown
|
vim-markdown
|
||||||
vim-nix
|
vim-nix
|
||||||
vim-pandoc
|
vim-pandoc
|
||||||
|
vim-prettier
|
||||||
vim-pandoc-syntax
|
vim-pandoc-syntax
|
||||||
vim-repeat
|
vim-repeat
|
||||||
vim-sneak
|
vim-sneak
|
||||||
|
@@ -149,3 +149,7 @@ set statusline+=\ %l:%c
|
|||||||
|
|
||||||
" vim-javacomplete2
|
" vim-javacomplete2
|
||||||
autocmd FileType java setlocal omnifunc=javacomplete#Complete
|
autocmd FileType java setlocal omnifunc=javacomplete#Complete
|
||||||
|
|
||||||
|
" vim-prettier
|
||||||
|
let g:prettier#autoformat = 1
|
||||||
|
|
||||||
|
@@ -56,6 +56,7 @@
|
|||||||
|
|
||||||
# node
|
# node
|
||||||
nodejs-14_x
|
nodejs-14_x
|
||||||
|
nodePackages.prettier
|
||||||
nodePackages.yarn
|
nodePackages.yarn
|
||||||
|
|
||||||
# social media
|
# social media
|
||||||
|
Reference in New Issue
Block a user