mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
Compare commits
No commits in common. "108cda24bdab5b57bb73aff57ffb7b10667ad4c7" and "1d6d4410a5a2d553324cf125755019e309fcc91a" have entirely different histories.
108cda24bd
...
1d6d4410a5
11 changed files with 26 additions and 61 deletions
|
@ -1,10 +1,10 @@
|
|||
[*]
|
||||
indent_style = tab
|
||||
|
||||
[*.{nix,yaml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.{py,sh}]
|
||||
[*.py]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[*.{json,lua}]
|
||||
indent_style = tab
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
{
|
||||
environment.variables.EDITOR = "nvim";
|
||||
environment.systemPackages = [
|
||||
pkgs.bck-nvim-base
|
||||
pkgs.bck-nvim-tools
|
||||
pkgs.bck-nvim
|
||||
];
|
||||
|
||||
users.users.sean = {
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
{ 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")
|
||||
];
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ callPackage }:
|
||||
|
||||
callPackage ./bck-nvim-base {
|
||||
extraBinPaths = [
|
||||
(callPackage ./bck-nvim-tools.nix { })
|
||||
];
|
||||
}
|
|
@ -1,8 +1,17 @@
|
|||
{ lib
|
||||
, extraBinPaths ? [ ]
|
||||
, neovim-unwrapped
|
||||
, vimPlugins
|
||||
, wrapNeovim
|
||||
|
||||
# LSP
|
||||
, black
|
||||
, efm-langserver
|
||||
, lua-language-server
|
||||
, nil
|
||||
, nodePackages
|
||||
, pyright
|
||||
, vscode-langservers-extracted
|
||||
, yaml-language-server
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -13,7 +22,17 @@ let
|
|||
|
||||
extraPath = lib.concatLines (map
|
||||
(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
|
|
@ -16,11 +16,6 @@ lspconfig.lua_ls.setup({
|
|||
}
|
||||
})
|
||||
|
||||
----------------------------------------------------------------
|
||||
lspconfig.gopls.setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
||||
----------------------------------------------------------------
|
||||
lspconfig.pyright.setup({
|
||||
capabilities = capabilities,
|
Loading…
Reference in a new issue