Compare commits

..

25 commits

Author SHA1 Message Date
Ching Pei Yang
c2185f25df
blink: disable cmdline completion 2024-12-26 05:46:07 +01:00
Ching Pei Yang
fb91b1bbaa
blink: do not inherit vim's lsp capabilities 2024-12-26 05:46:07 +01:00
Ching Pei Yang
90cb9b7293
lspsignature: add assertion against blink.cmp 2024-12-26 05:46:07 +01:00
Ching Pei Yang
af67523642
docs: udpate release notes 2024-12-26 05:46:06 +01:00
Ching Pei Yang
a0d75f9182
blink: auto-show docs by default 2024-12-26 05:46:06 +01:00
Ching Pei Yang
57a6abc063
blink: re-add default sources to cmp ones 2024-12-26 05:46:06 +01:00
Ching Pei Yang
4fd2ded18a
treesitter-cmp: disable on blink.cmp 2024-12-26 05:46:06 +01:00
Ching Pei Yang
1f8b49bcef
blink: add blink.compat support 2024-12-26 05:46:06 +01:00
Ching Pei Yang
9f6f191e07
flake: add blink.compat 2024-12-26 05:46:06 +01:00
Ching Pei Yang
244a560922
blink: disable lazy-loading 2024-12-26 05:46:06 +01:00
Ching Pei Yang
ddabc26c33
lsp: use blink.cmp capabilities 2024-12-26 05:46:05 +01:00
Ching Pei Yang
63ea5bd71f
blink: keymap wrapper 2024-12-26 05:46:05 +01:00
Ching Pei Yang
e2de9a1e27
blink: add luasnip integration 2024-12-26 05:46:05 +01:00
Ching Pei Yang
e280cdc8f3
blink: basic keymap option 2024-12-26 05:46:05 +01:00
Ching Pei Yang
8897e164ba
flake: add plugin blink.cmp 2024-12-26 05:46:05 +01:00
Ching Pei Yang
6e3c9cbc1e
completion: migrate to shared cmp source options 2024-12-26 05:46:05 +01:00
Ching Pei Yang
cb136a9485
cmp: move source plugin into parent option 2024-12-26 05:46:04 +01:00
Ching Pei Yang
05e5f5e399
blink: init 2024-12-26 05:46:04 +01:00
raf
aa1754d5cc
Merge pull request #513 from diniamo/update-run
flake: update run.nvim
2024-12-25 18:19:36 +03:00
diniamo
672630f680 flake: update run.nvim 2024-12-25 15:11:29 +01:00
raf
7dd2026b9d
Merge pull request #512 from diniamo/nvim-notify-explicit-function
nvim-notify: use explicit function for vim.notify
2024-12-25 00:52:53 +03:00
raf
edc887f0e3
Merge branch 'main' into nvim-notify-explicit-function 2024-12-25 00:51:18 +03:00
diniamo
a34d104e3f
languages/zig: disable lsp autosave (#511) 2024-12-24 14:19:08 +03:00
diniamo
f6a8cd968e nvim-notify: use explicit function for vim.notify 2024-12-24 11:43:23 +01:00
DamitusThyYeetus123
3a2edd1b75
filetree/nvim-tree: Open on directory (#462)
* nvim-tree: Add directory opening

* formatting

* Fix formatting

* format

Co-authored-by: raf <raf@notashelf.dev>

---------

Co-authored-by: Ching Pei Yang <59727193+horriblename@users.noreply.github.com>
Co-authored-by: raf <raf@notashelf.dev>
2024-12-23 08:56:19 +00:00
7 changed files with 38 additions and 21 deletions

View file

@ -24,3 +24,6 @@
[diniamo](https://github.com/diniamo):
- Add Odin support under `vim.languages.odin`.
- Disable the built-in format-on-save feature of zls. Use `vim.lsp.formatOnSave`
instead.

View file

@ -1761,11 +1761,11 @@
"plugin-run-nvim": {
"flake": false,
"locked": {
"lastModified": 1734816675,
"narHash": "sha256-Wuk5HG+vHXAbifzp5YB5V/FxBhBRNWLeypkRczpXbvQ=",
"lastModified": 1735130195,
"narHash": "sha256-OaOSYyXSNCl9kJJVKhy0L4M06CQFc0NtZ8+AIgKBPik=",
"owner": "diniamo",
"repo": "run.nvim",
"rev": "6cd971afdce6443d7a070dcc23af51da1cc932f9",
"rev": "5888f31c5faf4776e598c0665470f5445510c59e",
"type": "github"
},
"original": {

View file

@ -36,6 +36,12 @@ in {
description = "Default list of sources to enable for completion.";
};
cmdline = mkOption {
type = listOf str;
default = [];
description = "List of sources to enable for cmdline";
};
providers = mkOption {
type = attrsOf providerType;
default = {};

View file

@ -77,6 +77,9 @@ in {
-- buffer is a real file on the disk
local real_file = vim.fn.filereadable(data.file) == 1
-- buffer is a directory
local directory = vim.fn.isdirectory(data.file) == 1
-- buffer is a [No Name]
local no_name = data.file == "" and vim.bo[data.buf].buftype == ""
@ -84,7 +87,7 @@ in {
local filetype = vim.bo[data.buf].ft
-- only files please
if not real_file and not no_name then
if not real_file and not directory and not no_name then
return
end
@ -93,6 +96,10 @@ in {
return
end
-- cd if buffer is a directory
if directory then
vim.cmd.cd(data.file)
end
-- open the tree but don't focus it
require("nvim-tree.api").tree.toggle({ focus = false })
end

View file

@ -6,7 +6,7 @@
}: let
inherit (builtins) attrNames;
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.modules) mkIf mkMerge;
inherit (lib.modules) mkIf mkMerge mkDefault;
inherit (lib.lists) isList;
inherit (lib.types) either listOf package str enum;
inherit (lib.nvim.lua) expToLua;
@ -60,13 +60,22 @@ in {
config = mkIf cfg.enable (mkMerge [
(mkIf cfg.treesitter.enable {
vim.treesitter.enable = true;
vim.treesitter.grammars = [cfg.treesitter.package];
vim.treesitter = {
enable = true;
grammars = [cfg.treesitter.package];
};
})
(mkIf cfg.lsp.enable {
vim.lsp.lspconfig.enable = true;
vim.lsp.lspconfig.sources.zig-lsp = servers.${cfg.lsp.server}.lspConfig;
vim = {
lsp.lspconfig = {
enable = true;
sources.zig-lsp = servers.${cfg.lsp.server}.lspConfig;
};
# nvf handles autosaving already
globals.zig_fmt_autosave = mkDefault 0;
};
})
]);
}

View file

@ -20,17 +20,9 @@ in {
cmd = "Run";
keys = [
(mkKeymap "n" cfg.mappings.run "<cmd>Run<CR>" {desc = mappings.run.description;})
(mkKeymap "n" cfg.mappings.runOverride "<cmd>Run!<CR>" {desc = mappings.runOverride.description;})
(mkKeymap "n" cfg.mappings.runCommand ''
function()
local input = vim.fn.input("Run command: ")
if input ~= "" then require("run").run(input, false) end
end
'' {
desc = mappings.run.description;
lua = true;
})
(mkKeymap "n" cfg.mappings.run "<cmd>Run<cr>" {desc = mappings.run.description;})
(mkKeymap "n" cfg.mappings.runOverride "<cmd>Run!<cr>" {desc = mappings.runOverride.description;})
(mkKeymap "n" cfg.mappings.runCommand "<cmd>RunPrompt<cr>" {desc = mappings.run.description;})
];
};

View file

@ -16,7 +16,7 @@ in {
pluginRC.nvim-notify = entryAnywhere ''
local notify = require("notify")
notify.setup(${toLuaObject cfg.setupOpts})
vim.notify = notify
vim.notify = notify.notify
'';
};
};