Compare commits

...
2 Commits
Author SHA1 Message Date
Ivar Fatland bda73785cc fix auto select compiler bug 2026-09-02 12:44:10 +02:00
Ivar Fatland e0a1c1b00f add code action to range 2026-09-02 12:43:00 +02:00
+3 -7
View File
@@ -280,8 +280,7 @@ do
return vim.fn.globpath(dir, glob_pattern, false, false, false) ~= ''
end
local all_folders_till_root = nil
do
local all_folders_till_root = function()
local cwd = vim.fn.getcwd()
local folders = {cwd} -- array of all folders from cwd to root
for dir in vim.fs.parents(cwd) do
@@ -304,11 +303,7 @@ do
return i, f
end
---return iterator starting from cwd and going upwards until the project
---root is found by looking for the .git folder.
all_folders_till_root = function()
return iter, nil, 0
end
return iter, nil, 0
end
---@param glob_pattern string
@@ -674,6 +669,7 @@ require'lazy'.setup{ --{{{1
nnoremap ,fi :lua vim.lsp.buf.implementation()<CR>
nnoremap ,fr :lua vim.lsp.buf.references()<CR>
nnoremap ,ca :lua vim.lsp.buf.code_action()<CR>
vnoremap ,ca :lua vim.lsp.buf.code_action()<CR>
nnoremap ,oe :lua vim.diagnostic.open_float()<CR>
nnoremap ,ea :lua vim.diagnostic.setqflist()<CR>