Skip to content

Commit a3711c4

Browse files
committed
chore(plugins): Remove all special inputs
1 parent 6199785 commit a3711c4

9 files changed

Lines changed: 56 additions & 115 deletions

File tree

config/opts.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@
4444
filetypes = {};
4545
};
4646
autoCmd = [
47+
{
48+
desc = "Roslyn init";
49+
event = ["FileType"];
50+
group = "filetypes";
51+
pattern = "cs";
52+
callback = {
53+
__raw = ''
54+
function()
55+
require("easy-dotnet").setup()
56+
require("roslyn").setup({
57+
exe = 'Microsoft.CodeAnalysis.LanguageServer',
58+
})
59+
end'';
60+
};
61+
}
4762
{
4863
desc = "Haskell mappings";
4964
event = ["FileType"];

config/plugins/dap.nix

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
{pkgs, ...}: {
22
extraPlugins = with pkgs.vimPlugins; [
3-
(pkgs.vimUtils.buildVimPlugin {
4-
name = "debugmaster-nvim";
5-
src = pkgs.fetchFromGitHub {
6-
owner = "miroshQa";
7-
repo = "debugmaster.nvim";
8-
rev = "ddc0fe1ff2c30b67ff1e49ba3b60c9c54ada14d0";
9-
hash = "sha256-I6FJEeuAcypFOiWKP326Cogut/llrXxKSQD8fhT5RqA=";
10-
};
11-
dependencies = [nvim-dap];
12-
})
3+
debugmaster-nvim
134
nvim-dap-vscode-js
145
nvim-dap-virtual-text
156
nvim-dap-python

config/plugins/editor/general.nix

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -18,52 +18,10 @@ in {
1818
package = pkgs.neovim-unwrapped;
1919
extraPlugins = with pkgs.vimPlugins; [
2020
overseer-nvim
21-
(pkgs.vimUtils.buildVimPlugin {
22-
name = "patterns.nvim";
23-
src = pkgs.fetchFromGitHub {
24-
owner = "OXY2DEV";
25-
repo = "patterns.nvim";
26-
rev = "0315318de9295fbf10b660a1f3cd1cc23e655744";
27-
hash = "sha256-jx6HHDhoH+M8QTJFPbS5jo4QZa8nyND5qdT9h6mTT0g=";
28-
};
29-
})
30-
(pkgs.vimUtils.buildVimPlugin {
31-
name = "multicursor.nvim";
32-
src = pkgs.fetchFromGitHub {
33-
owner = "jake-stewart";
34-
repo = "multicursor.nvim";
35-
rev = "86537c3771f1989592568c9d92da2e201297867a";
36-
hash = "sha256-/UV+oHQ2Lr4zNiqgJM44o1RhkftrfSzf3U58loszEz8=";
37-
};
38-
})
39-
(pkgs.vimUtils.buildVimPlugin {
40-
name = "endec.nvim";
41-
src = pkgs.fetchFromGitHub {
42-
owner = "ovk";
43-
repo = "endec.nvim";
44-
rev = "949ece728ecc0cacf3c6c81bbcda186fe3fef5cf";
45-
hash = "sha256-Tai94rM9EnL0TRAdgiuT3Hx1NVMQJf53N7xwwRC+uKk=";
46-
};
47-
})
48-
(pkgs.vimUtils.buildVimPlugin {
49-
name = "unified.nvim";
50-
src = pkgs.fetchFromGitHub {
51-
owner = "axkirillov";
52-
repo = "unified.nvim";
53-
rev = "0d8eebd3909b86ca30407d79b547a245185082c2";
54-
hash = "sha256-26YKaI6OCDlc326Ks4y67SDOXcaK9z99unlSmAdsd+Q=";
55-
};
56-
})
57-
# TODO enable when no longer broken
58-
#(pkgs.vimUtils.buildVimPlugin {
59-
# name = "clasp.nvim";
60-
# src = pkgs.fetchFromGitHub {
61-
# owner = "xzbdmw";
62-
# repo = "clasp.nvim";
63-
# rev = "e4361348b76684154ec88c8e0fbf5aa8dbd3e048";
64-
# hash = "sha256-11atWGsDWAQF48rFozf26X3tU+sRNAWTz5b3QXpvsIM=";
65-
# };
66-
#})
21+
patterns-nvim
22+
multicursor-nvim
23+
endec-nvim
24+
unified-nvim
6725
];
6826
extraConfigLua =
6927
/*

config/plugins/editor/live-share.nix

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
{pkgs, ...}: {
22
extraPlugins = [
3-
(pkgs.vimUtils.buildVimPlugin {
4-
name = "live-share";
5-
src = pkgs.fetchFromGitHub {
6-
owner = "azratul";
7-
repo = "live-share.nvim";
8-
rev = "bf5e8e087c368aae0325a09d1ea43f2a08f5e9aa";
9-
hash = "sha256-fUYFdeP+T+KwGpvm0eh5GcAS35ZU5f0N9A/JsqBgHGA=";
10-
};
11-
})
3+
pkgs.vimPlugins.live-share-nvim
124
];
135
extraConfigLua =
146
# lua

config/plugins/editor/neotree.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
hideGitignored = false;
1111
};
1212
bindToCwd = false;
13-
followCurrentFile.enabled = true;
1413
};
1514
window = {
1615
position = "right";

config/plugins/lsp/special_servers.nix

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@
88
in
99
lib.mkIf config'.lsp.useDefaultSpecialLspServers {
1010
extraPlugins = with pkgs.vimPlugins; [
11-
(pkgs.vimUtils.buildVimPlugin {
12-
name = "ng";
13-
src = pkgs.fetchFromGitHub {
14-
owner = "joeveiga";
15-
repo = "ng.nvim";
16-
rev = "38af07e77f066e2d6e3f74d966816662075ff4cd";
17-
hash = "sha256-Dh7RUB7JfurQFtl0UGANs8Tc38IaEum+i0ghN9iCsQk=";
18-
};
19-
})
11+
ng-nvim
2012
roslyn-nvim
2113
image-nvim
2214
haskell-tools-nvim
@@ -36,9 +28,32 @@ in
3628
};
3729
};
3830
};
31+
# /*
32+
# lua
33+
# */
34+
# ''
35+
# name = "@angular/language-service",
36+
# ''
3937
typescript-tools = {
4038
lazyLoad.settings.ft = "typescript";
4139
enable = true;
40+
settings.settings = {
41+
tsserver_plugins =
42+
if config'.lsp.special.useAngular
43+
then [
44+
/*
45+
lua
46+
*/
47+
{
48+
__raw = ''
49+
name = "@angular/language-server",
50+
location = "${pkgs.angular-language-server}",
51+
enableForWorkspaceTypeScriptVersions = false,
52+
'';
53+
}
54+
]
55+
else [];
56+
};
4257
settings.on_attach =
4358
/*
4459
lua
@@ -47,7 +62,10 @@ in
4762
function(client, bufnr)
4863
local function is_angular_project(root_dir)
4964
local util = require("lspconfig.util")
50-
return util.path.exists(util.path.join(root_dir, "angular.json"))
65+
local ang = util.path.exists(util.path.join(root_dir, "angular.json"));
66+
local angTemp = util.path.exists(util.path.join(root_dir, "angular-template.json"));
67+
local isAngular = ang or angTemp
68+
return isAngular
5169
end
5270
5371
local root_dir = client.config.root_dir
@@ -92,10 +110,6 @@ in
92110
};
93111
extraConfigLua = ''
94112
local inNeovide = vim.g.neovide or false
95-
require("easy-dotnet").setup()
96-
require("roslyn").setup({
97-
exe = 'Microsoft.CodeAnalysis.LanguageServer',
98-
})
99113
require("ng")
100114
require("litee.lib").setup()
101115
require("litee.gh").setup()

flake.lock

Lines changed: 6 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
description = "A nixvim configuration";
33
inputs = {
44
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
5-
dashpkgs.url = "github:DashieTM/nixpkgs/gh";
65
nixvim.url = "github:nix-community/nixvim";
76
flake-parts.url = "github:hercules-ci/flake-parts";
87
base16.url = "github:SenchoPens/base16.nix";

modules/default.nix

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,7 @@ in {
179179
eslint = {
180180
enable = true;
181181
filetypes = ["javascript" "javascriptreact" "typescript" "typescriptreact"];
182-
onAttach.function =
183-
/*
184-
lua
185-
*/
186-
''
187-
function(client, bufnr)
188-
client.server_capabilities.documentFormattingProvider = false
189-
client.server_capabilities.documentRangeFormattingProvider = false
190-
client.server_capabilities.documentOnTypeFormattingProvider = false
191-
end
192-
'';
182+
settings.format = false;
193183
};
194184
bashls.enable = true;
195185
clangd.enable = true;

0 commit comments

Comments
 (0)