Compare commits

...

6 commits

Author SHA1 Message Date
Sean Buckley
108cda24bd vim: add go tools 2024-08-01 17:05:38 -04:00
Sean Buckley
9936e7062a fix node packages in vim tools 2024-07-29 23:46:40 -04:00
Sean Buckley
f3a238e747 make vim support tools available in shell 2024-07-29 23:27:36 -04:00
Sean Buckley
c031a7a63f split vim support tools to separate package 2024-07-29 23:14:58 -04:00
Sean Buckley
c9af9f0521 update editorconfig 2024-07-29 03:01:12 -04:00
Sean Buckley
1a8115dd29 vim: rename config files 2024-07-28 22:44:05 -04:00
11 changed files with 61 additions and 26 deletions

View file

@ -1,10 +1,10 @@
[*]
indent_style = tab
[*.{nix,yaml}] [*.{nix,yaml}]
indent_style = space indent_style = space
indent_size = 2 indent_size = 2
[*.py] [*.{py,sh}]
indent_style = space indent_style = space
indent_size = 4 indent_size = 4
[*.{json,lua}]
indent_style = tab

View file

@ -2,7 +2,8 @@
{ {
environment.variables.EDITOR = "nvim"; environment.variables.EDITOR = "nvim";
environment.systemPackages = [ environment.systemPackages = [
pkgs.bck-nvim pkgs.bck-nvim-base
pkgs.bck-nvim-tools
]; ];
users.users.sean = { users.users.sean = {

View file

@ -1,17 +1,8 @@
{ lib { lib
, extraBinPaths ? [ ]
, neovim-unwrapped , neovim-unwrapped
, vimPlugins , vimPlugins
, wrapNeovim , wrapNeovim
# LSP
, black
, efm-langserver
, lua-language-server
, nil
, nodePackages
, pyright
, vscode-langservers-extracted
, yaml-language-server
}: }:
let let
@ -22,17 +13,7 @@ let
extraPath = lib.concatLines (map extraPath = lib.concatLines (map
(p: "let $PATH .= ':${p}/bin'") (p: "let $PATH .= ':${p}/bin'")
[ (extraBinPaths)
black
efm-langserver
lua-language-server
nil
nodePackages.prettier
nodePackages.typescript-language-server
pyright
vscode-langservers-extracted
yaml-language-server
]
); );
in in

View file

@ -16,6 +16,11 @@ lspconfig.lua_ls.setup({
} }
}) })
----------------------------------------------------------------
lspconfig.gopls.setup({
capabilities = capabilities,
})
---------------------------------------------------------------- ----------------------------------------------------------------
lspconfig.pyright.setup({ lspconfig.pyright.setup({
capabilities = capabilities, capabilities = capabilities,

41
pkgs/bck-nvim-tools.nix Normal file
View file

@ -0,0 +1,41 @@
{ symlinkJoin
, runCommand
, black
, efm-langserver
, errcheck
, go
, gopls
, lua-language-server
, nil
, nodePackages
, pyright
, vscode-langservers-extracted
, yaml-language-server
}:
let
symlinkBin = path: runCommand "symlinkBin" { } ''
mkdir -p $out/bin
ln -s "${path}" $out/bin/
'';
in
symlinkJoin {
name = "bck-nvim-tools";
paths = [
black
efm-langserver
errcheck
go
gopls
lua-language-server
nil
pyright
vscode-langservers-extracted
yaml-language-server
(symlinkBin "${nodePackages.prettier}/bin/prettier")
(symlinkBin "${nodePackages.typescript-language-server}/bin/typescript-language-server")
];
}

7
pkgs/bck-nvim.nix Normal file
View file

@ -0,0 +1,7 @@
{ callPackage }:
callPackage ./bck-nvim-base {
extraBinPaths = [
(callPackage ./bck-nvim-tools.nix { })
];
}