Compare commits

..

1 commit

Author SHA1 Message Date
aa228521fe
nvim: all in on mini.nvim 2024-11-05 21:55:52 +01:00
4 changed files with 11 additions and 8 deletions

14
flake.lock generated
View file

@ -29,11 +29,11 @@
"zig": "zig"
},
"locked": {
"lastModified": 1730688195,
"narHash": "sha256-wXK1/gOImxv0vHpUc9qgno1AY8c64j17/UFIiT7zH1g=",
"lastModified": 1730776162,
"narHash": "sha256-ODmmTWz3jqaPmJ1UiJgHD3oy90BTEd871GZHyT5Xn9M=",
"ref": "refs/heads/main",
"rev": "737dc0896dc266a98c889e122b5c900636e589c9",
"revCount": 7874,
"rev": "f9199a46118f173ac7a005130f871fdf050f94d1",
"revCount": 7881,
"type": "git",
"url": "ssh://git@github.com/ghostty-org/ghostty"
},
@ -95,11 +95,11 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1730327045,
"narHash": "sha256-xKel5kd1AbExymxoIfQ7pgcX6hjw9jCgbiBjiUfSVJ8=",
"lastModified": 1730741070,
"narHash": "sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "080166c15633801df010977d9d7474b4a6c549d7",
"rev": "d063c1dd113c91ab27959ba540c0d9753409edf3",
"type": "github"
},
"original": {

View file

@ -12,6 +12,7 @@
extraLuaConfig = lib.fileContents ./init.lua;
extraPackages = with pkgs; [
black
cue
go
gopls
gotools

View file

@ -41,6 +41,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
end,
})
local configs = require('lspconfig.configs')
local lspconfig = require("lspconfig")
local capabilities = vim.lsp.protocol.make_client_capabilities()

View file

@ -54,8 +54,9 @@
MiniPick.registry.files_root = function(local_opts)
local root_patterns = { ".jj", ".git" }
local root_dir = vim.fs.dirname(vim.fs.find(root_patterns, { upward = true })[1])
local opts = { source = { cwd = root_dir, tool = "rg" } }
local opts = { source = { cwd = root_dir, tool = "ripgrep"} }
local_opts.cwd = root_dir
local_opts.tool = "rg"
return MiniPick.builtin.files(local_opts, opts)
end
MiniPick.registry.grep_live_root = function(local_opts)