Compare commits

...

3 commits

Author SHA1 Message Date
github-actions[bot]
97cb188eb5 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/d233902' (2026-05-15)
  → 'github:nixos/nixpkgs/a799d3e' (2026-06-06)
• Updated input 'wrappers':
    'github:BirdeeHub/nix-wrapper-modules/e7ed7a1' (2026-05-20)
  → 'github:BirdeeHub/nix-wrapper-modules/8dd304c' (2026-06-05)
2026-06-09 06:54:51 +00:00
3cf282e4f8 new font for gui 2026-06-08 11:03:05 +01:00
83b70216a9 fixed treesitter 2026-06-08 11:02:45 +01:00
3 changed files with 22 additions and 18 deletions

12
flake.lock generated
View file

@ -22,11 +22,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1778869304,
"narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=",
"lastModified": 1780749050,
"narHash": "sha256-3av0pIjlOWQ6rDbNOmpUSvbNnJkGORQKKjb4LtCZsIY=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d233902339c02a9c334e7e593de68855ad26c4cb",
"rev": "a799d3e3886da994fa307f817a6bc705ae538eeb",
"type": "github"
},
"original": {
@ -124,11 +124,11 @@
]
},
"locked": {
"lastModified": 1779297405,
"narHash": "sha256-VFoBwH7ZjVxCnvZTb5ODRXt70sLtWMxstive0N+RS50=",
"lastModified": 1780661205,
"narHash": "sha256-3F5DixT3Gk91lBI9E+TGMm0ko5HrRbDiL23di16TJGA=",
"owner": "BirdeeHub",
"repo": "nix-wrapper-modules",
"rev": "e7ed7a1205945befdf2e0d73ba7df91d935e5af1",
"rev": "8dd304c3582ddd339217e1cc5fb53f50acb63c2d",
"type": "github"
},
"original": {

View file

@ -22,9 +22,11 @@ local COMMENT_TYPES = {
}
function M.get_current_node()
local ts_utils = require('nvim-treesitter.ts_utils')
local cur_win = vim.api.nvim_get_current_win()
return ts_utils.get_node_at_cursor(cur_win, true)
return vim.treesitter.get_node({
winid = cur_win,
ignore_injections = true,
})
end
function M.detect_global_node()
@ -50,7 +52,6 @@ function M.detect_global_node()
end
function M.move_to_next_non_empty_line()
local ts_utils = require('nvim-treesitter.ts_utils')
-- Search for the next non-empty line
local line_num = vim.fn.search("[^;\\s]", "W")
@ -86,25 +87,27 @@ function M.move_to_next_non_empty_line()
line_content = vim.api.nvim_buf_get_lines(0, line_num - 1, line_num, false)[1]
first_non_ws = line_content:find("%S") or 1
vim.api.nvim_win_set_cursor(0, { line_num, first_non_ws - 1 })
node = ts_utils.get_node_at_cursor()
node = vim.treesitter.get_node()
end
return true
end
function M.vselect_node(node)
local ts_utils = require('nvim-treesitter.ts_utils')
if not node then
return false
end
local cur_buf = vim.api.nvim_get_current_buf()
ts_utils.update_selection(cur_buf, node, "V")
local start_row, _, end_row, _ = node:range()
vim.api.nvim_win_set_cursor(0, { start_row + 1, 0 })
vim.cmd("normal! V")
vim.api.nvim_win_set_cursor(0, { end_row + 1, 0 })
return true
end
function M.select_until_global(global_nodes)
local ts_utils = require('nvim-treesitter.ts_utils')
local root_node = M.detect_global_node()
if not root_node and global_nodes then
root_node = global_nodes[1]
@ -113,7 +116,7 @@ function M.select_until_global(global_nodes)
-- Use empty table if no global nodes provided
global_nodes = global_nodes or {}
local node = ts_utils.get_node_at_cursor()
local node = vim.treesitter.get_node()
if not node then
-- print("No syntax node found at cursor position")
return nil
@ -167,7 +170,6 @@ function M.slime_send_region()
end
function M.send_repl(global_nodes)
local ts_utils = require('nvim-treesitter.ts_utils')
local cur_node = M.get_current_node()
if not cur_node then
@ -189,7 +191,9 @@ function M.send_repl(global_nodes)
M.slime_send_region()
-- Move cursor and continue
ts_utils.goto_node(sel_node, true)
local _, _, er, ec = sel_node:range()
vim.api.nvim_win_set_cursor(0, { er + 1, ec })
M.move_to_next_non_empty_line()
end

View file

@ -176,7 +176,7 @@ if vim.g.neovide then
vim.g.neovide_cursor_short_animation_length = 0
vim.g.neovide_font_hinting = 'none'
vim.g.neovide_font_edging = 'subpixelantialias'
vim.o.guifont = 'Iosevka Nerd Font,Symbols Nerd Font:h14:#e-subpixelantialias:#h-none'
vim.o.guifont = 'JetBrainsMono Nerd Font,Symbols Nerd Font:h14:#e-subpixelantialias:#h-none'
vim.g.neovide_floating_corner_radius = 0.35
vim.keymap.set("n", "<leader>nf", "<cmd>NeovideFullscreen<CR>", { desc = "Toggle Neovide Fullscreen" })
end