feat(neovim): add lspfuzzy
This commit is contained in:
parent
594e74dd43
commit
75570d67df
17
flake.lock
17
flake.lock
|
@ -163,6 +163,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nvim-lspfuzzy": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1636365124,
|
||||||
|
"narHash": "sha256-wZx+tfzkX29vjGg5FFAtNstprzmEKdFOpR4RsIAJarc=",
|
||||||
|
"owner": "ojroques",
|
||||||
|
"repo": "nvim-lspfuzzy",
|
||||||
|
"rev": "d589cd2061830a32bb57bb410f5278afa267d0c6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ojroques",
|
||||||
|
"repo": "nvim-lspfuzzy",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nvim-ts-autotag": {
|
"nvim-ts-autotag": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -299,6 +315,7 @@
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
|
"nvim-lspfuzzy": "nvim-lspfuzzy",
|
||||||
"nvim-ts-autotag": "nvim-ts-autotag",
|
"nvim-ts-autotag": "nvim-ts-autotag",
|
||||||
"nvim-ts-context-commentstring": "nvim-ts-context-commentstring",
|
"nvim-ts-context-commentstring": "nvim-ts-context-commentstring",
|
||||||
"obelisk": "obelisk",
|
"obelisk": "obelisk",
|
||||||
|
|
35
flake.nix
35
flake.nix
|
@ -44,9 +44,14 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inputs.nvim-lspfuzzy = {
|
||||||
|
url = "github:ojroques/nvim-lspfuzzy";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixos-hardware, flake-utils, home-manager, nur
|
outputs = { self, nixpkgs, nixos-hardware, flake-utils, home-manager, nur
|
||||||
, neovim, obelisk, photoprism-flake, pre-commit-hooks, nvim-ts-autotag
|
, neovim, obelisk, photoprism-flake, pre-commit-hooks, nvim-ts-autotag
|
||||||
, nvim-ts-context-commentstring }@inputs:
|
, nvim-ts-context-commentstring, nvim-lspfuzzy }@inputs:
|
||||||
let
|
let
|
||||||
overlays = {
|
overlays = {
|
||||||
# newer packages that support NVIDIA's GBM Wayland backend
|
# newer packages that support NVIDIA's GBM Wayland backend
|
||||||
|
@ -75,21 +80,23 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
neovim = self: super:
|
neovim = self: super:
|
||||||
with super.pkgs.vimUtils; {
|
let
|
||||||
|
buildVimPlugin = name: input:
|
||||||
|
super.pkgs.vimUtils.buildVimPluginFrom2Nix {
|
||||||
|
pname = name;
|
||||||
|
version = input.rev;
|
||||||
|
versionSuffix = "-git";
|
||||||
|
src = input;
|
||||||
|
};
|
||||||
|
in {
|
||||||
neovim-nightly = neovim.packages.${self.system}.neovim;
|
neovim-nightly = neovim.packages.${self.system}.neovim;
|
||||||
vimPlugins = super.vimPlugins // {
|
vimPlugins = super.vimPlugins // {
|
||||||
nvim-ts-autotag = buildVimPluginFrom2Nix {
|
nvim-ts-autotag =
|
||||||
pname = "nvim-ts-autotag";
|
buildVimPlugin "nvim-ts-autotag" nvim-ts-autotag;
|
||||||
version = nvim-ts-autotag.rev;
|
nvim-ts-context-commentstring =
|
||||||
versionSuffix = "-git";
|
buildVimPlugin "nvim-ts-context-commentstring"
|
||||||
src = nvim-ts-autotag;
|
nvim-ts-context-commentstring;
|
||||||
};
|
nvim-lspfuzzy = buildVimPlugin "nvim-lspfuzzy" nvim-lspfuzzy;
|
||||||
nvim-ts-context-commentstring = buildVimPluginFrom2Nix {
|
|
||||||
pname = "nvim-ts-context-commentstring";
|
|
||||||
version = nvim-ts-context-commentstring.rev;
|
|
||||||
versionSuffix = "-git";
|
|
||||||
src = nvim-ts-context-commentstring;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
deconz = self: super: {
|
deconz = self: super: {
|
||||||
|
|
|
@ -46,6 +46,7 @@ in {
|
||||||
# lsp
|
# lsp
|
||||||
nvim-lspconfig
|
nvim-lspconfig
|
||||||
nvim-lightbulb
|
nvim-lightbulb
|
||||||
|
nvim-lspfuzzy
|
||||||
|
|
||||||
# dap
|
# dap
|
||||||
nvim-dap
|
nvim-dap
|
||||||
|
|
|
@ -18,6 +18,8 @@ local diagnosticls_on_attach = function(_, bufnr)
|
||||||
"au BufWritePre <buffer> lua vim.lsp.buf.formatting_seq_sync(nil, nil, { 'tsserver', 'diagnosticls' })")
|
"au BufWritePre <buffer> lua vim.lsp.buf.formatting_seq_sync(nil, nil, { 'tsserver', 'diagnosticls' })")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require('lspfuzzy').setup {}
|
||||||
|
|
||||||
-- enable lsp snippets for nvim-compe
|
-- enable lsp snippets for nvim-compe
|
||||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||||
|
|
Loading…
Reference in a new issue