This commit is contained in:
iofq 2025-04-06 01:47:06 -05:00
parent 23bd257c9e
commit 9b0cab9709
7 changed files with 78 additions and 144 deletions

72
flake.lock generated
View file

@ -74,11 +74,11 @@
]
},
"locked": {
"lastModified": 1741352980,
"narHash": "sha256-+u2UunDA4Cl5Fci3m7S643HzKmIDAe+fiXrLqYsR2fs=",
"lastModified": 1743550720,
"narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "f4330d22f1c5d2ba72d3d22df5597d123fdb60a9",
"rev": "c621e8422220273271f52058f618c94e405bb0f5",
"type": "github"
},
"original": {
@ -289,11 +289,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1743293377,
"narHash": "sha256-DqvBHtTslU0E+XMW6xM4SY3UD3+nHAAIXHag0zukrpc=",
"lastModified": 1743898191,
"narHash": "sha256-JCcQDgwYV+C4igYA6DchGpKKA6eyZXLvRrxWHmQbmDk=",
"owner": "nix-community",
"repo": "neovim-nightly-overlay",
"rev": "3f10166b5b818227b9d7728f97e67e11cdf27ffd",
"rev": "276567b29d8c9aca7b6a54e93a9183e44a17f19c",
"type": "github"
},
"original": {
@ -305,11 +305,11 @@
"neovim-src": {
"flake": false,
"locked": {
"lastModified": 1743289921,
"narHash": "sha256-0gsBH+wMZJaXb95GKP6OZmtyhlJh0lS/gsn6J8rxt6k=",
"lastModified": 1743893800,
"narHash": "sha256-i/X0b3b/dAqjNIB5RoryeDvMkVfdoPBwK5xn06W6Wdo=",
"owner": "neovim",
"repo": "neovim",
"rev": "99529577cc9f5229cbb3dac8ab4782bd43094102",
"rev": "28e819018520a2300eaeeec6794ffcd614b25dd2",
"type": "github"
},
"original": {
@ -320,11 +320,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1743076231,
"narHash": "sha256-yQugdVfi316qUfqzN8JMaA2vixl+45GxNm4oUfXlbgw=",
"lastModified": 1743689281,
"narHash": "sha256-y7Hg5lwWhEOgflEHRfzSH96BOt26LaYfrYWzZ+VoVdg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6c5963357f3c1c840201eda129a99d455074db04",
"rev": "2bfc080955153be0be56724be6fa5477b4eefabb",
"type": "github"
},
"original": {
@ -346,22 +346,6 @@
"url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
}
},
"nixpkgs-master": {
"locked": {
"lastModified": 1743392618,
"narHash": "sha256-lc4l0nV5WgnS4wuZrX7Na2tRBEpe2IzWmLnhm3+t3Tk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "cd6f6791e94d08b983fe6d127ec6942176737f6a",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1720386169,
@ -378,13 +362,13 @@
"type": "github"
}
},
"nixpkgs_2": {
"nixpkgs-uns": {
"locked": {
"lastModified": 1743315132,
"narHash": "sha256-6hl6L/tRnwubHcA4pfUUtk542wn2Om+D4UnDhlDW9BE=",
"lastModified": 1743827369,
"narHash": "sha256-rpqepOZ8Eo1zg+KJeWoq1HAOgoMCDloqv5r2EAa9TSA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "52faf482a3889b7619003c0daec593a1912fddc1",
"rev": "42a1c966be226125b48c384171c44c651c236c22",
"type": "github"
},
"original": {
@ -394,13 +378,29 @@
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1743962461,
"narHash": "sha256-UaulIYZqwVF7CRYsDG6Jt3k3+Qs21yJT2/CLRWT9qzg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "eb77ff4e9c1f071693be92d144f363ef24701039",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"gen-luarc": "gen-luarc",
"neovim-nightly-overlay": "neovim-nightly-overlay",
"nixpkgs": "nixpkgs_2",
"nixpkgs-master": "nixpkgs-master"
"nixpkgs-uns": "nixpkgs-uns"
}
},
"systems": {
@ -426,11 +426,11 @@
]
},
"locked": {
"lastModified": 1743081648,
"narHash": "sha256-WRAylyYptt6OX5eCEBWyTwOEqEtD6zt33rlUkr6u3cE=",
"lastModified": 1743748085,
"narHash": "sha256-uhjnlaVTWo5iD3LXics1rp9gaKgDRQj6660+gbUU3cE=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "29a3d7b768c70addce17af0869f6e2bd8f5be4b7",
"rev": "815e4121d6a5d504c0f96e5be2dd7f871e4fd99d",
"type": "github"
},
"original": {

View file

@ -2,8 +2,8 @@
description = "Neovim derivation";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
nixpkgs-uns.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/master";
flake-utils.url = "github:numtide/flake-utils";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
gen-luarc = {

View file

@ -26,15 +26,12 @@ with final.pkgs.lib; let
neogit
nightfox-nvim
nvim-autopairs
# nvim-dap
# nvim-dap-go
# nvim-dap-ui
nvim-lint
nvim-lspconfig
# nvim-nio
nvim-treesitter-context
nvim-treesitter-textobjects
nvim-treesitter.withAllGrammars
oil-nvim
refactoring-nvim
render-markdown-nvim
scope-nvim

View file

@ -4,48 +4,11 @@ return {
cmd = 'Copilot',
opts = {
panel = {
enabled = true,
auto_refresh = false,
keymap = {
jump_prev = '<C-p>',
jump_next = '<C-n>',
accept = '<C-y>',
toggle = '<M-CR>',
},
enabled = false,
},
suggestion = {
enabled = false,
},
completion = {
documentation = {
auto_show = true,
},
list = {
selection = {
preselect = false,
auto_insert = true,
},
},
accept = {
auto_brackets = {
enabled = true,
},
},
},
filetypes = {
go = true,
lua = true,
php = true,
python = true,
ruby = true,
sh = true,
bash = true,
javascript = true,
puppet = true,
yaml = true,
markdown = true,
['*'] = false,
},
},
},
{
@ -61,14 +24,17 @@ return {
chat = { adapter = 'copilot' },
inline = { adapter = 'copilot' },
},
adapters = {
ollama = function()
return require('codecompanion.adapters').extend('ollama', {
schema = {
model = { default = 'qwen2.5-coder:1.5b' },
},
})
end,
},
},
keys = {
{
'<leader>ac',
'<cmd>CodeCompanionChat Toggle<CR>',
noremap = true,
desc = 'Copilot chat toggle',
},
{
'<leader>as',
'<cmd>CodeCompanionChat Add<CR>',

View file

@ -1,56 +0,0 @@
return {}
-- {
-- 'rcarriga/nvim-dap-ui',
-- event = 'VeryLazy',
-- dependencies = {
-- 'nvim-neotest/nvim-nio',
-- },
-- },
-- {
-- 'mfussenegger/nvim-dap',
-- event = 'VeryLazy',
-- dependencies = {
-- 'leoluz/nvim-dap-go',
-- 'rcarriga/nvim-dap-ui',
-- },
-- config = function()
-- local d = require('dap')
-- local w = require('dap.ui.widgets')
-- local ui = require('dapui')
-- require('dap-go').setup()
-- ui.setup()
--
-- local scopes = nil
-- vim.keymap.set('n', '<leader>za', function()
-- ui.toggle()
-- end, { desc = 'toggle dapui' })
-- vim.keymap.set('n', '<leader>zz', function()
-- d.continue()
-- end, { desc = 'start debugger' })
-- vim.keymap.set('n', '<leader>zn', function()
-- d.step_over()
-- end, { desc = 'step over' })
-- vim.keymap.set('n', '<leader>zi', function()
-- d.step_into()
-- end, { desc = 'step into' })
-- vim.keymap.set('n', '<leader>zo', function()
-- d.step_out()
-- end, { desc = 'step out' })
-- vim.keymap.set('n', '<leader>zx', function()
-- d.toggle_breakpoint()
-- end, { desc = 'toggle_breakpoint' })
-- vim.keymap.set('n', '<leader>zr', function()
-- d.run_last()
-- end, { desc = 'run prev' })
-- vim.keymap.set({ 'n', 'v' }, '<leader>zh', function()
-- ui.eval()
-- end, { desc = 'hover' })
-- vim.keymap.set({ 'n', 'v' }, '<leader>zp', function()
-- require('dap.ui.widgets').preview()
-- end, { desc = 'preview' })
-- vim.keymap.set('n', '<leader>zf', function()
-- local widgets = require('dap.ui.widgets')
-- widgets.centered_float(widgets.frames)
-- end, { desc = 'view frames' })
-- end,
-- },

View file

@ -179,6 +179,8 @@ return {
formatters_by_ft = {
json = { 'jq' },
puppet = { 'puppet-lint' },
lua = { 'stylua' },
python = { 'ruff' },
['*'] = { 'trim_whitespace' },
},
format_on_save = function(bufnr)

View file

@ -1,8 +1,33 @@
return {
{
'windwp/nvim-autopairs',
event = "InsertEnter",
config = true
event = 'InsertEnter',
config = true,
},
{
'stevearc/oil.nvim',
opts = {
watch_for_changes = true,
columns = {
'permissions',
'size',
},
view_options = {
show_hidden = true,
},
keymaps = {
['wq'] = 'actions.close',
},
},
keys = {
{
'<leader>nc',
function()
require('oil').toggle_float()
end,
{ noremap = true, silent = true },
},
},
},
{
'jinh0/eyeliner.nvim',