initial commit
This commit is contained in:
7
homemanager/neovim/lua/lib/lsp.lua
Normal file
7
homemanager/neovim/lua/lib/lsp.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
M = {}
|
||||
|
||||
function M.has_file(filename)
|
||||
return vim.fn.filereadable(filename) == 1
|
||||
end
|
||||
|
||||
return M
|
||||
15
homemanager/neovim/lua/lib/window.lua
Normal file
15
homemanager/neovim/lua/lib/window.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
return {
|
||||
new_window = function(o_path, o_title)
|
||||
if o_path == nil then
|
||||
o_path = vim.fn.getcwd()
|
||||
end
|
||||
|
||||
if o_title == nil then
|
||||
o_title = "neovim"
|
||||
end
|
||||
|
||||
print(string.format("ghostty --working-directory='%s' --title='%s' -e nvim .", o_path, o_title))
|
||||
return vim.fn.jobstart(string.format("ghostty --working-directory='%s' --title='%s' -e nvim .", o_path, o_title),
|
||||
{ detach = true })
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user